:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(15, 23, 42, 0.56);
    --line: rgba(34, 211, 238, 0.18);
    --line-strong: rgba(34, 211, 238, 0.38);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #f97316;
    --purple: #a855f7;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
    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: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.32);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong,
.footer-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-copy small {
    color: rgba(34, 211, 238, 0.72);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

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

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

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    color: var(--cyan);
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(34, 211, 238, 0.12);
    padding: 14px 16px 18px;
    gap: 14px;
    flex-wrap: wrap;
}

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

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    background: #020617;
}

.hero-grid-light {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, cyan 2px, cyan 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, cyan 2px, cyan 4px);
    background-size: 54px 54px;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.26;
    pointer-events: none;
}

.hero-orb-one {
    top: 8%;
    left: 5%;
    background: var(--cyan);
}

.hero-orb-two {
    right: 8%;
    bottom: 4%;
    background: var(--blue);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.15);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.96)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.08) 45%, #020617);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 360px;
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    padding: 112px 0 92px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #67e8f9, #3b82f6, #67e8f9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-one-line,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: #cbd5e1;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.72;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    color: #a5f3fc;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button,
.card-action {
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 14px 40px rgba(34, 211, 238, 0.22);
}

.ghost-button {
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: #dffbff;
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.card-action:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 0 58px rgba(34, 211, 238, 0.18);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #001018;
    background: var(--cyan);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.45);
}

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

.hero-controls button,
.hero-dot {
    cursor: pointer;
}

.hero-controls > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.74);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.46);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-stack {
    display: grid;
    gap: 56px;
}

.page-top {
    padding-top: 42px;
}

.content-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: end;
    gap: 22px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.heading-line {
    flex: 1;
    height: 1px;
    min-width: 80px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), transparent);
}

.accent-blue .hero-kicker,
.accent-blue .section-kicker {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.1);
}

.accent-green .hero-kicker,
.accent-green .section-kicker {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.1);
}

.accent-orange .hero-kicker,
.accent-orange .section-kicker {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.28);
    background: rgba(249, 115, 22, 0.1);
}

.accent-purple .hero-kicker,
.accent-purple .section-kicker {
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.28);
    background: rgba(168, 85, 247, 0.1);
}

.search-panel {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.search-label,
.year-select-wrap label {
    display: block;
    margin-bottom: 10px;
    color: #a5f3fc;
    font-size: 13px;
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 16px;
    padding: 0 14px;
    background: rgba(2, 6, 23, 0.7);
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: none;
    color: #fff;
    background: transparent;
}

.search-box span {
    color: var(--cyan);
    font-size: 24px;
}

.empty-search {
    display: none;
    margin: 12px 0 0;
    color: #fca5a5;
}

.empty-search.show {
    display: block;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: end;
}

.year-select-wrap {
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.year-select-wrap select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 16px;
    color: #fff;
    background: #020617;
    padding: 0 12px;
}

.movie-grid {
    display: grid;
    gap: 20px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 50px 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(-5px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), 0 0 34px rgba(34, 211, 238, 0.12);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.16), transparent 48%),
        #0f172a;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 10;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap {
    aspect-ratio: auto;
    min-height: 190px;
}

.poster-wrap img {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.year-badge,
.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 12px;
    top: 12px;
    color: #e0f2fe;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(34, 211, 238, 0.24);
}

.score-badge {
    right: 12px;
    top: 12px;
    color: #001018;
    background: var(--cyan);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    color: #020617;
    background: #facc15;
}

.movie-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #67e8f9;
    font-size: 12px;
}

.meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(148, 163, 184, 0.7);
}

.movie-card h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

.card-action {
    justify-self: start;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

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

.category-card,
.category-overview-card {
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    padding: 20px;
    background: rgba(15, 23, 42, 0.68);
}

.category-card-main,
.overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.category-card-main strong,
.overview-head strong {
    color: var(--cyan);
    font-size: 13px;
}

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

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

.category-preview-links a,
.category-overview-card li a {
    color: #a5f3fc;
}

.category-overview-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.rank-strip,
.rank-list {
    display: grid;
    gap: 16px;
}

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

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.04)),
        rgba(15, 23, 42, 0.74);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.page-hero {
    padding: clamp(28px, 5vw, 54px);
}

.small-hero h1 {
    font-size: clamp(34px, 6vw, 58px);
}

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

.breadcrumb a {
    color: #a5f3fc;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    padding: 26px;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-radius: 26px;
    background: #0f172a;
}

.detail-cover span {
    position: absolute;
    right: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #001018;
    background: var(--cyan);
    font-size: 22px;
    font-weight: 900;
}

.detail-info {
    align-self: center;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 16px;
    padding: 12px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.38);
}

.detail-meta-grid strong {
    color: var(--cyan);
    font-size: 12px;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 32px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.8));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #001018;
    background: var(--cyan);
    font-size: 28px;
    box-shadow: 0 0 38px rgba(34, 211, 238, 0.42);
}

.player-overlay strong {
    font-size: 20px;
}

.detail-content {
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: var(--radius);
    padding: 26px;
    background: rgba(15, 23, 42, 0.66);
}

.detail-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 2;
}

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

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

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: 17px;
}

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

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

.footer-links.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: inline-grid;
    }

    .hero-content,
    .detail-hero,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 420px;
        max-width: 360px;
        margin: 0 auto;
    }

    .movie-grid.four-col,
    .movie-grid.three-col,
    .rank-strip,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .hero-carousel {
        min-height: auto;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-poster,
    .detail-cover {
        min-height: 380px;
    }

    .section-heading {
        display: grid;
        gap: 12px;
    }

    .heading-line {
        width: 100%;
    }

    .movie-grid.two-col,
    .movie-grid.three-col,
    .movie-grid.four-col,
    .rank-strip,
    .category-grid,
    .category-overview-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .movie-card-compact .poster-wrap {
        min-height: 168px;
    }

    .footer-bottom {
        display: grid;
    }
}
