:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #1e293b;
    --bg-card-strong: #111827;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #facc15;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 24px;
    --radius-small: 14px;
    --container: 1180px;
}

* {
    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.14), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::selection {
    background: rgba(249, 115, 22, 0.35);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 70px;
}

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

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-brand {
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.mobile-link {
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fb923c;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    color: var(--text);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.filter-panel button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 800;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    background: rgba(15, 23, 42, 0.95);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: clamp(560px, 80vh, 780px);
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-media,
.detail-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.02);
}

.hero-scrim,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.28)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.05) 50%, rgba(2, 6, 23, 0.45));
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(560px, 80vh, 780px);
    max-width: 760px;
    padding-block: 96px 116px;
}

.hero-labels,
.detail-labels,
.hero-tags,
.detail-tags,
.side-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-labels span,
.detail-labels span,
.detail-tags span,
.side-tags span,
.movie-tags span,
.hero-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-labels span:first-child,
.detail-labels span:first-child {
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: white;
    padding: 7px 12px;
}

.hero-labels span:not(:first-child),
.detail-labels span:not(:first-child),
.hero-tags span,
.detail-tags span,
.side-tags span,
.movie-tags span {
    background: rgba(30, 41, 59, 0.78);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 6px 11px;
}

.hero h1 {
    margin: 22px 0 12px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.hero-actions,
.page-hero-actions,
.detail-actions,
.section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.25);
}

.btn-ghost {
    color: var(--text);
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: white;
    background: rgba(15, 23, 42, 0.58);
    font-size: 2rem;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

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

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

.section {
    padding: 76px 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.92));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading-left {
    margin-inline: 0;
    text-align: left;
}

.section-heading span,
.page-hero span {
    color: #fb923c;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2,
.side-card h2,
.overview-copy h2 {
    margin: 8px 0 10px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.35rem);
}

.section-heading p,
.page-hero p,
.overview-copy p {
    color: var(--text-muted);
    margin: 0;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.78);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.movie-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.26), rgba(15, 23, 42, 0.96));
}

.movie-card-featured .movie-cover {
    aspect-ratio: 16 / 10.6;
}

.movie-cover-img,
.ranking-thumb-img,
.category-card-img,
.overview-thumb-img,
.detail-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card-link:hover .movie-cover-img,
.category-card:hover .category-card-img,
.ranking-item:hover .ranking-thumb-img {
    transform: scale(1.08);
}

.movie-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.82));
}

.movie-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.movie-badges span {
    padding: 5px 9px;
    border-radius: 9px;
    color: white;
    font-size: 0.76rem;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.86);
}

.movie-badges span:first-child {
    background: var(--orange);
}

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card-link:hover .card-play {
    opacity: 1;
}

.card-play span,
.play-ring {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
}

.card-play span::before,
.play-ring span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid white;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 7px;
    color: white;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-info p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.movie-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-tags {
    margin-top: 11px;
}

.movie-tags span {
    font-size: 0.72rem;
    padding: 3px 8px;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.76), rgba(220, 38, 38, 0.74));
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
}

.category-purple-pink {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.78), rgba(236, 72, 153, 0.72));
}

.category-blue-cyan {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.78), rgba(6, 182, 212, 0.72));
}

.category-green-emerald {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.78), rgba(16, 185, 129, 0.72));
}

.category-card > div,
.category-card > em {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 950;
}

.category-card strong {
    display: block;
    color: rgba(255, 255, 255, 0.86);
}

.category-card em {
    position: absolute;
    left: 24px;
    bottom: 22px;
    font-style: normal;
    font-weight: 900;
}

.category-card-img {
    position: absolute;
    right: -22px;
    bottom: -14px;
    width: 62%;
    height: 68%;
    border-radius: 24px 0 0 0;
    opacity: 0.46;
}

.two-column,
.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: start;
}

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

.ranking-list,
.ranking-page-grid {
    display: grid;
    gap: 12px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(30, 41, 59, 0.9);
}

.ranking-number {
    width: 42px;
    color: #fb923c;
    font-size: 1.3rem;
    font-weight: 950;
    text-align: center;
}

.ranking-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.8);
}

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

.ranking-copy strong,
.ranking-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.ranking-copy span {
    color: var(--text-dim);
    font-size: 0.84rem;
}

.more-link {
    display: inline-flex;
    margin-top: 20px;
    color: #fb923c;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.28), transparent 28rem),
        linear-gradient(135deg, #0f172a, #020617);
}

.small-hero {
    padding: 74px 0;
}

.page-hero-red-orange {
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.36), transparent 30rem), #020617;
}

.page-hero-purple-pink {
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.32), transparent 30rem), #020617;
}

.page-hero-blue-cyan {
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.32), transparent 30rem), #020617;
}

.page-hero-green-emerald {
    background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.32), transparent 30rem), #020617;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.search-panel {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr auto;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--text-muted);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
}

.empty-state {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.72);
    text-align: center;
}

.overview-grid {
    display: grid;
    gap: 24px;
}

.overview-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
}

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

.overview-thumbs img {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.9);
}

.detail-hero {
    min-height: 620px;
    padding: 38px 0 70px;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--text-dim);
}

.breadcrumb a {
    color: #fb923c;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    max-width: 820px;
    margin: 18px 0 12px;
    font-size: clamp(2.3rem, 5.4vw, 4.8rem);
    line-height: 1;
}

.detail-one-line {
    max-width: 800px;
    color: var(--text-muted);
    font-size: 1.16rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-muted);
}

.player-section {
    padding-top: 42px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 18px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay strong {
    max-width: min(720px, 86%);
    font-size: clamp(1.2rem, 3.4vw, 2.2rem);
    text-align: center;
}

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

.content-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 62px rgba(0, 0, 0, 0.24);
}

.content-card {
    padding: 30px;
}

.content-card p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.content-card h2:not(:first-child) {
    margin-top: 26px;
}

.side-card {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 18px 0;
}

.side-card dt {
    color: var(--text-dim);
}

.side-card dd {
    margin: 0;
    color: var(--text);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
    padding: 42px 0;
}

.site-footer p {
    max-width: 580px;
    color: var(--text-dim);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .movie-card-featured {
        grid-column: span 2;
    }

    .two-column,
    .detail-content-grid,
    .overview-card {
        grid-template-columns: 1fr;
    }

    .ranking-page-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    .hero {
        min-height: 660px;
    }

    .hero-copy {
        min-height: 660px;
        padding-top: 74px;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-card-featured {
        grid-column: span 2;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        max-width: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        font-size: 1.16rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 56px 0;
    }

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

    .movie-card-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .ranking-item {
        grid-template-columns: auto 74px minmax(0, 1fr);
        gap: 10px;
    }

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

    .content-card,
    .side-card {
        padding: 20px;
    }
}
