:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111c31;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.18);
    --cyan-strong: #22d3ee;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 16% 0%, rgba(8, 145, 178, 0.22), transparent 34rem),
        radial-gradient(circle at 84% 10%, rgba(59, 130, 246, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1320px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
    font-size: 13px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 15px;
}

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    padding: 8px 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 38px;
    left: -18px;
    width: 210px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

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

.dropdown-panel a:hover {
    background: rgba(148, 163, 184, 0.12);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 190px;
    padding: 10px 14px;
}

.top-search button,
.primary-btn,
.ghost-btn,
.category-headline a,
.category-overview-title a,
.section-title a {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.top-search button,
.primary-btn {
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.28);
}

.top-search button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.ghost-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.42);
    color: #fff;
}

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

.menu-toggle {
    display: none;
    border: 0;
    margin-left: auto;
    color: #fff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

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

.mobile-panel a {
    display: block;
    padding: 11px 0;
    color: #cbd5e1;
}

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

.hero-carousel {
    position: relative;
    height: clamp(560px, 72vh, 760px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.02) 42%);
}

.hero-copy {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1320px) / 2 + 24px));
    width: min(640px, calc(100% - 48px));
    transform: translateY(-50%);
}

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

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 660px;
    color: #cbd5e1;
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.14);
    color: #cffafe;
    font-size: 13px;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.52);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.content-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 72px 24px;
}

.glass-section {
    margin-top: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(8, 47, 73, 0.38));
    box-shadow: var(--shadow);
}

.section-title,
.category-headline,
.category-overview-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-title h2,
.category-overview-title h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-title a,
.category-headline a,
.category-overview-title a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: var(--cyan-strong);
    background: rgba(8, 145, 178, 0.12);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s 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.22);
}

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

.compact-card .poster-link {
    aspect-ratio: 4 / 3;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 64%);
    opacity: 0.88;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.88);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: 0.24s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row a {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--cyan-soft);
    color: var(--cyan-strong);
}

.card-body h3 {
    margin: 0;
    display: -webkit-box;
    min-height: 54px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body p {
    margin: 10px 0 0;
    min-height: 42px;
    display: -webkit-box;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-feature,
.category-overview-card,
.story-card {
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
}

.category-feature {
    padding: 26px;
}

.category-headline {
    align-items: center;
    margin-bottom: 10px;
}

.category-headline h3 {
    margin: 0;
    font-size: 26px;
}

.category-feature p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.mini-list,
.overview-strip,
.rank-list {
    display: grid;
    gap: 12px;
}

.mini-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.44);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-item:hover {
    background: rgba(8, 145, 178, 0.18);
    transform: translateX(3px);
}

.mini-item img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-info {
    min-width: 0;
}

.mini-info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-info em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.mini-rank {
    color: var(--cyan-strong);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.42));
}

.page-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 82px 24px 72px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

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

.overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 16px;
}

.filter-bar input {
    flex: 1;
}

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

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

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

.detail-bg,
.detail-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.04);
}

.detail-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 52%, rgba(2, 6, 23, 0.54) 100%),
        linear-gradient(0deg, #020617 0%, transparent 45%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 78px 24px;
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 780px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.player-section {
    max-width: 1320px;
    margin: -70px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}

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

.player-shell video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background:
        radial-gradient(circle, rgba(8, 145, 178, 0.22), transparent 28rem),
        rgba(2, 6, 23, 0.36);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 0 48px rgba(34, 211, 238, 0.38);
    font-size: 28px;
}

.detail-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    padding: 30px;
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

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

.footer-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #cbd5e1;
}

.footer-shell strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.footer-shell p {
    margin: 8px 0 0;
    max-width: 620px;
    color: var(--muted);
}

.footer-shell nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

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

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

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

    .hero-carousel {
        height: 620px;
    }

    .hero-copy {
        top: auto;
        bottom: 82px;
        transform: none;
    }

    .hero-control {
        display: none;
    }

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

    .detail-shell {
        padding-top: 46px;
    }

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

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

    .footer-shell,
    .section-title,
    .category-overview-title {
        display: block;
    }

    .footer-shell nav,
    .section-title a,
    .category-overview-title a {
        display: inline-flex;
        margin-top: 16px;
    }
}

@media (max-width: 620px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .content-section,
    .page-hero-inner,
    .detail-shell,
    .detail-content,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .filter-bar {
        display: grid;
    }

    .mini-item {
        grid-template-columns: 82px 1fr auto;
    }

    .mini-item img {
        width: 82px;
        height: 58px;
    }
}
