:root {
    --paper: #fffbeb;
    --paper-deep: #fef3c7;
    --ink: #43280c;
    --muted: #8a5a18;
    --line: #f2d08a;
    --brand: #b45309;
    --brand-dark: #78350f;
    --brand-soft: #f59e0b;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(120, 53, 15, 0.18);
    --soft-shadow: 0 10px 28px rgba(120, 53, 15, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, var(--paper) 48%, #fffaf0 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(180, 83, 9, 0.18);
    background: rgba(255, 251, 235, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    white-space: nowrap;
}

.logo span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff7ed;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-soft));
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #7c4a0f;
    font-weight: 700;
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--brand-dark);
    background: #fde68a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-search {
    position: relative;
    width: 270px;
}

.global-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid #f5d28d;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    outline: none;
    padding: 12px 14px;
    font-weight: 650;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 430px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 18px;
    background: #fffefa;
    box-shadow: var(--shadow);
}

.search-results.open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #ffedd5;
}

.search-result-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--paper-deep);
}

.search-result-item b,
.search-result-item em {
    display: block;
}

.search-result-item b {
    font-size: 14px;
    color: var(--brand-dark);
}

.search-result-item em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--brand-dark);
    background: #fde68a;
    font-size: 22px;
    font-weight: 900;
}

.mobile-nav {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 22px;
    background: #fff8e1;
    box-shadow: var(--soft-shadow);
}

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

.mobile-search {
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: min(1220px, calc(100% - 32px));
    min-height: 620px;
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 36px;
    background: var(--brand-dark);
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(1.16);
    transform: scale(1.12);
    opacity: 0.48;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(67, 40, 12, 0.96), rgba(67, 40, 12, 0.66), rgba(67, 40, 12, 0.32)),
        radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.32), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 56px;
}

.hero-copy {
    max-width: 710px;
    color: #fff7ed;
}

.eyebrow,
.section-heading span,
.panel-heading span,
.sub-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 247, 237, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

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

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

.primary-btn {
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 16px 32px rgba(146, 64, 14, 0.28);
}

.ghost-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 247, 237, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.24);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 8px solid rgba(255, 247, 237, 0.18);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--paper-deep);
}

.hero-poster span,
.card-play {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(120, 53, 15, 0.82);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.44);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 36px;
    background: #fbbf24;
}

.category-strip {
    width: min(1220px, calc(100% - 32px));
    margin: -24px auto 0;
    position: relative;
    z-index: 10;
}

.strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(180, 83, 9, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.strip-inner strong {
    color: var(--brand-dark);
    margin-right: 4px;
}

.strip-inner a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #7c4a0f;
    background: #fef3c7;
    font-size: 14px;
    font-weight: 800;
}

.content-section {
    width: min(1220px, calc(100% - 32px));
    margin: 72px auto;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h2,
.panel-heading h2,
.sub-hero h1,
.story-card h2 {
    margin: 10px 0 0;
    color: var(--brand-dark);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.sub-hero p,
.category-tile p,
.category-overview-card p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 83, 9, 0.38);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--paper-deep);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1.34;
    font-weight: 950;
}

.movie-card p {
    min-height: 50px;
    margin: 0 0 12px;
    color: #765022;
    font-size: 14px;
    line-height: 1.7;
}

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

.ranking-panel,
.story-card,
.category-overview-card,
.sub-hero,
.detail-hero,
.player-shell {
    border: 1px solid rgba(180, 83, 9, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.ranking-panel {
    padding: 22px;
}

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

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-heading h2 {
    font-size: 26px;
}

.panel-heading a {
    color: var(--brand);
    font-weight: 900;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 34px 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff8e1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.mini-card strong {
    color: var(--brand);
    font-size: 18px;
    font-weight: 950;
}

.mini-card img {
    width: 58px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--paper-deep);
}

.mini-card b,
.mini-card em {
    display: block;
}

.mini-card b {
    color: var(--brand-dark);
    line-height: 1.35;
}

.mini-card em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 196px;
    padding: 24px;
    border: 1px solid rgba(180, 83, 9, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 12rem),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-title-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #92400e);
    font-weight: 900;
}

.category-tile h3,
.category-title-link strong {
    display: block;
    margin-top: 16px;
    color: var(--brand-dark);
    font-size: 26px;
    font-weight: 950;
}

.category-overview-card .small {
    margin-top: 18px;
}

.category-overview-card .mini-card {
    grid-template-columns: 24px 48px 1fr;
    padding: 8px;
}

.category-overview-card .mini-card img {
    width: 48px;
    height: 62px;
}

.sub-hero,
.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: 44px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 22rem),
        rgba(255, 255, 255, 0.9);
}

.sub-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 12px;
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-head-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    margin-top: 30px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: var(--paper-deep);
}

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

.detail-intro h1 {
    margin: 16px 0;
    color: var(--brand-dark);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 760px;
    color: #765022;
    font-size: 18px;
    line-height: 1.9;
}

.detail-intro .ghost-btn {
    color: var(--brand-dark);
    border-color: rgba(180, 83, 9, 0.28);
    background: #fff7ed;
}

.player-section {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #1c1207;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff7ed;
    background: linear-gradient(180deg, rgba(67, 40, 12, 0.28), rgba(28, 18, 7, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff7ed;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
    font-size: 32px;
}

.player-overlay strong {
    font-size: 20px;
    font-weight: 950;
}

.detail-content {
    display: grid;
    gap: 20px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    font-size: 28px;
}

.story-card p {
    margin: 14px 0 0;
    color: #765022;
    line-height: 1.95;
    font-size: 17px;
}

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

.info-card div {
    padding: 14px;
    border-radius: 18px;
    background: #fff8e1;
}

.info-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.info-card dd {
    margin: 4px 0 0;
    color: var(--brand-dark);
    font-weight: 850;
}

.site-footer {
    width: min(1220px, calc(100% - 32px));
    margin: 90px auto 28px;
    padding: 26px;
    border-top: 1px solid rgba(180, 83, 9, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--brand-dark);
    font-size: 18px;
}

.site-footer nav {
    display: flex;
    gap: 18px;
    font-weight: 850;
}

.is-hidden {
    display: none !important;
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content,
    .split-section,
    .detail-head-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 320px;
    }

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

    .sticky-panel {
        position: static;
    }
}

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

    .logo strong {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions > .global-search {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding: 28px;
        gap: 28px;
        align-content: center;
    }

    .hero-copy p,
    .detail-intro p {
        font-size: 16px;
    }

    .hero-dots {
        left: 28px;
        bottom: 24px;
    }

    .content-section,
    .sub-hero,
    .detail-hero,
    .player-section,
    .site-footer,
    .category-strip,
    .hero-carousel {
        width: min(100% - 22px, 1220px);
    }

    .sub-hero,
    .detail-hero {
        padding: 26px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .filter-bar,
    .info-card dl {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 280px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
