:root {
    color-scheme: dark;
    --page-bg: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.82);
    --card-bg: #111c31;
    --card-bg-soft: #17233a;
    --line: rgba(125, 211, 252, 0.18);
    --line-strong: rgba(34, 211, 238, 0.42);
    --text-main: #ffffff;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --pink: #f472b6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 16% 8%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.22), transparent 34rem),
        linear-gradient(180deg, #0f172a 0%, #111827 44%, #0f172a 100%);
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

img {
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

main {
    overflow: hidden;
}

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

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

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(96, 165, 250, 0.14));
    color: #67e8f9;
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.16);
}

.brand-text {
    font-size: 1.12rem;
}

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

.nav-link {
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(34, 211, 238, 0.1);
    color: #e0faff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

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

.hero {
    position: relative;
    min-height: 760px;
    padding: 72px 0 64px;
}

.hero-shell,
.page-shell,
.section-block,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(2, 6, 23, 0.64);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: 56px;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.28), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.84) 48%, rgba(30, 41, 59, 0.68));
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: saturate(1.1) blur(2px);
}

.hero-content {
    max-width: 680px;
}

.eyebrow,
.section-kicker,
.breadcrumb,
.detail-label {
    color: #67e8f9;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-title h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.07em;
    background: linear-gradient(90deg, #ffffff, #cffafe 45%, #93c5fd 78%, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead,
.page-title p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #d8eef7;
    font-size: clamp(1.02rem, 2vw, 1.32rem);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.section-more,
.filter-search button,
.player-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.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary,
.player-button {
    border: 1px solid rgba(103, 232, 249, 0.8);
    background: linear-gradient(135deg, #22d3ee, #60a5fa 58%, #a78bfa);
    color: #06111f;
    box-shadow: 0 20px 48px rgba(34, 211, 238, 0.24);
}

.btn-ghost,
.section-more {
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.62);
    color: #dff9ff;
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover,
.filter-search button:hover,
.player-button:hover {
    transform: translateY(-2px);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(96, 165, 250, 0.08));
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
}

.hero-poster-card img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.hero-poster-card::after,
.poster-frame::after,
.player-shell::after {
    position: absolute;
    inset: auto 16px 16px 16px;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 16px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(96, 165, 250, 0.12));
    color: #e0faff;
    font-weight: 900;
    text-align: center;
    content: attr(data-fallback);
}

.hero-poster-card.is-image-missing::after,
.poster-frame.is-image-missing::after,
.player-shell.is-image-missing::after {
    display: flex;
}

.hero-poster-glow {
    position: absolute;
    inset: auto 0 0;
    padding: 26px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat-card {
    padding: 16px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.56);
}

.stat-card strong {
    display: block;
    font-size: 1.32rem;
    color: #ffffff;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 26px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dot.active {
    width: 34px;
    border-color: var(--cyan);
    background: var(--cyan);
}

.search-ribbon {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 26px;
    padding: 10px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
}

.search-ribbon input {
    width: 100%;
    padding: 0 12px 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
}

.search-ribbon button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #22d3ee;
    color: #04111f;
    font-weight: 900;
}

.section-block {
    padding: 72px 0;
}

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

.section-head h2,
.category-card h2,
.detail-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.08;
    font-weight: 920;
}

.section-head p,
.category-card p,
.detail-card p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 28px 78px rgba(34, 211, 238, 0.13);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 260px;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.22), transparent 14rem),
        linear-gradient(135deg, #172554, #0f172a 62%, #111827);
}

.movie-card-small .poster-frame {
    min-height: 210px;
}

.movie-card-large .poster-frame {
    min-height: 340px;
}

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

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

.play-chip,
.rank-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(34, 211, 238, 0.95);
    color: #07111e;
}

.rank-badge,
.score-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    background: rgba(2, 6, 23, 0.76);
    color: #fde68a;
    backdrop-filter: blur(10px);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 1.6em;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.1em;
    margin: 10px 0 14px;
    color: var(--text-muted);
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta span,
.tag-row span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #a5f3fc;
}

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

.category-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 22% 0%, rgba(34, 211, 238, 0.18), transparent 12rem),
        linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.92));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.44);
}

.category-count {
    color: #67e8f9;
    font-size: 2.3rem;
    font-weight: 950;
    line-height: 1;
}

.page-hero {
    padding: 72px 0 34px;
}

.page-title {
    align-items: start;
    flex-direction: column;
}

.page-title h1 {
    margin-bottom: 8px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(125, 211, 252, 0.17);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.68);
}

.filter-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.filter-search input,
.filter-selects select {
    min-height: 46px;
    width: 100%;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.58);
    color: #ffffff;
    outline: 0;
}

.filter-search input {
    padding: 0 14px;
}

.filter-search button {
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.16);
    color: #cffafe;
}

.filter-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.filter-selects select {
    padding: 0 12px;
}

.filter-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(125, 211, 252, 0.13);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.compact-row:hover {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(30, 41, 59, 0.76);
}

.row-rank {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.15);
    color: #67e8f9;
    font-weight: 900;
}

.row-title {
    font-weight: 900;
}

.row-meta {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.row-score {
    color: #fde68a;
    font-weight: 900;
}

.detail-hero {
    padding: 54px 0 36px;
}

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

.player-card,
.detail-card {
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    background: #020617;
}

.player-shell video {
    width: 100%;
    min-height: 460px;
    max-height: 70vh;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.2));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button {
    min-height: 58px;
    padding: 0 26px;
    font-size: 1.05rem;
}

.player-status {
    padding: 14px 18px;
    border-top: 1px solid rgba(125, 211, 252, 0.14);
    color: var(--text-muted);
    font-size: 0.92rem;
}

.detail-card {
    padding: 24px;
}

.detail-title h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-title p {
    color: var(--text-soft);
    font-size: 1.08rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.info-tile {
    padding: 14px;
    border: 1px solid rgba(125, 211, 252, 0.13);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
}

.info-tile span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.info-tile strong {
    color: #ffffff;
    font-size: 1rem;
}

.article-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 1.32rem;
    font-weight: 900;
}

.article-block p {
    margin: 0;
    color: var(--text-soft);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    letter-spacing: 0;
    text-transform: none;
}

.site-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 42px 0;
}

.footer-grid p {
    max-width: 420px;
    color: var(--text-muted);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

.footer-links a {
    padding: 7px 10px;
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 30px;
    border-top: 1px solid rgba(125, 211, 252, 0.09);
    color: var(--text-muted);
    font-size: 0.88rem;
}

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

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid.large,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-slide {
        padding: 36px;
    }

    .hero-poster-card {
        min-height: 320px;
    }

    .hero-poster-card img {
        height: 320px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(125, 211, 252, 0.18);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 34px 0;
    }

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

    .hero-slide {
        padding: 24px;
    }

    .hero-stats,
    .filter-selects,
    .footer-grid,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

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

    .section-head,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .search-ribbon,
    .filter-search {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .compact-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .player-shell,
    .player-shell video {
        min-height: 280px;
    }
}
