
:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --bg-soft: #1c1917;
    --bg-card: rgba(28, 25, 23, 0.78);
    --bg-card-strong: rgba(41, 37, 36, 0.92);
    --line: rgba(245, 158, 11, 0.18);
    --text: #fafaf9;
    --muted: #d6d3d1;
    --faint: #a8a29e;
    --amber: #f59e0b;
    --amber-2: #d97706;
    --copper: #b45309;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
    --max: 1480px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% -10%, rgba(245, 158, 11, 0.18), transparent 32rem),
        linear-gradient(180deg, #0c0a09 0%, #1c1917 48%, #0c0a09 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

.page-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 158, 11, 0.12);
    background: rgba(12, 10, 9, 0.82);
    backdrop-filter: blur(20px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #1c1917;
    background: linear-gradient(135deg, var(--amber), var(--copper));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

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

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(245, 158, 11, 0.14);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(360px, 28vw);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    background: rgba(41, 37, 36, 0.72);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 10px 14px;
}

.header-search input::placeholder {
    color: #78716c;
}

.header-search button {
    border: 0;
    color: #1c1917;
    background: var(--amber);
    padding: 10px 16px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--bg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 70vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-backdrop,
.detail-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 26%, rgba(245, 158, 11, 0.16), transparent 24rem),
        linear-gradient(135deg, #1c1917, #0c0a09);
}

.hero-backdrop img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.04);
}

.hero-backdrop span,
.detail-backdrop span {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.68) 45%, rgba(12, 10, 9, 0.26)),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.4) 36%, rgba(12, 10, 9, 0.15) 100%);
}

.hero-content {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 86px 0 74px;
}

.hero-copy {
    max-width: 760px;
    animation: fadeUp 0.8s ease both;
}

.hero-badges,
.card-meta,
.genre-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-badges span,
.genre-row span,
.tag-row span,
.tag-cloud a,
.card-meta span {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-badges span:first-child {
    color: #1c1917;
    background: var(--amber);
}

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

.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #1c1917;
    background: linear-gradient(135deg, var(--amber), var(--copper));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.26);
}

.ghost-button {
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fff;
    background: rgba(41, 37, 36, 0.72);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

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

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

.hero-dot.active {
    width: 58px;
    background: var(--amber);
}

.content-section {
    padding: 68px 0;
}

.feature-band {
    background:
        radial-gradient(circle at 10% 30%, rgba(245, 158, 11, 0.12), transparent 20rem),
        linear-gradient(135deg, rgba(28, 25, 23, 0.72), rgba(41, 37, 36, 0.7));
    border-top: 1px solid rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-more {
    color: var(--amber);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.18), transparent 10rem),
        linear-gradient(145deg, #292524, #0c0a09);
}

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

.movie-card:hover .poster-shell img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), transparent 42%);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #1c1917;
    background: var(--amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #1c1917;
    background: var(--amber);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin-bottom: 8px;
}

.card-meta span {
    color: var(--faint);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

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

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

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

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

.compact-card h3 {
    font-size: 16px;
}

.compact-card p {
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.18));
}

.category-tile strong,
.category-tile em,
.category-tile b {
    position: relative;
}

.category-tile strong {
    font-size: 26px;
    line-height: 1.1;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    margin-top: 8px;
}

.category-tile b {
    color: var(--amber);
    margin-top: 12px;
}

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

.two-column-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: start;
}

.ranking-panel,
.text-panel,
.side-panel {
    border: 1px solid rgba(245, 158, 11, 0.13);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.ranking-panel {
    padding: 22px;
}

.compact-head {
    margin-bottom: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(3px);
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.08);
}

.row-rank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #1c1917;
    background: var(--amber);
    font-weight: 900;
}

.row-thumb {
    width: 54px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #292524;
}

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

.row-main {
    min-width: 0;
}

.row-main strong,
.row-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-main strong {
    font-size: 15px;
}

.row-main em {
    color: var(--faint);
    font-size: 12px;
    font-style: normal;
}

.row-heat {
    color: var(--amber);
    font-weight: 900;
}

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

.compact-page-hero {
    max-width: 980px;
    margin-left: max(16px, calc((100% - var(--max)) / 2));
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.13);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.large-card-media {
    min-height: 240px;
    background: #292524;
}

.large-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-card-body {
    padding: 24px;
}

.large-card-body h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.large-card-body p {
    margin: 0 0 18px;
    color: var(--muted);
}

.mini-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-title-row span {
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 10px;
    font-size: 12px;
}

.filter-panel {
    position: sticky;
    top: 84px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 170px 190px;
    gap: 12px;
    margin-bottom: 28px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 20px;
    background: rgba(12, 10, 9, 0.82);
    backdrop-filter: blur(20px);
    padding: 14px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    outline: 0;
    color: var(--text);
    background: rgba(41, 37, 36, 0.8);
    padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.5);
}

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

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.detail-hero-inner {
    position: relative;
    padding: 42px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--faint);
    font-size: 14px;
    margin-bottom: 34px;
}

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

.breadcrumb em {
    color: var(--muted);
    font-style: normal;
}

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

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    background: #292524;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 850px;
    color: var(--muted);
    font-size: 19px;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 14rem),
        rgba(12, 10, 9, 0.56);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #1c1917;
    background: var(--amber);
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.32);
}

.player-overlay strong {
    font-size: 18px;
}

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

.text-panel {
    padding: 26px;
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p {
    margin: 0;
    color: var(--muted);
    white-space: pre-line;
}

.side-panel {
    padding: 22px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-panel dt {
    color: var(--faint);
}

.side-panel dd {
    margin: 0;
    color: var(--muted);
}

.side-panel dd a {
    color: var(--amber);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}

.ranking-side {
    display: grid;
    gap: 22px;
}

.wide-panel .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    border-top: 1px solid rgba(245, 158, 11, 0.12);
    background: rgba(12, 10, 9, 0.78);
}

.footer-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 0 24px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--faint);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

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

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

.footer-copy {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--faint);
    padding: 16px 0 26px;
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .two-column-area,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .wide-panel .rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .main-nav {
        position: fixed;
        inset: 66px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(245, 158, 11, 0.18);
        border-radius: 20px;
        background: rgba(12, 10, 9, 0.96);
        padding: 16px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 13px 16px;
    }

    .header-search {
        width: 100%;
        order: 4;
    }

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

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

    .split-section,
    .category-large-grid,
    .detail-heading {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(260px, 70vw);
    }

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

@media (max-width: 640px) {
    .page-wrap {
        width: min(100% - 24px, var(--max));
    }

    .content-section {
        padding: 44px 0;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-meta span,
    .tag-row span {
        font-size: 11px;
        padding: 3px 7px;
    }

    .category-tile {
        min-height: 180px;
        padding: 16px;
    }

    .category-tile strong {
        font-size: 20px;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .large-card-media {
        min-height: 260px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .rank-row {
        grid-template-columns: auto 48px minmax(0, 1fr);
    }

    .row-heat {
        display: none;
    }

    .detail-copy p {
        font-size: 16px;
    }
}
