:root {
    --gold-50: #fff7ed;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;
    --ink: #1f2937;
    --muted: #6b7280;
    --paper: #ffffff;
    --soft: #fffaf0;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --shadow-strong: 0 22px 65px rgba(146, 64, 14, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.15), transparent 36rem),
        linear-gradient(135deg, #fffbeb 0%, #ffffff 45%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    height: 4rem;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background-image: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.28);
}

.nav-inner {
    width: min(1180px, calc(100% - 2rem));
    height: 4rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link,
.mobile-link {
    color: #fff;
    font-weight: 650;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff8db;
    background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.25rem auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 0.75rem;
    padding: 0.5rem;
    border-radius: 0 0 1rem 1rem;
    background: rgba(180, 83, 9, 0.95);
}

.mobile-panel.is-open {
    display: grid;
    gap: 0.25rem;
}

.page-shell {
    min-height: calc(100vh - 4rem);
}

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

.inner-page,
.detail-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.28) 100%),
        linear-gradient(0deg, rgba(120, 53, 15, 0.62), rgba(245, 158, 11, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2rem));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0 7rem;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 8vw, 5.9rem);
    line-height: 0.95;
    font-weight: 900;
    text-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.hero-line {
    max-width: 760px;
    color: #fff8db;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.3rem 0;
}

.hero-tags span {
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    color: #fff9db;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.88rem;
}

.hero-actions,
.detail-facts,
.movie-stats,
.movie-meta,
.filter-row,
.prev-next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-primary,
.btn-ghost,
.search-bar button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.9rem;
    padding: 0.75rem 1.15rem;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary,
.search-bar button,
.hero-search button {
    color: #fff;
    background-image: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    box-shadow: 0 16px 35px rgba(217, 119, 6, 0.3);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.search-bar button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.hero-poster {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    display: block;
    aspect-ratio: 3 / 4;
}

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

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero-controls > button {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    font-size: 1.4rem;
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    padding: 0;
    opacity: 0.65;
}

.hero-dot.is-active {
    width: 1.7rem;
    opacity: 1;
    background: #fff;
}

.hero-search {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 6.3rem;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.hero-search input,
.search-bar input,
.filter-row select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 0.9rem;
    padding: 0.72rem 0.9rem;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.content-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 3.5rem;
}

.inner-page .content-section,
.detail-page .content-section {
    width: 100%;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
    font-weight: 900;
    color: #111827;
}

.section-heading p {
    max-width: 720px;
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: var(--gold-700);
    font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.story-card,
.podium-card,
.filter-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.13);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
}

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.podium-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

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

.category-tile span,
.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile strong {
    color: #fde68a;
    margin: 0.2rem 0;
}

.category-tile p {
    margin: 0;
    color: #fef3c7;
    font-size: 0.88rem;
    line-height: 1.55;
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card[hidden] {
    display: none !important;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
}

.movie-poster::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.movie-card-large .movie-poster::before {
    aspect-ratio: 16 / 11;
}

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

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

.duration,
.rank-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
}

.rank-badge {
    left: 0.65rem;
    right: auto;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
}

.movie-card-body {
    padding: 1rem;
}

.pill {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.65rem;
    padding: 0.26rem 0.58rem;
    border-radius: 999px;
    color: var(--gold-700);
    background: var(--gold-100);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 0.55rem;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--gold-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.15rem;
    margin: 0 0 0.75rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-stats {
    gap: 0.45rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.movie-stats {
    justify-content: space-between;
    margin-top: 0.7rem;
    color: var(--gold-700);
    font-weight: 800;
}

.warm-panel,
.sun-panel {
    padding: 1.5rem;
    border-radius: 1.4rem;
}

.warm-panel {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.sun-panel {
    background: linear-gradient(90deg, #fef3c7, #fffbeb);
}

.page-hero,
.detail-hero {
    margin-bottom: 2rem;
    border-radius: 1.6rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(217, 119, 6, 0.96)),
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.24), transparent 30rem);
    box-shadow: var(--shadow-strong);
}

.simple-hero,
.category-hero {
    padding: clamp(2rem, 5vw, 4rem);
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 950;
}

.page-hero p,
.detail-copy p {
    max-width: 780px;
    margin: 0 0 1.25rem;
    color: #fff8db;
    line-height: 1.8;
    font-size: 1.08rem;
}

.filter-panel {
    margin-bottom: 1.4rem;
    padding: 1rem;
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.filter-row label {
    display: grid;
    min-width: 150px;
    flex: 1;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-count,
.empty-state {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-weight: 700;
}

.empty-state {
    padding: 1rem;
    border-radius: 0.9rem;
    background: #fff7ed;
    color: var(--gold-800);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.8rem;
}

.category-overview-card h2 {
    margin: 0 0 0.5rem;
    font-weight: 900;
}

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

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.podium-card {
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.podium-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-800));
    font-weight: 900;
}

.podium-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1rem;
}

.podium-card h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.podium-card p {
    color: var(--muted);
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--muted);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--gold-700);
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    align-items: center;
}

.detail-poster {
    border-radius: 1.3rem;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    background: var(--gold-100);
}

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

.detail-facts span {
    padding: 0.48rem 0.7rem;
    border-radius: 0.8rem;
    color: #fff8db;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    padding: 1.25rem;
    border-radius: 1.4rem;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.player-section .section-heading h2,
.player-section .section-heading p {
    color: #fff;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #000;
}

.player-frame::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-overlay,
.player-message {
    position: absolute;
}

.movie-video {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #fff;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 4.6rem;
    height: 4.6rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-700));
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.45);
    font-size: 1.8rem;
}

.player-message {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    color: #fde68a;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.story-card {
    padding: 1.4rem;
}

.story-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.5rem;
    font-weight: 900;
}

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

.prev-next {
    justify-content: space-between;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.prev-next a {
    color: var(--gold-700);
    font-weight: 850;
}

.site-footer {
    color: #fff;
    background-image: linear-gradient(135deg, #92400e, #78350f);
}

.footer-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-grid h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #fde68a;
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(253, 230, 138, 0.22);
    text-align: center;
}

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

    .menu-toggle {
        display: inline-block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-poster {
        display: none;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

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

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

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

@media (max-width: 760px) {
    .hero-carousel,
    .hero-content {
        min-height: 700px;
    }

    .hero-content {
        padding-bottom: 9rem;
    }

    .hero-search,
    .search-bar {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .movie-grid,
    .feature-grid,
    .compact-grid,
    .library-grid,
    .category-overview-grid,
    .podium-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-poster {
        max-width: 320px;
        margin: 0 auto;
    }
}
