:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --pink-500: #ec4899;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 24px 60px rgba(146, 64, 14, 0.22);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 42%, var(--white) 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: var(--container);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-text {
    font-size: 26px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35);
    flex: 0 0 auto;
}

.brand-mark.large {
    width: 62px;
    height: 62px;
}

.brand-mark span {
    width: 0;
    height: 0;
    border-left: 12px solid var(--white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--slate-700);
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-700);
    background: var(--amber-100);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-field input,
.filter-field select {
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--white);
    color: var(--slate-800);
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn.primary {
    border-radius: 999px;
    padding: 11px 20px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.30);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--amber-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-700);
}

.mobile-nav {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: var(--slate-700);
    border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.mobile-link.active {
    color: var(--amber-700);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--amber-600));
}

.hero-lights span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    filter: blur(40px);
    pointer-events: none;
}

.hero-lights span:nth-child(1) {
    width: 260px;
    height: 260px;
    top: 50px;
    left: 7%;
}

.hero-lights span:nth-child(2) {
    width: 420px;
    height: 420px;
    right: 2%;
    bottom: -140px;
}

.hero-lights span:nth-child(3) {
    width: 180px;
    height: 180px;
    left: 48%;
    top: 18%;
    opacity: 0.6;
}

.hero-shell {
    position: relative;
    width: var(--container);
    margin: 0 auto;
    padding: 82px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 42px;
    align-items: center;
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-intro h1,
.page-hero h1,
.ranking-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-intro p,
.page-hero p,
.ranking-copy p {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-search {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    max-width: 560px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.95);
}

.quick-links,
.hero-tags,
.tag-row,
.detail-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.hero-tags span,
.tag-row span,
.detail-tags a,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.quick-links a:hover,
.detail-tags a:hover,
.tag-cloud a:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-carousel {
    position: relative;
    min-height: 445px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    min-height: 386px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy h2 {
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.hero-copy p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.24);
}

.hero-poster img,
.movie-cover img,
.detail-info-card img,
.category-thumb-wall img,
.ranking-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.hero-actions,
.page-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.btn.ghost {
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: var(--white);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn.ghost.amber {
    color: var(--amber-700);
    border-color: var(--amber-300);
    background: var(--white);
}

.btn.primary.light {
    background: var(--white);
    color: var(--amber-700);
}

.hero-control-row {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 23, 42, 0.22);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    width: 26px;
    border-radius: 999px;
    background: var(--white);
}

.stat-band,
.content-section,
.cta-panel,
.page-hero,
.ranking-hero,
.detail-shell {
    width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.stat-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px;
}

.stat-card {
    border-radius: var(--radius-xl);
    padding: 26px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.01);
}

.stat-card.amber {
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.stat-card.orange {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.stat-card.red {
    background: linear-gradient(135deg, var(--red-500), var(--pink-500));
}

.stat-card span,
.stat-card p {
    color: rgba(255, 255, 255, 0.82);
}

.stat-card strong {
    display: block;
    margin: 10px 0;
    font-size: 26px;
}

.content-section {
    padding: 54px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-800);
    font-size: 32px;
    line-height: 1.18;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-500);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 46px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

.movie-cover img {
    transition: transform 0.35s ease;
}

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

.duration-pill,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    font-weight: 800;
}

.duration-pill {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--red-500));
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p {
    margin: 0 0 12px;
    color: var(--slate-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 13px;
}

.tag-row {
    margin-top: 13px;
}

.tag-row span {
    color: var(--amber-700);
    background: var(--amber-100);
    border-color: var(--amber-200);
}

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

.ranking-panel,
.detail-side-list,
.detail-article,
.filter-panel,
.category-overview-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.ranking-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ranking-panel-head h2 {
    margin: 0;
}

.ranking-panel-head a,
.text-link {
    color: var(--amber-700);
    font-weight: 800;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid var(--slate-100);
}

.rank-num {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
    color: var(--slate-800);
}

.rank-extra {
    grid-column: 2;
    color: var(--slate-500);
    font-size: 13px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: var(--radius-xl);
    padding: 26px;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid var(--amber-100);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber-300);
}

.category-orb {
    position: absolute;
    width: 130px;
    height: 130px;
    right: -42px;
    top: -42px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--amber-200), rgba(249, 115, 22, 0.16));
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 24px;
}

