:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --teal-500: #14b8a6;
    --yellow-300: #fde047;
    --orange-300: #fdba74;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 70px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --header-height: 72px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    height: var(--header-height);
    margin: 0 auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    gap: 10px;
}

.brand-icon {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.07) rotate(-3deg);
}

.brand-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-35%, -50%);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--gray-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    position: relative;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue-600);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link-muted {
    color: var(--gray-500);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 18px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    outline: none;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input:focus,
.large-search input:focus,
.mobile-search input:focus,
.toolbar-actions input:focus,
.hero-search-panel input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    transform: translateY(-50%);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-800);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input,
.large-search input,
.hero-search-panel input,
.toolbar-actions input {
    min-width: 0;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    outline: none;
    background: #fff;
}

.mobile-search input {
    flex: 1;
    padding: 11px 14px;
}

.mobile-search button,
.large-search button,
.hero-search-panel button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    cursor: pointer;
}

.mobile-search button {
    padding: 0 18px;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-50);
    font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--blue-600);
    background: var(--blue-50);
}

main {
    padding-top: var(--header-height);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #14b8a6 100%);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.18), transparent 23%),
        radial-gradient(circle at 86% 18%, rgba(14, 165, 233, 0.26), transparent 28%),
        radial-gradient(circle at 72% 84%, rgba(45, 212, 191, 0.22), transparent 30%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 52px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0 150px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: -90px calc(50% - 50vw) -40px calc(50% - 50vw);
    width: 100vw;
    height: calc(100% + 130px);
    object-fit: cover;
    opacity: 0.18;
    filter: blur(8px) saturate(1.18);
}

.hero-backdrop.is-missing,
.detail-backdrop.is-missing {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: -90px calc(50% - 50vw) -40px calc(50% - 50vw);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.94), rgba(6, 182, 212, 0.78), rgba(20, 184, 166, 0.68));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
    max-width: 690px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.inline-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-button {
    color: var(--blue-600);
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.section-action:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.hero-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-xl);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 150px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.62;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    opacity: 1;
    background: #fff;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search-panel {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 40px;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-search-panel form {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.hero-search-panel input {
    flex: 1;
    padding: 15px 20px;
}

.hero-search-panel button {
    min-width: 130px;
    padding: 0 22px;
    background: var(--gray-900);
}

.hero-stats {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1180px, calc(100% - 32px));
    margin: -12px auto 44px;
    gap: 18px;
}

.hero-stat-card {
    min-height: 142px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-stat-icon {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yellow-300), var(--orange-300));
}

.hero-stat-card strong,
.hero-stat-card small {
    display: block;
}

.hero-stat-card strong {
    font-size: 24px;
    font-weight: 850;
}

.hero-stat-card small {
    color: rgba(255, 255, 255, 0.82);
}

.content-section {
    padding: 72px 0;
}

.bg-white {
    background: #fff;
}

.soft-bg {
    background: linear-gradient(135deg, #f9fafb, #eff6ff);
}

.section-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-shell.narrow {
    width: min(880px, calc(100% - 32px));
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--gray-600);
}

.section-action {
    min-height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.movie-grid.two-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(229, 231, 235, 0.76);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-md);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--blue-100), #cffafe);
}

.poster-frame::after,
.list-thumb::after,
.detail-poster::after,
.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.46));
    pointer-events: none;
}

.poster-frame img,
.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img,
.movie-list-item:hover .list-thumb img {
    transform: scale(1.08);
}

.poster-frame img.is-missing,
.list-thumb img.is-missing,
.detail-poster img.is-missing,
.hero-poster img.is-missing,
.category-tile img.is-missing,
.category-mini img.is-missing {
    display: none;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.play-mark::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 16px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid var(--blue-600);
}

.play-mark.large {
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.play-mark.large::before {
    left: 31px;
    top: 23px;
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-left-width: 22px;
}

.movie-card:hover .play-mark,
.hero-poster .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-badge,
.year-pill {
    position: absolute;
    z-index: 3;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.card-badge {
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
}

.year-pill {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.48;
    font-weight: 780;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.25s ease;
}

.movie-card:hover .card-body h3,
.movie-list-item:hover h3 {
    color: var(--blue-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 12px;
}

.card-meta span:first-child {
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-weight: 750;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

.rank-panel,
.side-card,
.info-card,
.player-card,
.catalog-sidebar,
.catalog-toolbar {
    border: 1px solid rgba(229, 231, 235, 0.75);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-panel-head h2,
.side-card h2,
.info-card h2,
.catalog-sidebar h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 830;
}

.rank-panel-head a {
    color: var(--blue-600);
    font-weight: 750;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.movie-list-item a {
    display: grid;
    grid-template-columns: auto 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-list-item a:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-sm);
}

.rank-index {
    width: 34px;
    color: var(--blue-600);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.list-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-100), #cffafe);
}

.list-copy h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.list-copy p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.inline-tags {
    margin-top: 0;
}

.inline-tags span {
    padding: 4px 8px;
    color: var(--gray-600);
    background: var(--gray-100);
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500), var(--teal-500));
}

.compact-hero {
    padding: 74px 0;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p {
    max-width: 760px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 24px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-mini:hover,
.podium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.72));
}

.category-tile strong,
.category-tile small {
    position: absolute;
    left: 24px;
    z-index: 2;
}

.category-tile strong {
    bottom: 54px;
    font-size: 28px;
    font-weight: 900;
}

.category-tile small {
    bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
}

.category-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-mini img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--blue-100), #cffafe);
}

.category-mini strong,
.category-mini small {
    display: block;
}

.category-mini strong {
    font-weight: 850;
}

