/*
 * Static movie site stylesheet.
 * The visual direction follows the uploaded Tailwind/React bundle:
 * deep slate background, amber highlights, purple gradients, glass cards,
 * large Hero focus area, rounded posters, soft shadows, and responsive grids.
 */

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(30, 41, 59, 0.88);
    --line: rgba(168, 85, 247, 0.22);
    --line-bright: rgba(251, 191, 36, 0.36);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --amber: #fbbf24;
    --amber-dark: #d97706;
    --purple: #9333ea;
    --purple-soft: rgba(147, 51, 234, 0.32);
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(147, 51, 234, 0.25), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 32rem),
        linear-gradient(180deg, #0f172a 0%, #020617 45%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(22px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #fff7ed;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), #f97316 45%, var(--purple));
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.24);
}

.brand-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7ed;
    background: rgba(251, 191, 36, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(330px, 35vw);
    padding: 5px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select,
.advanced-search input,
.advanced-search select {
    border: 0;
    outline: 0;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.92);
}

.header-search input {
    width: 100%;
    padding: 8px 10px;
    background: transparent;
}

.header-search button,
.hero-search button,
.advanced-search button {
    border: 0;
    cursor: pointer;
    color: #111827;
    padding: 8px 15px;
    border-radius: 999px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber), #f97316);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #f8fafc;
}

.hero {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 72px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.28) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(251, 191, 36, 0.22), transparent 25rem),
        radial-gradient(circle at 75% 58%, rgba(147, 51, 234, 0.30), transparent 26rem);
}

.hero-content {
    max-width: 720px;
}

.eyebrow,
.hero-kicker {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 620px;
    margin: 22px 0;
    color: #cbd5e1;
    font-size: 19px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.category-enter,
.section-action,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.primary-button {
    color: #111827;
    background: linear-gradient(135deg, var(--amber), #f97316);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.22);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 54px rgba(251, 191, 36, 0.34);
}

.primary-button.small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.ghost-button,
.section-action,
.text-link {
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.62);
}

.ghost-button:hover,
.section-action:hover,
.text-link:hover {
    color: var(--amber);
    border-color: rgba(251, 191, 36, 0.45);
}

.hero-poster {
    position: relative;
    align-self: center;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(251, 191, 36, 0.28);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    color: #111827;
    font-weight: 900;
    background: rgba(251, 191, 36, 0.94);
}

.hero-control-panel {
    position: relative;
    margin: -54px auto 0;
    width: calc(100% - 72px);
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-dots {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.hero-dot {
    min-height: 58px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    color: #cbd5e1;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.45);
    text-align: left;
    padding: 8px 10px;
    overflow: hidden;
}

.hero-dot span {
    display: block;
    color: var(--amber);
    font-weight: 900;
}

.hero-dot.active {
    color: #fff7ed;
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(251, 191, 36, 0.12);
}

.hero-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.56);
}

.hero-search input {
    min-width: 0;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
}

.stats-strip {
    width: min(1240px, calc(100% - 32px));
    margin: 26px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stats-strip div {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
}

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

.stats-strip span {
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.page-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

.content-section.no-pad {
    width: 100%;
    padding-bottom: 0;
}

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

.section-heading h2,
.panel-heading h2,
.detail-card h2 {
    margin: 0;
    color: #fff7ed;
    font-size: 30px;
    line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.panel-heading p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--muted);
}

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

.category-tile,
.category-detail-card,
.movie-card,
.ranking-panel,
.detail-card,
.poster-panel,
.ranking-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.72));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.category-tile {
    min-height: 190px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.22);
    filter: blur(2px);
}

.category-tile:hover,
.movie-card:hover,
.ranking-card:hover,
.category-detail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.34);
}

.category-count {
    display: inline-flex;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

.category-tile strong {
    display: block;
    color: #fff7ed;
    font-size: 21px;
}

.category-tile p,
.category-detail-header p,
.movie-line,
.ranking-card p,
.detail-card p {
    color: #cbd5e1;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.mini-links a {
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.08);
    font-size: 12px;
}

