:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-solid: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.68);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --orange: #f97316;
    --orange-light: #fb923c;
    --red: #dc2626;
    --cyan: #22d3ee;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 4%, rgba(249, 115, 22, 0.16), transparent 28rem),
        radial-gradient(circle at 80% 12%, rgba(220, 38, 38, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

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

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

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(90deg, #fed7aa, var(--orange-light), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(249, 115, 22, 0.14);
}

.nav-link-accent {
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, 0.28);
}

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

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

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 45%, rgba(2, 6, 23, 0.58) 100%),
        radial-gradient(circle at 20% 72%, rgba(249, 115, 22, 0.24), transparent 26rem);
}

.hero-content {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 92px;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fed7aa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-kicker strong,
.eyebrow {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.28);
}

.hero h1,
.page-hero h1,
.detail-copy h1,
.rank-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.5rem, 7vw, 6.25rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.rank-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-tags,
.static-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.hero-tags span,
.static-tags span {
    padding: 7px 12px;
    border-radius: 12px;
    color: #fff;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.32);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: #fff;
    background: rgba(15, 23, 42, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.page-main {
    padding-top: 46px;
}

.page-hero {
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.2), transparent 24rem),
        rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

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

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

.section-heading {
    justify-content: flex-start;
}

.section-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.22);
}

.section-heading h2,
.preview-heading h2,
.panel-title h2,
.detail-panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    letter-spacing: -0.03em;
}

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

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

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.018);
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 24px 70px rgba(249, 115, 22, 0.13);
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    background-color: #1e293b;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.movie-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 12rem),
        linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.78));
    opacity: 0.76;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::before {
    opacity: 0.95;
}

.movie-score,
.movie-play {
    position: absolute;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-score {
    top: 10px;
    left: 10px;
    background: rgba(249, 115, 22, 0.9);
}

.movie-play {
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.84);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange-light);
}

.movie-card p {
    margin: 0 0 12px;
    min-height: 3.1em;
    color: var(--muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--muted-strong);
    font-size: 0.78rem;
}

.movie-meta-row span {
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.62);
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-tags span,
.detail-tags a {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.18);
    font-size: 0.75rem;
}

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

.movie-card-compact h3 {
    font-size: 0.96rem;
}

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

.category-tile {
    min-height: 248px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(249, 115, 22, 0.74);
}

.category-tile a {
    display: flex;
    min-height: 248px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.category-count {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
}

.category-tile h3 {
    margin: 14px 0 8px;
    font-size: 1.35rem;
}

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

.category-tile small {
    display: block;
    margin-top: 10px;
    color: #fff;
    opacity: 0.76;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: start;
}

.ranking-panel,
.detail-panel,
.filter-panel,
.category-preview-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.ranking-panel {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.panel-title a,
.preview-heading a {
    color: #fed7aa;
    font-weight: 800;
}

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

.ranking-list-full {
    gap: 14px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 42px 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.09);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
    background: rgba(51, 65, 85, 0.64);
    border-color: rgba(249, 115, 22, 0.52);
    transform: translateX(4px);
}

.rank-number {
    color: var(--orange-light);
    font-size: 1.2rem;
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background-position: center;
    background-size: cover;
}

.rank-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.rank-info p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-strong);
    font-size: 0.78rem;
}

.rank-hero {
    min-height: 420px;
    margin-top: -46px;
    background-position: center;
    background-size: cover;
}

.rank-hero-inner {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.search-field span {
    color: var(--orange-light);
    font-size: 1.35rem;
}

.search-field input,
.filter-selects select {
    width: 100%;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-selects select {
    min-height: 52px;
    min-width: 132px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.empty-state {
    display: none;
    padding: 32px;
    margin-top: 22px;
    text-align: center;
    color: var(--muted-strong);
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-xl);
}

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

.stacked-sections {
    display: grid;
    gap: 28px;
}

.category-preview-block {
    padding: 24px;
}

.detail-main {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.4), #020617 36rem);
}

.detail-hero {
    min-height: 640px;
    margin-top: -1px;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    padding: 36px 0 68px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 34px;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.breadcrumbs a:hover {
    color: var(--orange-light);
}

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

.detail-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-cover span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.9);
    font-weight: 900;
}

.detail-copy h1 {
    max-width: 860px;
    font-size: clamp(2.35rem, 6vw, 5.35rem);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.player-section {
    margin-top: -84px;
    padding-bottom: 62px;
}

.player-shell {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
    cursor: pointer;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-big-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-size: 2rem;
    box-shadow: 0 20px 56px rgba(249, 115, 22, 0.38);
    cursor: pointer;
}

.player-overlay p {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    pointer-events: none;
}

.player-shell.is-playing .player-status {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 18px;
}

.detail-panel {
    padding: 26px;
}

.detail-panel p {
    margin: 14px 0 0;
    color: var(--muted-strong);
    font-size: 1rem;
}

.info-panel dl {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}

.info-panel div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: #fff;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-tags a {
    font-size: 0.9rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    padding: 48px 0 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

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

.footer-grid a:hover {
    color: var(--orange-light);
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

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

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

    .two-column-section {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

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

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding: 96px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

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

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

    .filter-selects {
        flex-direction: column;
    }

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

    .detail-cover {
        width: min(280px, 80vw);
    }

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

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

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

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

    .hero h1,
    .detail-copy h1,
    .rank-hero h1 {
        font-size: 2.6rem;
        letter-spacing: -0.045em;
    }

    .hero p,
    .detail-one-line {
        font-size: 1rem;
    }

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

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

    .category-tile,
    .category-tile a {
        min-height: 210px;
    }

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

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

    .player-big-button {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
