:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.22);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-6deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: 1px;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter input,
.local-filter select {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 110px 12px 18px;
  transition: box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.local-filter input:focus,
.local-filter select:focus {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 237, 213, 0.56);
}

.header-search button,
.mobile-search button,
.big-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  padding: 7px 18px;
  cursor: pointer;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  position: relative;
  margin-bottom: 12px;
}

.mobile-nav-link {
  display: block;
  color: #ffffff;
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-summary {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  margin: 0 0 22px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  color: var(--orange-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

.outline-button {
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

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

.hero-glow {
  position: absolute;
  z-index: 1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(28px);
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-glow-one {
  top: -80px;
  left: 20%;
}

.hero-glow-two {
  right: 14%;
  bottom: -110px;
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.96;
  }
}

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

.soft-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.85), rgba(254, 243, 199, 0.85));
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.section-more {
  color: var(--orange-dark);
  font-weight: 800;
}

.section-more span {
  font-size: 20px;
}

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

.category-tile,
.category-overview-card,
.filter-card,
.detail-card,
.side-card,
.player-card,
.rank-column {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 190px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(124, 45, 18, 0.2);
}

.category-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

.category-tile small {
  color: var(--muted);
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.category-tile div span {
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 4px 8px;
  font-size: 12px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.card-badge {
  top: 10px;
  left: 10px;
  background: rgba(249, 115, 22, 0.92);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(17, 24, 39, 0.75);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--orange);
}

.card-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  color: #4b5563;
  margin: 0 0 13px;
  font-size: 14px;
}

.tag-row span {
  background: #fff7ed;
}

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

.ranking-row,
.ranking-card {
  display: grid;
  grid-template-columns: 46px 92px 1fr minmax(160px, 0.8fr) 60px;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.1);
  transition: transform 0.2s ease, border 0.2s ease;
}

.ranking-row:hover,
.ranking-card:hover {
  transform: translateX(6px);
  border-color: var(--orange);
}

.ranking-row span,
.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-row img,
.ranking-card img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-row strong,
.ranking-card strong {
  font-size: 18px;
}

.ranking-row small,
.ranking-card p,
.ranking-card small {
  color: var(--muted);
}

.ranking-row em,
.ranking-card em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  text-align: right;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, var(--orange-dark), var(--orange), var(--amber));
  padding: 86px max(16px, calc((100% - 1180px) / 2));
}

.page-hero div {
  max-width: 800px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.compact-hero {
  padding-top: 58px;
  padding-bottom: 58px;
}

.search-hero .big-search {
  position: relative;
  max-width: 680px;
  margin-top: 28px;
}

.big-search input {
  min-height: 58px;
  padding-right: 128px;
}

.big-search button {
  top: 8px;
  right: 8px;
  padding: 11px 26px;
}

.category-overview-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.category-overview-head > span {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.category-overview-head h2 {
  margin: 0 0 4px;
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mini-poster-row a {
  overflow: hidden;
  border-radius: 14px;
  background: #fff7ed;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.mini-poster-row span {
  display: block;
  padding: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-card {
  margin-bottom: 26px;
  padding: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 14px;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: var(--orange);
}

.local-filter {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.local-filter.wide {
  grid-template-columns: 1fr 210px;
}

.local-filter input,
.local-filter select {
  border-color: #fed7aa;
  padding-right: 18px;
}

.empty-state {
  text-align: center;
  padding: 52px 16px;
  color: var(--muted);
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(254, 215, 170, 0.9);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 6px 0 24px;
}

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

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

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--orange);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.play-overlay span {
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 38px;
  padding-left: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.player-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.player-shell.is-ready .player-status {
  display: none;
}

.player-shell.has-error .player-status {
  display: block;
  background: rgba(185, 28, 28, 0.85);
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.player-info span {
  border-radius: 999px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-card {
  padding: 26px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.detail-title-row img {
  width: 190px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-title-row h1 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.detail-one-line {
  color: #4b5563;
  font-size: 18px;
  margin-bottom: 18px;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.score-row strong,
.score-row span {
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
}

.score-row strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.score-row span {
  background: #fff7ed;
  color: var(--orange-dark);
}

.detail-tags {
  margin: 20px 0 28px;
}

.detail-card h2,
.side-card h2,
.rank-column h2 {
  margin: 24px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 106px;
}

.side-card {
  padding: 20px;
}

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

.related-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-row:hover {
  background: #fff7ed;
}

.related-row img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.related-row strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.related-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.detail-more-section {
  width: 100%;
  padding-bottom: 0;
}

.ranking-card {
  grid-template-columns: 46px 120px minmax(0, 1fr) 56px;
}

.ranking-card p,
.ranking-card small {
  display: block;
  margin: 4px 0 0;
}

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

.rank-column {
  padding: 20px;
}

.rank-column h2 {
  margin-top: 0;
}

.rank-column a {
  display: grid;
  grid-template-columns: 30px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #ffedd5;
}

.rank-column span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.rank-column strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-column em {
  color: var(--orange);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: #9ca3af;
}

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

.footer-links a,
.footer-tags a {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 12px;
}

.footer-links a:hover,
.footer-tags a:hover {
  color: #ffffff;
  background: var(--orange);
}

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

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-copy small,
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 17px;
  }

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

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

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

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

  .local-filter,
  .local-filter.wide {
    grid-template-columns: 1fr;
  }

  .ranking-row,
  .ranking-card {
    grid-template-columns: 34px 74px 1fr 46px;
    gap: 10px;
  }

  .ranking-row small {
    display: none;
  }

  .ranking-row img,
  .ranking-card img {
    width: 74px;
    height: 50px;
  }

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

  .detail-title-row img {
    width: min(240px, 100%);
  }

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

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

  .movie-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

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

  .related-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .related-row img {
    width: 92px;
    height: 62px;
  }
}
