* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #111827;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --white: #ffffff;
    --radius: 22px;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), #e2e8f0);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    color: var(--white);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 32px rgba(2, 6, 23, 0.28);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.38);
}

.brand-text {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 620px;
    background: linear-gradient(135deg, var(--slate-950), #164e63, var(--slate-900));
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1180px, calc(100% - 48px));
    transform: translate(-50%, -50%);
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-actions,
.detail-copy .primary-button {
    margin-top: 28px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 14px;
    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(90deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.35);
}

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

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.story-card:hover,
.category-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
}

.hero-arrow {
    position: absolute;
    bottom: 42px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    right: 100px;
}

.hero-next {
    right: 42px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.section {
    padding: 72px 24px;
}

.section-white {
    background: var(--white);
}

.section-soft {
    background: linear-gradient(90deg, #f8fafc, #ecfeff);
}

.section-dark {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.section-cyan {
    background: linear-gradient(135deg, #ecfeff, #dbeafe);
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

.section-heading {
    align-items: center;
    justify-content: flex-start;
}

.heading-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--cyan-600);
    background: #cffafe;
    font-size: 22px;
    font-weight: 900;
}

.section h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -0.035em;
}

.section h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section p {
    color: var(--slate-600);
    line-height: 1.75;
}

.section-dark p {
    color: #cbd5e1;
}

.text-link {
    color: var(--cyan-600);
    font-weight: 800;
}

.text-link-light {
    color: var(--cyan-400);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.section-dark .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.score-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
    font-size: 12px;
}

.score-pill {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(8, 145, 178, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--cyan-600);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

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

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

.section-dark .movie-card p,
.section-dark .card-meta {
    color: #cbd5e1;
}

.tag-row span {
    background: #f1f5f9;
    color: var(--slate-600);
}

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

.story-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
    box-shadow: var(--shadow);
}

.story-card img {
    width: 150px;
    height: 210px;
    border-radius: 18px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.story-card span {
    color: var(--cyan-600);
    font-weight: 800;
    font-size: 13px;
}

.story-card h3 {
    margin: 10px 0;
    font-size: 22px;
}

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

.category-chip {
    padding: 22px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--cyan-600));
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.2);
}

.category-chip span {
    font-size: 20px;
    font-weight: 900;
}

.category-chip small {
    color: #bae6fd;
    font-weight: 800;
}

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

.rail .movie-card {
    width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.ranking-list.compact {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.page-hero,
.detail-hero {
    position: relative;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-950), #155e75, var(--slate-900));
    overflow: hidden;
}

.page-hero {
    padding: 86px 24px;
}

.compact-hero {
    padding: 70px 24px;
}

.page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 20px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    box-shadow: var(--shadow);
}

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

.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.45s ease;
}

.category-card h2 {
    margin: 12px 0 10px;
    font-size: 28px;
}

.category-card span {
    color: var(--cyan-600);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc, #ecfeff);
    border: 1px solid #dbeafe;
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: var(--white);
    padding: 0 14px;
    font: inherit;
    color: var(--slate-900);
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 22px;
    text-align: center;
    border-radius: 18px;
    background: #f8fafc;
}

.empty-state.is-visible {
    display: block;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 92px 1fr 74px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row:hover {
    box-shadow: var(--shadow);
}

.rank-number {
    font-size: 24px;
    font-weight: 950;
    color: var(--cyan-600);
}

.rank-row img {
    width: 92px;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row p {
    margin: 0 0 6px;
    color: var(--slate-600);
    line-height: 1.6;
}

.rank-row small {
    color: var(--slate-500);
    font-weight: 700;
}

.rank-row strong {
    justify-self: end;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.detail-hero {
    min-height: 560px;
}

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    opacity: 0.32;
}

.detail-mask {
    background: linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.22));
}

.detail-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 34px;
}

.breadcrumb a {
    color: var(--cyan-400);
    font-weight: 800;
}

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

.detail-poster {
    width: 310px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
    max-width: 860px;
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
}

.lead {
    max-width: 820px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.85;
}

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

.watch-column h2 {
    margin: 0 0 18px;
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-950);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    cursor: pointer;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: var(--slate-950);
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 14px;
    font: inherit;
}

.player-start.is-hidden {
    display: none;
}

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.38);
    font-size: 34px;
    padding-left: 4px;
}

.player-start strong {
    font-size: 20px;
}

.content-card,
.side-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
}

.content-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 16px;
    line-height: 1.95;
}

.side-card {
    margin-top: 0;
    position: sticky;
    top: 92px;
}

.side-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.side-card dt {
    color: var(--slate-500);
    font-weight: 800;
}

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

.site-footer {
    color: #cbd5e1;
    background: var(--slate-950);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p {
    max-width: 560px;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: flex-start;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 800;
}

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

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 30px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .grid-5,
    .grid-4,
    .ranking-list.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 20px;
        background: var(--slate-900);
        box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    }

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

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

    .nav-link:hover,
    .nav-link.is-active {
        background: rgba(255, 255, 255, 0.08);
    }

    .hero {
        min-height: 660px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

    .hero-actions {
        display: grid;
        gap: 12px;
        max-width: 260px;
    }

    .ghost-button {
        margin-left: 0;
    }

    .hero-arrow {
        bottom: 22px;
    }

    .hero-prev {
        right: 78px;
    }

    .hero-next {
        right: 22px;
    }

    .hero-dots {
        left: 24px;
        transform: none;
        bottom: 38px;
    }

    .section {
        padding: 50px 16px;
    }

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

    .grid-5,
    .grid-4,
    .grid-3,
    .ranking-list.compact,
    .story-grid,
    .category-overview,
    .category-chip-grid {
        grid-template-columns: 1fr;
    }

    .story-card,
    .category-card,
    .detail-layout,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .story-card img,
    .detail-poster {
        width: 100%;
        height: auto;
    }

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

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

    .detail-inner {
        padding: 26px 16px 54px;
    }

    .detail-layout {
        gap: 24px;
    }

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

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

    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-content p,
    .lead {
        font-size: 16px;
    }

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

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