:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: rgba(255, 255, 255, 0.88);
    --card-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(245, 158, 11, 0.22);
    --amber: #f59e0b;
    --orange: #f97316;
    --gold: #facc15;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(180, 83, 9, 0.16);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.26), transparent 34rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 36rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--orange));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
    font-size: 24px;
    transform: rotate(-4deg);
}

.brand-text {
    display: grid;
}

.brand-text strong {
    font-size: 23px;
    line-height: 1.05;
    background: linear-gradient(90deg, #b45309, var(--orange), #ca8a04);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #9a3412;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.95));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.16);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #92400e;
    border-radius: 99px;
}

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

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.hero-carousel,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(67, 20, 7, 0.92), rgba(154, 52, 18, 0.86) 48%, rgba(245, 158, 11, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.5), transparent 18rem);
    box-shadow: var(--shadow);
}

.hero-carousel::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: -30% 35% 25% -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 62%);
    pointer-events: none;
}

.hero-slide {
    min-height: 610px;
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
    gap: 34px;
    align-items: center;
    padding: 58px;
    position: relative;
}

.hero-slide.active {
    display: grid;
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h2,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info .lead-text {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 251, 235, 0.9);
    font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-tags,
.quick-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.card-tags span {
    background: #fff7ed;
    color: #9a3412;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.hero-search button,
.filter-bar button,
.play-layer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.primary-button,
.hero-search button,
.filter-bar button,
.play-layer button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.ghost-button {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover,
.filter-bar button:hover,
.play-layer button:hover {
    transform: translateY(-2px);
}

.hero-poster,
.page-hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(3deg);
}

.hero-poster img,
.page-hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffffff;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 58px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    width: 54px;
    background: #ffffff;
}

.hero-side-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 610px;
    padding: 36px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-side-card h1 {
    margin: 14px 0 14px;
    color: #7c2d12;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.16;
}

.hero-side-card p {
    color: var(--muted);
    margin: 0 0 26px;
}

.hero-search label {
    display: block;
    margin-bottom: 10px;
    color: #92400e;
    font-weight: 900;
}

.hero-search div,
.filter-bar form,
.local-filter {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-bar input,
.local-filter input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    outline: none;
    padding: 0 16px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.92);
}

.quick-tags {
    margin-top: 20px;
}

.quick-tags a,
.filter-chips button {
    border: 0;
    padding: 9px 13px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

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

.section-heading {
    text-align: center;
    margin-bottom: 24px;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading span,
.rank-panel-title span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2,
.rank-panel-title h2,
.copy-card h2,
.site-footer h2 {
    margin: 6px 0 8px;
    color: #7c2d12;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading p,
.copy-card p {
    margin: 0;
    color: var(--muted);
}

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

.category-tile,
.category-overview-card,
.copy-card,
.rank-panel,
.movie-card,
.rank-row {
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 18px 48px rgba(180, 83, 9, 0.12);
    backdrop-filter: blur(16px);
}

.category-tile {
    overflow: hidden;
    padding: 16px;
    transition: 0.24s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(180, 83, 9, 0.2);
}

.category-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 14px;
}

.category-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.category-tile strong {
    display: block;
    color: #7c2d12;
    font-size: 18px;
}

.category-tile em,
.mini-movie em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

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

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.24s ease;
}

.poster-link {
    position: relative;
    overflow: hidden;
    display: block;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    transition: transform 0.28s ease;
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(67, 20, 7, 0.68));
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 900;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h2 {
    margin: 8px 0 8px;
    color: #7c2d12;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

.card-tags {
    margin-top: auto;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.text-link {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.round-link {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 13px;
    font-weight: 900;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 18px;
}

.rank-panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.rank-panel-title h2 {
    width: 100%;
}

.rank-panel-title a {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

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

.mini-list.small {
    gap: 9px;
}

.mini-movie {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 247, 237, 0.78);
}

.mini-movie img {
    width: 56px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.mini-movie strong {
    display: block;
    overflow: hidden;
    color: #7c2d12;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-rank {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 56px;
    color: #ffffff;
}

.small-hero {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    align-items: center;
}

.page-hero-poster {
    transform: rotate(2deg);
}

.page-hero-poster strong {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
    padding: 18px;
    transition: 0.24s ease;
}

.category-overview-main {
    display: block;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.category-overview-main span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.category-overview-main h2 {
    margin: 8px 0;
    color: #7c2d12;
}

.category-overview-main p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 36px rgba(180, 83, 9, 0.1);
}

.filter-bar form,
.local-filter {
    min-width: min(100%, 360px);
}

.strong-filter .wide {
    flex: 1;
    min-width: 280px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 92px minmax(0, 1fr) 86px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: 0.24s ease;
}

.rank-number,
.rank-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--orange));
    font-weight: 900;
}

.rank-poster img {
    width: 92px;
    height: 126px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.rank-content span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.rank-content h2 {
    margin: 6px 0;
    color: #7c2d12;
}

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

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 28px;
    color: #ffffff;
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 251, 235, 0.78);
    font-size: 14px;
    font-weight: 800;
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    object-fit: cover;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-layer button {
    min-height: 58px;
    padding: 0 32px;
    font-size: 18px;
}

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

.detail-info h1 {
    font-size: clamp(32px, 4vw, 54px);
}

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

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

.copy-card {
    padding: 24px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 237, 213, 0.9));
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-list dt {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
}

.info-list dd {
    margin: 4px 0 0;
    color: #7c2d12;
    font-weight: 800;
}

.site-footer {
    margin-top: 58px;
    padding: 48px 0 24px;
    color: #fffbeb;
    background: linear-gradient(135deg, #431407, #7c2d12 55%, #9a3412);
}

.footer-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 34px;
}

.footer-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.site-footer p {
    color: rgba(255, 251, 235, 0.72);
}

.site-footer h2 {
    color: #fde68a;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-links a {
    color: rgba(255, 251, 235, 0.78);
}

.footer-bottom {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 251, 235, 0.72);
    font-size: 13px;
}

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

@media (max-width: 1100px) {
    .hero-shell,
    .split-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-side-card,
    .rank-panel {
        min-height: auto;
        position: static;
    }

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

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

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

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero-slide {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 34px 24px 66px;
    }

    .hero-poster {
        max-width: 240px;
        margin: 0 auto;
        transform: none;
    }

    .hero-controls {
        left: 24px;
        bottom: 24px;
    }

    .hero-side-card,
    .page-hero,
    .detail-hero {
        padding: 28px 22px;
    }

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

    .page-hero-poster {
        max-width: 220px;
        transform: none;
    }

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

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

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

    .rank-score {
        grid-column: 2 / 4;
        min-height: 42px;
    }

    .rank-poster img {
        width: 76px;
        height: 104px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

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

@media (max-width: 520px) {
    .hero-section,
    .section-wrap,
    .page-hero,
    .detail-hero {
        width: min(100% - 22px, 1220px);
    }

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

    .hero-search div,
    .filter-bar form,
    .local-filter,
    .filter-bar {
        flex-direction: column;
    }

    .hero-search button,
    .filter-bar button {
        width: 100%;
    }
}