.category-mini small {
    color: var(--gray-500);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a,
.tag-list a,
.quick-tags button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-700);
    background: #fff;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.tag-cloud a:hover,
.tag-list a:hover,
.quick-tags button:hover {
    color: var(--blue-600);
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--blue-50);
}

.tag-cloud span {
    color: var(--gray-500);
    font-size: 12px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.catalog-layout.full-width {
    display: block;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
}

.catalog-sidebar h2:not(:first-child) {
    margin-top: 28px;
}

.catalog-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 750;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.side-link:hover,
.side-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.quick-tags button {
    min-height: 32px;
    cursor: pointer;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 22px;
}

.sticky-toolbar {
    position: sticky;
    top: 88px;
    z-index: 10;
}

.catalog-toolbar h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 850;
}

.catalog-toolbar p {
    margin: 4px 0 0;
    color: var(--gray-600);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.toolbar-actions input {
    width: min(280px, 100%);
    padding: 11px 14px;
}

.toolbar-button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-600);
    background: #fff;
    cursor: pointer;
}

.toolbar-button.is-active,
.toolbar-button:hover {
    color: #fff;
    border-color: transparent;
    background: var(--blue-600);
}

.catalog-results.is-list {
    display: grid;
    grid-template-columns: 1fr;
}

.catalog-results.is-list .movie-card a {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.catalog-results.is-list .poster-frame {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.catalog-results.is-list .card-body h3 {
    min-height: auto;
    font-size: 20px;
}

.catalog-results.is-list .card-body p {
    min-height: auto;
    -webkit-line-clamp: 3;
}

.no-results {
    grid-column: 1 / -1;
    padding: 48px;
    border: 1px dashed var(--gray-300);
    border-radius: 24px;
    color: var(--gray-600);
    background: #fff;
    text-align: center;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: end;
}

.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 24px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.podium-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.podium-rank,
.podium-card strong,
.podium-card small {
    position: relative;
    z-index: 2;
}

.podium-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--yellow-300), var(--orange-300));
    font-size: 26px;
    font-weight: 950;
}

.podium-card strong {
    display: block;
    margin-top: 170px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
}

.podium-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.big-rank-list .movie-list-item a {
    grid-template-columns: 46px 160px minmax(0, 1fr);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(5px) saturate(1.15);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.68), rgba(6, 182, 212, 0.42));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 26px;
    background: linear-gradient(135deg, var(--blue-100), #cffafe);
    box-shadow: var(--shadow-xl);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    max-width: 820px;
}

.detail-tags-inline span {
    background: rgba(255, 255, 255, 0.14);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px 24px 0 0;
    background: #020617;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
    cursor: pointer;
}

.player-start strong {
    margin-top: 94px;
    font-size: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.player-card.is-playing .player-start {
    display: none;
}

.player-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    color: var(--gray-600);
}

.player-meta strong {
    color: var(--gray-900);
}

.info-card {
    padding: 24px;
}

.info-card p {
    margin: 12px 0 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.detail-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 20px;
}

.detail-dl div {
    padding: 14px;
    border-radius: 16px;
    background: var(--gray-50);
}

.detail-dl dt {
    color: var(--gray-500);
    font-size: 13px;
}

.detail-dl dd {
    margin: 4px 0 0;
    color: var(--gray-900);
    font-weight: 750;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-side {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.compact-rank-list .movie-list-item a {
    grid-template-columns: 104px minmax(0, 1fr);
}

.compact-rank-list .rank-index {
    display: none;
}

.compact-rank-list .list-copy p,
.compact-rank-list .inline-tags span:nth-child(n+3) {
    display: none;
}

.large-search {
    display: flex;
    gap: 10px;
    width: min(720px, 100%);
    margin-top: 28px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.large-search input {
    flex: 1;
    padding: 15px 18px;
}

.large-search button {
    min-width: 128px;
    padding: 0 20px;
}

.search-tags {
    margin-top: 0;
}

.article-page {
    color: var(--gray-700);
    font-size: 17px;
}

.article-page h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 26px;
}

.article-page p + h2 {
    margin-top: 30px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 52%, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.brand-in-footer .brand-copy strong {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p,
.footer-bottom {
    color: #9ca3af;
}

.footer-brand p {
    max-width: 360px;
    margin: 18px 0 0;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #d1d5db;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 28px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .side-card {
        position: static;
    }

    .category-grid,
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-mini-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 64px;
    }

    .nav-shell {
        height: var(--header-height);
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 54px 0 210px;
    }

    .hero-poster {
        width: min(260px, 75vw);
        margin: 0 auto;
    }

    .hero-controls {
        bottom: 158px;
    }

    .hero-stats {
        margin-top: -22px;
    }

    .movie-grid,
    .movie-grid.two-row,
    .podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar,
    .sticky-toolbar {
        position: static;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-actions {
        justify-content: flex-start;
    }

    .catalog-results.is-list .movie-card a,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 75vw);
    }

    .detail-dl {
        grid-template-columns: 1fr;
    }

    .big-rank-list .movie-list-item a,
    .movie-list-item a {
        grid-template-columns: 40px 104px minmax(0, 1fr);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .brand-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-content p,
    .page-hero p,
    .detail-copy p {
        font-size: 17px;
    }

    .hero-search-panel form,
    .large-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search-panel button,
    .large-search button {
        min-height: 48px;
    }

    .hero-stats,
    .category-grid,
    .category-mini-grid,
    .footer-grid,
    .movie-grid,
    .movie-grid.two-row,
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .mobile-panel nav {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 50px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-list-item a,
    .big-rank-list .movie-list-item a,
    .compact-rank-list .movie-list-item a {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .rank-index {
        display: none;
    }

    .player-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
