
:root {
  --color-primary: 14 165 233;
  --color-primary-dark: 3 105 161;
  --color-primary-light: 125 211 252;
  --color-secondary: 6 182 212;
  --color-accent: 34 211 238;
  --color-gray-50: 249 250 251;
  --color-gray-100: 243 244 246;
  --color-gray-200: 229 231 235;
  --color-gray-300: 209 213 219;
  --color-gray-500: 107 114 128;
  --color-gray-600: 75 85 99;
  --color-gray-700: 55 65 81;
  --color-gray-800: 31 41 55;
  --color-gray-900: 17 24 39;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lift: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius-large: 1.25rem;
  --radius-card: 0.9rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(var(--color-gray-50));
  color: rgb(var(--color-gray-900));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.gradient-bg {
  background-image: linear-gradient(135deg, rgb(56 189 248), rgb(6 182 212), rgb(37 99 235));
}

.gradient-text {
  background-image: linear-gradient(90deg, rgb(2 132 199), rgb(8 145 178));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgb(56 189 248), rgb(6 182 212), rgb(37 99 235));
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.32);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  background-image: linear-gradient(90deg, rgb(2 132 199), rgb(8 145 178));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: rgb(var(--color-gray-500));
  font-size: 0.78rem;
}

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

.nav-link,
.mobile-link {
  border-radius: 10px;
  padding: 10px 16px;
  color: rgb(var(--color-gray-700));
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  background: rgba(14, 165, 233, 0.09);
  color: rgb(2 132 199);
}

.nav-link.active,
.mobile-link.active {
  background: rgb(14 165 233);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.24);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--color-gray-100));
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: rgb(var(--color-gray-700));
  margin: 5px 0;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: rgb(2 6 23);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, rgba(56, 189, 248, 0.45), transparent 38%), linear-gradient(135deg, #0f172a, #0891b2 48%, #1d4ed8);
}

.hero-bg img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.12);
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.36) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.80), transparent 44%);
}

.hero-bg.is-missing::before,
.detail-backdrop.is-missing::before,
.poster-frame.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.28), transparent 26%), linear-gradient(135deg, #38bdf8, #06b6d4, #2563eb);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 92px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

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

.hero-kicker span,
.badge-light {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(14, 165, 233, 0.10);
  color: rgb(2 132 199);
  font-size: 0.82rem;
  font-weight: 650;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: rgb(14 165 233);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  background: rgb(2 132 199);
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: #ffffff;
}

.stats-strip {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

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

.stats-grid a {
  display: grid;
  gap: 3px;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.stats-grid strong {
  color: rgb(2 132 199);
  font-size: 1.9rem;
  line-height: 1;
}

.stats-grid span {
  color: rgb(var(--color-gray-600));
  font-weight: 650;
}

.section {
  padding-block: 56px;
}

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

.section-heading h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: rgb(var(--color-gray-600));
}

.section-heading.light h2,
.section-heading.light p,
.section-more.light,
.light-text {
  color: #ffffff;
}

.section-kicker {
  color: rgb(2 132 199);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-more {
  color: rgb(2 132 199);
  font-weight: 800;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover,
.movie-row:hover,
.category-overview:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: var(--shadow-lift);
}

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

.latest-grid,
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card {
  position: relative;
}

.movie-card a {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(56 189 248), rgb(6 182 212), rgb(37 99 235));
}

.poster-frame.wide {
  width: 190px;
  min-width: 190px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.poster-frame.detail-poster {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
}

.poster-frame.mini {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

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

.movie-card:hover .poster-frame img,
.movie-row:hover .poster-frame img,
.category-samples a:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.68));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-frame::after,
.movie-row:hover .poster-frame::after {
  opacity: 1;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.poster-frame.is-missing .poster-fallback {
  display: flex;
}

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

.card-meta {
  color: rgb(var(--color-gray-500));
  font-size: 0.78rem;
  font-weight: 700;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgb(var(--color-gray-100));
}

.card-meta.large {
  margin-bottom: 18px;
}

.movie-card h2,
.movie-row h2 {
  margin: 10px 0 8px;
  color: rgb(var(--color-gray-900));
  font-size: 1.06rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.movie-row p {
  margin: 0;
  color: rgb(var(--color-gray-600));
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 12px;
}

.tag-row.full {
  margin-top: 18px;
}

.rank-badge,
.list-rank {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 850;
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.25);
}

.search-panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  margin-bottom: 28px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: rgb(var(--color-gray-700));
  font-weight: 750;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgb(var(--color-gray-200));
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: rgb(14 165 233);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-result {
  min-height: 22px;
  margin: 10px 0 0;
  color: rgb(var(--color-gray-500));
  font-size: 0.92rem;
}

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

.category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(6, 182, 212, 0.06));
  color: rgb(3 105 161);
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.category-chip span {
  color: rgb(var(--color-gray-500));
  font-size: 0.86rem;
}

.ranking-entry {
  background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.32), transparent 36%), linear-gradient(135deg, #0f172a, #075985 52%, #1d4ed8);
}

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

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

.movie-row {
  position: relative;
}

.movie-row a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.movie-row-body {
  min-width: 0;
}

.list-rank {
  position: static;
  min-width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.sub-hero {
  padding: 74px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(125, 211, 252, 0.42), transparent 36%), linear-gradient(135deg, #0f172a, #0891b2, #2563eb);
}

.sub-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.ranking-hero {
  background: radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #111827, #075985, #7c2d12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-overview {
  padding: 20px;
}

.category-main-link {
  display: grid;
  gap: 8px;
}

.category-count {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: rgb(2 132 199);
  background: rgba(14, 165, 233, 0.10);
  font-weight: 850;
}

.category-overview h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}

.category-overview p {
  margin: 0;
  color: rgb(var(--color-gray-600));
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgb(var(--color-gray-700));
  font-size: 0.82rem;
  font-weight: 700;
}

.category-samples span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a, #0891b2, #2563eb);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 52px;
  color: #ffffff;
}

