:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --bg-card-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --accent-strong: #fbbf24;
    --danger: #ef4444;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 26px 80px rgba(2, 6, 23, 0.48);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 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 rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 45px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.75rem;
}

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

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

.nav-link {
    padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent-strong);
    background: rgba(245, 158, 11, 0.12);
}

.header-search {
    width: min(300px, 28vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.inline-filter input,
.filter-row input,
.filter-row select {
    width: 100%;
    color: var(--text);
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    padding: 9px 8px 9px 14px;
    border: 0;
    background: transparent;
}

.header-search button,
.mobile-search button,
.wide-search button {
    flex: none;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover,
.category-card-button:hover,
.text-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search input {
    padding: 12px 16px;
}

.mobile-search button {
    padding: 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
}

main {
    width: 100%;
}

.hero-carousel,
.page-shell,
.section-block,
.search-panel {
    width: min(100% - 32px, var(--container));
    margin-left: auto;
    margin-right: auto;
}

.hero-carousel {
    padding-top: 32px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
    gap: 36px;
    align-items: center;
    padding: clamp(28px, 6vw, 76px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(8px) saturate(1.16);
    transform: scale(1.05);
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.58) 100%),
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.26), transparent 26rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.page-hero span,
.section-heading span,
.category-card span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.45rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy p,
.section-intro {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 1.05rem;
}

.hero-poster {
    align-self: stretch;
    min-height: 420px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.14);
    box-shadow: 0 40px 80px rgba(2, 6, 23, 0.52);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.78rem;
}

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

.primary-button,
.ghost-button,
.category-card-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.primary-button,
.category-card-button,
.text-link {
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.primary-button,
.ghost-button {
    padding: 0 22px;
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(248, 250, 252, 0.18);
    background: rgba(15, 23, 42, 0.48);
}

.ghost-button:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.12);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 2rem;
    line-height: 1;
}

.hero-arrow:hover {
    color: var(--accent-strong);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--accent);
}

.hero-category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.hero-category-strip a {
    min-height: 104px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.hero-category-strip a:hover,
.category-card:hover,
.movie-card:hover,
.top-rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.hero-category-strip a span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.search-panel {
    margin-top: 42px;
    padding: 26px;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 18px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.wide-search {
    display: flex;
    gap: 12px;
}

.wide-search input {
    padding: 15px 18px;
}

.wide-search button {
    padding: 0 26px;
    border: 0;
}

.section-block {
    margin-top: 68px;
}

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--accent-strong);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.movie-card h2 a:hover {
    color: var(--accent-strong);
}

.movie-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.is-compact .movie-card-body {
    padding: 13px;
}

.movie-card.is-compact p {
    -webkit-line-clamp: 2;
}

.text-link {
    min-height: 36px;
    margin-top: 14px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.page-shell {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 88% 15%, rgba(245, 158, 11, 0.28), transparent 21rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
    box-shadow: var(--shadow);
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: var(--bg-card);
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-card h2 {
    margin: 12px 0 8px;
    font-size: 1.55rem;
}

.category-card p {
    margin: 0;
    color: var(--muted-strong);
}

.category-card-button {
    align-self: center;
    padding: 0 18px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.1);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.mini-links a:hover {
    color: var(--accent-strong);
}

.inline-filter input {
    min-width: 280px;
    padding: 13px 16px;
}

.filter-card {
    margin-top: 26px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: var(--bg-card);
}

.filter-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.filter-row input,
.filter-row select {
    padding: 13px 14px;
}

.empty-state {
    margin: 36px auto 0;
    text-align: center;
    color: var(--muted-strong);
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.top-rank-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.2s ease, border 0.2s ease;
}

.top-rank-card > a {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.top-rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-rank-card > a span {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #111827;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 900;
}

.top-rank-card div {
    padding: 18px;
}

.top-rank-card h2 {
    margin: 0 0 8px;
}

.top-rank-card p {
    margin: 0;
    color: var(--muted-strong);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(24px, 5vw, 52px);
    align-items: center;
    padding: clamp(22px, 5vw, 48px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.22), transparent 20rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.95));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow: 0 32px 70px rgba(2, 6, 23, 0.52);
}

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

.player-section {
    margin-top: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #111827;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 17rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: clamp(72px, 12vw, 112px);
    height: clamp(72px, 12vw, 112px);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    font-size: clamp(2rem, 5vw, 3.5rem);
    box-shadow: 0 28px 68px rgba(245, 158, 11, 0.36);
}

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

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

.detail-article,
.side-panel {
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-article {
    padding: clamp(22px, 4vw, 38px);
}

.detail-article h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    color: var(--muted-strong);
    margin: 0 0 16px;
    font-size: 1.02rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.info-list dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.info-list dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 800;
}

.side-panel {
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 94px;
}

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

.side-list .movie-card {
    display: grid;
    grid-template-columns: 92px 1fr;
}

.side-list .poster-link {
    aspect-ratio: 2 / 3;
}

.side-list .movie-card-body {
    padding: 10px 12px;
}

.side-list .tag-row,
.side-list .text-link,
.side-list .movie-meta span:nth-child(n+2) {
    display: none;
}

.site-footer {
    margin-top: 80px;
    padding: 46px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.95));
}

.footer-grid {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1rem;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: var(--accent-strong);
}

.footer-bottom {
    width: min(100% - 32px, var(--container));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.9rem;
}

@media (max-width: 1060px) {
    .header-search {
        display: none;
    }

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

    .hero-poster {
        min-height: 320px;
    }

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

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

    .hero-category-strip,
    .filter-row,
    .top-rank-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .desktop-nav {
        display: none;
    }

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

    .brand-copy strong {
        font-size: 1rem;
    }

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

    .hero-slide {
        padding: 24px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2.2rem, 14vw, 3.5rem);
    }

    .hero-category-strip,
    .movie-grid,
    .compact-grid,
    .rank-grid,
    .category-grid,
    .filter-row,
    .top-rank-grid,
    .footer-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .small-hero,
    .category-hero,
    .search-hero,
    .ranking-hero,
    .section-heading,
    .wide-search,
    .category-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .inline-filter input {
        min-width: 0;
    }

    .side-list .movie-card {
        grid-template-columns: 86px 1fr;
    }
}
