:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.5);
    --line: rgba(250, 204, 21, 0.18);
    --line-strong: rgba(250, 204, 21, 0.42);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --brand: #facc15;
    --brand-deep: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(250, 204, 21, 0.10), transparent 32rem),
        radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.09), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.28);
}

.brand-text {
    background: linear-gradient(90deg, #fde68a, #facc15, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.main-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--brand);
    background: rgba(250, 204, 21, 0.09);
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    width: min(270px, 26vw);
}

.top-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
    padding: 10px 16px;
}

.top-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
    background: rgba(15, 23, 42, 0.95);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 99px;
}

.hero {
    position: relative;
    height: clamp(560px, 72vh, 720px);
    overflow: hidden;
    border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.74) 43%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, rgba(2, 6, 23, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    width: min(680px, 100%);
    padding: 34px;
    border: 1px solid rgba(250, 204, 21, 0.14);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.20));
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 26px rgba(250, 204, 21, 0.8);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 58rem;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta {
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #f8fafc;
    font-size: 13px;
    line-height: 1;
}

.pill.is-gold {
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.92);
    color: #0f172a;
    font-weight: 800;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #111827;
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 22px 54px rgba(250, 204, 21, 0.33);
}

.btn-ghost {
    border-color: rgba(250, 204, 21, 0.25);
    background: rgba(15, 23, 42, 0.70);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--brand);
    background: rgba(250, 204, 21, 0.10);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 38px;
    background: var(--brand);
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(250, 204, 21, 0.20);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover {
    border-color: var(--brand);
    background: rgba(250, 204, 21, 0.16);
}

.section {
    padding: 74px 0 0;
}

.section-muted {
    margin-top: 74px;
    padding: 74px 0;
    background: rgba(15, 23, 42, 0.38);
    border-top: 1px solid rgba(250, 204, 21, 0.10);
    border-bottom: 1px solid rgba(250, 204, 21, 0.10);
}

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

.section-kicker {
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

.link-more {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.link-more:hover {
    color: #fde68a;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.10);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.92));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--line-strong);
    box-shadow: 0 22px 55px rgba(250, 204, 21, 0.13), 0 24px 65px rgba(0, 0, 0, 0.35);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .poster img {
    transform: scale(1.08);
    filter: saturate(1.14);
}

.poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge.gold {
    background: rgba(250, 204, 21, 0.93);
    color: #111827;
}

.card-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-play span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--brand);
    color: #111827;
    font-size: 24px;
    box-shadow: 0 18px 44px rgba(250, 204, 21, 0.28);
}

.movie-card:hover .card-play {
    opacity: 1;
}

.card-body {
    display: flex;
    min-height: 220px;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: var(--brand);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--subtle);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    min-height: 4.9em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 28px;
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 50%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.95));
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 60px rgba(250, 204, 21, 0.11);
}

.category-icon {
    font-size: 44px;
    line-height: 1;
}

.category-card h3 {
    margin: 18px 0 8px;
    font-size: 24px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(250, 204, 21, 0.10);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(30, 41, 59, 0.82);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--text);
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #111827;
}

.rank-thumb {
    overflow: hidden;
    width: 86px;
    height: 112px;
    border-radius: 14px;
    background: #111827;
}

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

.rank-title {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.page-panel {
    padding: 32px;
    border: 1px solid rgba(250, 204, 21, 0.13);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.13), transparent 34rem),
        rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

.page-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-panel p {
    max-width: 880px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 28px 0;
}

.filter-input {
    padding: 13px 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid rgba(250, 204, 21, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: var(--muted);
    padding: 10px 15px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--brand);
    background: rgba(250, 204, 21, 0.15);
    color: var(--brand);
}

.detail-shell {
    padding-top: 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.detail-card,
.side-card {
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

.detail-card {
    overflow: hidden;
}

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

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    z-index: 1;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.66));
    color: var(--text);
}

.player-layer.is-hidden {
    display: none;
}

.player-button {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #111827;
    font-size: 34px;
    box-shadow: 0 22px 58px rgba(250, 204, 21, 0.32);
    transform: translateZ(0);
    transition: transform 0.2s ease;
}

.player-layer:hover .player-button {
    transform: scale(1.08);
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-content h2,
.side-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-content p {
    margin: 0 0 14px;
    color: #dbe4ef;
}

.side-card {
    padding: 22px;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.44);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
    transform: translateX(3px);
    background: rgba(30, 41, 59, 0.74);
}

.side-item img {
    width: 74px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: var(--subtle);
    font-size: 12px;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid rgba(250, 204, 21, 0.16);
    background: #020617;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: var(--subtle);
    font-size: 14px;
}

.footer-grid a:hover {
    color: var(--brand);
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    font-size: 13px;
}

.empty-state {
    padding: 42px;
    border: 1px dashed rgba(250, 204, 21, 0.24);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1180px) {
    .movie-grid.is-wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav,
    .top-search {
        display: none;
        width: 100%;
    }

    .site-header.is-open .main-nav,
    .site-header.is-open .top-search {
        display: flex;
    }

    .site-header.is-open .main-nav {
        flex-direction: column;
        align-items: stretch;
        order: 4;
    }

    .site-header.is-open .top-search {
        order: 5;
    }

    .top-search input {
        width: 100%;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        padding: 80px 0 96px;
    }

    .hero-copy {
        padding: 26px;
    }

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

    .category-grid,
    .rank-list,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .section,
    .section-muted {
        padding-top: 52px;
    }

    .section-head {
        display: block;
    }

    .section-head .link-more {
        display: inline-flex;
        margin-top: 14px;
    }

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

    .card-body {
        min-height: 210px;
        padding: 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .page-panel {
        padding: 24px;
    }

    .rank-item {
        grid-template-columns: 42px 70px 1fr;
        gap: 12px;
    }

    .rank-thumb {
        width: 70px;
        height: 92px;
    }
}

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

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

    .button-row .btn {
        width: 100%;
    }

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