:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --rose-500: #f43f5e;
    --teal-500: #14b8a6;
    --cyan-500: #06b6d4;
    --blue-500: #3b82f6;
    --indigo-500: #6366f1;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 30px 80px rgba(15, 23, 42, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(135deg, #f8fafc 0%, #f5f5f4 50%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--stone-800), var(--slate-900));
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--slate-300);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.28), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(249, 115, 22, 0.24), transparent 30%),
        linear-gradient(135deg, var(--slate-900), var(--stone-900) 45%, var(--slate-800));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 88px;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-label span,
.section-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.32);
}

.hero-slides {
    position: relative;
    min-height: 560px;
    margin-top: 30px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    line-height: 1;
}

.hero-tag {
    color: var(--white);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.tag-pill {
    color: var(--slate-700);
    padding: 8px 10px;
    background: var(--slate-100);
    font-size: 13px;
}

.hero-actions,
.sub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.hero-poster {
    position: relative;
    display: block;
    isolation: isolate;
}

.poster-glow {
    position: absolute;
    inset: -8px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    filter: blur(18px);
    opacity: 0.75;
    z-index: -1;
}

.hero-poster img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

.hero-score {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: var(--white);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 54px;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.section {
    padding: 64px 0;
}

.search-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.7));
}

.warm-section {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.muted-section {
    background: linear-gradient(135deg, #f1f5f9, #f5f5f4);
}

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

.heading-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.heading-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    color: var(--slate-800);
}

.heading-title p {
    margin: 4px 0 0;
    color: var(--slate-600);
}

.section-link {
    color: var(--slate-800);
    min-height: 42px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 0.6fr));
    gap: 14px;
    padding: 18px;
    margin: 0 0 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(14px);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--slate-800);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

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

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

.category-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

.poster-link img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.05);
    opacity: 0.92;
}

.year-badge,
.rank-badge,
.score-badge {
    position: absolute;
    color: var(--white);
    border-radius: 999px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.score-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--slate-600);
    font-size: 13px;
}

.card-body h3 {
    margin: 10px 0 8px;
    color: var(--slate-800);
    font-size: 18px;
    line-height: 1.28;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover,
.breadcrumb a:hover {
    color: var(--orange-500);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-card {
    display: block;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.category-tile span,
.category-card h2 {
    display: block;
    color: var(--slate-800);
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 8px;
}

.category-tile p,
.category-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
}

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

.category-card {
    display: grid;
    gap: 18px;
}

.category-samples {
    display: grid;
    gap: 10px;
}

.category-samples a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.year-layout {
    display: grid;
    gap: 36px;
}

.year-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--slate-800);
    font-size: 22px;
}

.year-block h3 span {
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
}

.sub-hero {
    color: var(--white);
    padding: 76px 0;
    background:
        radial-gradient(circle at 78% 12%, rgba(249, 115, 22, 0.26), transparent 30%),
        linear-gradient(135deg, var(--slate-900), var(--stone-900));
}

.sub-hero h1 {
    margin: 14px 0;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.1;
}

.sub-hero p {
    max-width: 760px;
    color: var(--slate-300);
    font-size: 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 160px minmax(0, 1fr) 86px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
}

.rank-index,
.rank-score {
    display: grid;
    place-items: center;
    font-weight: 900;
    border-radius: 18px;
}

.rank-index {
    width: 54px;
    height: 54px;
    color: var(--white);
    font-size: 22px;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.rank-thumb img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--slate-600);
}

.rank-score {
    min-height: 52px;
    color: var(--orange-500);
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.detail-page {
    padding: 34px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    color: var(--slate-600);
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-950);
    box-shadow: var(--shadow-strong);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 150px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 46px rgba(249, 115, 22, 0.38);
}

.play-overlay.is-hidden {
    display: none;
}

.content-card,
.side-card {
    border-radius: 24px;
    padding: 26px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.content-card h1 {
    margin: 0 0 12px;
    color: var(--slate-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.detail-tags {
    margin-top: 18px;
}

.text-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.text-block h2,
.side-card h2 {
    margin: 0 0 10px;
    color: var(--slate-800);
}

.text-block p {
    margin: 0;
    color: var(--slate-600);
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 100px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: var(--slate-600);
}

.side-card dd {
    margin: 0;
    color: var(--slate-800);
    font-weight: 700;
}

.related-section {
    padding-top: 44px;
}

.site-footer {
    margin-top: 64px;
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-900), var(--stone-900));
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner strong {
    color: var(--white);
    font-size: 20px;
}

.footer-inner p {
    margin: 8px 0 0;
    max-width: 620px;
}

.footer-inner nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-inner a:hover {
    color: #fbbf24;
}

.searchable-card.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .movie-grid,
    .compact-grid,
    .category-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-slides {
        min-height: auto;
    }

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

    .detail-side {
        position: static;
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow-strong);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        justify-content: center;
    }

    .hero-inner {
        padding: 52px 0 64px;
    }

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

    .movie-grid,
    .wide-grid,
    .compact-grid,
    .category-list,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-item {
        grid-template-columns: 48px 112px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / -1;
        min-height: 42px;
    }

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .movie-grid,
    .wide-grid,
    .compact-grid,
    .category-list,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 88px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-info h3 {
        font-size: 17px;
    }

    .content-card,
    .side-card {
        padding: 20px;
    }
}