.category-card p,
.category-overview-card p {
    margin: 0 0 20px;
    color: var(--slate-500);
}

.category-card strong {
    color: var(--amber-700);
    font-size: 14px;
}

.cta-panel,
.page-hero,
.ranking-hero {
    border-radius: 34px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--shadow-xl);
}

.cta-panel {
    margin-top: 28px;
    margin-bottom: 62px;
    padding: 54px 26px;
    text-align: center;
}

.cta-panel h2 {
    margin: 20px 0 12px;
    font-size: 36px;
}

.cta-panel p {
    margin: 0 auto 24px;
    max-width: 720px;
    color: var(--amber-100);
}

.page-hero {
    margin-top: 38px;
    padding: 54px;
    overflow: hidden;
    position: relative;
}

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

.page-hero-actions {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
    gap: 16px;
    padding: 20px;
    margin-bottom: 28px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-field label {
    color: var(--slate-700);
    font-weight: 800;
    font-size: 14px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border-radius: 14px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.empty-state.show {
    display: block;
}

.category-overview-card {
    overflow: hidden;
}

.category-overview-card > div {
    padding: 22px;
}

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

.category-thumb-wall img {
    min-width: 0;
}

.tag-cloud-section .tag-cloud a,
.detail-tags a {
    color: var(--amber-700);
    background: var(--amber-100);
    border-color: var(--amber-200);
}

.ranking-hero {
    margin-top: 38px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 30px;
    align-items: center;
}

.ranking-feature {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 16px;
}

.ranking-feature img {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
}

.ranking-feature h2 {
    margin: 8px 0;
}

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

.detail-hero {
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.14), rgba(255, 251, 235, 0));
    padding: 34px 0 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 14px;
    margin-bottom: 18px;
}

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

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

.player-card,
.detail-info-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-900);
    box-shadow: var(--shadow-xl);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--slate-900);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.74));
    z-index: 3;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.34);
    font-size: 32px;
    padding-left: 5px;
}

.player-state {
    min-height: 24px;
    margin: 0;
    padding: 10px 16px 14px;
    color: var(--amber-100);
    background: var(--slate-900);
}

.detail-info-card {
    background: var(--white);
}

.detail-info-card img {
    aspect-ratio: 2 / 3;
}

.detail-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
}

.detail-score strong {
    color: var(--amber-700);
    font-size: 34px;
}

.detail-score span {
    color: var(--slate-500);
    font-weight: 800;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.detail-article,
.detail-side-list {
    padding: 26px;
}

.detail-article h1 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.detail-article h2,
.detail-side-list h2 {
    margin: 28px 0 12px;
    color: var(--slate-800);
}

.detail-article p {
    color: var(--slate-700);
}

.lead-text {
    padding: 18px;
    border-left: 5px solid var(--amber-500);
    border-radius: 14px;
    background: var(--amber-50);
    font-weight: 700;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-weight: 800;
    font-size: 14px;
}

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

.related-section {
    padding-top: 20px;
}

.site-footer {
    margin-top: 46px;
    color: var(--amber-100);
    background: linear-gradient(180deg, #92400e, #78350f);
}

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    padding: 44px 0 28px;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
}

.site-footer p {
    color: var(--amber-100);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    color: var(--amber-100);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    display: none;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: var(--shadow-md);
    z-index: 90;
}

.back-to-top.show {
    display: grid;
    place-items: center;
}

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

    .hero-carousel {
        min-height: 420px;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-shell {
        padding: 58px 0 52px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-poster {
        display: none;
    }

    .stat-band,
    .movie-grid,
    .movie-grid.two-col,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .filter-panel,
    .ranking-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        gap: 18px;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 22px, 1180px);
    }

    .nav-wrap {
        height: 64px;
    }

    .brand-text {
        font-size: 21px;
    }

    .hero-search,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-carousel {
        min-height: 430px;
    }

    .hero-slide {
        padding: 22px;
    }

    .stat-band,
    .movie-grid,
    .movie-grid.two-col,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .filter-panel,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .ranking-hero,
    .cta-panel {
        border-radius: 24px;
        padding: 32px 20px;
    }

    .ranking-feature {
        grid-template-columns: 1fr;
    }

    .detail-info-card {
        display: none;
    }

    .content-section {
        padding: 36px 0;
    }
}
