:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0f766e;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eefdf8 45%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--slate-950);
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.32);
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald-dark);
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--slate-900);
    border-radius: 999px;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    height: 720px;
    overflow: hidden;
    background: var(--slate-950);
    color: var(--white);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.08);
}

.hero-slide.is-active .hero-image {
    animation: heroZoom 6s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(16, 185, 129, 0.42), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.12) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.12) 55%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 0 86px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.92);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(5, 150, 105, 0.28);
}

.hero h1,
.hero h2 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.38);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--emerald-dark);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100% - var(--container)) / 2));
    bottom: 90px;
    display: flex;
    gap: 12px;
}

.hero-control {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.section {
    padding: 76px 0;
}

.section.white {
    background: rgba(255, 255, 255, 0.78);
}

.section.gradient {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.96));
}

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

.section-kicker {
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-description {
    margin: 12px 0 0;
    color: var(--slate-600);
    max-width: 720px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
    filter: saturate(1.12);
}

.card-badge,
.card-type {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    color: var(--white);
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 12px;
}

.card-type {
    right: 12px;
    background: rgba(5, 150, 105, 0.86);
}

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

.movie-card h2,
.movie-card h3 {
    margin: 0;
    color: var(--slate-950);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta {
    margin-top: 12px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--emerald-dark);
    background: rgba(16, 185, 129, 0.1);
    font-size: 12px;
    font-weight: 800;
}

.movie-card.compact .movie-card-body {
    padding: 14px;
}

.movie-card.compact h2 {
    font-size: 16px;
}

.movie-card.compact p {
    display: none;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: var(--shadow-soft);
}

.category-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 14px 0 24px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--emerald-dark);
    background: var(--white);
    font-weight: 900;
}

.filter-panel {
    margin-bottom: 32px;
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.filter-heading span {
    color: var(--emerald-dark);
    font-weight: 950;
}

.filter-heading strong {
    color: var(--slate-500);
    font-size: 14px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--slate-900);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(5, 150, 105, 0.68);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.empty-state {
    display: none;
    margin: 18px 0 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--slate-600);
    background: var(--white);
    border: 1px dashed rgba(100, 116, 139, 0.3);
    text-align: center;
    font-weight: 800;
}

.filter-panel.is-empty .empty-state {
    display: block;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(16, 185, 129, 0.36);
}

.rank-number {
    color: var(--emerald-dark);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-100);
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: var(--slate-950);
    font-size: 17px;
    font-weight: 900;
}

.rank-copy em {
    margin-top: 5px;
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 72px 0 50px;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.42), transparent 32%),
        linear-gradient(135deg, var(--slate-950), #064e3b);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 950;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 750;
}

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

.detail-hero {
    padding: 56px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 15%, rgba(16, 185, 129, 0.38), transparent 32%),
        linear-gradient(135deg, var(--slate-950), #0f172a 55%, #064e3b);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 34px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-gate {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.28)),
        rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 18px 42px rgba(5, 150, 105, 0.38);
    font-size: 18px;
    font-weight: 950;
}

.play-button span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-dark);
    background: var(--white);
}

.detail-copy {
    padding-top: 4px;
}

.detail-copy h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.detail-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 850;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.article-card {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.article-card h2 {
    margin: 0 0 14px;
    color: var(--slate-950);
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.article-card p {
    margin: 0;
    color: var(--slate-700);
}

.article-card + .article-card {
    margin-top: 20px;
}

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

.site-footer {
    color: var(--slate-300);
    background: var(--slate-950);
}

.footer-shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 40px;
}

.footer-brand {
    color: var(--white);
}

.site-footer p {
    max-width: 520px;
    margin: 16px 0 0;
    color: var(--slate-300);
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

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

.footer-links a {
    color: var(--slate-300);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--slate-500);
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: var(--white);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-link {
        padding: 12px 14px;
    }

    .hero {
        height: 640px;
    }

    .hero-content {
        padding-bottom: 118px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 54px;
    }

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

    .filter-heading {
        display: block;
    }

    .grid.featured,
    .grid.cards,
    .grid.compact-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .container,
    .footer-shell {
        width: min(100% - 24px, var(--container));
    }

    .brand {
        font-size: 19px;
    }

    .hero {
        height: 620px;
    }

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

    .section {
        padding: 54px 0;
    }

    .section-head {
        display: block;
    }

    .grid.featured,
    .grid.cards,
    .grid.compact-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 64px 1fr;
    }

    .rank-item img {
        width: 64px;
        height: 86px;
    }

    .article-card {
        padding: 22px;
    }
}
