:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.78);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --pink: #f472b6;
    --amber: #fbbf24;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.14), transparent 28rem),
        radial-gradient(circle at 80% 5%, rgba(244, 114, 182, 0.12), transparent 24rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #67e8f9 52%, #ffffff 100%);
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.28);
}

.brand-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 600;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(34, 211, 238, 0.15);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
}

.menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-panel.open {
    display: grid;
    gap: 8px;
}

.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.mobile-categories a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
}

.hero {
    position: relative;
    height: 68vh;
    min-height: 540px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.26) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 52%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    width: min(680px, calc(100% - 48px));
}

.hero-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.1);
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 20px 0 0;
    max-width: 620px;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #ffffff);
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.section-more {
    border: 1px solid var(--line);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: white;
    background: rgba(15, 23, 42, 0.58);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

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

.page-main {
    padding: 48px 0 72px;
}

.content-section {
    margin-top: 54px;
}

.section-head,
.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2,
.page-title-row h1,
.article-title h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-title-row p,
.article-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    transition: 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 28px 80px rgba(8, 145, 178, 0.18);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 55%);
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    color: #001018;
    background: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.card-body {
    padding: 15px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.score-pill {
    color: #fef3c7;
}

.card-body h2 {
    min-height: 56px;
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

.card-body p {
    min-height: 66px;
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.tag-row span {
    font-size: 12px;
}

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

.category-tile {
    min-height: 172px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.86));
    transition: 0.22s ease;
}

.category-tile:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-tile span {
    color: var(--muted);
    line-height: 1.65;
}

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

.rank-card {
    display: grid;
    grid-template-columns: auto 74px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
}

.rank-card img {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

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

.rank-card strong {
    margin-bottom: 7px;
    font-size: 17px;
}

.rank-card em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, var(--amber), #ffffff);
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px;
    gap: 12px;
    margin: 26px 0 30px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-soft);
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    padding: 0 14px;
    outline: none;
}

.detail-hero {
    padding: 42px 0 28px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72)),
        radial-gradient(circle at 76% 18%, rgba(34, 211, 238, 0.18), transparent 28rem);
}

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

.player-wrap {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 26px;
    background: #000;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.video-shell video {
    position: absolute;
    inset: 0;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.16);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.player-cover.hidden {
    display: none;
}

.play-button-large {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), white);
    font-size: 34px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 54px rgba(34, 211, 238, 0.32);
}

.player-message {
    display: none;
    padding: 12px 16px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.46);
}

.player-message.show {
    display: block;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    overflow: hidden;
}

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

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

.detail-meta {
    display: grid;
    gap: 10px;
    color: #cbd5e1;
}

.detail-meta b {
    color: #ffffff;
}

.article-title {
    margin-bottom: 22px;
}

.prose-block {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.prose-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.prose-block p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
}

.breadcrumb a {
    color: #a5f3fc;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

.copyright {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content {
        bottom: 56px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .brand-text {
        font-size: 17px;
    }

    .hero {
        min-height: 620px;
    }

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

    .hero p {
        font-size: 15px;
    }

    .section-head,
    .page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        min-height: auto;
        font-size: 15px;
    }

    .card-body p {
        min-height: auto;
        font-size: 13px;
    }

    .category-grid,
    .rank-list,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 42px 62px 1fr;
    }

    .rank-card img {
        width: 62px;
        height: 82px;
    }
}