.detail-title-block h1 {
  max-width: 880px;
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

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

.detail-main {
  display: grid;
  gap: 20px;
}

.player-card {
  padding: 14px;
  background: #020617;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.24), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  text-align: center;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: rgb(2 132 199);
  font-size: 2rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

.detail-content {
  padding: 26px;
}

.detail-content h2 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
}

.detail-content h2:first-of-type {
  margin-top: 0;
}

.detail-content p {
  margin: 0;
  color: rgb(var(--color-gray-700));
  white-space: pre-wrap;
}

.detail-side {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 16px 0;
  font-size: 1.25rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  margin: 0;
}

.side-card dt {
  color: rgb(var(--color-gray-500));
  font-weight: 750;
}

.side-card dd {
  margin: 0;
  color: rgb(var(--color-gray-800));
}

.side-card dd a {
  color: rgb(2 132 199);
  font-weight: 750;
}

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

.prev-next a {
  padding: 16px;
  color: rgb(2 132 199);
  font-weight: 750;
}

.prev-next a + a {
  border-left: 1px solid rgb(var(--color-gray-200));
  text-align: right;
}

.site-footer {
  margin-top: 40px;
  background: rgb(17 24 39);
  color: rgb(209 213 219);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-block: 48px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-grid p {
  margin: 12px 0 0;
  color: rgb(156 163 175);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: rgb(209 213 219);
}

.footer-grid a:hover {
  color: rgb(56 189 248);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: rgb(156 163 175);
  font-size: 0.9rem;
}

.animate-fade-in {
  animation: fade-in 0.65s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .sticky-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .hero-control {
    display: none;
  }

  .stats-grid,
  .movie-grid,
  .latest-grid,
  .related-grid,
  .all-grid,
  .ranking-list.compact,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-row a {
    align-items: flex-start;
  }

  .poster-frame.wide {
    width: 136px;
    min-width: 136px;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .hero-slider,
  .hero-content {
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .stats-grid,
  .movie-grid,
  .latest-grid,
  .related-grid,
  .all-grid,
  .category-chip-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .search-box {
    flex-direction: column;
  }

  .movie-row a {
    display: grid;
  }

  .poster-frame.wide {
    width: 100%;
    min-width: 0;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

  .prev-next a + a {
    border-left: 0;
    border-top: 1px solid rgb(var(--color-gray-200));
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
