:root {
    color-scheme: dark;
    --bg: #080a15;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-solid: #111827;
    --panel-strong: #1e1b4b;
    --line: rgba(168, 85, 247, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --amber-strong: #d97706;
    --purple: #7c3aed;
    --purple-soft: rgba(124, 58, 237, 0.22);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.30), transparent 34rem),
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.16), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #1e1b4b 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.image-empty {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 21, 0.84);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    color: #fde68a;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 0 26px rgba(251, 191, 36, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fde68a;
    background: rgba(124, 58, 237, 0.22);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(390px, 32vw);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select,
.search-box input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.70);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.header-search button,
.mobile-search button,
.big-search button,
.search-box button {
    border: 0;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fde68a;
}

.mobile-panel {
    display: none;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-panel.open {
    display: block;
}

.mobile-links,
.mobile-cats,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-link,
.mobile-cats a,
.quick-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(124, 58, 237, 0.18);
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

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

.hero-slider {
    position: relative;
    min-height: 690px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827, #1e1b4b);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.44) 100%),
        linear-gradient(0deg, rgba(8, 10, 21, 1) 0%, rgba(8, 10, 21, 0) 34%);
}

.hero-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(2px) saturate(1.12);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1380px, calc(100% - 32px));
    min-height: 690px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.54fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
    padding: 68px 0 88px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(44px, 8vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero-desc {
    max-width: 740px;
    color: var(--soft);
    font-size: clamp(16px, 2.1vw, 21px);
    margin: 24px 0 0;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.10);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.28);
}

.btn-ghost,
.section-more {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(15, 23, 42, 0.72);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: var(--shadow);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: inset 0 -120px 80px rgba(0, 0, 0, 0.36);
    pointer-events: none;
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    font-size: 36px;
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fbbf24;
}

.quick-search-panel,
.page-main,
.content-section,
.site-footer {
    width: min(1380px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 10;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.quick-links {
    margin-top: 14px;
}

.content-section {
    margin-top: 66px;
}

.content-section.tight {
    margin-top: 34px;
}

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

.section-head h2,
.story-section h2 {
    margin: 0;
    color: #fde68a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 330px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scrollbar-width: thin;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 20px;
}

.movie-grid.dense {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.20);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 27, 75, 0.68), rgba(15, 23, 42, 0.88));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #312e81);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.60), transparent 45%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.poster-img {
    transition: transform 0.28s ease;
}

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

.type-pill,
.rank-badge,
.mini-rank {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    font-weight: 900;
}

.type-pill {
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    color: #111827;
    background: #fbbf24;
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.play-cue {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #111827;
    background: rgba(251, 191, 36, 0.94);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-cue {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 14px;
}

.card-body h2 {
    margin: 0;
    min-height: 2.8em;
    font-size: 16px;
    line-height: 1.38;
}

.card-body h2 a:hover,
.horizontal-card h2 a:hover {
    color: #fbbf24;
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    min-height: 3.2em;
}

.tag-row {
    margin-top: 12px;
    gap: 6px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

.card-category {
    display: inline-flex;
    margin-top: 12px;
    color: #fde68a;
    font-size: 13px;
}

.category-grid,
.category-large-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.category-tile,
.category-large {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.20), transparent 12rem),
        linear-gradient(135deg, rgba(30, 27, 75, 0.78), rgba(15, 23, 42, 0.82));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-large:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
}

.category-tile span,
.category-index {
    display: inline-flex;
    color: #fbbf24;
    font-weight: 900;
}

.category-tile strong,
.category-large h2 {
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: 24px;
}

.category-tile small,
.category-large p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 30px;
    align-items: start;
}

.ranking-panel {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 92px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
}

.rank-list,
.ranking-full {
    display: grid;
    gap: 14px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.38);
}

.horizontal-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 13px;
    background: #111827;
}

.mini-rank {
    left: 6px;
    top: 6px;
    min-width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #111827;
    background: #fbbf24;
    font-size: 12px;
}

.horizontal-card h2 {
    margin: 2px 0 6px;
    font-size: 16px;
    line-height: 1.35;
}

.horizontal-card p,
.horizontal-card span {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.20), transparent 18rem),
        linear-gradient(135deg, rgba(30, 27, 75, 0.82), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

.page-hero.compact {
    min-height: 240px;
}

.page-hero h1 {
    margin: 0;
    max-width: 880px;
    color: #fde68a;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
    max-width: 790px;
    color: var(--soft);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.70);
}

.filter-bar select {
    cursor: pointer;
}

.ranking-full {
    margin-top: 26px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.search-workspace {
    margin-top: 28px;
}

.search-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.search-results {
    margin-top: 30px;
}

.detail-main {
    padding-bottom: 26px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(250px, 380px) 1fr;
    gap: clamp(24px, 5vw, 62px);
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 18rem),
        linear-gradient(135deg, rgba(30, 27, 75, 0.78), rgba(15, 23, 42, 0.88));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: #111827;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
    color: #fde68a;
}

.detail-one-line {
    max-width: 850px;
    color: var(--soft);
    font-size: 19px;
}

.player-section,
.story-section {
    margin-top: 42px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.76);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #111827;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: clamp(74px, 11vw, 112px);
    height: clamp(74px, 11vw, 112px);
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.45);
    font-size: clamp(28px, 5vw, 48px);
    padding-left: 6px;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.story-section h2 {
    margin-top: 0;
}

.story-section h2 + p {
    margin-top: 12px;
}

.story-section p {
    color: var(--soft);
    font-size: 18px;
}

.site-footer {
    margin-top: 76px;
    padding: 36px 0 30px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
    gap: 30px;
}

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

.footer-links h2 {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 18px;
}

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

.footer-link-grid a,
.footer-bottom a {
    color: var(--muted);
}

.footer-link-grid a:hover,
.footer-bottom a:hover {
    color: #fbbf24;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.18);
    color: var(--muted);
}

[data-card].is-hidden {
    display: none;
}

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

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

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

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }

    .sticky-card {
        position: static;
    }
}

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

    .site-nav {
        display: none;
    }

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

    .hero-content {
        align-content: center;
        padding: 42px 0 78px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .hero-control {
        display: none;
    }

    .quick-search-panel {
        margin-top: 18px;
    }

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

    .section-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-desc,
    .tag-row,
    .card-category {
        display: none;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 22px;
    }

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

    .horizontal-card {
        grid-template-columns: 78px 1fr;
    }

    .detail-hero,
    .player-section,
    .story-section {
        padding: 18px;
        border-radius: 22px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .movie-grid.dense {
        grid-template-columns: 1fr;
    }
}
