:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.16);
    --amber: #f59e0b;
    --orange: #ea580c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem), linear-gradient(180deg, #0f172a 0%, #020617 42%, #000 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100%, var(--max));
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.34);
}

.brand-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fde68a, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: #f59e0b;
    transform: translateY(-1px);
}

.category-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.34);
}

.category-strip-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-strip a:hover {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.86);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
}

.mobile-nav {
    display: none;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #d1d5db;
    background: rgba(30, 41, 59, 0.58);
}

.mobile-link.active,
.mobile-link:hover {
    color: #fff;
    background: #f59e0b;
}

.mobile-nav-title {
    padding: 12px 4px 4px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
}

main {
    min-height: 70vh;
}

.container {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 0 20px;
}

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

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
    gap: 44px;
    align-items: center;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 54px 20px 82px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(36px);
    transition: opacity 0.56s ease, transform 0.56s ease;
}

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

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 15%, rgba(245, 158, 11, 0.26), transparent 30rem), radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.16), transparent 28rem), linear-gradient(180deg, rgba(15, 23, 42, 0.68), #020617 96%);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.34);
    font-size: 14px;
    font-weight: 750;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-description {
    max-width: 740px;
    color: #d1d5db;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.72);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    color: #cbd5e1;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.74);
}

.hero-poster {
    position: relative;
    z-index: 2;
    min-height: 472px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-poster img {
    width: 100%;
    height: 472px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.hero-poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.hero-poster-caption strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.hero-poster-caption span {
    color: #d1d5db;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-arrow.prev {
    left: max(16px, calc((100vw - var(--max)) / 2 + 10px));
}

.hero-arrow.next {
    right: max(16px, calc((100vw - var(--max)) / 2 + 10px));
}

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

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

.hero-dot.active {
    width: 34px;
    background: #f59e0b;
}

.section {
    padding: 56px 0;
}

.section.alt {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.44), rgba(15, 23, 42, 0.54));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
    font-size: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

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

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

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

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

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

.movie-card {
    position: relative;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 22px 62px rgba(245, 158, 11, 0.16);
    background: rgba(51, 65, 85, 0.9);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #020617);
}

.movie-thumb.wide {
    height: 100%;
    aspect-ratio: auto;
}

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

.movie-card:hover .movie-thumb img,
.category-cover-card:hover img,
.compact-card:hover img {
    transform: scale(1.06);
}

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 72%);
    transition: opacity 0.24s ease;
}

.movie-card:hover .movie-thumb::after {
    opacity: 1;
}

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.movie-badge {
    left: 12px;
    background: #f59e0b;
}

.movie-duration {
    right: 12px;
    background: rgba(0, 0, 0, 0.68);
}

.play-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #fff;
    background: #f59e0b;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.play-symbol.small {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.movie-info {
    padding: 17px;
}

.movie-info h3,
.compact-info h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h3,
.compact-card:hover h3 {
    color: #fbbf24;
}

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

.movie-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13px;
}

.movie-meta span:first-child,
.compact-meta span:first-child {
    color: #fbbf24;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 7px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
}

.movie-card.horizontal {
    display: flex;
}

.movie-card.horizontal .movie-card-link {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    width: 100%;
}

.movie-card.horizontal .movie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.compact-card {
    position: relative;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.64);
    transition: background 0.2s ease;
}

.compact-card:hover {
    background: rgba(30, 41, 59, 0.94);
}

.compact-card a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    align-items: center;
}

.compact-thumb {
    position: relative;
    height: 74px;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.rank-number {
    position: absolute;
    z-index: 6;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

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

.category-tile {
    position: relative;
    min-height: 152px;
    padding: 22px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.13);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 22px 56px rgba(245, 158, 11, 0.12);
}

.category-tile::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
}

.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 23px;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.category-tile span {
    position: relative;
    display: inline-flex;
    margin-top: 18px;
    color: #fbbf24;
    font-weight: 800;
}

.page-hero {
    padding: 62px 0;
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 24rem), linear-gradient(90deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 790px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: #fff;
    background: rgba(30, 41, 59, 0.9);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.empty-state {
    display: none;
    padding: 46px 20px;
    color: var(--muted);
    text-align: center;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.64);
}

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

.cta-panel {
    padding: 46px;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 38px);
}

.cta-panel p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: var(--muted);
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: var(--shadow);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.play-overlay.hidden {
    display: none;
}

.play-overlay-inner {
    display: grid;
    place-items: center;
    gap: 14px;
}

.play-overlay-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.38);
    font-size: 32px;
}

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

.detail-panel,
.side-panel {
    margin-top: 22px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
}

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

.detail-meta span {
    padding: 7px 10px;
    border-radius: 9px;
    color: #d1d5db;
    background: rgba(15, 23, 42, 0.6);
}

.detail-meta span:first-child {
    color: #fbbf24;
    font-weight: 900;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.detail-tags a,
.detail-tags span {
    padding: 7px 11px;
    border-radius: 10px;
    color: #d1d5db;
    background: rgba(15, 23, 42, 0.72);
}

.side-panel {
    position: sticky;
    top: 132px;
    margin-top: 0;
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.category-cover-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease;
}

.category-cover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
}

.category-cover-info {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.category-cover-info h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.category-cover-info p {
    margin: 0;
    color: #d1d5db;
}

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

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

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

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

    .side-panel {
        position: static;
    }
}

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

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

    .header-inner {
        height: 66px;
    }

    .category-strip {
        display: none;
    }

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

    .hero-slide {
        min-height: 780px;
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 38px;
    }

    .hero-poster,
    .hero-poster img {
        min-height: 330px;
        height: 330px;
    }

    .hero-arrow {
        top: auto;
        bottom: 28px;
        transform: none;
    }

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

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

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

    .movie-card.horizontal .movie-card-link {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        display: none;
    }

    .container,
    .page-hero-inner,
    .header-inner,
    .category-strip-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .movie-grid,
    .movie-grid.three,
    .movie-grid.two,
    .category-grid,
    .category-cover-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card.horizontal .movie-card-link,
    .compact-card a {
        grid-template-columns: 124px minmax(0, 1fr);
    }

    .movie-info p {
        min-height: auto;
    }

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

.site-footer {
    margin-top: 54px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #000);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 46px 20px 34px;
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 32px;
}

.footer-brand p {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-column h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 17px;
}

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

.footer-column a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 18px 20px 28px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}
