:root {
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-amber-600: #d97706;
    --color-amber-500: #f59e0b;
    --color-amber-400: #fbbf24;
    --color-orange-600: #ea580c;
    --color-red-600: #dc2626;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.25);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-slate-900);
    background: linear-gradient(180deg, var(--color-slate-50), var(--color-slate-100));
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header__inner {
    width: var(--container);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand__mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber-500), var(--color-red-600));
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.35);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand__tagline {
    margin-top: 4px;
    color: var(--color-slate-400);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    color: var(--color-slate-300, #cbd5e1);
    border-radius: 12px;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(245, 158, 11, 0.9);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
}

.top-search input {
    width: 210px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 10px 8px 10px 12px;
}

.top-search input::placeholder {
    color: var(--color-slate-400);
}

.top-search button {
    color: #fff;
    background: var(--color-amber-500);
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.25), transparent 36%), linear-gradient(135deg, #020617, #451a03 52%, #0f172a);
}

.hero-track {
    position: relative;
    width: var(--container);
    min-height: 670px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -80px -20vw;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(24px) saturate(1.2);
    transform: scale(1.08);
}

.hero-slide__shade {
    position: absolute;
    inset: -80px -20vw;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.88));
}

.hero-slide__content,
.hero-slide__poster {
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-amber-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-slide h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-slide p {
    max-width: 680px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber-500), var(--color-red-600));
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(245, 158, 11, 0.34);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.btn-line {
    color: var(--color-amber-500);
    border: 1px solid rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.08);
}

.btn-small {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 11px;
}

.hero-slide__poster {
    justify-self: end;
    width: min(390px, 100%);
    aspect-ratio: 3 / 4.15;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-slide__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-slide__poster:hover img {
    transform: scale(1.06);
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: 0.25s ease;
}

.hero-dot.is-active {
    width: 64px;
    background: var(--color-amber-500);
}

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

.content-section--raised {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.content-section--soft {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.54), rgba(248, 250, 252, 0.86));
}

.content-section--player {
    padding-top: 54px;
    background: var(--color-slate-950);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-slate-900);
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-heading p {
    grid-column: 1;
    margin: 0;
    color: var(--color-slate-500);
    line-height: 1.8;
}

.section-link,
.text-link {
    color: var(--color-amber-600);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-slate-200);
}

.movie-card--small .movie-card__poster {
    aspect-ratio: 4 / 3;
}

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

.movie-card:hover .movie-card__poster img {
    transform: scale(1.08);
}

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.58));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: 0.28s ease;
}

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

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--color-slate-900);
    font-size: 20px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    color: var(--color-slate-600);
    line-height: 1.7;
}

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

.tag-row span {
    color: var(--color-amber-600);
    background: rgba(245, 158, 11, 0.1);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.tag-row--large span {
    color: #fff;
    background: rgba(245, 158, 11, 0.24);
    border: 1px solid rgba(245, 158, 11, 0.34);
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-700));
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--tile-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover::after {
    opacity: 0.28;
    transform: scale(1.08);
}

.category-tile__icon,
.category-tile__content {
    position: relative;
    z-index: 1;
}

.category-tile__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(245, 158, 11, 0.88);
    border-radius: 14px;
    font-weight: 900;
}

.category-tile__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-tile__content strong {
    font-size: 22px;
}

.category-tile__content em {
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
}

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

.rank-panel {
    position: sticky;
    top: 104px;
    overflow: hidden;
    padding: 24px;
    color: #fff;
    background: linear-gradient(180deg, var(--color-slate-900), #111827);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.rank-panel__head span {
    color: var(--color-amber-500);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rank-panel__head h2 {
    margin: 6px 0 18px;
    font-size: 28px;
}

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

.compact-card a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.compact-card__cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 14px;
    background: var(--color-slate-800);
}

.compact-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    display: inline-flex;
    color: #fff;
    background: var(--color-amber-500);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
}

.compact-card__text {
    display: grid;
    gap: 5px;
}

.compact-card__text strong {
    color: inherit;
    line-height: 1.35;
}

.compact-card__text em {
    color: var(--color-slate-400);
    font-style: normal;
    font-size: 12px;
}

.rank-panel__more {
    display: block;
    margin-top: 20px;
    padding: 13px;
    color: #fff;
    text-align: center;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.36);
    border-radius: 14px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 86px;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.2), transparent 32%), linear-gradient(135deg, var(--color-slate-950), var(--color-slate-800));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--page-image);
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    filter: blur(12px);
    transform: scale(1.04);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 900px;
    margin: 14px 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--color-slate-500);
    font-size: 14px;
}

