:root {
    color-scheme: dark;
    --bg: #17120d;
    --bg-soft: #241810;
    --bg-panel: rgba(42, 31, 23, 0.82);
    --stone: #f8f3ea;
    --muted: #c6b59f;
    --line: rgba(252, 211, 77, 0.18);
    --amber: #f59e0b;
    --amber-light: #fde68a;
    --amber-deep: #92400e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.22), transparent 26rem),
        radial-gradient(circle at 88% 18%, rgba(146, 64, 14, 0.28), transparent 30rem),
        linear-gradient(180deg, #120d09 0%, #21160f 46%, #14110d 100%);
    color: var(--stone);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(29, 19, 12, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff8e5;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.brand-text {
    font-size: 20px;
    color: var(--amber-light);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fee8b2;
    font-size: 14px;
}

.main-nav a {
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #fff7dc;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-light);
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 12, 8, 0.95) 0%, rgba(17, 12, 8, 0.78) 38%, rgba(17, 12, 8, 0.32) 100%),
        linear-gradient(180deg, rgba(17, 12, 8, 0.16) 0%, rgba(17, 12, 8, 0.92) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    min-height: 78vh;
    margin: 0 auto;
    padding: 120px 24px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 380px);
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(253, 230, 138, 0.25);
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.38);
    color: var(--amber-light);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: #f3e3cf;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffe9b7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

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

.btn.primary {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff9e8;
    box-shadow: 0 12px 34px rgba(245, 158, 11, 0.34);
}

.btn.ghost {
    border: 1px solid rgba(253, 230, 138, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fee8b2;
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    border: 1px solid rgba(253, 230, 138, 0.28);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
    transform: rotate(1.8deg);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.54);
    color: #fff2ca;
    font-size: 13px;
}

.hero-tools {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    width: min(1320px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    background: var(--amber);
}

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

.hero-focus,
.page-main,
.detail-main,
.content-section,
.search-panel {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-focus {
    padding-top: 36px;
    padding-bottom: 12px;
}

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

.focus-title h2,
.section-head h2,
.search-card h2,
.story-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.focus-title p,
.section-head p,
.search-card p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.content-section {
    padding-top: 46px;
    padding-bottom: 12px;
}

.search-panel {
    padding-top: 34px;
}

.search-card {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(253, 230, 138, 0.26);
    border-radius: 18px;
    outline: none;
    background: rgba(0, 0, 0, 0.24);
    color: #fff6dc;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 25;
    display: none;
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(29, 19, 12, 0.98);
    box-shadow: var(--shadow);
}

.search-results.is-visible {
    display: grid;
    gap: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 54px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

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

.category-tile,
.category-overview-card {
    min-height: 144px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.05));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(253, 230, 138, 0.44);
}

.category-tile strong,
.category-overview-title {
    display: block;
    margin-bottom: 10px;
    color: #ffedbd;
    font-size: 20px;
    font-weight: 900;
}

.category-tile span,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.65;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(253, 230, 138, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.23);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(253, 230, 138, 0.42);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.03));
}

.poster-link img,
.detail-poster img,
.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72) 100%);
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.9);
    color: #fff6df;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    right: 10px;
}

.rank-badge {
    left: 10px;
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: #fff4cf;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.38;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin: 8px 0 0;
    color: #d8c0a6;
    font-size: 13px;
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 62px;
    margin: 10px 0 0;
    color: #bca994;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-card.compact .card-line {
    display: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(253, 230, 138, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
}

.rank-titleline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff0be;
    font-size: 18px;
    font-weight: 900;
}

.list-rank {
    min-width: 38px;
    color: var(--amber-light);
}

.rank-info p {
    margin: 9px 0;
    color: var(--muted);
    line-height: 1.7;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-meta span,
.rank-meta strong,
.category-stats span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #efd7aa;
    font-size: 12px;
}

.page-main {
    padding-top: 42px;
    padding-bottom: 60px;
}

.page-hero {
    padding: 54px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 0%, rgba(245, 158, 11, 0.22), transparent 24rem),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.filter-bar {
    max-width: 1320px;
    margin: 34px auto 0;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #efd7aa;
    font-size: 13px;
}

.filter-bar select {
    min-width: 180px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff2cc;
}

.detail-main {
    padding-top: 28px;
    padding-bottom: 60px;
}

.breadcrumb,
.detail-neighbor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
    color: #d9c29c;
    font-size: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.18), transparent 24rem),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
}

.detail-one-line {
    max-width: 820px;
    color: #f2dfc4;
    font-size: 20px;
    line-height: 1.75;
}

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.5));
    cursor: pointer;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44);
    cursor: pointer;
}

.play-button span {
    display: block;
    width: 0;
    height: 0;
    margin: 0 auto;
    transform: translateX(4px);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #fff8de;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 32px;
}

.story-card {
    padding: 24px;
    border: 1px solid rgba(253, 230, 138, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
}

.story-card p {
    margin: 14px 0 0;
    color: #dec7a8;
    line-height: 1.9;
}

.info-table {
    grid-column: span 2;
}

.info-table dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px 16px;
    margin: 18px 0 0;
}

.info-table dt {
    color: var(--amber-light);
    font-weight: 800;
}

.info-table dd {
    margin: 0;
    color: #ddc8ab;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.detail-neighbor {
    justify-content: space-between;
    margin-top: 34px;
}

.category-sample {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: #f5d99e;
    font-size: 13px;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    background: rgba(8, 7, 6, 0.72);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) 1fr;
    gap: 26px;
    color: var(--muted);
}

.footer-logo {
    margin-bottom: 10px;
    color: var(--amber-light);
    font-size: 22px;
    font-weight: 900;
}

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

.footer-links a {
    color: #efd7aa;
}

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

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

@media (max-width: 820px) {
    .header-inner {
        padding: 12px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(29, 19, 12, 0.98);
        box-shadow: var(--shadow);
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 86px;
        gap: 22px;
    }

    .hero-poster {
        width: min(280px, 70vw);
        justify-self: start;
    }

    .search-card,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .info-table {
        grid-column: auto;
    }

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

@media (max-width: 560px) {
    .hero-focus,
    .page-main,
    .detail-main,
    .content-section,
    .search-panel,
    .filter-bar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-tools {
        width: calc(100% - 28px);
    }

    .focus-grid,
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .rank-row {
        grid-template-columns: 74px 1fr;
    }
}
