:root {
    color-scheme: dark;
    --page-bg: #020617;
    --panel-bg: #0f172a;
    --panel-soft: #111827;
    --panel-card: #111c2f;
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(34, 211, 238, 0.38);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --accent: #22d3ee;
    --accent-2: #60a5fa;
    --accent-3: #a78bfa;
    --danger: #fb7185;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 48px rgba(34, 211, 238, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.12), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(96, 165, 250, 0.12), transparent 35rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(96, 165, 250, 0.2));
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.35), var(--shadow-glow);
}

.logo-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--text-soft);
    font-weight: 650;
}

.nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    width: 230px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.84);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.82);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-soft);
}

.main {
    flex: 1;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.42) 68%, rgba(2, 6, 23, 0.9) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.95)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 44px;
    padding: 78px 0 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, #f8fafc, #67e8f9, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.85;
}

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

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.7);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    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: #06121f;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 32px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
    color: var(--text-main);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.72);
}

.hero-poster-card {
    align-self: center;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 30px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.42));
    box-shadow: var(--shadow-card), var(--shadow-glow);
    backdrop-filter: blur(18px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.6);
}

.hero-mini-title {
    margin: 16px 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.hero-mini-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section {
    padding: 70px 0;
}

.section.dark {
    background: rgba(15, 23, 42, 0.46);
}

.section.soft {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.48));
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.more-link {
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 12rem),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(17, 28, 47, 0.9);
}

.category-card strong {
    font-size: 21px;
}

.category-card span {
    color: var(--text-muted);
    line-height: 1.65;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32), var(--shadow-glow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
}

.poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.34s ease;
}

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

.year-badge,
.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #06121f;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 10px;
    top: 10px;
}

.type-badge {
    right: 10px;
    bottom: 10px;
}

.rank-badge {
    left: 10px;
    bottom: 10px;
}

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

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

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

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.compact-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.72);
}

.compact-item img {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.84);
}

.compact-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.compact-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #06121f;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 900;
}

.page-hero {
    padding: 72px 0 42px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 0%, rgba(96, 165, 250, 0.14), transparent 26rem);
}

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

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

.page-title {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-desc {
    max-width: 860px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
}

.filter-input,
.filter-select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 15px;
    color: var(--text-main);
    background: rgba(2, 6, 23, 0.58);
    outline: none;
}

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

.detail-poster {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow-card);
}

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

.detail-info {
    padding: 24px;
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.detail-info .meta-row {
    margin-bottom: 18px;
}

.detail-lead {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.86;
}

.player-card {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.82)),
        var(--poster-image);
    background-size: cover;
    background-position: center;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.play-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #06121f;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 22px 50px rgba(34, 211, 238, 0.4);
    font-size: 30px;
    font-weight: 900;
}

.player-caption {
    margin-top: 18px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.content-card h2 {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.content-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
    padding: 44px 0;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-main);
}

.footer-desc,
.footer-links a,
.footer-copy {
    color: var(--text-muted);
    line-height: 1.75;
}

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

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

.footer-copy {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
    display: block;
}

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

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

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

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

    .header-inner {
        min-height: 64px;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 64px 0 84px;
    }

    .hero-poster-card {
        max-width: 360px;
    }

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

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

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

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

    .detail-poster {
        position: static;
        max-width: 380px;
    }

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

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

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-desc,
    .detail-lead {
        font-size: 16px;
    }

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

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

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

    .compact-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .compact-item img {
        width: 58px;
    }

    .rank-number {
        display: none;
    }

    .content-card,
    .detail-info {
        padding: 18px;
    }

    .play-button {
        width: 72px;
        height: 72px;
    }

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