:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #1e293b;
    --panel-line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f97316;
    --accent-strong: #ea580c;
    --danger: #dc2626;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 32rem),
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.1), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--panel-line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.footer-logo-row strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-copy small,
.footer-logo-row small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: var(--muted-strong);
    border-radius: 12px;
    transition: 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.28);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--panel-line);
    border-radius: 16px;
}

.mobile-link {
    display: block;
    padding: 13px 14px;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    width: min(1200px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 0;
}

.hero-stage,
.hero-panel,
.page-hero,
.category-hero,
.detail-hero,
.content-card,
.player-card,
.poster-panel,
.info-panel,
.spotlight-card,
.side-rank,
.category-preview {
    border: 1px solid var(--panel-line);
    box-shadow: var(--shadow);
}

.hero-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    min-height: 640px;
    background: var(--panel);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: clamp(28px, 5vw, 64px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide img,
.category-hero > img,
.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.category-hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 50%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12));
}

.hero-content,
.category-hero-content,
.detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fb923c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-desc,
.hero-content p:not(.eyebrow),
.page-hero p,
.category-hero p,
.detail-hero p {
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.82);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button,
.page-search button,
.inline-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-button,
.hero-search button,
.page-search button,
.inline-filter button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.hero-search button:hover,
.page-search button:hover,
.inline-filter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
}

.ghost-button {
    color: #fff;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ghost-button:hover {
    border-color: rgba(249, 115, 22, 0.7);
    color: #fdba74;
}

.hero-panel {
    display: grid;
    gap: 18px;
    align-content: start;
    border-radius: var(--radius-xl);
    padding: 20px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
}

.search-card {
    padding: 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 16rem),
        rgba(15, 23, 42, 0.84);
    border: 1px solid var(--panel-line);
}

.search-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
}

.hero-search,
.page-search,
.inline-filter {
    display: flex;
    gap: 10px;
}

.hero-search input,
.page-search input,
.inline-filter input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--panel-line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.58);
    outline: none;
}

.hero-search input:focus,
.page-search input:focus,
.inline-filter input:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.hero-thumbs {
    display: grid;
    gap: 10px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.78);
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-thumb span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: rgba(51, 65, 85, 0.86);
    font-weight: 900;
}

.hero-thumb strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-thumb:hover,
.hero-thumb.is-active {
    border-color: rgba(249, 115, 22, 0.72);
    background: rgba(249, 115, 22, 0.12);
}

.hero-thumb.is-active span {
    background: var(--accent);
}

.section-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 48px auto;
}

.section-heading,
.category-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading h2,
.category-preview h2,
.content-card h2,
.info-panel h2,
.side-rank h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
}

.section-heading a,
.category-preview-head a {
    color: #fb923c;
    font-weight: 800;
}

.movie-grid,
.mini-grid,
.category-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid var(--panel-line);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.52);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.movie-poster {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-small .movie-poster {
    height: 180px;
}

.movie-card-wide .movie-poster {
    height: 220px;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 54%);
    opacity: 0.9;
}

.movie-year,
.movie-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    padding: 5px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.movie-year {
    top: 10px;
    left: 10px;
    background: var(--accent);
}

.movie-type {
    top: 10px;
    right: 10px;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.rank-badge {
    bottom: 10px;
    left: 10px;
    min-width: 38px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--danger));
}

.poster-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    transition: 0.25s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: #fb923c;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span:first-child {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 280px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

.split-section,
.two-columns,
.detail-layout {
    display: grid;
    gap: 24px;
}

.split-section {
    grid-template-columns: minmax(0, 1fr) 420px;
}

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

.spotlight-card,
.side-rank,
.content-card,
.player-card,
.poster-panel,
.info-panel,
.category-preview {
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.88);
}

.spotlight-card,
.side-rank {
    padding: 28px;
}

.spotlight-card {
    min-height: 280px;
    display: grid;
    align-content: center;
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.28), transparent 20rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
}

.spotlight-card h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
}

.spotlight-card p {
    max-width: 720px;
    color: var(--muted-strong);
    line-height: 1.8;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
    transition: 0.2s ease;
}

.rank-line:hover {
    background: rgba(249, 115, 22, 0.14);
}

.rank-line span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: rgba(249, 115, 22, 0.82);
    font-weight: 900;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    min-height: 210px;
    padding: 18px;
    border: 1px solid var(--panel-line);
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.category-tile img,
.category-tile span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile span {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12));
}

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

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile strong {
    margin-bottom: 8px;
    font-size: 24px;
}

