:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(34, 211, 238, 0.18);
    --line-strong: rgba(34, 211, 238, 0.36);
    --text: #e5eefb;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --deep: #0f172a;
    --radius: 24px;
    --shadow: 0 22px 60px rgba(8, 47, 73, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
    color: var(--text);
}

body.nav-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(2, 132, 199, 0.12);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 15px;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.34), rgba(14, 165, 233, 0.12) 42%, rgba(15, 23, 42, 0.86));
    color: var(--cyan);
    font-weight: 900;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.24);
}

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

.brand-copy strong {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #a5f3fc);
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    font-size: 12px;
    color: rgba(103, 232, 249, 0.68);
    font-style: normal;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.12);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.16), 0 12px 28px rgba(14, 165, 233, 0.12);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 999px;
    background: var(--cyan);
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-strong);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 640px;
    margin: 32px auto 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-stage {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
    align-items: center;
    gap: 40px;
    padding: clamp(32px, 6vw, 76px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.9)),
        radial-gradient(circle at 72% 26%, rgba(34, 211, 238, 0.26), transparent 22rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.section-head p,
.category-card-wide p,
.article-section p,
.footer-grid p,
.detail-copy p {
    color: var(--soft);
    line-height: 1.8;
}

.hero-content p {
    max-width: 680px;
    font-size: clamp(16px, 1.7vw, 20px);
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn.primary {
    color: #00111a;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #60a5fa);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.26);
}

.btn.ghost,
.btn.line {
    color: #a5f3fc;
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.62);
}

.btn:hover,
.more-link:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-wide:hover {
    transform: translateY(-3px);
}

.hero-poster {
    align-self: stretch;
    min-height: 470px;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.58);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--cyan);
}

.section,
.page-hero,
.breadcrumb,
.detail-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 36px 0 58px;
}

.section-tight {
    padding-top: 8px;
}

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

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

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

.more-link {
    color: #67e8f9;
    font-weight: 800;
    transition: 0.25s ease;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.75fr));
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.56);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

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

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

.movie-card {
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.7), rgba(15, 23, 42, 0.88));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-card-wide:hover img,
.detail-poster:hover img {
    transform: scale(1.05);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #00111a;
    background: rgba(103, 232, 249, 0.9);
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ecfeff;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(34, 211, 238, 0.36);
}

.card-body {
    padding: 15px;
}

.card-meta {
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
}

.card-body h2 {
    min-height: 48px;
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--cyan);
}

.card-body p {
    min-height: 66px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.dark-panel {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

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

.rank-list a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
    transition: 0.25s ease;
}

.rank-list a:hover {
    background: rgba(34, 211, 238, 0.09);
}

.rank-list strong {
    color: var(--cyan);
    font-size: 20px;
}

.rank-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 260px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.82);
    transition: 0.25s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transition: 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    color: var(--soft);
    line-height: 1.7;
}

.page-hero {
    margin-top: 34px;
    padding: clamp(38px, 7vw, 78px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.64));
    box-shadow: var(--shadow);
}

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

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(36px, 5.8vw, 68px);
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.category-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.category-card-wide {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    transition: 0.25s ease;
}

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

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

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.86));
    box-shadow: var(--shadow);
}

.detail-poster {
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
}

.lead-text {
    max-width: 780px;
    font-size: 19px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    color: #e0f2fe;
    background: rgba(34, 211, 238, 0.11);
}

.large-tags span {
    font-size: 13px;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-shell {
    position: relative;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 30px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
    font-size: 26px;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.26);
}

.play-layer strong {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(8px);
}

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

.article-section article {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.68);
}

.article-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #e0f2fe;
    font-size: 28px;
}

.article-section p + h2 {
    margin-top: 30px;
}

.article-section p {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.95));
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #67e8f9;
    font-size: 24px;
    font-weight: 900;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #e0f2fe;
    font-size: 17px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 32px;
    color: var(--muted);
    border-top: 1px solid rgba(34, 211, 238, 0.1);
}

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

    .nav-toggle {
        display: block;
    }

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

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

    .hero-poster {
        min-height: 380px;
        max-width: 420px;
    }

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

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

    .category-wide-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 720px) {
    .nav-wrap {
        height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy em {
        display: none;
    }

    .hero,
    .hero-stage {
        min-height: 720px;
    }

    .hero {
        margin-top: 18px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-poster {
        min-height: 300px;
    }

    .section-head,
    .category-hero {
        align-items: start;
        flex-direction: column;
    }

    .filter-panel,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-wide-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .category-card-wide {
        grid-template-columns: 1fr;
    }

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

    .detail-hero,
    .page-hero,
    .dark-panel,
    .article-section article {
        border-radius: 22px;
    }

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