:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --red: #ef4444;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.22);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-solid {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

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

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 4px;
}

.hero-section {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange) 46%, var(--red));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(239, 68, 68, 0.86));
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    padding-top: 112px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 54px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2vw, 24px);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-titlebox .eyebrow {
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.primary-btn {
    color: var(--amber-dark);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.45);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

.hero-card-copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.hero-card-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    color: var(--white);
    background: var(--amber);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-card-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.hero-card-copy p {
    max-width: 520px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-card-copy a {
    display: inline-flex;
    padding: 10px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.hero-dots {
    position: absolute;
    left: 28px;
    top: 28px;
    display: flex;
    gap: 9px;
    z-index: 5;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
}

.hero-dots button.active {
    width: 30px;
    background: var(--white);
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, var(--white), rgba(255, 255, 255, 0));
}

.stat-strip {
    margin-top: -50px;
    position: relative;
    z-index: 6;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 24px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    color: var(--amber-dark);
    font-size: 32px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--gray-600);
    font-weight: 700;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading > a {
    color: var(--amber-dark);
    font-weight: 850;
}

.section-heading.dark h2,
.section-heading.dark a,
.dark .section-kicker {
    color: var(--white);
}

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

.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    min-width: 0;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-soft);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
}

.poster-badge,
.poster-score {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    background: var(--amber);
}

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

.movie-card-body {
    padding: 18px;
}

.movie-meta-line,
.rank-meta,
.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    color: var(--amber-dark);
    background: #fffbeb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-tile {
    display: grid;
    gap: 16px;
    padding: 18px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-tile h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.category-tile p,
.category-overview-head p {
    margin: 0;
    color: var(--gray-600);
}

.dark-rail {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--slate), var(--slate-soft));
}

.rail-list {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 24px;
    scroll-snap-type: x mandatory;
}

.rail-card {
    min-width: 286px;
    scroll-snap-align: start;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate), var(--slate-soft));
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 42px;
    padding: 56px 0 34px;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-block h2 {
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 14px;
}

.page-main {
    min-height: 100vh;
    padding-top: 76px;
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange) 52%, var(--red));
    padding: 84px 0;
}

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

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--white);
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-overview-head a {
    color: var(--amber-dark);
    font-weight: 850;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    outline: none;
}

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

.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 54px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 50%;
    font-weight: 900;
}

.rank-row img {
    width: 96px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.rank-row p {
    margin: 0 0 6px;
    color: var(--gray-600);
    font-size: 14px;
}

.rank-row strong {
    color: var(--amber-dark);
    font-size: 18px;
}

.detail-main {
    padding-top: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 116px 0 58px;
    background: var(--slate);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(2px);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.65));
}

.detail-hero-shell {
    position: relative;
    z-index: 2;
}

.detail-intro {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    width: 240px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.detail-titlebox h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
}

.detail-titlebox p {
    max-width: 820px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-facts span {
    color: rgba(255, 255, 255, 0.82);
}

.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.detail-content {
    padding-top: 42px;
}

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

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

.player-panel,
.article-panel,
.aside-card {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-panel h2,
.article-panel h2,
.aside-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.2;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    background: radial-gradient(circle, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.64));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: var(--amber-dark);
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
    font-size: 30px;
}

.player-card.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-panel p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
}

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

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.aside-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.aside-card dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.aside-card dd {
    margin: -8px 0 0;
    color: var(--gray-900);
    font-weight: 750;
}

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

.highlight-card a {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    color: var(--white);
    background: var(--amber);
    border-radius: 14px;
    font-weight: 850;
    text-align: center;
}

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

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

    .hero-shell,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-aside {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell,
    .content-shell,
    .footer-shell,
    .hero-shell {
        width: min(100% - 24px, 1180px);
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 12px;
        right: 12px;
        display: none;
        padding: 12px;
        color: var(--gray-900);
        background: var(--white);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-link {
        border-radius: 12px;
    }

    .hero-section,
    .hero-shell {
        min-height: auto;
    }

    .hero-shell {
        padding-top: 120px;
        padding-bottom: 84px;
        gap: 32px;
    }

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

    .stat-grid,
    .movie-grid,
    .category-grid,
    .footer-shell,
    .related-grid,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .detail-poster {
        width: 190px;
    }

    .rank-row a {
        grid-template-columns: 40px 82px 1fr;
    }

    .rank-row strong {
        grid-column: 3;
        justify-self: start;
    }
}

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

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

    .hero-actions {
        display: grid;
    }

    .stat-grid,
    .movie-grid,
    .category-grid,
    .footer-shell,
    .related-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .category-overview-head {
        display: grid;
        align-items: start;
    }

    .content-section,
    .dark-rail {
        padding: 52px 0;
    }

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

    .rank-row a {
        grid-template-columns: 34px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-row img {
        width: 72px;
    }

    .player-panel,
    .article-panel,
    .aside-card {
        padding: 18px;
    }
}
