:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-solid: #111827;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --pink: #ec4899;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(6, 182, 212, 0.2), transparent 28rem),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.15), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand-symbol {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

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

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft);
    transition: 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: white;
    background: rgba(148, 163, 184, 0.14);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.hero-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.header-search input {
    width: 210px;
    padding: 8px 10px 8px 14px;
}

.header-search button,
.hero-search button,
.big-search button {
    border: 0;
    cursor: pointer;
    color: white;
    padding: 8px 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-search button:hover,
.hero-search button:hover,
.big-search button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.22);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    cursor: pointer;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.14);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav nav {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 650ms ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #164e63, #0f172a 55%, #831843);
}

.hero-overlay,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    margin-left: max(16px, calc((100% - 1280px) / 2));
    padding: 92px 0 160px;
}

.hero-kicker,
.page-hero p,
.section-heading p,
.category-overview-head p {
    margin: 0 0 14px;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-summary,
.detail-one-line,
.page-hero span {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.detail-pills span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.08);
}

.hero-tags span,
.detail-pills span {
    padding: 8px 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 180ms ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-link {
    color: #bae6fd;
}

.hero-panel {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 44px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search,
.big-search {
    display: flex;
    gap: 10px;
}

.hero-search input,
.big-search input {
    flex: 1;
    padding: 13px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.hero-chip-row a {
    color: #cbd5e1;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    transition: 180ms ease;
}

.hero-chip-row a:hover {
    color: white;
    background: rgba(6, 182, 212, 0.22);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    right: max(16px, calc((100% - 1280px) / 2));
    bottom: 174px;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

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

.metric-band {
    width: min(1280px, calc(100% - 32px));
    margin: -22px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric-band div,
.category-card,
.movie-card,
.rank-item,
.text-panel,
.category-overview-block,
.filter-panel,
.player-shell,
.detail-poster {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(16px);
}

.metric-band div {
    padding: 20px;
    border-radius: 20px;
}

.metric-band strong {
    display: block;
    font-size: 1.12rem;
}

.metric-band span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section-wrap,
.overview-stack {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.section-wrap {
    padding: 72px 0;
}

.alt-section {
    position: relative;
}

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

.section-heading h2,
.category-overview-head h2,
.text-panel h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.section-heading a {
    color: #67e8f9;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.12);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(15, 23, 42, 0.92) 48%, rgba(236, 72, 153, 0.22));
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 42%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.movie-year,
.movie-play-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-weight: 800;
}

.movie-year {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 0.82rem;
    background: rgba(2, 6, 23, 0.68);
}

.movie-play-mark {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
}

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

.movie-card-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

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

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.text-link-list a:hover {
    color: #67e8f9;
}

.movie-card-desc {
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 0.94rem;
}

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

.tag-row span {
    padding: 4px 9px;
    font-size: 0.78rem;
}

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

.category-card {
    border-radius: 24px;
    padding: 22px;
}

.category-card-main {
    display: block;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.16), rgba(236, 72, 153, 0.14));
}

.category-card-main span {
    display: block;
    margin-bottom: 8px;
    color: #67e8f9;
    font-size: 1.4rem;
    font-weight: 900;
}

.category-card-main strong {
    color: #dbeafe;
    font-weight: 600;
}

.category-samples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
}

.category-samples a,
.text-link-list a {
    color: #cbd5e1;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.1);
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 28px;
}

.compact-page-hero {
    padding-bottom: 48px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #67e8f9;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 220px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 22px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.42);
}

.filter-panel select option {
    color: #0f172a;
}

.empty-state {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 30px;
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 72px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 94px;
    padding: 12px;
    border-radius: 20px;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.rank-thumb {
    width: 72px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(236, 72, 153, 0.18));
}

.rank-copy h3 {
    margin: 0;
    font-size: 1.04rem;
}

.rank-copy p {
    margin: 5px 0 0;
    color: var(--muted);
}

.rank-action {
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.18);
}

.overview-stack {
    display: grid;
    gap: 32px;
    padding-bottom: 72px;
}

.category-overview-block {
    border-radius: 28px;
    padding: 26px;
}

.category-overview-head span {
    color: var(--muted);
}

.text-link-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.text-link-list a {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.text-link-list span {
    color: var(--muted);
    font-size: 0.84rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: #020617;
}

.detail-inner {
    position: relative;
    z-index: 3;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: center;
    min-height: 680px;
    padding: 80px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(236, 72, 153, 0.2));
}

.detail-copy {
    max-width: 820px;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-top: 56px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.32));
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-overlay-button span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 46px rgba(6, 182, 212, 0.28);
    font-size: 1.6rem;
}

.player-overlay-button strong {
    font-size: 1.2rem;
}

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

.text-panel {
    border-radius: 28px;
    padding: 30px;
}

.text-panel h2 + p {
    margin-top: 12px;
}

.text-panel p {
    color: #dbeafe;
    font-size: 1.05rem;
}

.search-page {
    padding-top: 0;
}

.big-search {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.search-result-note {
    margin: 0 0 20px;
    color: var(--muted);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.78);
}

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

.footer-grid p {
    color: var(--muted);
    max-width: 520px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: var(--muted);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

@media (max-width: 1120px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-search {
        display: none;
    }

    .detail-inner {
        grid-template-columns: 280px 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding-bottom: 240px;
    }

    .hero-panel {
        bottom: 24px;
    }

    .hero-search,
    .big-search {
        flex-direction: column;
    }

    .hero-search button,
    .big-search button {
        width: 100%;
    }

    .hero-dots {
        bottom: 210px;
        left: 16px;
        right: auto;
    }

    .metric-band,
    .category-grid,
    .rank-grid,
    .footer-grid,
    .text-link-list {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .detail-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 64px;
    }

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

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 2.3rem;
    }

    .hero-actions,
    .hero-tags,
    .detail-pills {
        gap: 9px;
    }

    .btn {
        width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .metric-band,
    .category-grid,
    .rank-grid,
    .footer-grid,
    .text-link-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 58px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

    .section-wrap {
        padding: 48px 0;
    }

    .page-hero {
        padding-top: 54px;
    }
}
