:root {
    --bg: #07111f;
    --bg-soft: #0d1c33;
    --bg-card: rgba(13, 28, 51, 0.82);
    --bg-card-strong: rgba(15, 23, 42, 0.95);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --line: rgba(148, 163, 184, 0.22);
    --cyan: #22d3ee;
    --blue: #2563eb;
    --violet: #7c3aed;
    --pink: #f472b6;
    --gold: #fbbf24;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.24), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.23), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #00111f;
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.brand-text {
    font-size: 1.25rem;
    white-space: nowrap;
}

.top-search {
    flex: 1 1 360px;
    max-width: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.top-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px 10px 18px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.top-search input::placeholder,
.mobile-nav input::placeholder,
.search-panel input::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.top-search button,
.mobile-nav button,
.search-panel button {
    border: 0;
    color: #00111f;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
}

.top-search button {
    align-self: stretch;
    padding: 0 18px;
}

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

.desktop-nav a,
.mobile-links a {
    color: rgba(248, 250, 252, 0.86);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-links a:hover,
.mobile-links a.is-active {
    color: var(--cyan);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

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

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.9);
}

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

.mobile-nav form {
    display: flex;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav input {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.mobile-nav button {
    padding: 0 16px;
    border: 0;
}

.mobile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.main-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    margin: 28px auto 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    filter: saturate(1.15);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 22%, rgba(34, 211, 238, 0.22), transparent 25rem),
        radial-gradient(circle at 76% 55%, rgba(124, 58, 237, 0.23), transparent 26rem);
}

.hero-content,
.hero-poster-card {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    color: #cffafe;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.18);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.35rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 690px;
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.08rem;
}

.hero-tags,
.tag-list,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.tag-list span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #cffafe;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    font-size: 0.82rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #00111f;
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.26);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.2));
}

.hero-poster-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
}

.section {
    margin: 58px 0;
}

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

.section-eyebrow {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-lead,
.page-title p,
.detail-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.46);
    box-shadow: 0 24px 60px rgba(2, 132, 199, 0.2);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.2));
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rating-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.rating-pill {
    right: 10px;
    bottom: 10px;
    color: #111827;
    background: var(--gold);
}

.rank-badge {
    left: 10px;
    top: 10px;
    color: #00111f;
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
}

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

.card-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--subtle);
    font-size: 0.82rem;
}

.movie-card h3 {
    margin: 7px 0 8px;
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 20%, rgba(34, 211, 238, 0.24), transparent 9rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 1.45rem;
}

.category-card p {
    margin: 12px 0 22px;
    color: var(--muted);
}

.category-card span {
    color: var(--cyan);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 28px 0 40px;
    padding: 58px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.18), transparent 20rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
    box-shadow: var(--shadow-soft);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--subtle);
    font-size: 0.92rem;
}

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

.search-panel,
.filter-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
}

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

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

.search-panel input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    outline: 0;
    background: rgba(255, 255, 255, 0.08);
}

.search-panel button {
    min-width: 120px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 15px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.42);
}

.rank-number {
    color: var(--cyan);
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 58px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.2));
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--subtle);
    white-space: nowrap;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 34px;
    margin: 32px 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 32px;
    background:
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.18), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.2));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.detail-title h1 {
    margin-top: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 12px;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.player-box {
    overflow: hidden;
    margin: 34px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78)),
        var(--poster-bg);
    background-size: cover;
    background-position: center;
    z-index: 3;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    color: #00111f;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #a7f3d0);
    box-shadow: 0 20px 54px rgba(34, 211, 238, 0.34);
    font-size: 1.8rem;
    font-weight: 900;
}

.content-card {
    margin: 22px 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.content-card p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 1.3rem;
    font-weight: 900;
}

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

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

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

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
}

.empty-state {
    display: none;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

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

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

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

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

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

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slider {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 34px;
    }

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

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

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

@media (max-width: 640px) {
    .nav-shell,
    .main-wrap,
    .footer-grid,
    .footer-bottom,
    .mobile-nav {
        width: min(100% - 22px, 1200px);
    }

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

    .hero-slider {
        min-height: 680px;
        margin-top: 18px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
        letter-spacing: -0.04em;
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

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

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

    .section-head {
        display: block;
    }

    .page-hero,
    .detail-hero {
        padding: 22px;
        border-radius: 24px;
    }

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

    .rank-row {
        grid-template-columns: 42px 50px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .player-start {
        width: 74px;
        height: 74px;
        font-size: 1.35rem;
    }
}
