:root {
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.68);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(56, 189, 248, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --sky: #38bdf8;
  --blue: #2563eb;
  --gold: #facc15;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-main) 45%, var(--bg-deep));
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(2, 6, 23, 0.72));
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-icon,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #e0f2fe, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding: 26px 0 22px;
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--sky);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #7dd3fc;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.92);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  padding: 11px 14px;
  color: #e2e8f0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.16);
}

main {
  min-height: 62vh;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.26) 46%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 12%;
  width: min(680px, calc(100% - 64px));
  z-index: 2;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-content p {
  margin: 0 0 28px;
  max-width: 640px;
  color: #cbd5e1;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(14, 165, 233, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(2, 6, 23, 0.62);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 165, 233, 0.72);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 36px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #7dd3fc;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-link {
  min-height: 40px;
  padding: 0 18px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

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

.movie-card,
.wide-link,
.rank-link,
.category-tile,
.category-overview-card > a,
.top-rank-card {
  display: block;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card:hover,
.wide-link:hover,
.rank-link:hover,
.category-tile:hover,
.category-overview-card > a:hover,
.top-rank-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: var(--shadow);
}

.card-poster,
.wide-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.card-poster img,
.wide-poster img,
.category-tile img,
.top-rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover img,
.wide-link:hover img,
.category-tile:hover img,
.top-rank-card:hover img {
  transform: scale(1.06);
  opacity: 0.82;
}

.duration-badge,
.card-category,
.rating-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  color: white;
  background: rgba(2, 6, 23, 0.78);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body,
.wide-body {
  padding: 18px;
}

.card-category {
  padding: 5px 10px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  margin-bottom: 10px;
}

.movie-card h2,
.movie-card h3,
.wide-card h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row span:first-child,
.detail-meta span:first-child {
  color: var(--gold);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-tile span,
.category-overview-card span,
.top-rank-card span {
  width: max-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.28);
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile em {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
}

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

.wide-link {
  display: grid;
  grid-template-columns: 44% 1fr;
}

.wide-poster {
  height: 100%;
  min-height: 220px;
}

.wide-card h3 {
  font-size: 22px;
}

.rank-grid {
  display: grid;
  gap: 14px;
}

.rank-link {
  min-height: 120px;
  display: grid;
  grid-template-columns: 58px 150px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}

.rank-number {
  font-size: 32px;
  line-height: 1;
  color: #7dd3fc;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.rank-link img {
  width: 150px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-content strong,
.rank-content em,
.rank-content small {
  display: block;
}

.rank-content strong {
  margin-bottom: 7px;
  font-size: 18px;
  color: white;
}

.rank-content em {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-content small {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.rating-badge {
  padding: 7px 11px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.12);
}

.page-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.92));
}

.compact-hero {
  min-height: 260px;
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.catalog-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  flex: 1;
}

.search-box input,
.select-box select {
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: white;
  background: rgba(30, 41, 59, 0.88);
  outline: none;
}

.search-box input {
  width: 100%;
  padding: 0 14px;
}

.select-box select {
  padding: 0 38px 0 14px;
}

.search-box input:focus,
.select-box select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.view-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.88);
}

.view-switch button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.view-switch button.is-active {
  background: #0284c7;
  color: white;
}

.catalog-grid.is-list {
  display: grid;
  grid-template-columns: 1fr;
}

.catalog-grid.is-list .movie-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.catalog-grid.is-list .card-poster {
  height: 100%;
}

.empty-result {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.empty-result.is-visible {
  display: block;
}

.category-overview-card > a {
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.top-rank-card {
  position: relative;
  min-height: 430px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.top-rank-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.08));
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.top-rank-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.top-rank-card p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.65;
}

.top-rank-card strong {
  color: #fde68a;
  font-size: 20px;
}

.player-page {
  padding: 34px 0 70px;
}

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

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

.breadcrumb a:hover {
  color: #7dd3fc;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: black;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.16));
}

.player-overlay.is-hidden {
  display: none;
}

.center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 22px 48px rgba(14, 165, 233, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.center-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.center-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-panel {
  margin-top: 28px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.detail-category {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.detail-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-panel section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(51, 65, 85, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 14px;
}

.related-section {
  padding-top: 62px;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .hero-slider {
    height: 620px;
    min-height: 620px;
  }

  .hero-content {
    left: 20px;
    bottom: 92px;
    width: calc(100% - 40px);
  }

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

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

  .hero-dots {
    bottom: 44px;
  }

  .section-head,
  .catalog-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .overview-grid,
  .wide-grid,
  .top-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-link,
  .catalog-grid.is-list .movie-card {
    grid-template-columns: 1fr;
  }

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

  .rank-link .rating-badge {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

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

  .movie-grid,
  .category-grid,
  .overview-grid,
  .wide-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid.is-list .movie-card {
    display: block;
  }

  .rank-link {
    grid-template-columns: 42px 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-link img {
    width: 96px;
    height: 66px;
  }

  .rank-content small {
    display: none;
  }

  .page-hero-inner,
  .content-section,
  .player-shell,
  .nav-shell,
  .mobile-nav,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .detail-panel {
    padding: 22px;
  }

  .center-play {
    width: 66px;
    height: 66px;
  }
}
