:root {
    color-scheme: dark;
    --page: #030712;
    --panel: #111827;
    --panel-soft: rgba(17, 24, 39, 0.78);
    --panel-line: rgba(255, 255, 255, 0.1);
    --text: #f9fafb;
    --muted: #a7b0c0;
    --muted-strong: #d1d5db;
    --orange: #f97316;
    --orange-light: #fb923c;
    --red: #dc2626;
    --yellow: #facc15;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 28px 70px rgba(0, 0, 0, 0.38);
    --content: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(220, 38, 38, 0.16), transparent 26rem),
        var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: var(--content);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.3);
}

.brand-text,
.footer-brand {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--orange-light), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px 18px;
    background: rgba(17, 24, 39, 0.98);
}

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

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #030712;
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    transform: scale(1.06);
    filter: saturate(1.16);
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.97), rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.95)),
        linear-gradient(0deg, #030712 0%, transparent 34%, #030712 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--content);
    min-height: 680px;
    margin: 0 auto;
    padding: 72px 22px 84px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 54px;
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange-light);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-summary,
.page-hero p,
.lead-text {
    color: #d1d5db;
    font-size: 1.08rem;
}

.hero-summary {
    max-width: 650px;
    margin: 22px 0 0;
}

.hero-tags,
.tag-line,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transform: rotate(1deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
    width: 38px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.section-block {
    max-width: var(--content);
    margin: 0 auto;
    padding: 62px 22px;
}

.section-dark {
    max-width: none;
    padding-left: calc((100% - var(--content)) / 2 + 22px);
    padding-right: calc((100% - var(--content)) / 2 + 22px);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.42), rgba(3, 7, 18, 0));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.55rem);
    line-height: 1.1;
}

.section-link {
    min-height: 40px;
    padding: 0 16px;
    color: #fff;
    background: rgba(249, 115, 22, 0.13);
    border: 1px solid rgba(249, 115, 22, 0.34);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 244px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

.movie-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.46);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.movie-card.hidden,
.rank-row.hidden {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
    filter: brightness(0.78);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 850;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    color: var(--yellow);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #fff;
    font-size: 1rem;
    font-weight: 820;
    line-height: 1.42;
}

.movie-title:hover,
.rank-info a:hover,
.related-card:hover span {
    color: var(--orange-light);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 9px 0;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: #64748b;
}

.movie-card-body p,
.category-pill span,
.category-card p,
.story-card p,
.footer-inner p,
.rank-info p,
.related-card small {
    color: var(--muted);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.88rem;
}

.tag-line {
    margin-top: 12px;
}

.tag-line span {
    min-height: 24px;
    padding: 3px 8px;
    background: rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    font-size: 0.75rem;
}

.category-grid,
.category-overview-grid,
.related-grid {
    display: grid;
    gap: 18px;
}

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

.category-pill,
.category-card,
.story-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-pill {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.category-pill strong,
.category-card h2 {
    color: #fff;
    font-size: 1.08rem;
}

.category-pill:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.48);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.compact-hero {
    max-width: var(--content);
    margin: 0 auto;
    padding: 64px 22px 34px;
}

.compact-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.compact-hero p:last-child {
    max-width: 760px;
    margin: 16px 0 0;
}

.search-panel {
    max-width: var(--content);
    margin: 0 auto;
    padding: 18px 22px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.76);
}

.search-box span {
    color: var(--orange-light);
    font-size: 1.4rem;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

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

.filter-select {
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    outline: 0;
    background: #111827;
    color: #fff;
}

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

.category-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow: hidden;
    border-radius: 16px;
}

.category-covers img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.category-card h2,
.category-card p {
    margin: 0;
}

.category-card span {
    color: var(--orange-light);
    font-weight: 820;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.72);
}

.rank-number {
    color: var(--yellow);
    font-size: 1.7rem;
    font-weight: 900;
    text-align: center;
}

.rank-cover img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info a {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 840;
}

.rank-info p {
    margin: 6px 0 0;
}

.heat-score {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    font-weight: 850;
    white-space: nowrap;
}

.detail-hero {
    min-height: 560px;
    background: #030712;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(2px) saturate(1.1);
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: var(--content);
    min-height: 560px;
    margin: 0 auto;
    padding: 62px 22px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

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

.detail-meta {
    margin: 18px 0 12px;
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    max-width: var(--content);
    margin: -34px auto 0;
    padding: 0 22px 34px;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    box-shadow: var(--shadow-soft);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.74));
}

.player-overlay span {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
    font-size: 1.8rem;
}

.player-overlay strong {
    font-size: 1.1rem;
}

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

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-top: 30px;
}

.story-card {
    padding: 24px;
}

.story-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.3rem;
}

.story-card p {
    margin: 0;
}

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

.related-card {
    display: grid;
    gap: 9px;
    border-radius: var(--radius-lg);
    padding: 10px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.09);
}

.related-card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.related-card span {
    color: #fff;
    font-weight: 780;
}

.related-card small {
    font-size: 0.82rem;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #111827;
}

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

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
}

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

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

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

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

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

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

    .menu-button {
        display: flex;
    }

    .hero-content,
    .detail-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-content {
        padding-top: 46px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 300px;
    }

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

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

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

    .filter-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .heat-score {
        grid-column: 3;
        justify-self: start;
    }

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

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

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

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

    .hero-content {
        min-height: 720px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 2.45rem;
    }

    .section-block,
    .compact-hero,
    .search-panel,
    .player-section,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

    .scroll-row {
        grid-auto-columns: 214px;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        font-size: 1.25rem;
    }
}
