:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --paper-soft: #fffbeb;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f3d6a2;
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-hot: #ea580c;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #fff1c2 0, transparent 34rem), var(--bg);
    color: var(--ink);
    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;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #f59e0b);
}

button,
input {
    font: inherit;
}

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

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-hot));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 4px;
    color: var(--brand);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
    transition: color .22s ease, transform .22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-hot);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #f6d493;
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 8px 22px rgba(146, 64, 14, .08);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 9px 12px;
    background: transparent;
    color: var(--ink);
}

.header-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    padding: 9px 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #ffedd5;
    color: var(--brand-dark);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 28px 18px;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    padding: 58px 28px 46px;
    background: linear-gradient(135deg, #431407 0%, #9a3412 42%, #f59e0b 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(254, 215, 170, .32), transparent 32rem),
        radial-gradient(circle at 78% 16%, rgba(255, 255, 255, .22), transparent 28rem),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .26));
    pointer-events: none;
}

.hero-shell {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
    gap: 54px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.99);
    transition: opacity .55s ease, transform .55s ease;
}

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

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.05em;
    font-weight: 900;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 690px;
    color: #ffedd5;
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.wide-link,
.panel-more,
.rank-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 26px;
    color: #7c2d12;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .12);
}

.btn-primary:hover,
.btn-ghost:hover,
.wide-link:hover,
.panel-more:hover,
.rank-watch:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    height: 500px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .38);
    border: 1px solid rgba(255, 255, 255, .26);
}

.hero-poster:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .45));
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.hero-dots,
.hero-buttons {
    display: flex;
    gap: 10px;
}

.hero-dot,
.hero-buttons button {
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .28);
    color: #ffffff;
}

.hero-dot {
    width: 42px;
    height: 8px;
    border-radius: 999px;
}

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

.hero-buttons button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 26px;
}

.hero-search-panel {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero-search {
    display: flex;
    gap: 10px;
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 16px 20px;
    background: #ffffff;
}

.hero-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-categories a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 13px;
    font-weight: 700;
}

.section-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 70px 28px;
}

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

.section-heading,
.panel-heading {
    margin-bottom: 28px;
}

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

.section-heading h2,
.panel-heading h2,
.content-card h2,
.side-panel h2,
.site-footer h2 {
    margin: 4px 0 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--paper);
    border: 1px solid rgba(245, 158, 11, .18);
    box-shadow: 0 16px 34px rgba(146, 64, 14, .10);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, .42);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.movie-poster img {
    transition: transform .42s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(146, 64, 14, .82);
    font-size: 12px;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    box-shadow: 0 8px 18px rgba(234, 88, 12, .34);
}

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

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

.movie-rating {
    color: var(--brand-hot);
}

.movie-card h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
    color: var(--brand-hot);
}

.movie-card p {
    min-height: 50px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.movie-tags span,
.detail-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.rank-panel,
.side-panel,
.filter-panel,
.content-card,
.player-card,
.category-tile {
    border: 1px solid rgba(245, 158, 11, .20);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fffbeb;
}

.rank-line span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 900;
}

.rank-line strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-line em {
    color: var(--brand-hot);
    font-style: normal;
    font-weight: 900;
}

.panel-more,
.wide-link {
    margin-top: 18px;
    min-height: 46px;
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

.amber-band {
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 36px;
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #431407, #b45309 55%, #f59e0b);
}

.page-hero > div {
    max-width: 1440px;
    margin: 0 auto;
}

.page-hero p {
    max-width: 720px;
    color: #ffedd5;
    font-size: 18px;
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(40px, 5vw, 68px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #ffedd5;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.category-tile {
    padding: 24px;
}

.category-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-hot));
}

.category-main span {
    font-size: 28px;
    font-weight: 900;
}

.category-main strong {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.category-tile p {
    color: var(--muted);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: #fffbeb;
}

.mini-card img {
    height: 76px;
    border-radius: 10px;
}

.mini-card strong,
.mini-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
}

.sticky-filter {
    position: sticky;
    top: 88px;
    z-index: 10;
}

.movie-filter-input {
    width: 100%;
    border: 1px solid #f6d493;
    border-radius: 18px;
    outline: 0;
    padding: 14px 16px;
    background: #ffffff;
}

.large-input {
    font-size: 18px;
    padding: 18px 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.filter-chip {
    border: 1px solid #f6d493;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--brand-dark);
    background: #fffbeb;
    font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

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

.rank-card {
    display: grid;
    grid-template-columns: 70px 118px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
}

.rank-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    font-weight: 900;
    font-size: 20px;
}

.rank-cover {
    height: 152px;
    border-radius: 16px;
    overflow: hidden;
}

.rank-info h2 {
    margin: 0;
    font-size: 24px;
}

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

.rank-meta span {
    color: var(--brand-dark);
    background: #ffedd5;
}

.rank-watch {
    padding: 0 22px;
    min-height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

.detail-page {
    background: #fff7ed;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-shell {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 58px 28px 70px;
}

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

.detail-poster {
    height: 480px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
    border: 1px solid rgba(255, 255, 255, .22);
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 76px);
}

.detail-line {
    max-width: 820px;
    margin: 22px 0 0;
    color: #ffedd5;
    font-size: 18px;
}

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

.detail-main {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, .18), rgba(0, 0, 0, .56));
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-hot));
    box-shadow: 0 20px 36px rgba(234, 88, 12, .42);
    font-size: 34px;
    padding-left: 5px;
}

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

.content-card,
.side-panel {
    margin-top: 24px;
    padding: 24px;
}

.content-card p {
    color: #374151;
    font-size: 17px;
}

.detail-side {
    min-width: 0;
}

.side-panel {
    position: sticky;
    top: 96px;
}

.site-footer {
    margin-top: 40px;
    padding: 54px 28px 28px;
    color: #ffedd5;
    background: linear-gradient(135deg, #431407, #92400e);
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    color: #fed7aa;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, .18);
}

.copyright {
    max-width: 1440px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

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

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

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

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

    .hero-slide,
    .detail-grid,
    .split-layout,
    .detail-content-wrap {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        height: 420px;
    }

    .rank-panel,
    .side-panel {
        position: static;
    }

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

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

    .brand-text em,
    .header-search {
        display: none;
    }

    .hero-section {
        min-height: 760px;
        padding: 34px 18px 36px;
    }

    .hero-slider {
        min-height: 600px;
    }

    .hero-slide {
        gap: 24px;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
        letter-spacing: -.03em;
    }

    .hero-poster {
        height: 330px;
    }

    .hero-search {
        flex-direction: column;
    }

    .section-wrap {
        padding: 44px 18px;
    }

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

    .rank-card {
        grid-template-columns: 50px 88px minmax(0, 1fr);
    }

    .rank-watch {
        grid-column: 1 / -1;
    }

    .rank-cover {
        height: 118px;
    }

    .detail-shell {
        padding: 34px 18px 48px;
    }

    .detail-grid {
        margin-top: 26px;
    }

    .detail-poster {
        height: 410px;
    }

    .detail-meta span,
    .hero-meta span {
        font-size: 12px;
    }

    .page-hero {
        padding: 60px 18px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        display: none;
    }

    .movie-tags {
        display: none;
    }

    .detail-poster {
        height: 360px;
    }

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
