:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --panel: rgba(28, 25, 23, 0.82);
    --panel-solid: #1c1917;
    --panel-soft: rgba(41, 37, 36, 0.72);
    --line: rgba(245, 158, 11, 0.18);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #fafaf9;
    --muted: #d6d3d1;
    --subtle: #a8a29e;
    --amber: #f59e0b;
    --amber-strong: #f97316;
    --amber-soft: rgba(245, 158, 11, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at 84% 10%, rgba(180, 83, 9, 0.16), transparent 30rem),
        linear-gradient(180deg, #0c0a09 0%, #11100f 42%, #0c0a09 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(12, 10, 9, 0.78);
    backdrop-filter: blur(20px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #1c1000;
    background: linear-gradient(135deg, #fef3c7, var(--amber), var(--amber-strong));
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.brand-name {
    font-size: 1.15rem;
}

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

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

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #fff7ed;
    background: var(--amber-soft);
}

.nav-link:hover,
.mobile-link:hover {
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.header-search input,
.mobile-search input,
.filter-row input,
.filter-row select {
    min-width: 0;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    width: 210px;
    padding: 8px 4px 8px 10px;
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    color: #1c1000;
    background: var(--amber);
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.94);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    height: min(680px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: #11100f;
}

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

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

.hero-bg,
.detail-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,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.18) 100%),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.35) 48%, rgba(12, 10, 9, 0.54) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    padding-bottom: 88px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.compact-hero h1,
.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(2.4rem, 5vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-copy p,
.compact-hero p,
.detail-one-line {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.meta-badge {
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(245, 158, 11, 0.12);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #1c1000;
    background: linear-gradient(135deg, #fef3c7, var(--amber), var(--amber-strong));
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
    color: #ffedd5;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.btn.full {
    width: 100%;
}

.hero-cover {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    color: #fff7ed;
    background: rgba(12, 10, 9, 0.52);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 2rem;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.hero-thumbs {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-thumb {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(28, 25, 23, 0.72);
    backdrop-filter: blur(16px);
}

.hero-thumb.is-active {
    color: #fff7ed;
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.14);
}

.hero-thumb img {
    width: 46px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.section-block {
    padding: 56px 0;
}

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

.section-heading h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 0;
    max-width: 720px;
    color: var(--subtle);
    line-height: 1.8;
}

.section-more {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.04);
}

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

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.42);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.035));
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1c1917;
}

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

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

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #1c1000;
    background: linear-gradient(135deg, #fef3c7, var(--amber));
    font-weight: 900;
}

.movie-card-body {
    padding: 14px;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 0.76rem;
}

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

.movie-card h3 a:hover {
    color: #fbbf24;
}

.movie-card p {
    min-height: 42px;
    margin: 0;
    color: var(--subtle);
    font-size: 0.88rem;
    line-height: 1.55;
}

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

.tag-row span,
.detail-tags a {
    padding: 5px 8px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.74rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.hot-rank-panel,
.article-card,
.filter-panel,
.category-overview-panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hot-rank-panel {
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

.hot-rank-panel h2 {
    margin: 10px 0;
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

.hot-rank-panel p {
    color: var(--subtle);
    line-height: 1.7;
}

.rank-mini-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.mini-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.mini-link:hover {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.12);
}

.mini-link span:nth-child(2),
.mini-link span:first-child:last-of-type {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-rank {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #1c1000;
    background: var(--amber);
    font-weight: 900;
    font-style: normal;
}

.mini-link em {
    color: var(--subtle);
    font-size: 0.8rem;
    font-style: normal;
}

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

.category-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
}

.category-card-cover {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
}

.category-card-cover img,
.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3,
.category-overview-text h2 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.category-card p,
.category-overview-text p {
    color: var(--subtle);
    line-height: 1.7;
}

.category-card strong,
.category-count {
    display: inline-flex;
    margin-bottom: 12px;
    color: #fed7aa;
}

.category-samples {
    display: grid;
    gap: 8px;
}

.page-hero {
    position: relative;
    padding: 86px 0 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.28), transparent 34rem),
        linear-gradient(180deg, rgba(28, 25, 23, 0.95), rgba(12, 10, 9, 0.2));
}

.compact-hero h1 {
    max-width: 860px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 150px 150px 150px;
    gap: 12px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.filter-row select option {
    color: #111827;
}

.filter-count {
    margin-top: 12px;
    color: var(--subtle);
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-panel {
    display: grid;
    grid-template-columns: 300px 180px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    align-items: center;
}

.category-overview-cover {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 2 / 3;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-links a {
    padding: 10px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.04);
}

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

.detail-layout {
    position: relative;
    padding: 44px 0 52px;
}

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

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

.detail-main {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    max-width: 850px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.player-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #1c1000;
    background: linear-gradient(135deg, #fef3c7, var(--amber), var(--amber-strong));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-weight: 900;
}

.play-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff7ed;
    background: rgba(12, 10, 9, 0.82);
}

.player-shell.is-playing .play-button {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    color: var(--muted);
    font-size: 0.9rem;
}

.article-card {
    padding: 26px;
}

.article-card p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 2;
}

.article-card h2 {
    margin-top: 24px;
    font-size: 1.6rem;
}

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

.footer-inner {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    gap: 14px;
    color: var(--subtle);
}

.footer-brand {
    color: var(--text);
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

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

    .split-section,
    .category-overview-panel {
        grid-template-columns: 1fr;
    }

    .hot-rank-panel,
    .sticky-panel {
        position: static;
    }

    .hero-content {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 160px;
    }

    .hero-cover {
        max-width: 220px;
        transform: none;
    }

    .hero-control {
        display: none;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        bottom: 18px;
    }

    .hero-dots {
        bottom: 138px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .category-grid,
    .category-card,
    .detail-main {
        grid-template-columns: 1fr;
    }

    .category-card-cover {
        width: min(220px, 100%);
    }

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

    .detail-poster {
        max-width: 260px;
    }
}

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

    .brand-name {
        font-size: 1rem;
    }

    .hero-copy h1,
    .compact-hero h1,
    .detail-info h1 {
        font-size: 2.4rem;
    }

    .hero-thumbs {
        width: calc(100% - 32px);
    }

    .movie-grid,
    .focus-grid,
    .large-list,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .movie-poster {
        height: 100%;
    }

    .movie-card p {
        min-height: auto;
    }

    .player-shell {
        border-radius: var(--radius-md);
    }
}
