:root {
    color-scheme: dark;
    --bg: #030712;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-strong: #020617;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --red: #dc2626;
    --red-soft: rgba(220, 38, 38, 0.18);
    --orange: #f97316;
    --gold: #facc15;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(3, 7, 18, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 14px 35px rgba(220, 38, 38, 0.3);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 21px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(249, 115, 22, 0.9));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

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

main {
    padding-top: 78px;
}

.hero-carousel {
    position: relative;
    min-height: clamp(640px, 78vh, 820px);
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.5)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-backdrop::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.28), transparent 28rem), linear-gradient(180deg, transparent, #030712 96%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: clamp(640px, 78vh, 820px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 60px;
    align-items: center;
    padding: 54px 0 76px;
}

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

.eyebrow,
.section-heading span,
.ranking-copy-large span,
.category-overview-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb923c;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 16px 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-line {
    margin: 0 0 16px;
    max-width: 650px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-meta,
.card-meta,
.detail-meta,
.ranking-copy p,
.footer-brand p,
.site-footer p {
    color: var(--muted);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    padding: 5px 10px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fed7aa;
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.text-link,
.ranking-actions a,
.back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.ranking-actions a,
.back-top {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 38px rgba(220, 38, 38, 0.24);
}

.ghost-btn {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.ranking-actions a:hover,
.back-top:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.16);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.24), rgba(249, 115, 22, 0.18));
    box-shadow: var(--shadow);
}

.hero-poster::before {
    content: "";
    display: block;
    padding-top: 145%;
}

.hero-img,
.detail-img,
.poster-img,
.ranking-img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.94);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button {
    border: 1px solid rgba(248, 250, 252, 0.18);
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    font-size: 28px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

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

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

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: #fca5a5;
}

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

.small-grid,
.library-grid,
.category-movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 113, 113, 0.64);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(249, 115, 22, 0.18));
}

.poster-frame::before {
    content: "";
    display: block;
    padding-top: 145%;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82));
    opacity: 0.7;
}

.card-badge,
.rank-mark {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    right: 10px;
    background: rgba(220, 38, 38, 0.92);
}

.rank-mark {
    left: 10px;
    background: rgba(250, 204, 21, 0.92);
    color: #111827;
}

.card-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    min-height: 48px;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body h3 a:hover {
    color: #fca5a5;
}

.card-meta {
    margin: 0 0 8px;
    font-size: 13px;
}

.card-desc {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 3px 8px;
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.18);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) 170px 170px;
    gap: 14px;
    align-items: end;
    margin: 34px 0 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.filter-panel strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

.filter-panel span {
    color: var(--muted);
    font-size: 13px;
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 0 12px;
    outline: none;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(248, 113, 113, 0.86);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.92)), var(--category-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: end;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 113, 113, 0.6);
}

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.ranking-entry {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 26px;
    align-items: stretch;
    margin-top: 22px;
    padding: 30px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24rem), rgba(15, 23, 42, 0.82);
}

.ranking-copy-large h2 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.ranking-copy-large p {
    color: #cbd5e1;
}

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

.ranking-mini-list a {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.45);
}

.ranking-mini-list strong {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.ranking-mini-list em {
    color: var(--muted);
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: grid;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.62)), var(--hero-image, radial-gradient(circle at top, rgba(220, 38, 38, 0.3), transparent 24rem));
    background-size: cover;
    background-position: center;
}

.compact-hero {
    min-height: 340px;
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.25), transparent 34rem), linear-gradient(135deg, #111827, #020617);
}

.page-hero > div {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 20px;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
    padding: 44px 0;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.overview-poster-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.overview-poster-stack img {
    position: relative;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    font-size: 30px;
}

.category-overview-card p {
    color: #cbd5e1;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 12px;
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    min-height: 214px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: var(--gold);
    font-weight: 900;
}

.ranking-copy {
    padding: 6px 6px 6px 0;
}

.ranking-copy h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.ranking-copy p {
    margin: 0 0 8px;
}

.ranking-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.ranking-actions span {
    color: #fed7aa;
    font-weight: 800;
}

.detail-wrap {
    padding: 34px 0 54px;
}

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

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

.player-section {
    margin-bottom: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.14);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-button span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 20px 55px rgba(220, 38, 38, 0.32);
    font-size: 36px;
}

.play-button strong {
    font-size: 18px;
}

.player-box.is-playing .play-button {
    opacity: 0;
    visibility: hidden;
}

.player-state {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #fecaca;
    font-weight: 800;
    pointer-events: none;
}

.detail-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.detail-poster {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
}

.detail-poster .detail-img {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(249, 115, 22, 0.2));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.detail-copy {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.detail-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.48);
}

.lead-text {
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-copy h2 {
    margin: 28px 0 8px;
    font-size: 24px;
}

.detail-copy p {
    color: #cbd5e1;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 28px;
}

.site-footer h3 {
    margin: 0 0 12px;
}

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

.site-footer a,
.site-footer p {
    color: #94a3b8;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }

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

    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    main {
        padding-top: 68px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 34px;
        padding-bottom: 110px;
    }

    .hero-poster {
        width: min(260px, 78vw);
    }

    .hero-controls {
        right: auto;
        left: 16px;
    }

    .section-heading,
    .ranking-entry,
    .category-overview-card,
    .detail-main,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
    }

    .movie-grid,
    .small-grid,
    .library-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        position: static;
        max-width: 280px;
    }

    .ranking-cover {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .small-grid,
    .library-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-actions,
    .detail-meta {
        flex-direction: column;
        align-items: stretch;
    }
}
