:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 20px 55px rgba(146, 64, 14, 0.14);
    --shadow-card: 0 15px 35px rgba(120, 53, 15, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-900);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
        linear-gradient(135deg, #fffbeb 0%, #fefce8 48%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--amber-900);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600), var(--orange-500));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 1.12rem;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--amber-600);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-panel input,
.filter-panel input,
.search-tools select,
.filter-panel select {
    border: 0;
    outline: 0;
    color: var(--gray-900);
    background: var(--white);
}

.header-search input {
    width: 210px;
    padding: 9px 12px;
    border-radius: 999px;
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-panel button {
    border: 0;
    padding: 9px 16px;
    color: var(--white);
    font-weight: 800;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: var(--amber-900);
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(251, 191, 36, 0.22);
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 8px;
    color: var(--gray-700);
    border-radius: 12px;
}

.mobile-nav-link:hover {
    background: var(--amber-100);
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 12px;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: var(--white);
    background: #1f1305;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
    align-items: center;
    gap: 44px;
    padding: 96px max(32px, calc((100vw - var(--container)) / 2)) 120px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(251, 191, 36, 0.24), transparent 26rem),
        linear-gradient(90deg, rgba(41, 22, 4, 0.94) 0%, rgba(120, 53, 15, 0.72) 44%, rgba(17, 24, 39, 0.5) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.1));
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.1);
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--amber-500);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-info .eyebrow,
.compact-hero .eyebrow,
.category-hero .eyebrow {
    color: #fcd34d;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
}

.hero-desc,
.detail-one-line {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: var(--amber-900);
    font-size: 0.84rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.9);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    font-weight: 900;
    border-radius: 999px;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600), var(--orange-500));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.28);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.text-button,
.section-action {
    color: var(--amber-700);
    background: var(--amber-100);
}

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 12px 18px;
    color: var(--amber-900);
    font-weight: 900;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 86px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 42px;
    height: 42px;
    color: var(--white);
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    font-size: 0 !important;
}

.hero-dot.is-active {
    width: 32px !important;
    background: var(--amber-400);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    width: min(92vw, 760px);
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
}

.section-block {
    padding: 58px 0;
}

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

.stats-strip div,
.honey-card,
.movie-card,
.content-card,
.category-card,
.category-overview-card,
.filter-panel,
.search-tools,
.player-shell,
.rank-row {
    border: 1px solid rgba(251, 191, 36, 0.38);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.stats-strip div {
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stats-strip strong {
    display: block;
    color: var(--amber-700);
    font-size: 2.1rem;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 6px;
    color: var(--gray-500);
    font-weight: 700;
}

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

.section-header h2,
.page-hero h1,
.detail-info h1,
.content-card h2,
.player-header h2 {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(120, 53, 15, 0.88));
}

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

.category-card div {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 1;
    color: var(--white);
}

.category-card span {
    display: inline-flex;
    padding: 4px 10px;
    color: var(--amber-900);
    font-size: 0.82rem;
    font-weight: 900;
    border-radius: 999px;
    background: var(--amber-100);
}

.category-card h3 {
    margin: 10px 0 6px;
    font-size: 1.45rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
}

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

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

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

.card-hover:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 55px rgba(120, 53, 15, 0.2);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--amber-100);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: all 0.25s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cover-year,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #ef4444, var(--orange-500));
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card-body h3 a:hover,
.rank-info h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--amber-700);
}

.movie-meta,
.movie-one-line {
    margin: 8px 0 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.movie-one-line {
    min-height: 2.8em;
}

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

.tag-row span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 0.78rem;
    background: var(--amber-100);
}

.page-main {
    min-height: 70vh;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.26), transparent 28rem),
        linear-gradient(135deg, var(--amber-900), #3f2408 60%, #111827);
}

.compact-hero,
.category-hero {
    padding: 82px 0;
}

.page-hero h1 {
    color: var(--white);
}

.page-hero p:not(.eyebrow) {
    max-width: 790px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

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

.filter-panel,
.search-tools {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius-lg);
}

.filter-panel label,
.search-tools label {
    display: grid;
    gap: 8px;
    min-width: 180px;
    flex: 1;
    color: var(--amber-900);
    font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-tools select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
}

.filter-result,
.search-tools p {
    margin: 0;
    color: var(--gray-500);
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.category-overview-image {
    overflow: hidden;
    border-radius: 18px;
}

.category-overview-image img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0;
    color: var(--amber-900);
}

.category-overview-card p:not(.eyebrow) {
    color: var(--gray-700);
    line-height: 1.75;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 160px 60px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-lg);
}

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

.rank-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rank-number {
    color: var(--amber-700);
    font-size: 1.8rem;
    font-weight: 1000;
}

.rank-info h2 {
    margin: 0;
    font-size: 1.18rem;
}

.rank-info p {
    margin: 6px 0 0;
    color: var(--gray-500);
    line-height: 1.55;
}

.rank-score {
    text-align: center;
}

.rank-score strong {
    display: block;
    color: var(--orange-500);
    font-size: 1.5rem;
}

.rank-score span {
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.search-panel {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 28px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.search-panel input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
}

.detail-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.38;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36, 20, 4, 0.98), rgba(36, 20, 4, 0.74), rgba(36, 20, 4, 0.32));
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.05);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 64px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}

.detail-meta span {
    padding: 8px 12px;
    color: var(--white);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.player-shell {
    overflow: hidden;
    padding: 18px;
    border-radius: 30px;
}

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

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #09090b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #09090b;
}

.big-play-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.38)),
        rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.video-frame.is-playing .big-play-button {
    opacity: 0;
    pointer-events: none;
}

.big-play-button span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.big-play-button strong {
    font-size: 1.05rem;
}

.player-tip {
    margin: 12px 0 0;
    color: var(--gray-500);
}

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

.content-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.content-card h2 {
    margin-bottom: 16px;
    font-size: 1.48rem;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.95;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--gray-500);
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: var(--gray-900);
}

.movie-card-compact .movie-one-line {
    display: none;
}

.site-footer {
    padding: 54px 0;
    color: var(--amber-100);
    background: linear-gradient(135deg, var(--amber-900), #713f12 55%, #431407);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.5fr) minmax(180px, 0.5fr);
    gap: 42px;
}

.footer-brand {
    color: var(--white);
    font-size: 1.1rem;
}

.site-footer p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1.1rem;
}

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

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

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

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

@media (max-width: 1180px) {
    .category-grid,
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-content-grid {
        grid-template-columns: 1fr;
    }
}

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

    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 78px 20px 148px;
    }

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

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

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

    .rank-score,
    .rank-number {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

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

    .hero-content h1 {
        font-size: 2.7rem;
    }

    .hero-search,
    .search-panel {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-controls {
        bottom: 112px;
    }

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

    .filter-panel,
    .search-tools,
    .section-header,
    .player-header {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-poster {
        border-radius: 22px;
    }
}