.filter-panel,
.advanced-search {
    display: grid;
    grid-template-columns: 1fr 160px 160px auto;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select,
.advanced-search input,
.advanced-search select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
}

.filter-count,
.search-status {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    transition: 0.22s ease;
}

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

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #111827;
    background: rgba(251, 191, 36, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #111827;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.94);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: 0.22s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #fff7ed;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-line {
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

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

.ranking-panel {
    padding: 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.38);
    transition: 0.2s ease;
}

.rank-item:hover {
    background: rgba(251, 191, 36, 0.1);
}

.rank-number {
    color: var(--amber);
    font-weight: 900;
}

.rank-item img {
    width: 56px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    color: #f8fafc;
    line-height: 1.35;
}

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

.page-main {
    padding-top: 32px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 52px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 20%, rgba(147, 51, 234, 0.24), transparent 30rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.category-detail-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.category-detail-header span {
    color: var(--amber);
    font-weight: 900;
}

.category-detail-header h2 {
    margin: 8px 0;
    color: #fff7ed;
    font-size: 28px;
}

.category-detail-header em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.category-preview-list {
    display: grid;
    gap: 8px;
}

.category-enter {
    grid-column: 1 / -1;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), #f97316);
}

.ranking-grid {
    display: grid;
    gap: 16px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 18px;
    padding: 14px;
    transition: 0.22s ease;
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.ranking-index {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: var(--amber);
    font-weight: 900;
}

.ranking-card h2 {
    margin: 2px 0 8px;
    color: #fff7ed;
    font-size: 22px;
}

.search-workspace .advanced-search {
    grid-template-columns: 1fr 150px 150px 150px auto;
}

.search-status {
    margin: -8px 0 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #fff7ed;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(251, 191, 36, 0.14), transparent 16rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.72));
    transition: opacity 0.2s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #111827;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), #f97316);
    box-shadow: 0 18px 48px rgba(251, 191, 36, 0.32);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay em {
    color: #fde68a;
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fecaca;
    text-align: center;
    pointer-events: none;
}

.detail-card,
.poster-panel {
    margin-top: 22px;
    padding: 24px;
}

.detail-title-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.detail-card h1 {
    margin: 0;
    color: #fff7ed;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.detail-one-line {
    color: #fde68a !important;
    font-size: 19px;
    font-weight: 700;
}

.detail-card h2 {
    margin-top: 28px;
    font-size: 24px;
}

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

.poster-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

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

.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.8);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
    color: var(--muted);
}

.footer-inner p {
    max-width: 620px;
}

.footer-links strong {
    display: block;
    color: #fff7ed;
    margin-bottom: 10px;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
}

.footer-links a:hover {
    color: var(--amber);
}

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

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr 280px;
        padding: 48px;
    }

    .hero-control-panel,
    .split-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-control-panel {
        width: calc(100% - 36px);
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 18px;
    }

    .sticky-panel {
        position: static;
        margin-top: 0;
    }
}

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

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

    .main-nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

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

    .nav-link {
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.72);
    }

    .header-search {
        width: 100%;
        order: 5;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
        padding: 34px 24px 110px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        justify-self: center;
    }

    .hero-control-panel {
        margin-top: -88px;
        grid-template-columns: 1fr;
    }

    .hero-dots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-search,
    .filter-panel,
    .advanced-search,
    .search-workspace .advanced-search {
        grid-template-columns: 1fr;
    }

    .stats-strip,
    .footer-inner,
    .category-detail-card,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        padding: 32px 22px;
    }
}

@media (max-width: 520px) {
    .content-section,
    .page-main,
    .hero,
    .stats-strip,
    .footer-inner {
        width: min(100% - 20px, 1240px);
    }

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

    .hero-content h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-summary,
    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

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

    .ranking-card {
        grid-template-columns: 92px 1fr;
    }

    .detail-title-row {
        display: block;
    }
}
