:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --cyan-strong: #0891b2;
    --shadow: 0 25px 80px rgba(2, 8, 23, 0.48);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 32rem),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 54%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.28);
}

.brand-name {
    font-size: clamp(20px, 2vw, 28px);
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #cbd5e1;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--cyan);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.76);
    color: var(--text);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: #cbd5e1;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(34, 211, 238, 0.24), transparent 30rem),
        radial-gradient(circle at 82% 20%, rgba(59, 130, 246, 0.20), transparent 28rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.34), #020617 92%);
    pointer-events: none;
    z-index: 2;
}

.hero-track {
    position: relative;
    min-height: 78vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(1.08) contrast(1.04);
}

.hero-content {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    padding: 76px 0;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #67e8f9;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.12);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    font-weight: 750;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
}

.btn-primary {
    color: #00111a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #67e8f9, #93c5fd);
}

.hero-card {
    position: relative;
    isolation: isolate;
}

.hero-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.65);
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-info-card {
    position: absolute;
    right: -22px;
    bottom: 28px;
    width: min(320px, 90%);
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.42);
}

.hero-info-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.hero-info-card span {
    color: var(--muted);
    font-size: 14px;
}

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

.hero-dots button {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
}

.section {
    padding: clamp(42px, 7vw, 82px) 0;
}

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

.section-eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-desc,
.page-hero p,
.detail-title p {
    max-width: 760px;
    color: var(--muted);
}

.search-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(14px);
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 6, 23, 0.48);
    color: var(--text);
}

.search-panel input:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

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

.filter-row button,
.tag-row span,
.meta-pill {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #cbd5e1;
}

.filter-row button {
    padding: 8px 13px;
    cursor: pointer;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: #00111a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    border-color: transparent;
}

.tag-row span,
.meta-pill {
    padding: 4px 9px;
    font-size: 12px;
}

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

.category-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(96, 165, 250, 0.06)),
        rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
}

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

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    margin-top: 22px;
    color: var(--cyan);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.32);
    box-shadow: 0 25px 70px rgba(2, 6, 23, 0.34);
}

.movie-card[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #020617;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
    opacity: 0.9;
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.play-mini {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #00111a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    transform: scale(0.92);
    transition: transform 0.22s ease;
}

.movie-card:hover .play-mini {
    transform: scale(1);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 38px;
    height: 32px;
    place-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    color: #67e8f9;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

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

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(148, 163, 184, 0.55);
}

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

.movie-card h3 a:hover {
    color: var(--cyan);
}

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

.page-hero {
    padding: 64px 0 28px;
}

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

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

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

.ranking-item {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.ranking-item img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-num {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(96, 165, 250, 0.16));
    color: #67e8f9;
    font-weight: 900;
}

.ranking-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0;
    color: var(--muted);
}

.heat {
    min-width: 84px;
    text-align: right;
    color: var(--cyan);
    font-weight: 900;
}

.detail-hero {
    padding: 44px 0 28px;
}

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

.player-card,
.detail-side,
.text-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.2);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #00111a;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.55));
    cursor: pointer;
    z-index: 3;
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.28);
    font-size: 32px;
    transform: translateX(2px);
}

.detail-title {
    padding: 24px;
}

.detail-title p {
    margin-bottom: 0;
}

.detail-side {
    overflow: hidden;
}

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

.detail-side-body {
    padding: 20px;
}

.detail-side-body h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

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

.meta-stack span {
    color: var(--muted);
}

.text-panel {
    padding: 24px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-panel p {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.site-footer {
    margin-top: 70px;
    padding: 46px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
}

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

.site-footer p,
.copyright {
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
}

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

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

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

.copyright {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-content,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-info-card {
        right: 18px;
    }

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

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

@media (max-width: 720px) {
    .site-container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
    }

    .hero,
    .hero-track {
        min-height: 86vh;
    }

    .hero-content {
        gap: 24px;
        padding: 48px 0 76px;
    }

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

    .hero-info-card {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .section-head {
        display: block;
    }

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

    .ranking-item {
        grid-template-columns: auto 72px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 72px;
    }

    .heat {
        grid-column: 2 / -1;
        text-align: left;
    }
}
