:root {
  color-scheme: dark;
  --bg: #070816;
  --bg-soft: #101225;
  --panel: rgba(16, 18, 37, 0.78);
  --panel-strong: rgba(20, 24, 48, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f7fb;
  --muted: #a9adbf;
  --accent: #f59e0b;
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, 0.25), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.16), transparent 28rem),
    linear-gradient(135deg, #070816 0%, #171033 48%, #080914 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 22, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ef4444 54%, var(--accent-2));
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.28);
}

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

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

.nav-link,
.mobile-nav-link {
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.header-search,
.mobile-search,
.hero-search,
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  min-width: 310px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-toolbar input,
.filter-toolbar select {
  color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  background: rgba(255, 255, 255, 0.075);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px 8px 14px;
  border: 0;
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-btn {
  color: #19120a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
}

.ghost-btn,
.section-more {
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.header-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 99px;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
}

.hero-shell {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slider {
  position: relative;
  min-height: 690px;
}

.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-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(2px) saturate(1.12);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 22, 0.94), rgba(7, 8, 22, 0.68) 42%, rgba(7, 8, 22, 0.96)),
    linear-gradient(to top, #070816 0%, transparent 44%);
}

.hero-content {
  position: relative;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 58px;
  padding-top: 42px;
  padding-bottom: 118px;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 760px;
  color: #d5d8e8;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8e9f2;
  background: rgba(255, 255, 255, 0.08);
}

.hero-tags span,
.detail-meta span {
  padding: 8px 12px;
}

.card-meta span,
.tag-row span {
  padding: 4px 8px;
  font-size: 0.78rem;
}

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

.hero-poster {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-play,
.play-badge,
.play-circle {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #17110a;
  background: #fbbf24;
  box-shadow: 0 14px 42px rgba(245, 158, 11, 0.34);
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.active {
  width: 34px;
  border-color: rgba(245, 158, 11, 0.85);
  background: #f59e0b;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 24px;
  max-width: 880px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 10, 24, 0.78);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stats-strip div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: #fbbf24;
  font-size: 2.1rem;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.content-section,
.toolbar-section {
  padding: 54px 0;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2,
.panel-title h2,
.detail-article h2,
.detail-side h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 8, 22, 0.96), rgba(7, 8, 22, 0.28));
}

.category-glow {
  position: absolute;
  right: -28px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28);
  filter: blur(12px);
}

.category-card strong,
.category-card em,
.category-card p {
  position: relative;
  display: block;
}

.category-card strong {
  margin-top: 80px;
  font-size: 1.4rem;
}

.category-card em {
  margin-top: 8px;
  color: #fcd34d;
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.28), transparent 44%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.36), rgba(7, 8, 22, 0.96));
}

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

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

.image-fallback::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.45;
}

.score-badge,
.play-badge {
  position: absolute;
}

.score-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #17110a;
  background: #fbbf24;
  font-weight: 900;
}

.score-badge.large {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
}

.play-badge {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card h3 {
  min-height: 2.7em;
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 3.4em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tag-row {
  gap: 6px;
}

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

.ranking-panel,
.detail-side,
.detail-article,
.category-overview-block,
.filter-toolbar,
.player-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.panel-title span {
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-number,
.ranking-large-number {
  color: #fcd34d;
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

.site-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 22, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0 26px;
}

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

.site-footer p,
.site-footer a,
.site-footer span {
  color: var(--muted);
}

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

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

.footer-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 82px 0 58px;
  background:
    radial-gradient(circle at 22% 0%, rgba(245, 158, 11, 0.2), transparent 32rem),
    radial-gradient(circle at 86% 20%, rgba(168, 85, 247, 0.28), transparent 30rem);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.breadcrumb {
  margin-top: 18px;
  color: var(--muted);
}

.breadcrumb a:hover,
.inline-links a:hover,
.movie-card h3 a:hover {
  color: #fbbf24;
}

.overview-list {
  display: grid;
  gap: 28px;
  padding: 44px 0;
}

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

.category-overview-head p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

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

.filter-toolbar {
  position: sticky;
  top: 90px;
  z-index: 40;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 14px;
  backdrop-filter: blur(16px);
}

.filter-toolbar input,
.filter-toolbar select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.filter-toolbar input {
  flex: 1 1 280px;
}

.filter-toolbar select {
  flex: 0 1 160px;
}

.result-count {
  margin-left: auto;
  color: #fcd34d;
  font-weight: 900;
}

.empty-result {
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

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

.ranking-card-wrap {
  position: relative;
}

.ranking-large-number {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 10px;
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.22;
}

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

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.06);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 22, 0.96), rgba(7, 8, 22, 0.68)),
    linear-gradient(to top, #070816, transparent 64%);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 52px 0;
}

.detail-poster {
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 840px;
  color: #d7d9e8;
  font-size: 1.08rem;
  line-height: 1.9;
}

.detail-meta,
.detail-tags,
.detail-actions {
  margin-top: 22px;
}

.player-section {
  padding: 54px 0 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(7, 8, 22, 0.82), rgba(7, 8, 22, 0.96));
}

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

.play-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  font-size: 1.8rem;
}

.player-cover h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.player-cover p,
.player-note {
  color: var(--muted);
}

.player-note {
  margin: 12px 2px 0;
}

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

.detail-article,
.detail-side {
  padding: 26px;
}

.detail-article p {
  color: #d7d9e8;
  font-size: 1.02rem;
  line-height: 2;
}

.detail-article h2:not(:first-child) {
  margin-top: 32px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 18px 0 28px;
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: #ffffff;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1120px) {
  .movie-grid,
  .search-grid,
  .category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 36px;
  }

  .hero-poster {
    min-height: 360px;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .hero-controls {
    bottom: 112px;
  }

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

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

  .stats-strip,
  .footer-grid,
  .split-layout,
  .detail-body-grid,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .detail-poster {
    width: min(100%, 340px);
  }

  .detail-hero-inner {
    align-items: start;
  }
}

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

  .movie-grid,
  .search-grid,
  .category-movie-grid,
  .preview-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .section-heading,
  .category-overview-head,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .movie-card p {
    display: none;
  }

  .filter-toolbar {
    top: 76px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-toolbar select,
  .filter-toolbar input,
  .result-count {
    width: 100%;
    margin-left: 0;
  }

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

@media (max-width: 460px) {
  .brand-text {
    font-size: 1rem;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .hero-actions,
  .detail-actions {
    display: grid;
  }

  .stats-strip,
  .movie-grid,
  .search-grid,
  .category-movie-grid,
  .preview-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }
}
