:root {
  --page-bg: #f9fafb;
  --panel-bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #0ea5e9;
  --cyan: #06b6d4;
  --green: #10b981;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  min-width: max-content;
}

.site-logo__mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo__mark {
  transform: scale(1.08) rotate(-3deg);
}

.site-logo__text {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-dark), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.search-panel input,
.catalog-toolbar input,
.catalog-toolbar select {
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  width: 210px;
  padding: 8px 4px 8px 14px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 12px;
  color: #374151;
  background: var(--soft);
  cursor: pointer;
  font-weight: 800;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--soft);
}

.mobile-panel__nav,
.mobile-panel__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-panel__categories {
  margin-top: 10px;
}

.mobile-panel__nav a,
.mobile-panel__categories a {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

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

.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-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.04);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(127, 29, 29, 0.84), rgba(194, 65, 12, 0.76) 42%, rgba(15, 23, 42, 0.54));
}

.hero-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-slide__text {
  max-width: 780px;
  color: #ffffff;
  padding-bottom: 56px;
}

.hero-kicker,
.section-kicker,
.detail-kicker,
.page-hero span,
.ranking-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-slide h1 {
  margin: 18px 0 4px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.hero-slide h2 {
  margin: 0 0 18px;
  color: #fde68a;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.hero-slide p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #fff7ed;
  font-size: clamp(17px, 2.2vw, 24px);
}

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

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--light {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.28);
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.28);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 94px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 18px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 900;
}

.spotlight {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -44px;
}

.section {
  padding-block: 56px;
}

.section--white {
  background: #ffffff;
}

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

.section-heading--compact {
  margin-bottom: 16px;
}

.section-kicker {
  color: var(--orange-dark);
  background: #fff7ed;
}

.section-heading h2 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #fff7ed;
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card__link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.movie-card--large .movie-card__poster {
  aspect-ratio: 16 / 9;
}

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

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

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.56));
}

.movie-card__badge,
.movie-card__duration {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.movie-card__badge {
  left: 12px;
  top: 12px;
  background: var(--orange);
}

.movie-card__duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2,
.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-card__tags span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-card__heat {
  margin-top: 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.horizontal-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.horizontal-card span {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.horizontal-card h3 {
  margin: 6px 0;
  font-size: 20px;
}

.horizontal-card p {
  margin: 0 0 8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-card strong {
  color: var(--orange-dark);
}

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

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

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 176px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-item--compact a {
  grid-template-columns: 46px 92px minmax(0, 1fr);
  gap: 12px;
}

.ranking-item__rank {
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.ranking-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-item p {
  margin: 0 0 8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-item__body div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.page-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-hero {
  padding: 80px 0;
}

.page-hero--orange {
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.page-hero--blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero span,
.ranking-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero h1,
.ranking-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero p,
.ranking-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.page-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-hero__links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

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

.category-box a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-box a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-box div {
  padding: 26px;
}

.category-box span {
  color: var(--orange-dark);
  font-weight: 900;
}

.category-box h2 {
  margin: 8px 0;
  font-size: 28px;
}

.category-box p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-box strong {
  color: var(--orange-dark);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--muted);
  font-weight: 800;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
}

.search-panel {
  display: flex;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 24px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  color: var(--ink);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.is-hidden {
  display: none !important;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding-top: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--orange-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  padding-block: 34px 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-kicker {
  color: var(--orange-dark);
  background: #fff7ed;
}

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 20px;
  color: #374151;
  font-size: 19px;
}

.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: #9ca3af;
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 4px;
  font-weight: 900;
}

.watch-panel,
.content-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-overlay button {
  width: 108px;
  height: 108px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  font-weight: 1000;
}

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

.content-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.ranking-hero {
  min-height: 520px;
}

.ranking-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.88), rgba(239, 68, 68, 0.62), rgba(15, 23, 42, 0.58));
}

.ranking-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
}

.ranking-hero h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: clamp(30px, 4vw, 50px);
}

.ranking-hero .button {
  width: max-content;
  margin-top: 26px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fdba74;
}

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

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-logo__text {
    font-size: 20px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-slide__content {
    align-items: flex-start;
    padding-top: 74px;
  }

  .hero-slide__text {
    padding-bottom: 150px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .spotlight,
  .movie-grid,
  .movie-grid--compact,
  .horizontal-list,
  .ranking-grid,
  .category-box-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .horizontal-card a,
  .category-box a,
  .ranking-item a,
  .ranking-item--compact a {
    grid-template-columns: 1fr;
  }

  .ranking-item__rank {
    font-size: 24px;
  }

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

  .detail-poster {
    max-width: 380px;
  }

  .catalog-toolbar {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-slide h1 {
    font-size: 34px;
  }

  .hero-slide h2 {
    font-size: 28px;
  }

  .hero-controls {
    bottom: 142px;
  }

  .page-hero {
    padding: 58px 0;
  }

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