:root {
  --alley-50: #faf9f7;
  --rain-50: #f8f9fa;
  --rain-100: #e9ecef;
  --rain-200: #dee2e6;
  --rain-300: #ced4da;
  --rain-400: #adb5bd;
  --rain-500: #6c757d;
  --rain-600: #495057;
  --rain-700: #343a40;
  --rain-800: #212529;
  --rain-900: #121416;
  --mist-50: #f0f4f8;
  --mist-100: #d9e2ec;
  --mist-500: #627d98;
  --mist-600: #486581;
  --mist-700: #334e68;
  --gold: #f5c451;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(18, 20, 22, 0.08);
  --shadow-md: 0 18px 42px rgba(18, 20, 22, 0.14);
  --shadow-lg: 0 28px 80px rgba(18, 20, 22, 0.24);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--rain-800);
  background: var(--alley-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rain-200);
  box-shadow: 0 10px 30px rgba(18, 20, 22, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--mist-600), var(--rain-800));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

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

.brand-copy strong {
  color: var(--rain-800);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--rain-500);
  font-size: 12px;
}

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

.nav-link {
  color: var(--rain-700);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.hero-search-card button,
.primary-button,
.ghost-button,
.section-link {
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-toggle {
  padding: 10px 18px;
  color: var(--white);
  background: var(--mist-600);
  box-shadow: var(--shadow-sm);
}

.search-toggle:hover,
.hero-search-card button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--rain-100);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--rain-700);
}

.mobile-nav {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rain-100);
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--rain-900);
}

.hero-slides,
.hero-slide,
.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.4s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 150px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

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

.hero-facts,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}

.hero-facts span,
.detail-facts span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mist-700);
  background: var(--mist-50);
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 800;
}

.primary-button {
  color: var(--rain-900);
  background: var(--white);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 34px;
  opacity: 1;
  background: var(--white);
}

.hero-search-card {
  position: absolute;
  right: max(16px, calc((100vw - var(--max-width)) / 2));
  bottom: 112px;
  z-index: 5;
  width: min(360px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-search-card strong,
.hero-search-card span {
  display: block;
}

.hero-search-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-search-card button {
  padding: 10px 15px;
  color: var(--rain-900);
  background: var(--white);
  white-space: nowrap;
}

.hero-category-pills {
  position: absolute;
  left: 50%;
  top: 104px;
  z-index: 5;
  width: min(var(--max-width), calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-category-pills a {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

main {
  width: 100%;
}

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

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

.section-head h2,
.story-card h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--rain-800);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.section-head p,
.story-card p,
.category-overview-card p {
  margin: 8px 0 0;
  color: var(--rain-600);
}

.section-link {
  min-height: 42px;
  color: var(--mist-700);
  background: var(--mist-50);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(222, 226, 230, 0.9);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: var(--mist-100);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--rain-100);
}

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

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

.movie-poster::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rain-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 36px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--rain-900);
  background: var(--gold);
  font-size: 13px;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rain-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--rain-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--rain-600);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--rain-800);
  box-shadow: var(--shadow-sm);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.3s ease;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(18, 20, 22, 0.88), rgba(18, 20, 22, 0.18));
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  font-weight: 800;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(245, 196, 81, 0.24), transparent 30%), linear-gradient(135deg, var(--rain-900), var(--mist-700));
}

.page-hero > div {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.page-hero.slim-hero,
.page-hero.category-hero,
.page-hero.ranking-hero {
  min-height: 330px;
}

.category-overview-grid {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--rain-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

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

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-link-row a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mist-700);
  background: var(--mist-50);
  font-size: 13px;
  font-weight: 700;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--rain-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-pill.is-active {
  color: var(--white);
  background: var(--mist-600);
}

.page-filter-input,
.global-search-input {
  width: min(420px, 100%);
  border: 1px solid var(--rain-200);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--rain-800);
  background: var(--white);
  outline: none;
}

.page-filter-input:focus,
.global-search-input:focus {
  border-color: var(--mist-500);
  box-shadow: 0 0 0 4px rgba(98, 125, 152, 0.14);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--rain-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(18, 20, 22, 0.94), rgba(18, 20, 22, 0.72)), linear-gradient(0deg, rgba(18, 20, 22, 0.9), transparent);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  color: var(--white);
}

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

.player-section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-lg);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.large-play {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rain-900);
  background: var(--white);
  font-size: 30px;
  box-shadow: var(--shadow-md);
}

.play-layer strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
  text-align: center;
}

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

.story-card {
  padding: 28px;
  border: 1px solid var(--rain-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.related-grid .movie-card-compact .movie-card-body p {
  min-height: 0;
}

.search-panel[hidden] {
  display: none;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 22, 0.58);
  backdrop-filter: blur(8px);
}

.search-dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  margin: 24px auto;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-dialog-head strong,
.search-dialog-head span {
  display: block;
}

.search-dialog-head strong {
  color: var(--rain-800);
  font-size: 22px;
}

.search-dialog-head span {
  color: var(--rain-500);
  font-size: 14px;
}

.search-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--rain-700);
  background: var(--rain-100);
  font-size: 26px;
  line-height: 1;
}

.global-search-input {
  width: 100%;
  border-radius: var(--radius-md);
}

.global-search-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--rain-200);
  border-radius: var(--radius-sm);
  background: var(--rain-50);
}

.search-result-card img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-card h3 {
  margin: 2px 0 6px;
  color: var(--rain-800);
  font-size: 17px;
}

.search-result-card p {
  margin: 0;
  color: var(--rain-600);
  font-size: 14px;
}

.search-result-card span {
  color: var(--rain-500);
  font-size: 12px;
  font-weight: 700;
}

.empty-result {
  padding: 18px;
  border-radius: var(--radius-sm);
  color: var(--rain-600);
  background: var(--rain-50);
}

.site-footer {
  margin-top: 40px;
  color: var(--rain-300);
  background: var(--rain-900);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 620px;
}

.footer-brand strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--rain-300);
}

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

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

.copyright {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--rain-400);
  font-size: 13px;
}

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

  .hero-search-card {
    right: 16px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

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

  .hero-inner {
    padding-bottom: 178px;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }

  .hero-controls {
    bottom: 24px;
  }

  .hero-category-pills {
    top: 84px;
  }

  .section-head,
  .tool-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-overview-card,
  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(270px, 72vw);
  }
}

@media (max-width: 540px) {
  .content-section {
    padding: 44px 0;
  }

  .search-toggle {
    padding: 9px 12px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .movie-poster {
    height: 100%;
    min-height: 178px;
  }

  .movie-card p {
    min-height: 0;
  }

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

  .player-section {
    width: 100%;
    margin-top: 0;
  }

  .player-wrap {
    border-radius: 0;
  }

  .story-card {
    padding: 22px;
  }
}