.category-tile em {
    color: var(--muted-strong);
    font-style: normal;
    line-height: 1.6;
}

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    border-radius: var(--radius-xl);
    background: var(--panel);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    align-items: end;
    gap: 28px;
    padding: clamp(28px, 5vw, 56px);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
}

.page-hero h1 {
    margin-bottom: 16px;
}

.category-preview-stack {
    width: min(1200px, calc(100% - 32px));
    margin: 42px auto;
    display: grid;
    gap: 24px;
}

.category-preview {
    padding: 24px;
}

.category-preview-head p {
    max-width: 720px;
    color: var(--muted-strong);
    line-height: 1.7;
}

.category-hero,
.detail-hero {
    min-height: 420px;
    display: grid;
    align-items: end;
    padding: clamp(28px, 5vw, 56px);
}

.category-hero h1,
.detail-hero h1 {
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted-strong);
    font-weight: 700;
}

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

.inline-filter {
    width: min(540px, 100%);
    margin-top: 24px;
}

.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 56px;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.main-detail {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    padding: 12px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000;
}

.video-player,
.player-poster,
.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-player {
    object-fit: contain;
    z-index: 1;
    background: #000;
}

.player-poster {
    z-index: 2;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
}

.player-poster img {
    object-fit: cover;
    opacity: 0.68;
    filter: saturate(1.1);
}

.video-shell.is-playing .player-poster {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: clamp(72px, 12vw, 108px);
    height: clamp(72px, 12vw, 108px);
    border-radius: 999px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    background: linear-gradient(135deg, var(--accent), var(--danger));
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.42);
    transform: translate(-50%, -50%);
}

.content-card,
.info-panel {
    padding: 26px;
}

.content-card p {
    margin: 14px 0 0;
    color: var(--muted-strong);
    font-size: 16px;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.poster-panel {
    overflow: hidden;
}

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

.info-panel dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.info-panel dt {
    color: var(--muted);
    font-size: 12px;
}

.info-panel dd {
    margin: -8px 0 6px;
    color: #fff;
    line-height: 1.55;
}

.primary-button.full {
    width: 100%;
}

.rank-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
}

.rank-panel {
    max-height: 430px;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 6px;
}

.search-hero {
    align-items: center;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--panel-line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(180px, 0.55fr));
    gap: 34px;
}

.footer-brand p,
.site-footer a,
.footer-bottom p {
    color: var(--muted);
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--panel-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.back-top {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
}

@media (max-width: 1080px) {
    .hero-carousel,
    .split-section,
    .detail-layout,
    .page-hero,
    .rank-hero {
        grid-template-columns: 1fr;
    }

    .hero-stage,
    .hero-carousel {
        min-height: 560px;
    }

    .hero-panel {
        order: 2;
    }

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

    .detail-side {
        position: static;
        grid-template-columns: 260px 1fr;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-carousel {
        margin-top: 16px;
        width: min(100% - 24px, 1200px);
    }

    .hero-stage,
    .hero-carousel {
        min-height: 500px;
    }

    .hero-slide,
    .category-hero,
    .detail-hero,
    .page-hero {
        padding: 24px;
    }

    .hero-content h1,
    .page-hero h1,
    .category-hero h1,
    .detail-hero h1 {
        font-size: 36px;
        line-height: 1.05;
    }

    .hero-search,
    .page-search,
    .inline-filter {
        flex-direction: column;
    }

    .section-heading,
    .category-preview-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .mini-grid,
    .category-grid,
    .two-columns,
    .footer-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card-small .movie-poster,
    .movie-card-wide .movie-poster {
        height: 240px;
    }

    .section-shell,
    .category-preview-stack,
    .detail-layout,
    .page-hero,
    .category-hero,
    .detail-hero {
        width: min(100% - 24px, 1200px);
    }
}

@media (max-width: 520px) {
    .nav-shell {
        width: min(100% - 20px, 1200px);
    }

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

    .hero-stage,
    .hero-carousel {
        min-height: 470px;
    }

    .hero-panel,
    .search-card,
    .spotlight-card,
    .side-rank,
    .content-card,
    .info-panel,
    .category-preview {
        padding: 18px;
    }

    .movie-grid,
    .mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p,
    .tag-row {
        display: none;
    }

    .movie-poster,
    .movie-card-small .movie-poster,
    .movie-card-wide .movie-poster {
        height: 190px;
    }
}
