:root {
    --bg: #0c0a09;
    --bg-soft: #1c1917;
    --panel: #292524;
    --panel-2: #3b302a;
    --text: #fff7ed;
    --muted: #d6d3d1;
    --muted-2: #a8a29e;
    --line: rgba(251, 191, 36, 0.18);
    --amber: #d97706;
    --amber-light: #f59e0b;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 2%, rgba(245, 158, 11, 0.20), transparent 32rem),
        linear-gradient(180deg, #1c1917 0%, #0c0a09 42%, #171412 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.85rem clamp(1rem, 4vw, 2.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    color: #431407;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.36);
}

.main-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a,
.mobile-nav a {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: all 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #451a03;
    background: #fbbf24;
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
    display: none;
    padding: 0 1rem 1rem;
    flex-wrap: wrap;
}

.container {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    width: min(1440px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
}

.hero-slider,
.hero-panel,
.page-hero,
.detail-top,
.player-shell,
.article-section,
.filter-bar,
.category-card,
.category-tile,
.movie-card,
.intro-block {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(41, 37, 36, 0.72);
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-radius: 2rem;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.55s ease, transform 0.75s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.58) 45%, rgba(12, 10, 9, 0.15) 100%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.96) 0%, transparent 48%);
}

.hero-content {
    position: absolute;
    left: clamp(1.25rem, 5vw, 4rem);
    bottom: clamp(2rem, 8vw, 5rem);
    max-width: 760px;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: 0.92rem;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 1.4rem;
    color: rgba(255, 247, 237, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.24);
    background: rgba(217, 119, 6, 0.13);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.8rem 1.35rem;
    border-radius: 0.95rem;
    font-weight: 900;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.btn.primary {
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(12, 10, 9, 0.44);
    cursor: pointer;
    font-size: 2rem;
}

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    gap: 0.45rem;
}

.hero-dots button {
    width: 0.7rem;
    height: 0.7rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.active {
    width: 2rem;
    background: #fbbf24;
}

.hero-panel {
    min-height: 680px;
    overflow: hidden;
    border-radius: 2rem;
    padding: 1rem;
}

.panel-title {
    padding: 0.4rem 0.35rem 0.85rem;
    color: #fde68a;
    font-size: 1.1rem;
    font-weight: 900;
}

.stack-list {
    display: grid;
    gap: 1rem;
}

.intro-block {
    margin-top: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.intro-block h1,
.page-hero h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.intro-block p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

section.container {
    margin-top: 3rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted-2);
}

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

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

.category-tile {
    min-height: 150px;
    padding: 1.35rem;
    border-radius: 1.35rem;
    background:
        linear-gradient(145deg, rgba(251, 191, 36, 0.17), rgba(255, 255, 255, 0.05)),
        rgba(41, 37, 36, 0.68);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.42);
}

.category-tile strong,
.category-card h2 {
    display: block;
    margin: 0 0 0.5rem;
    color: var(--white);
    font-size: 1.25rem;
}

.category-tile span,
.category-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.rank-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.05rem;
}

.movie-card {
    overflow: hidden;
    border-radius: 1.15rem;
    transition: transform 0.22s ease, border-color 0.22s ease;
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.card-small {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 160px;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--panel-2);
}

.card-small .poster-link {
    aspect-ratio: auto;
    min-height: 160px;
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #451a03;
    background: #fbbf24;
    font-weight: 950;
}

.play-chip {
    right: 0.65rem;
    bottom: 0.65rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
}

.rank-badge {
    left: 0.65rem;
    top: 0.65rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    border-radius: 0.65rem;
}

.card-body {
    padding: 0.95rem;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.05rem;
    color: var(--white);
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.05rem;
    margin: 0.55rem 0;
    color: var(--muted-2);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
}

.filter-bar {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 1.15rem;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 220px));
    gap: 0.85rem;
}

.filter-bar label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    outline: none;
    color: var(--white);
    background: rgba(12, 10, 9, 0.56);
    padding: 0 0.9rem;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(251, 191, 36, 0.72);
}

.empty-state {
    display: none;
    padding: 2.5rem;
    text-align: center;
    color: var(--muted-2);
}

.page-main {
    padding-bottom: 4rem;
}

.page-hero {
    margin-top: 1.5rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.20), transparent 28rem),
        linear-gradient(135deg, rgba(68, 64, 60, 0.75), rgba(28, 25, 23, 0.86));
}

.small-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
}

.crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
    color: var(--muted-2);
    font-size: 0.95rem;
}

.crumb a {
    color: #fde68a;
    font-weight: 800;
}

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

.category-card {
    overflow: hidden;
    border-radius: 1.4rem;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 210px;
    overflow: hidden;
}

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

.category-card h2,
.category-card p,
.category-card span {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
}

.category-card h2 {
    margin-top: 1rem;
}

.category-card span {
    display: inline-flex;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    color: #fde68a;
    font-weight: 900;
}

.detail-top {
    margin-top: 1.5rem;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: end;
    margin-top: 1rem;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.4rem;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one {
    max-width: 900px;
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.1rem 0;
}

.detail-meta span {
    border-radius: 0.75rem;
    padding: 0.45rem 0.75rem;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
}

.tag-row.large span {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
}

.detail-info .btn {
    margin-top: 1.4rem;
}

.player-section {
    scroll-margin-top: 90px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 1rem;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.76));
    cursor: pointer;
}

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

.player-overlay span {
    width: clamp(4rem, 10vw, 6.5rem);
    height: clamp(4rem, 10vw, 6.5rem);
    display: grid;
    place-items: center;
    padding-left: 0.2rem;
    border-radius: 999px;
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 18px 48px rgba(217, 119, 6, 0.42);
    font-size: 2.25rem;
}

.player-overlay strong {
    padding: 0 1rem 2rem;
    font-size: clamp(1.1rem, 3vw, 2rem);
    text-align: center;
}

.article-section {
    padding: clamp(1.25rem, 4vw, 2.2rem);
    border-radius: 1.4rem;
}

.article-section h2 {
    margin: 0.4rem 0 0.8rem;
    color: #fde68a;
    font-size: 1.65rem;
}

.article-section p {
    color: var(--muted);
    font-size: 1.04rem;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 10, 9, 0.75);
}

.footer-inner {
    width: min(1440px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted-2);
}

.footer-inner strong {
    color: var(--white);
}

.footer-inner p {
    margin: 0.35rem 0 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    color: #fde68a;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }

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

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

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

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .mobile-nav.open {
        display: flex;
    }

    .hero,
    .hero-slider {
        min-height: 560px;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

    .detail-poster {
        width: min(300px, 70vw);
    }
}

@media (max-width: 620px) {
    .nav-shell {
        padding-inline: 1rem;
    }

    .hero,
    .hero-slider {
        width: min(100% - 1rem, 1440px);
        min-height: 520px;
        border-radius: 1.25rem;
    }

    .hero-content {
        left: 1.1rem;
        right: 1.1rem;
        bottom: 1.8rem;
    }

    .hero-panel {
        width: min(100% - 1rem, 1440px);
        margin: 0 auto;
        border-radius: 1.25rem;
    }

    .container {
        width: min(100% - 1rem, 1440px);
    }

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

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

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

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        min-height: auto;
        font-size: 0.95rem;
    }

    .card-body p {
        min-height: auto;
        font-size: 0.82rem;
    }

    .tag-row span:nth-child(n + 3) {
        display: none;
    }

    .category-covers {
        height: 150px;
    }
}
