:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #3b82f6;
    --violet: #7c3aed;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 5%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 88% 20%, rgba(59, 130, 246, 0.15), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #06111f 48%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

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

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

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

.brand-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #00111a;
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.42);
}

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

.brand-copy strong,
.footer-logo {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted-strong);
    font-weight: 600;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width 0.25s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    width: 100%;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 4px;
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
    padding: 16px 0 22px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.42);
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.4) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.04) 45%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 420px;
    align-items: center;
    gap: 56px;
    padding-top: 92px;
    padding-bottom: 92px;
}

.hero-text {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    line-height: 1.03;
    letter-spacing: -0.055em;
    font-size: clamp(40px, 8vw, 86px);
}

.hero p,
.page-hero p,
.section-heading p,
.detail-content p {
    color: var(--muted-strong);
    line-height: 1.82;
}

.hero p {
    max-width: 680px;
    margin: 24px 0 0;
    font-size: 18px;
}

.hero-tags,
.detail-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.mini-tags span {
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
}

.mini-tags span {
    padding: 5px 8px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    color: white;
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.34);
}

.btn-ghost {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.68);
    color: var(--text);
    backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.58);
    color: var(--cyan);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 34px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow), 0 0 80px rgba(34, 211, 238, 0.18);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.hero-poster:hover img {
    transform: scale(1.08);
}

.hero-poster span,
.play-mark {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.9);
    color: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.42);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-btn,
.hero-dots button {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.74);
    color: white;
    backdrop-filter: blur(14px);
    cursor: pointer;
}

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

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section {
    padding: 72px 0;
}

.section-dark {
    background: rgba(2, 6, 23, 0.38);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2,
.panel-title h2,
.category-overview-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
}

.section-more {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 800;
}

.grid-featured,
.grid-cards,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 26px 70px rgba(8, 145, 178, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.74) 100%);
}

.play-mark {
    width: 54px;
    height: 54px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 14px;
}

.movie-card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta-line a {
    color: var(--cyan);
}

.movie-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-panel,
.search-panel,
.filter-bar,
.category-overview-card,
.detail-side-card,
.info-list,
.player {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

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

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #00111a;
    font-weight: 900;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.rank-row strong,
.rank-row em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.category-tile {
    display: grid;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 54%),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.52);
}

.category-tile strong {
    align-self: end;
    font-size: 24px;
}

.category-tile span {
    color: var(--muted-strong);
    line-height: 1.7;
}

.page-hero {
    padding: 82px 0 54px;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(59, 130, 246, 0.08)),
        rgba(2, 6, 23, 0.42);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.small-hero {
    padding-top: 70px;
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
}

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

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

.breadcrumb strong {
    color: var(--muted-strong);
}

.overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head p {
    max-width: 760px;
    color: var(--muted-strong);
    line-height: 1.72;
}

.filter-bar,
.search-panel {
    margin-bottom: 28px;
    padding: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-bar label {
    color: var(--muted-strong);
    font-weight: 800;
}

.filter-bar input,
.search-box input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.66);
    color: var(--text);
    outline: none;
}

.filter-bar input {
    min-height: 48px;
    padding: 0 16px;
}

.search-box input {
    min-height: 58px;
    padding: 0 20px;
    font-size: 18px;
}

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

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.filter-chips button {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: var(--muted-strong);
    padding: 10px 14px;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(8, 145, 178, 0.28);
    color: white;
}

.detail-page {
    padding: 42px 0 72px;
}

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

.detail-player {
    min-width: 0;
}

.player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.66));
    color: white;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    box-shadow: 0 0 48px rgba(34, 211, 238, 0.34);
    font-size: 34px;
}

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

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    color: #fca5a5;
    font-weight: 700;
}

.detail-side {
    display: grid;
    gap: 16px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: #0f172a;
}

.detail-side-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    color: var(--muted-strong);
}

.detail-side-card a {
    color: var(--cyan);
    font-weight: 800;
}

.detail-content {
    max-width: 920px;
    margin-top: 38px;
}

.detail-content .lead {
    margin-top: 18px;
    color: var(--muted-strong);
    font-size: 20px;
}

.detail-tags {
    margin: 22px 0 34px;
}

.detail-content section {
    margin-top: 34px;
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
}

.info-list div {
    padding: 14px;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 6px 0 0;
    color: var(--text);
    font-weight: 800;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.88);
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 32px;
}

.site-footer p {
    max-width: 660px;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.site-footer nav a {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted-strong);
}

.site-footer nav a:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: var(--cyan);
}

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

@media (max-width: 1120px) {
    .grid-featured,
    .grid-cards,
    .grid-cards.compact,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .two-column,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: relative;
        top: auto;
    }

    .detail-side {
        grid-template-columns: 220px 1fr;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 70px;
    }

    .hero-poster {
        max-width: 520px;
    }

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

    .section-heading,
    .category-overview-head,
    .filter-bar,
    .footer-grid {
        display: grid;
    }

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

    .detail-cover {
        max-width: 280px;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

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

    .brand-copy em {
        display: none;
    }

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

    .hero h1,
    .page-hero h1,
    .detail-content h1 {
        letter-spacing: -0.035em;
    }

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

    .hero-actions {
        display: grid;
    }

    .grid-featured,
    .grid-cards,
    .grid-cards.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 56px 0 42px;
    }

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