:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 70px rgba(6, 78, 59, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, #ffffff 0%, #f7fffb 42%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--emerald-700), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--emerald-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--emerald-700);
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  background: white;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--emerald-50);
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(135deg, #d8fff0 0%, #f0fdfa 44%, #fff7ed 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: linear-gradient(rgba(4, 120, 87, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 120, 87, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  filter: blur(8px) saturate(1.15);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 54px;
  padding: 48px 0 88px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: transparent;
  background: linear-gradient(95deg, var(--emerald-800), var(--teal-500), var(--emerald-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--gray-600);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.85;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--emerald-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-tags,
.tag-row,
.filter-buttons,
.hero-actions,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--emerald-800);
  background: rgba(209, 250, 229, 0.85);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 30px;
}

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

.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.32);
}

.ghost-button {
  color: var(--emerald-700);
  background: white;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(5, 150, 105, 0.16);
}

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

.hero-cover {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  background: var(--gray-100);
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55));
}

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

.hero-cover:hover img {
  transform: scale(1.08);
}

.hero-play {
  position: absolute;
  left: 26px;
  bottom: 26px;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  background: white;
  box-shadow: var(--shadow-sm);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--emerald-700);
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.24);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--emerald-600);
}

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

.section-block.tinted {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.72), rgba(240, 253, 250, 0.86), rgba(255, 251, 235, 0.72));
}

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

.section-heading.center {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-title-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

.section-link,
.text-button {
  color: var(--emerald-700);
  background: white;
  box-shadow: var(--shadow-sm);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 26px;
  margin-bottom: 34px;
}

.search-box {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--gray-900);
}

.filter-buttons {
  align-items: center;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: white;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.12);
}

.filter-button.is-active,
.filter-button:hover {
  color: white;
  background: var(--emerald-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-50), #f8fafc);
}

.compact-card .movie-poster {
  aspect-ratio: 4 / 3;
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: var(--emerald-600);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card-body h3 a:hover {
  color: var(--emerald-600);
}

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

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span:last-child {
  color: var(--emerald-600);
  font-weight: 700;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  color: white;
}

.category-tile span {
  bottom: 58px;
  font-size: 20px;
  font-weight: 850;
}

.category-tile em {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  opacity: 0.88;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 22px;
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.mosaic-card.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic-card:hover img {
  transform: scale(1.09);
}

.mosaic-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.82));
}

.mosaic-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: white;
}

.mosaic-text strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.mosaic-text em {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mosaic-text b {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  margin-bottom: 5px;
  line-height: 1.35;
}

.rank-text em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 64px 16px;
  text-align: center;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.26), transparent 32%), linear-gradient(135deg, #ecfdf5, #f0fdfa 50%, #fff7ed);
}

.page-hero > div {
  width: min(880px, 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-700);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.category-overview-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--gray-100);
}

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

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.75;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.inline-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--emerald-50);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  margin-top: 26px;
  padding: 26px;
  border-radius: 22px;
  color: var(--gray-600);
  background: white;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(10px) saturate(1.15);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(6, 78, 59, 0.74));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.breadcrumb.light {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
}

.detail-title-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: var(--gray-100);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title-copy {
  color: white;
}

.detail-title-copy p {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-facts {
  margin-bottom: 28px;
}

.detail-facts span {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card,
.side-card {
  padding: 22px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: black;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 16px;
  border: 0;
  color: white;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68));
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-500));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.review-card {
  background: linear-gradient(135deg, #ecfdf5, white);
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.side-card dt {
  color: var(--gray-500);
  font-size: 13px;
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.5;
}

.side-card .text-button {
  width: 100%;
  margin-bottom: 10px;
  background: var(--emerald-50);
}

.site-footer {
  padding: 44px 0;
  background: var(--gray-950);
  color: white;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: white;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-cover {
    width: min(82vw, 320px);
    justify-self: center;
  }

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

  .section-heading,
  .footer-inner,
  .detail-title-card,
  .category-overview-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-heading {
    align-items: start;
  }

  .category-overview-cover {
    width: min(260px, 100%);
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .mosaic-card.is-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .section-block,
  .section-block.tinted {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .movie-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body h3 {
    font-size: 16px;
  }

  .rank-item {
    grid-template-columns: 36px 1fr;
  }

  .rank-item img {
    display: none;
  }

  .detail-poster {
    width: min(240px, 80vw);
  }
}
