:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-soft: rgba(30, 41, 59, 0.66);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --purple: #a855f7;
    --pink: #ec4899;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    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.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
    color: white;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.24);
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: white;
    background: rgba(34, 211, 238, 0.13);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.page-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px 72px;
}

.home-page {
    padding-top: 24px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 430px);
    gap: 42px;
    align-items: center;
    padding: 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.1);
    transform: scale(1.1);
    opacity: 0.42;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at 24% 20%, rgba(34, 211, 238, 0.28), transparent 36rem);
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
}

.hero-content h1,
.inner-hero h1,
.detail-info-body h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.09);
    color: #dbeafe;
    font-size: 12px;
}

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

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 28px rgba(34, 211, 238, 0.22);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #020617;
    font-weight: 900;
}

.hero-control-row {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-dot,
.hero-arrow {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    color: white;
    cursor: pointer;
}

.hero-dot {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    padding: 0;
}

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

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.search-panel,
.section-block,
.inner-hero,
.detail-content,
.ranking-panel,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.36fr) minmax(260px, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 24px;
}

.search-panel h2,
.section-head h2,
.detail-content h2,
.ranking-panel h2,
.category-overview-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.7);
    color: var(--text);
    outline: none;
    padding: 0 18px;
    min-height: 48px;
}

.section-block {
    margin-top: 28px;
    padding: 28px;
}

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

.section-head.compact {
    margin-bottom: 18px;
}

.section-more,
.text-link {
    color: var(--cyan);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

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

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

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

.poster-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.poster-play {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.92);
    color: #020617;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

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

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

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.ranking-panel {
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

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

.mini-movie {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-movie:hover {
    border-color: rgba(34, 211, 238, 0.3);
}

.mini-movie img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-movie strong,
.mini-movie em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-movie em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    position: absolute;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cyan);
    color: #020617;
    font-size: 12px;
    font-weight: 900;
}

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

.category-tile {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.38);
    padding: 20px;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

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

.category-heading em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.category-tile p,
.category-overview-card p,
.inner-hero p {
    color: #cbd5e1;
    line-height: 1.75;
}

.inner-page {
    padding-top: 42px;
}

.inner-hero {
    padding: 46px;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.65));
}

.inner-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.inner-hero p {
    max-width: 850px;
    margin: 20px 0 0;
    font-size: 18px;
}

.category-overview-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

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

.category-cover-stack img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 22px;
    color: var(--muted);
}

.breadcrumb a {
    color: #cbd5e1;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: stretch;
}

.movie-player {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player video {
    object-fit: contain;
    z-index: 1;
}

.player-cover {
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
    color: white;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: blur(2px) saturate(1.05);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.54));
}

.player-play {
    position: relative;
    z-index: 3;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #020617;
    font-size: 36px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.movie-player.is-playing .player-cover {
    display: none;
}

.detail-info-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--panel);
}

.detail-info-card > img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.detail-info-body {
    padding: 24px;
}

.detail-info-body h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.detail-info-body p {
    color: #cbd5e1;
    line-height: 1.78;
}

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

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

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

.detail-content article {
    padding: 6px;
}

.detail-content p {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 17px;
}

.ranking-grid .movie-card:nth-child(1) .rank-badge,
.ranking-grid .movie-card:nth-child(2) .rank-badge,
.ranking-grid .movie-card:nth-child(3) .rank-badge {
    background: linear-gradient(135deg, #facc15, #f97316);
}

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

.footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

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

.copyright {
    max-width: 1320px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.is-hidden-by-search {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-slide {
        padding: 48px;
    }

    .hero-poster {
        max-width: 340px;
        transform: none;
    }

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

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-wrap,
    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-shell {
        padding-bottom: 48px;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 720px;
    }

    .hero-slide {
        padding: 34px 22px 90px;
        align-content: center;
        gap: 24px;
    }

    .hero-content h1,
    .inner-hero h1 {
        letter-spacing: -0.05em;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-control-row {
        left: 22px;
        right: 22px;
    }

    .search-panel,
    .detail-content,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .section-block,
    .search-panel,
    .inner-hero,
    .ranking-panel {
        padding: 20px;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-player {
        min-height: 300px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 18px;
    }

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

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 760px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

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