:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--secondary-900);
  background: var(--secondary-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary-900);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  font-size: 16px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary-700);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-600);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--secondary-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--secondary-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 220px;
  padding: 10px 12px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 800;
  background: var(--primary-600);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--secondary-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--secondary-700);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--secondary-200);
  padding: 16px;
  background: var(--white);
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.28s ease both;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--secondary-50);
  color: var(--secondary-700);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--secondary-900);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.02) 44%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 0 124px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-400);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.hero-content strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span,
.side-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--primary-600);
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-light {
  color: var(--secondary-900);
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
  position: absolute;
  top: 48%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 38px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.46);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 132, 199, 0.86);
  transform: translateY(-2px);
}

.hero-prev {
  left: max(16px, calc((100% - var(--container)) / 2 - 54px));
}

.hero-next {
  right: max(16px, calc((100% - var(--container)) / 2 - 54px));
}

.hero-search-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 470px;
  padding-bottom: 28px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 680px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-height: 46px;
  padding: 0 16px;
}

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

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
  border-color: var(--primary-400);
  background: rgba(2, 132, 199, 0.72);
  transform: translateY(-2px);
}

.hero-dot img {
  width: 46px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-dot span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  font-weight: 800;
  line-height: 1.25;
}

.section {
  margin: 56px auto;
}

.page-main {
  min-height: 60vh;
}

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

.section-head.flat {
  align-items: start;
}

.section-head h2,
.page-hero h1,
.detail-header h1,
.detail-section h2,
.side-box h2 {
  margin: 0;
  color: var(--secondary-900);
  line-height: 1.2;
  font-weight: 900;
}

.section-head h2 {
  font-size: 30px;
}

.section-more {
  color: var(--primary-600);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

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

.movie-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-200), var(--secondary-100));
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .movie-poster img {
  transform: scale(1.06);
}

.poster-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(2, 132, 199, 0.9);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-500);
  box-shadow: 0 12px 18px rgba(217, 119, 6, 0.28);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--secondary-900);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--primary-600);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--secondary-500);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--secondary-500);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-tags span,
.detail-tags span,
.side-tags span {
  color: var(--primary-700);
  background: var(--primary-50);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.category-panel,
.ranking-panel,
.category-band,
.detail-card,
.side-box,
.filter-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-panel,
.ranking-panel,
.category-band,
.filter-panel {
  padding: 26px;
}

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

.category-tile {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--secondary-200);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--secondary-50), var(--white));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: var(--primary-400);
  transform: translateY(-4px);
}

.category-tile span {
  color: var(--secondary-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  color: var(--secondary-500);
  font-size: 13px;
  font-style: normal;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--secondary-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  background: var(--primary-50);
  transform: translateX(4px);
}

.compact-card img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.compact-card strong {
  color: var(--secondary-900);
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.compact-card em {
  margin-top: 4px;
  color: var(--secondary-500);
  font-size: 12px;
  font-style: normal;
  -webkit-line-clamp: 1;
}

.rank-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: var(--secondary-800);
}

.page-hero {
  margin-top: 32px;
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.18), transparent 36%),
    linear-gradient(135deg, var(--white), var(--primary-50));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--secondary-600);
  font-size: 17px;
}

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

.breadcrumb a:hover {
  color: var(--primary-600);
}

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

.category-card-full a {
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-card-full img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-full:hover img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
}

.category-card-full div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.category-card-full h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.category-card-full p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-row input,
.filter-row select {
  min-height: 48px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  margin: 32px 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--secondary-500);
  text-align: center;
  background: var(--white);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.detail-card {
  padding: 24px;
}

.player-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22);
}

.stream-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--white);
  font-size: 38px;
  background: rgba(2, 132, 199, 0.9);
  box-shadow: 0 24px 38px rgba(2, 132, 199, 0.35);
}

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

.player-error {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  color: var(--white);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.detail-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-top: 26px;
  align-items: start;
}

.detail-poster {
  width: 190px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--secondary-100);
  box-shadow: var(--shadow-card);
}

.detail-header h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-one-line {
  margin: 14px 0 0;
  color: var(--secondary-600);
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.detail-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--secondary-200);
}

.detail-section h2,
.side-box h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: var(--secondary-700);
  font-size: 16px;
  line-height: 1.9;
}

.info-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--secondary-50);
}

.info-table dt {
  color: var(--secondary-500);
  font-weight: 900;
}

.info-table dd {
  margin: 0;
  color: var(--secondary-900);
  font-weight: 700;
}

.info-table a {
  color: var(--primary-600);
}

.detail-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.side-box {
  padding: 20px;
}

.side-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 720px;
  margin-top: 24px;
}

.search-page-form input {
  min-height: 52px;
  padding: 0 16px;
}

.search-page-form button {
  padding: 0 24px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  color: var(--secondary-300);
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 320px;
  color: var(--secondary-400);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(14, 165, 233, 0.28);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
  }

  .nav-link:nth-of-type(n + 9) {
    display: none;
  }

  .top-search input {
    width: 180px;
  }

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

@media (max-width: 980px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-search-panel {
    margin-top: 500px;
  }

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

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

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

  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

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

  .nav-bar {
    min-height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    min-height: 500px;
    padding: 52px 0 170px;
  }

  .hero-content p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    margin-top: 500px;
  }

  .hero-search,
  .search-page-form,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .section {
    margin: 42px auto;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .feature-grid,
  .compact-grid,
  .catalog-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    min-height: 42px;
    font-size: 14px;
  }

  .movie-line,
  .movie-tags {
    display: none;
  }

  .page-hero,
  .detail-card,
  .category-panel,
  .ranking-panel,
  .category-band,
  .filter-panel {
    padding: 20px;
    border-radius: 20px;
  }

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

  .detail-poster {
    width: 160px;
  }

  .info-table dl {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .feature-grid,
  .compact-grid,
  .catalog-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu nav {
    grid-template-columns: 1fr;
  }
}
