:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --blue: #2563eb;
    --blue-light: #38bdf8;
    --cyan: #67e8f9;
    --yellow: #facc15;
    --green: #22c55e;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.22), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::selection {
    background: rgba(37, 99, 235, 0.72);
    color: #fff;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.header-inner,
.footer-inner,
.main-wrap,
.hero-content,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

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

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    color: #cbd5e1;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    min-width: 170px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.dropdown-panel a:hover {
    background: rgba(51, 65, 85, 0.72);
    color: #fff;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.66);
}

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

.hero-slider {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
}

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.26)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 42%, rgba(2, 6, 23, 0.10) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 24px;
    padding: 0 0 76px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--yellow);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.movie-meta span,
.detail-meta span,
.tag-row span,
.info-chip,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe;
    font-size: 13px;
}

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

.btn-primary,
.btn-secondary,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    border: 1px solid rgba(203, 213, 225, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
}

.btn-secondary:hover,
.section-more:hover {
    border-color: rgba(96, 165, 250, 0.6);
    color: #fff;
    background: rgba(30, 41, 59, 0.92);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.54);
    transition: 0.25s ease;
}

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

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

.content-section + .content-section {
    margin-top: 58px;
}

.section-heading,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading h2,
.page-heading h1,
.detail-body h2,
.watch-copy h1 {
    margin: 0;
    color: #fff;
    font-weight: 850;
    letter-spacing: -0.04em;
}

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

.section-heading p,
.page-heading p,
.detail-body p,
.watch-copy p,
.footer-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    min-height: 40px;
    border: 1px solid var(--line);
    color: #bfdbfe;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.84));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.44), transparent 62%),
        linear-gradient(135deg, #0f172a, #1e293b 50%, #020617);
}

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

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

.media-off {
    opacity: 0;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.86);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 0.22s ease;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.corner-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.corner-badge {
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    background: rgba(37, 99, 235, 0.86);
}

.rank-badge {
    left: 10px;
    top: 10px;
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.movie-card-body {
    padding: 15px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #93c5fd;
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.movie-meta {
    gap: 6px;
    margin-bottom: 10px;
}

.movie-meta span {
    min-height: 24px;
    padding: 0 8px;
    color: #bfdbfe;
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    min-height: 22px;
    padding: 0 8px;
    color: #cbd5e1;
    font-size: 12px;
}

.feature-band {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
    margin-top: 42px;
}

.feature-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

.feature-panel a {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    min-height: 300px;
}

.feature-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-copy {
    display: grid;
    align-content: center;
    padding: 32px;
}

.feature-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.feature-copy p {
    color: #cbd5e1;
    line-height: 1.8;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
    transition: 0.2s ease;
}

.side-item:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(30, 41, 59, 0.86);
}

.side-item img {
    width: 78px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.side-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.category-chip {
    min-height: 58px;
    justify-content: space-between;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.76);
    transition: 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 41, 59, 0.9);
}

.category-chip strong {
    color: #fff;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.20);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: none;
    background: rgba(2, 6, 23, 0.82);
    color: #f8fafc;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20);
}

.empty-state {
    display: none;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 72px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.74);
    transition: 0.2s ease;
}

.ranking-row:hover {
    border-color: rgba(96, 165, 250, 0.52);
    transform: translateX(4px);
}

.ranking-number {
    color: var(--yellow);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 110px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.ranking-row h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-row p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.watch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 30px;
    align-items: center;
    padding: 36px 0 26px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.25), transparent 58%),
        #000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18)),
        radial-gradient(circle at center, rgba(37, 99, 235, 0.25), transparent 62%);
    color: #fff;
    font-weight: 800;
    text-align: center;
    transition: 0.22s ease;
}

.player-box.is-ready .player-cover,
.player-box.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-ring {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

.watch-copy {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
}

.watch-copy h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

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

.detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    margin-top: 26px;
}

.detail-panel,
.related-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.detail-panel {
    padding: 30px;
}

.detail-panel + .detail-panel {
    margin-top: 22px;
}

.detail-panel h2,
.related-panel h2 {
    margin-bottom: 12px;
    font-size: 25px;
}

.related-panel {
    padding: 18px;
}

.related-compact {
    display: grid;
    gap: 12px;
}

.related-compact a {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.62);
    transition: 0.2s ease;
}

.related-compact a:hover {
    background: rgba(51, 65, 85, 0.82);
}

.related-compact img {
    width: 62px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #0f172a;
}

.related-compact h3 {
    margin: 0 0 5px;
    font-size: 14px;
}

.related-compact p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb {
    margin: 24px 0 4px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #93c5fd;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
    padding: 44px 0 30px;
}

.footer-brand p {
    max-width: 520px;
}

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

.footer-columns h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
}

.footer-columns ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-columns a {
    color: var(--muted);
}

.footer-columns a:hover {
    color: #93c5fd;
}

.copyright {
    padding: 18px 16px 28px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .feature-band,
    .watch-hero,
    .detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        justify-content: center;
    }

    .nav-dropdown {
        display: grid;
    }

    .dropdown-panel {
        position: static;
        display: none;
        margin-top: 6px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-panel {
        display: grid;
    }

    .hero-slider {
        min-height: 72vh;
    }

    .hero-content {
        padding-bottom: 86px;
    }

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

    .section-heading,
    .page-heading {
        display: grid;
        align-items: start;
    }

    .feature-panel a,
    .footer-inner,
    .footer-columns {
        grid-template-columns: 1fr;
    }

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

    .ranking-row {
        grid-template-columns: 52px 82px 1fr;
    }

    .ranking-row .btn-secondary {
        grid-column: 1 / -1;
    }

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

@media (max-width: 520px) {
    .header-inner,
    .footer-inner,
    .main-wrap,
    .hero-content,
    .page-shell {
        width: min(100% - 22px, 1180px);
    }

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

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

    .ranking-row {
        grid-template-columns: 42px 72px 1fr;
        gap: 12px;
    }

    .watch-copy,
    .detail-panel {
        padding: 20px;
    }
}
