:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #071224;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #0f172a;
    --card: rgba(15, 23, 42, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(96, 165, 250, 0.35);
    --text: #e5eefc;
    --muted: #94a3b8;
    --dim: #64748b;
    --accent: #38bdf8;
    --accent-2: #60a5fa;
    --accent-3: #22d3ee;
    --gold: #fbbf24;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 6%, rgba(56, 189, 248, 0.20), transparent 28rem),
        radial-gradient(circle at 82% 14%, rgba(37, 99, 235, 0.20), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #071224 42%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #020617;
    border-radius: 14px;
    background: linear-gradient(135deg, #bfdbfe 0%, #67e8f9 45%, #38bdf8 100%);
    box-shadow: 0 16px 42px rgba(56, 189, 248, 0.34);
}

.brand-text,
.footer-logo {
    font-size: 1.28rem;
    background: linear-gradient(90deg, #dbeafe, #67e8f9, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.main-nav a,
.mobile-nav a {
    color: #bfdbfe;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(30, 64, 175, 0.42);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 64, 175, 0.28);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    border-radius: 999px;
    background: #dbeafe;
}

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

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

main {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    margin: 28px auto 46px;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.68) 52%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: 92px 60px 136px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #7dd3fc;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 7vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-title p {
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 780px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.meta-pill {
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 10px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
}

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

.hero-actions {
    margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.inline-link,
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-btn,
.play-button {
    color: #020617;
    background: linear-gradient(135deg, #bfdbfe, #67e8f9 52%, #38bdf8);
    box-shadow: 0 18px 42px rgba(56, 189, 248, 0.28);
}

.ghost-btn,
.inline-link {
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.28);
    background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover,
.inline-link:hover,
.play-button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.38);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.active {
    width: 34px;
    background: #67e8f9;
}

.hero-panel {
    position: absolute;
    right: 36px;
    top: 36px;
    z-index: 3;
    width: 320px;
    padding: 18px;
    border: 1px solid rgba(147, 197, 253, 0.24);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: auto 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    color: #cbd5e1;
    transition: background 0.22s ease, transform 0.22s ease;
}

.ranking-row:hover {
    background: rgba(30, 64, 175, 0.30);
    transform: translateX(2px);
}

.ranking-row img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
}

.list-rank {
    color: var(--gold);
    min-width: 22px;
    font-weight: 900;
}

.ranking-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.ranking-meta {
    color: var(--dim);
    font-size: 0.82rem;
}

.section {
    margin: 48px 0;
}

.section-title {
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.48);
    box-shadow: 0 24px 72px rgba(14, 165, 233, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
}

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #020617;
    background: #67e8f9;
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.36);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #020617;
    border-radius: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.movie-info {
    padding: 16px;
}

.movie-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #7dd3fc;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.42), rgba(8, 47, 73, 0.46)),
        rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.16);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.category-card p {
    margin: 0 0 24px;
    color: #cbd5e1;
}

.page-hero {
    margin: 30px 0 34px;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.38), rgba(8, 47, 73, 0.32)),
        rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    color: #e2e8f0;
    border: 1px solid rgba(147, 197, 253, 0.20);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.54);
    padding: 0 13px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(56, 189, 248, 0.62);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.empty-note {
    display: none;
    margin: 24px 0;
    padding: 22px;
    color: #bfdbfe;
    border: 1px dashed rgba(125, 211, 252, 0.32);
    border-radius: 18px;
    background: rgba(8, 47, 73, 0.30);
}

.empty-note.show {
    display: block;
}

.breadcrumb {
    margin: 26px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

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

.detail-main,
.detail-side,
.content-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

.detail-main {
    overflow: hidden;
}

.detail-title {
    padding: 32px;
}

.detail-title h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.detail-meta {
    margin-top: 18px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.82)),
        rgba(2, 6, 23, 0.42);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-overlay-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.play-button {
    width: 86px;
    height: 86px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
}

.player-overlay strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.content-panel {
    margin-top: 22px;
    padding: 28px;
}

.content-panel h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.content-panel p {
    color: #cbd5e1;
}

.detail-side {
    padding: 18px;
}

.side-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.22s ease;
}

.side-card:hover {
    background: rgba(30, 64, 175, 0.26);
}

.side-card img {
    width: 82px;
    height: 112px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.86);
}

.side-card h3 {
    margin: 4px 0 6px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.side-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

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

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 10px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    color: #bfdbfe;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.22);
}

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 560px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 68px 24px 112px;
    }

    .hero-dots {
        left: 24px;
        right: auto;
    }

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

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

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

    .detail-title,
    .content-panel {
        padding: 22px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    main,
    .nav-shell,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1220px);
    }

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

    .hero h1,
    .page-hero h1,
    .detail-title h1 {
        font-size: 2.3rem;
    }

    .ranking-row {
        grid-template-columns: auto 46px 1fr;
    }

    .ranking-meta {
        display: none;
    }
}
