:root {
    --bg: #0c0a09;
    --panel: #1c1917;
    --panel-soft: #292524;
    --text: #f8fafc;
    --muted: #a8a29e;
    --line: rgba(255, 255, 255, 0.08);
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 35%), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.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(12, 10, 9, 0.82);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1c1917;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.36);
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #d6d3d1;
    font-size: 0.95rem;
}

.site-nav a {
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.96) 0%, rgba(12, 10, 9, 0.72) 44%, rgba(12, 10, 9, 0.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.hero-copy {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 96px;
    width: min(620px, calc(100% - 48px));
}

.eyebrow,
.section-kicker,
.type-pill,
.rank-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 7px 12px;
    background: var(--amber);
    color: #1c1917;
}

.section-kicker,
.type-pill,
.rank-badge {
    padding: 5px 10px;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    max-width: 560px;
    color: #d6d3d1;
    font-size: 1.1rem;
}

.hero-meta,
.card-meta,
.detail-meta,
.line-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.hero-meta {
    margin: 24px 0;
    color: #e7e5e4;
    font-weight: 700;
}

.hero-meta span:first-child,
.score-text {
    color: #fbbf24;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #1c1917;
    background: var(--amber);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

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

.btn-primary:hover {
    background: #fbbf24;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-ghost.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.quick-search {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.search-panel,
.catalog-tools,
.category-overview-card,
.glow-block,
.rank-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(28, 25, 23, 0.88);
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 380px);
    gap: 22px;
    align-items: center;
    padding: 24px;
    backdrop-filter: blur(16px);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel p,
.page-title p,
.category-overview-head p,
.footer-inner p {
    color: var(--muted);
}

input[type="search"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(12, 10, 9, 0.74);
    color: #fff;
    padding: 0 16px;
}

input[type="search"]:focus {
    border-color: rgba(245, 158, 11, 0.68);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.chip-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row {
    margin-top: 18px;
}

.chip-row a,
.filter-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e7e5e4;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip-row a:hover,
.filter-chip:hover,
.filter-chip.is-active {
    border-color: rgba(245, 158, 11, 0.58);
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.page-section {
    padding: 76px 0 0;
}

.subpage-main,
.detail-main {
    padding-top: 44px;
}

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

.section-head h2,
.page-title h1,
.category-overview-head h2,
.detail-content h1 {
    margin: 8px 0 0;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-head > a {
    color: #fbbf24;
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

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

.movie-card[hidden] {
    display: none !important;
}

.movie-card a {
    height: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    background: var(--panel-soft);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.poster {
    position: relative;
    overflow: hidden;
    background: #1c1917;
}

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

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

.tall-poster {
    aspect-ratio: 3 / 4;
}

.wide-poster {
    aspect-ratio: 16 / 9;
}

.small-poster {
    width: 142px;
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
}

.rank-poster {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    flex: 0 0 auto;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18));
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 5px 8px;
}

.card-body {
    padding: 14px;
}

.card-body h3,
.card-overlay h3,
.horizontal-info h3,
.rank-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}

.card-body p,
.card-overlay p,
.horizontal-info p,
.rank-info p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.88rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    font-size: 0.78rem;
}

.card-meta.split {
    justify-content: space-between;
}

.card-large a {
    position: relative;
}

.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
}

.card-overlay h3 {
    margin-top: 10px;
    font-size: 1.35rem;
}

.card-horizontal a {
    display: flex;
}

.horizontal-info {
    padding: 14px 14px 14px 0;
}

.line-top {
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.glow-block {
    padding: 30px;
    background: linear-gradient(135deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.94));
}

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

.category-card {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    display: flex;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #1c1917;
    padding: 18px;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-card:hover img {
    opacity: 0.48;
    transform: scale(1.06);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.18));
}

.category-card div {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-card p {
    margin: 6px 0 0;
    color: #d6d3d1;
    font-size: 0.86rem;
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 52px 72px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

.rank-num {
    color: #fbbf24;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.rank-info p {
    max-width: 820px;
}

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

.page-title {
    padding: 34px 0 22px;
}

.page-title h1 {
    font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.page-title p {
    max-width: 760px;
    font-size: 1.05rem;
}

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

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

.catalog-panel,
.rank-panel {
    padding: 22px;
}

.catalog-tools {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    box-shadow: none;
}

.sticky-tools {
    position: sticky;
    top: 88px;
}

.overview-list {
    display: grid;
    gap: 24px;
    padding-bottom: 54px;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head h2 {
    font-size: 2rem;
}

.detail-layout {
    display: grid;
    gap: 28px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    color: #fff;
    cursor: pointer;
}

.play-cover.is-hidden {
    display: none;
}

.play-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--amber);
    color: #1c1917;
    font-size: 1.7rem;
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.35);
}

.play-cover strong {
    max-width: min(620px, calc(100% - 40px));
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.play-cover em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 800;
}

.detail-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

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

.detail-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.detail-score span {
    color: #fbbf24;
    font-size: 1.4rem;
    font-weight: 900;
}

.detail-score small {
    color: var(--muted);
}

.detail-content {
    max-width: 920px;
}

.detail-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.detail-meta {
    margin: 16px 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 22px;
}

.tag-list span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #e7e5e4;
    padding: 7px 11px;
    font-size: 0.86rem;
}

.lead-text {
    color: #fef3c7;
    font-size: 1.1rem;
}

.detail-content h2 {
    margin: 28px 0 10px;
    font-size: 1.45rem;
}

.detail-content p {
    color: #d6d3d1;
}

.related-section {
    padding-bottom: 76px;
}

.site-footer {
    margin-top: 74px;
    border-top: 1px solid var(--line);
    background: rgba(12, 10, 9, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.footer-inner p {
    margin: 6px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #d6d3d1;
}

.footer-links a:hover {
    color: #fbbf24;
}

@media (max-width: 1060px) {
    .poster-grid,
    .full-grid,
    .mini-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-card {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(28, 25, 23, 0.96);
        padding: 12px;
    }

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

    .site-nav a {
        padding: 11px 8px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-copy {
        bottom: 78px;
    }

    .hero-nav {
        display: none;
    }

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

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

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

    .large-grid,
    .horizontal-grid,
    .category-grid,
    .compact-rank {
        grid-template-columns: 1fr;
    }

    .rank-row a {
        grid-template-columns: 42px 60px 1fr;
        gap: 12px;
    }

    .card-horizontal a {
        display: grid;
        grid-template-columns: 118px 1fr;
    }

    .small-poster {
        width: auto;
    }

    .horizontal-info {
        padding: 12px 12px 12px 0;
    }

    .glow-block,
    .catalog-panel,
    .rank-panel,
    .category-overview-card {
        padding: 18px;
    }
}

@media (max-width: 460px) {
    .container,
    .nav-wrap {
        width: min(100% - 22px, 1180px);
    }

    .poster-grid,
    .full-grid,
    .mini-grid {
        gap: 12px;
    }

    .card-body {
        padding: 11px;
    }

    .card-body p {
        display: none;
    }

    .rank-info p,
    .rank-info .card-meta {
        display: none;
    }
}
