:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --faint: #64748b;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --green: #34d399;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    --radius: 24px;
}

* {
    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 20% 0%, rgba(34, 211, 238, 0.16), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(37, 99, 235, 0.22), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.22);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
}

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

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

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

.site-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input,
.mobile-search input,
.local-filter,
.search-hero input {
    width: 260px;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 14px;
    padding: 11px 14px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.mobile-search input:focus,
.local-filter:focus,
.search-hero input:focus {
    border-color: rgba(34, 211, 238, 0.82);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.site-search button,
.mobile-search button,
.search-hero button {
    border: 0;
    border-radius: 14px;
    padding: 11px 15px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    font-weight: 900;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 18px 24px 22px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel nav {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.74);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.24)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 42%, rgba(2, 6, 23, 0.68) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 42px;
    align-items: end;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #a5f3fc;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.075em;
    background: linear-gradient(90deg, #e0faff 0%, #67e8f9 36%, #60a5fa 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 28px;
    color: #cbd5e1;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.72;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.25);
}

.btn-secondary,
.btn-ghost {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.66);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(34, 211, 238, 0.20);
}

.hero-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius);
    padding: 20px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-pick:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateX(2px);
}

.hero-pick img {
    width: 78px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-pick strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.hero-pick span {
    color: var(--muted);
    font-size: 13px;
}

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

.hero-dots button {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--cyan);
}

.section {
    padding: 74px 0 0;
}

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

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.72;
    max-width: 760px;
}

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

.category-card {
    min-height: 172px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.74);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

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

.movie-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x proximity;
}

.movie-strip .movie-card {
    scroll-snap-align: start;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.26);
    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.64);
    box-shadow: 0 26px 70px rgba(8, 145, 178, 0.18);
}

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

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

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: brightness(0.78);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #001018;
    background: var(--cyan);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.35);
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #a5f3fc;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
}

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

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

.movie-card p {
    margin: 9px 0 0;
    min-height: 48px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    font-size: 12px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.rank-panel,
.info-panel,
.story-card,
.side-card,
.player-card,
.search-results-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.rank-panel {
    padding: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    color: #cbd5e1;
}

.rank-row:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--text);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
}

.rank-type {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    padding: 72px 0 18px;
}

.page-title {
    max-width: 840px;
}

.filter-bar {
    margin: 28px 0 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.local-filter {
    width: min(520px, 100%);
}

.filter-note {
    color: var(--muted);
}

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

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

.detail-hero {
    padding: 54px 0 34px;
}

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

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

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

.detail-copy h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.detail-lead {
    margin: 22px 0;
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.76;
}

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

.meta-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
}

.meta-item span {
    display: block;
    color: var(--faint);
    font-size: 12px;
    margin-bottom: 4px;
}

.meta-item strong {
    color: var(--text);
}

.player-card {
    padding: 18px;
    margin: 24px 0 32px;
}

.player-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    color: var(--text);
    cursor: pointer;
    background: #020617;
}

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

.player-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.44) saturate(1.12);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.28), transparent 22rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.84));
}

.player-cover-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
}

.player-button {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 24px 62px rgba(34, 211, 238, 0.30);
    font-size: 34px;
}

.player-cover strong {
    display: block;
    font-size: clamp(24px, 4vw, 42px);
    margin-bottom: 10px;
}

.player-cover span:last-child {
    color: #cbd5e1;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.story-card,
.side-card {
    padding: 26px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

.side-list {
    display: grid;
    gap: 12px;
    color: #cbd5e1;
}

.side-list a:hover {
    color: var(--cyan);
}

.search-hero {
    padding: 72px 0 30px;
}

.search-hero form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.search-hero input {
    width: min(620px, 100%);
}

.search-results-panel {
    padding: 20px;
}

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

.search-result {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.24);
}

.search-result:hover {
    border-color: rgba(34, 211, 238, 0.48);
}

.search-result img {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 14px;
}

.search-result h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.search-result p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.no-results {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 34px;
}

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

.footer-brand {
    margin-bottom: 16px;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

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

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: var(--faint);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-content,
    .ranking-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

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

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

@media (max-width: 760px) {
    .nav-wrap,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 86px 16px 72px;
    }

    .hero-panel {
        display: none;
    }

    .hero h1 {
        font-size: 46px;
    }

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

    .movie-strip {
        grid-auto-columns: 78%;
    }

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

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

    .player-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
