:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.62);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --cyan: #22d3ee;
    --blue: #2563eb;
    --green: #34d399;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.18), transparent 30rem),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.18), transparent 34rem),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 10px 26px rgba(34, 211, 238, 0.25);
    color: white;
}

.brand-text strong,
.brand-text em {
    display: block;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.03em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    border: 0;
    color: white;
    background: rgba(30, 41, 59, 0.82);
    border-radius: 12px;
    width: 42px;
    height: 42px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    color: #cbd5e1;
    border-radius: 12px;
}

.mobile-nav a:hover {
    color: var(--cyan);
    background: rgba(30, 41, 59, 0.75);
}

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

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

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

.hero-bg,
.detail-bg,
.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade,
.detail-overlay,
.category-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.32)),
        linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-content {
    position: relative;
    min-height: 76vh;
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 64px;
    padding: 80px 0 96px;
}

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

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1,
.category-hero h1,
.ranking-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-line,
.detail-line,
.page-hero p,
.category-hero p,
.ranking-hero p,
.intro-block p {
    color: #cbd5e1;
    font-size: 18px;
    max-width: 780px;
}

.hero-tags,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: #cffafe;
    background: rgba(8, 145, 178, 0.16);
    border-radius: 999px;
    font-size: 12px;
}

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

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

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

.btn.primary {
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn.ghost,
.btn.soft {
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.52);
}

.hero-poster,
.ranking-cover {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4.2;
}

.hero-poster img,
.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    inset: auto 24px 24px auto;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.92);
    color: white;
    box-shadow: 0 18px 35px rgba(34, 211, 238, 0.32);
}

.hero-controls {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(226, 232, 240, 0.35);
}

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

.section-block,
.page-main {
    margin-top: 48px;
}

.page-main {
    padding-bottom: 24px;
}

.intro-block,
.ranking-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.58));
    box-shadow: var(--shadow);
}

.intro-block h2,
.section-head h2,
.content-card h2,
.category-overview-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

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

.section-head a {
    color: var(--cyan);
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: var(--panel-soft);
}

.category-tile::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

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

.category-tile p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 13px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 210px 160px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(2, 6, 23, 0.35);
}

.search-field span {
    color: var(--cyan);
    font-weight: 800;
}

.search-field input,
.filter-select {
    width: 100%;
    min-height: 46px;
    color: white;
    outline: 0;
    border: 0;
    background: transparent;
}

.filter-select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 0 12px;
    background: rgba(2, 6, 23, 0.35);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
    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.45);
    box-shadow: 0 22px 48px rgba(34, 211, 238, 0.12);
}

.movie-card.hidden {
    display: none;
}

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

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

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

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 62%);
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    background: rgba(34, 211, 238, 0.92);
    color: white;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-type {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.card-title:hover {
    color: var(--cyan);
}

.card-line {
    min-height: 44px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta,
.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #7dd3fc;
    font-size: 13px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.large-rank {
    grid-template-columns: 1fr;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-num {
    font-size: 24px;
    font-weight: 1000;
    color: var(--cyan);
    text-align: center;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    color: white;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before {
    content: "/";
    color: #475569;
    margin-right: 8px;
}

.compact-hero,
.ranking-hero {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.16), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.overview-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 11;
}

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

.category-overview-card p {
    color: var(--muted);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #bae6fd;
    font-size: 12px;
}

.category-hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: end;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.55)),
        linear-gradient(0deg, #020617 0%, transparent 38%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 58px 0 80px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(34, 211, 238, 0.24);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-mask {
    position: absolute;
    inset: 0;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.18));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.player-mask.hide {
    display: none;
}

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.28);
    font-size: 30px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 34px;
}

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

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

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

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

.footer-logo {
    font-size: 22px;
    font-weight: 1000;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
}

.site-footer h2 {
    font-size: 16px;
    margin: 0 0 12px;
}

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

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid var(--line);
}

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .rank-list,
    .category-overview-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 52px;
        padding-bottom: 72px;
    }

    .hero-copy h1,
    .detail-copy h1,
    .category-hero h1,
    .ranking-hero h1 {
        font-size: 42px;
    }

    .intro-block,
    .ranking-hero,
    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

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

    .category-overview-card,
    .rank-row,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 260px;
    }

    .player-section {
        margin-top: -34px;
    }
}

@media (max-width: 520px) {
    .brand-text em {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 44px 88px 1fr;
        gap: 10px;
    }

    .rank-title {
        font-size: 15px;
    }

    .rank-info p,
    .rank-tags {
        display: none;
    }

    .compact-hero,
    .intro-block,
    .ranking-hero,
    .content-card {
        padding: 22px;
        border-radius: 20px;
    }
}
