:root {
    color-scheme: dark;
    --bg: #030303;
    --panel: #101014;
    --panel-soft: #18181d;
    --line: #27272f;
    --text: #ffffff;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --blue: #0ea5e9;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0, rgba(245, 158, 11, 0.14), transparent 34rem),
        radial-gradient(circle at 90% 16%, rgba(234, 88, 12, 0.11), transparent 30rem),
        linear-gradient(180deg, #000000 0%, #111116 46%, #030303 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 3, 3, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.26);
}

.logo-text {
    font-size: 1.25rem;
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 300px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.home-search input,
.filter-bar input {
    width: 100%;
    min-width: 0;
    color: #ffffff;
    background: transparent;
    outline: none;
    border: 0;
}

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

.header-search button,
.home-search button {
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay,
.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-kicker,
.page-hero span,
.focus-copy span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.22);
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.7rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 30px;
    color: #d4d4d8;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.28);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.ghost-button.full {
    width: 100%;
    margin-top: 18px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.focus-strip,
.content-section {
    padding: 72px 0;
}

.focus-grid,
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.focus-copy {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(24, 24, 29, 0.96), rgba(13, 13, 16, 0.96));
    box-shadow: var(--shadow);
}

.focus-copy h2,
.section-heading h2,
.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.focus-copy p,
.page-hero p {
    color: var(--muted);
    margin: 0;
}

.home-search,
.filter-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.home-search input,
.filter-bar input {
    padding: 12px 14px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(245, 158, 11, 0.45);
}

.compact-card img {
    width: 112px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #111111;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    color: var(--muted-2);
    font-size: 0.86rem;
    font-style: normal;
}

.section-dark {
    background: linear-gradient(180deg, rgba(24, 24, 29, 0.55), rgba(3, 3, 3, 0.4));
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(24, 24, 29, 0.88);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    background: rgba(32, 32, 38, 0.96);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080808;
}

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

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

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.94);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted-2);
    font-size: 0.86rem;
}

.card-meta a {
    color: #fbbf24;
}

.card-body h2 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.32;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.info-card a:hover {
    color: #fbbf24;
}

.card-body p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.94rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    color: #e7e5e4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
}

.large-tags span {
    font-size: 0.9rem;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-cloud {
    margin-top: 24px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-chip:hover,
.category-chip.is-active {
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(245, 158, 11, 0.16);
    transform: translateY(-2px);
}

.ranking-box,
.story-card,
.info-card,
.category-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(24, 24, 29, 0.88);
    box-shadow: var(--shadow);
}

.ranking-box {
    padding: 24px;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ranking-title span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 900;
}

.ranking-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.ranking-box ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-box li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ranking-box li span {
    color: #fbbf24;
    font-weight: 900;
}

.ranking-box li a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-box li em {
    color: var(--muted-2);
    font-style: normal;
    font-size: 0.85rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 56px;
    background:
        radial-gradient(circle at 20% 0, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(180deg, #08080a 0%, #030303 100%);
}

.compact-hero .container {
    max-width: 960px;
}

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

.category-panel {
    padding: 22px;
}

.category-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.category-panel-head span {
    font-size: 1.35rem;
    font-weight: 900;
}

.category-panel-head strong {
    color: #fbbf24;
    font-size: 0.92rem;
}

.category-panel p {
    margin: 12px 0 18px;
    color: var(--muted);
}

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

.filter-bar.large-filter {
    margin-bottom: 20px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(24, 24, 29, 0.78);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-cover img {
    width: 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
}

.rank-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-2);
    font-size: 0.9rem;
}

.rank-info div a {
    color: #fbbf24;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

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

.detail-poster img {
    width: 280px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: #d4d4d8;
    font-size: 1.12rem;
}

.detail-copy .primary-button {
    margin-top: 22px;
}

.player-section {
    padding: 52px 0 20px;
    background: #000000;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.86)),
        radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 28rem);
}

.play-ring {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 60px rgba(245, 158, 11, 0.34);
    font-size: 2rem;
}

.player-cover strong,
.player-cover small {
    position: relative;
    z-index: 1;
}

.player-cover strong {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.player-cover small {
    margin-top: 8px;
    color: #d4d4d8;
    font-size: 1rem;
}

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.story-card,
.info-card {
    padding: 26px;
}

.story-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0 0 28px;
    color: #d4d4d8;
    font-size: 1.04rem;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.info-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.info-card dt {
    color: var(--muted-2);
}

.info-card dd {
    margin: 0;
    color: #ffffff;
}

.info-card a {
    color: #fbbf24;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .header-search {
        display: none;
    }

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

    .focus-grid,
    .split-layout,
    .detail-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

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

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

    .hero {
        min-height: 640px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 96px;
    }

    .focus-strip,
    .content-section {
        padding: 48px 0;
    }

    .movie-grid,
    .movie-grid.four-cols,
    .category-panels {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-search {
        flex-direction: column;
    }

    .compact-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .compact-card img {
        width: 96px;
    }

    .rank-row {
        grid-template-columns: 44px minmax(90px, 130px) minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
    }

    .rank-cover img {
        width: 130px;
    }

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

    .detail-poster img {
        width: min(260px, 100%);
    }

    .detail-hero {
        padding-top: 38px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .play-ring {
        width: 70px;
        height: 70px;
    }
}

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

    .logo-text {
        font-size: 1.05rem;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

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

    .rank-cover {
        display: none;
    }

    .info-card dl {
        grid-template-columns: 1fr;
    }
}
