
:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5edf7;
    --muted: #94a3b8;
    --accent: #22d3ee;
    --accent-2: #3b82f6;
    --pink: #ec4899;
    --orange: #f97316;
    --green: #14b8a6;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.56);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.16), transparent 30%),
        radial-gradient(circle at 88% 2%, rgba(59, 130, 246, 0.16), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    -webkit-font-smoothing: antialiased;
}

body.nav-lock {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.42);
}

.header-inner {
    max-width: 1280px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand {
    font-size: 21px;
    white-space: nowrap;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    background: radial-gradient(circle at 35% 35%, #ffffff, var(--accent) 32%, var(--accent-2) 68%, #1e1b4b 100%);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.5);
}

.brand-icon::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    border: 2px solid rgba(2, 6, 23, 0.72);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    font-weight: 700;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    padding: 12px 22px 20px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav a {
    padding: 12px;
    background: rgba(15, 23, 42, 0.72);
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 760px;
    padding: 108px 22px 72px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    left: -170px;
    top: 100px;
    background: rgba(34, 211, 238, 0.12);
}

.hero::after {
    width: 460px;
    height: 460px;
    right: -130px;
    top: 40px;
    background: rgba(59, 130, 246, 0.12);
}

.hero-inner,
.page-wrap,
.detail-wrap,
.footer-inner,
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-slide {
    display: none;
    min-height: 560px;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.72fr);
    gap: 34px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
    animation: fadeRise 0.64s ease both;
}

.hero-copy {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.54));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #67e8f9 42%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta,
.meta-row,
.detail-meta,
.breadcrumb,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-meta {
    margin: 22px 0 28px;
}

.hero-meta span,
.meta-row span,
.detail-meta span,
.tag-row span,
.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span,
.detail-meta span,
.category-pill {
    padding: 8px 12px;
}

.meta-row span,
.tag-row span {
    padding: 5px 9px;
}

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

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

.btn-primary {
    color: #03131a;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.22);
}

.btn-ghost,
.section-link {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.36);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 18%, rgba(2, 6, 23, 0.82) 100%),
        radial-gradient(circle at 30% 10%, rgba(34, 211, 238, 0.28), transparent 38%);
}

.hero-poster-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    padding: 18px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(226, 232, 240, 0.14);
    backdrop-filter: blur(16px);
}

.hero-poster-caption strong {
    display: block;
    font-size: 24px;
}

.hero-poster-caption em {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
}

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.hero-controls button {
    width: 42px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
}

.hero-controls button.active {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.page-section,
.page-wrap,
.detail-wrap {
    padding: 78px 22px;
}

.page-section:first-of-type,
.page-wrap,
.detail-wrap {
    padding-top: 108px;
}

.section-heading,
.page-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2,
.page-title-row h1,
.detail-title h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-title-row p,
.category-card p,
.detail-title p {
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin: 0 0 26px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.28);
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    outline: 0;
    color: var(--text);
    background: rgba(2, 6, 23, 0.68);
}

.search-panel input:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-panel span {
    min-width: fit-content;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.78));
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
    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 30px 70px rgba(2, 6, 23, 0.48);
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12));
}

.poster-link img,
.mini-card img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82) 100%);
}

.play-dot {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #03131a;
    background: var(--accent);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.36);
}

.rank-mark {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #1f1300;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

.meta-row {
    margin-bottom: 10px;
}

.movie-card h3 {
    min-height: 52px;
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.52;
}

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

.movie-card p {
    min-height: 68px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}

.tag-row {
    gap: 6px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.78));
    box-shadow: 0 20px 52px rgba(2, 6, 23, 0.32);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.18));
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 14px 0 10px;
    font-size: 24px;
}

.category-card p,
.category-card .category-pill {
    position: relative;
}

.category-card:hover h2,
.category-card:hover h3 {
    color: var(--accent);
}

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

.feature-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 20px;
    background: var(--panel);
}

.feature-panel h3 {
    margin: 0 0 15px;
    font-size: 22px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.42);
}

.mini-card img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.1);
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    line-height: 1.45;
}

.mini-card em {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 34px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at 82% 8%, rgba(34, 211, 238, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 860px;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 17px;
}

.breadcrumb {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.player-panel,
.detail-panel,
.sidebar-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.32);
    overflow: hidden;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #03131a;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.34));
}

.player-start span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    box-shadow: 0 20px 54px rgba(34, 211, 238, 0.38);
    font-size: 30px;
    transform: translateZ(0);
}

.player-box.is-playing .player-start {
    display: none;
}

.player-caption,
.detail-panel,
.sidebar-panel {
    padding: 22px;
}

.player-caption h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.detail-intro {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1));
}

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

.detail-content {
    margin-top: 24px;
    display: grid;
    gap: 22px;
}

.detail-content h2,
.sidebar-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-content p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.95;
    text-align: justify;
}

.quote-block {
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.48);
}

.sidebar-panel {
    margin-bottom: 18px;
}

.no-result {
    display: none;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

.no-result.is-visible {
    display: block;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
}

.footer-inner {
    padding: 46px 22px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.footer-inner p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

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

.footer-bottom {
    padding: 18px 22px 26px;
    color: var(--muted);
    border-top: 1px solid rgba(148, 163, 184, 0.11);
    font-size: 14px;
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-toggle {
        display: flex;
    }

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

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

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

@media (max-width: 760px) {
    .hero {
        min-height: auto;
        padding-top: 92px;
    }

    .hero-copy,
    .page-hero {
        padding: 24px;
        border-radius: 26px;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 420px;
    }

    .section-heading,
    .page-title-row,
    .search-panel {
        display: grid;
        align-items: stretch;
    }

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

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

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

    .page-section,
    .page-wrap,
    .detail-wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

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

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

    .movie-card p {
        min-height: 88px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 18px;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

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

    .hero-actions,
    .section-actions,
    .detail-actions {
        display: grid;
    }

    .btn-primary,
    .btn-ghost,
    .section-link {
        width: 100%;
    }
}