.breadcrumb--dark {
    color: var(--color-slate-300);
}

.breadcrumb a:hover {
    color: var(--color-amber-500);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-card-large__media {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    background-image: linear-gradient(135deg, rgba(2, 6, 23, 0.58), rgba(217, 119, 6, 0.36)), var(--category-image);
    background-size: cover;
    background-position: center;
}

.category-card-large__media span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(245, 158, 11, 0.88);
    border-radius: 24px;
    font-size: 32px;
    font-weight: 900;
}

.category-card-large__body {
    padding: 28px;
}

.category-card-large__body h2 {
    margin: 10px 0 18px;
    font-size: 30px;
}

.category-card-large__links {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--color-slate-600);
}

.category-card-large__links a:hover {
    color: var(--color-amber-600);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.filter-bar button,
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--color-slate-200);
    border-radius: 12px;
    background: #fff;
    min-height: 44px;
}

.filter-bar button {
    padding: 0 16px;
    color: var(--color-slate-600);
    font-weight: 800;
}

.filter-bar button.active,
.filter-bar button:hover {
    color: #fff;
    background: var(--color-amber-500);
    border-color: var(--color-amber-500);
}

.filter-bar input,
.filter-bar select {
    padding: 0 14px;
    outline: 0;
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-bar select {
    color: var(--color-slate-700);
}

.rank-table {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.rank-row__number {
    color: var(--color-amber-600);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-row__cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: var(--color-slate-200);
}

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

.rank-row__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row__body p {
    margin: 0 0 10px;
    color: var(--color-slate-600);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--color-slate-950);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: -70px;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.08);
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.95));
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
    padding: 74px 0;
}

.detail-hero__layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-hero__poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-hero__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero__content h1 {
    margin: 16px 0 16px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-hero__content p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.54));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-amber-500), var(--color-red-600));
    border-radius: 999px;
    box-shadow: 0 20px 70px rgba(245, 158, 11, 0.34);
    font-size: 32px;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
    align-items: start;
}

.detail-main,
.detail-side {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-main {
    padding: 34px;
}

.detail-main h2 {
    margin: 16px 0 16px;
    color: var(--color-slate-900);
    font-size: 30px;
    letter-spacing: -0.03em;
}

.detail-main p {
    margin: 0 0 24px;
    color: var(--color-slate-700);
    font-size: 17px;
    line-height: 2;
}

.detail-side {
    padding: 26px;
}

.detail-side h2 {
    margin: 0 0 20px;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-side dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-slate-200);
}

.detail-side dt {
    color: var(--color-slate-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--color-slate-900);
}

.site-footer {
    color: var(--color-slate-300);
    background: var(--color-slate-950);
    padding: 42px 0;
}

.site-footer__inner {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
}

.footer-links a:hover {
    color: var(--color-amber-500);
}

.site-footer p {
    flex-basis: 100%;
    margin: 0;
    color: var(--color-slate-500);
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .top-search {
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr 310px;
        gap: 30px;
    }

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

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .top-search {
        width: 100%;
    }

    .top-search input {
        width: 100%;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 54px 0 90px;
    }

    .hero-slide__poster {
        justify-self: start;
        width: min(280px, 74vw);
    }

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

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

    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

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

    .detail-hero__poster {
        width: min(280px, 78vw);
    }

    .rank-row {
        grid-template-columns: 48px 88px 1fr;
    }

    .rank-row .btn {
        grid-column: 2 / -1;
    }
}

@media (max-width: 560px) {
    :root {
        --container: min(100vw - 22px, 1180px);
    }

    .site-header__inner {
        min-height: 66px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand__name {
        font-size: 19px;
    }

    .brand__tagline {
        display: none;
    }

    .nav-link {
        padding: 9px 12px;
        white-space: nowrap;
    }

    .hero-slide h1,
    .page-hero h1,
    .detail-hero__content h1 {
        letter-spacing: -0.04em;
    }

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

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

    .category-tile {
        min-height: 138px;
    }

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

    .page-hero,
    .detail-hero__inner {
        padding: 56px 0;
    }

    .rank-row {
        grid-template-columns: 46px 1fr;
    }

    .rank-row__cover {
        grid-column: 1 / -1;
    }

    .rank-row .btn {
        grid-column: 1 / -1;
    }

    .detail-main,
    .detail-side {
        padding: 22px;
    }
}
