:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.95);
    --border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --brand: #f59e0b;
    --brand-dark: #d97706;
    --brand-soft: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.13), transparent 32rem),
        radial-gradient(circle at 95% 10%, rgba(59, 130, 246, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(2, 6, 23, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), #fbbf24);
    color: #111827;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.26);
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.logo-copy small {
    margin-top: 4px;
    color: rgba(245, 158, 11, 0.92);
    font-size: 12px;
    font-weight: 600;
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 14px;
    color: var(--soft);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(245, 158, 11, 0.18);
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827, #334155);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 38%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
    align-items: center;
    gap: 54px;
    padding: 96px 0 130px;
}

.hero-text {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.8;
}

.hero-badges,
.tag-row,
.detail-meta,
.side-links,
.filter-buttons,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges {
    margin-top: 26px;
}

.hero-badges span,
.tag-row span,
.side-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 650;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #fbbf24);
    color: #111827;
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
}

.btn-plain {
    color: #fbbf24;
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #475569);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    inset: auto 24px 24px auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.95);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.48);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 92px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--brand);
}

.hero-search {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 24px;
    width: min(720px, calc(100% - 32px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input,
.inline-search input,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    outline: none;
    background: rgba(2, 6, 23, 0.65);
    color: #fff;
    padding: 0 16px;
}

.hero-search button,
.inline-search button,
.filter-buttons button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    color: #111827;
    padding: 0 20px;
    font-weight: 850;
}

.section-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.prose-panel h2,
.panel h2,
.spotlight-strip h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-more {
    color: #fbbf24;
    font-weight: 750;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.45);
    background: var(--bg-card-strong);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #475569);
}

.movie-cover::after,
.mini-cover::after,
.rank-thumb::after,
.category-image::after,
.poster-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.68));
    pointer-events: none;
}

.movie-cover img,
.mini-cover img,
.rank-thumb img,
.category-image img,
.poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.movie-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.94);
    color: #111827;
    font-weight: 900;
}

.movie-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.movie-body {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 3.05em;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: #fbbf24;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.55);
}

.movie-line {
    display: -webkit-box;
    min-height: 4.35em;
    margin: 0 0 14px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.split-section .panel {
    padding: 24px;
}

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

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

.rank-item:hover {
    background: rgba(245, 158, 11, 0.11);
    transform: translateX(4px);
}

.rank-num {
    color: #fbbf24;
    font-weight: 900;
    font-size: 20px;
    text-align: center;
}

.rank-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #475569);
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.mini-info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em,
.mini-info em {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-cloud a,
.filter-buttons button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    padding: 9px 13px;
    font-weight: 700;
}

.category-cloud a:hover,
.filter-buttons button:hover,
.filter-buttons button.active {
    border-color: rgba(245, 158, 11, 0.44);
    background: var(--brand-soft);
    color: #fbbf24;
}

.feature-tile {
    margin-top: 24px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.78));
}

.feature-tile strong {
    display: block;
    font-size: 20px;
}

.feature-tile p,
.spotlight-strip p,
.page-hero p,
.prose-panel p,
.site-footer p {
    color: #cbd5e1;
    line-height: 1.8;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

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

.spotlight-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 72px;
    padding: 42px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.18), transparent 24rem),
        rgba(15, 23, 42, 0.78);
}

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

.page-hero {
    margin-top: 34px;
    padding: 58px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
    box-shadow: var(--shadow);
}

.small-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.inline-search {
    width: min(460px, 100%);
    display: flex;
    gap: 10px;
}

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

.category-card {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
}

.category-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b, #475569);
}

.category-image img {
    opacity: 0.42;
    transition: transform 0.35s ease;
}

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

.category-copy {
    position: relative;
    z-index: 2;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
}

.category-copy em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 800;
}

.category-copy strong {
    margin: 4px 0;
    font-size: 26px;
    line-height: 1.2;
}

.category-copy span {
    color: #cbd5e1;
}

.filter-panel {
    padding-top: 36px;
}

.filter-bar {
    position: sticky;
    top: 86px;
    z-index: 20;
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.filter-buttons button {
    min-height: 38px;
    padding: 0 14px;
    color: #e2e8f0;
    cursor: pointer;
}

.empty-state {
    display: none;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

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

.rank-page {
    padding-top: 36px;
}

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

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.crumbs a:hover {
    color: #fbbf24;
}

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

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

.player-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-overlay span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

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

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #f8fafc;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-status.show {
    opacity: 1;
}

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

.detail-meta {
    margin: 16px 0;
    color: var(--muted);
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.11);
}

.detail-one-line {
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.75;
}

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

.prose-panel h2,
.detail-side .panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.prose-panel p {
    margin: 0 0 22px;
    font-size: 16px;
}

.prose-panel p:last-child {
    margin-bottom: 0;
}

.poster-large {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e293b, #475569);
}

.side-links {
    margin-top: 16px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.4);
}

.mini-card:hover {
    background: rgba(245, 158, 11, 0.12);
}

.mini-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #475569);
}

.related-section {
    width: 100%;
    padding-top: 60px;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0 30px;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 14px;
}

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

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

    .detail-layout,
    .split-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    .nav-wrap {
        height: 66px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 14px 16px;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 78px;
        padding-bottom: 156px;
    }

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

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .rank-large,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .small-hero,
    .spotlight-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .page-hero {
        padding: 34px;
    }

    .filter-bar {
        top: 76px;
    }

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

@media (max-width: 560px) {
    .logo-copy small {
        display: none;
    }

    .logo-copy strong {
        font-size: 17px;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .rank-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 34px 62px minmax(0, 1fr);
    }

    .detail-copy,
    .prose-panel,
    .side-poster,
    .detail-side .panel,
    .split-section .panel {
        padding: 18px;
    }
}
