:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.86);
  --bg-card-strong: rgba(15, 23, 42, 0.96);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --red: #ef4444;
  --red-strong: #dc2626;
  --red-soft: rgba(239, 68, 68, 0.16);
  --orange: #f97316;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  box-shadow: 0 14px 34px rgba(239, 68, 68, 0.32);
  font-size: 0.9rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(239, 68, 68, 0.16);
}

.menu-button {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
}

.menu-button span {
  width: 1.2rem;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav .nav-link {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
}

.home-hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  background: #020617;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 34%, rgba(2, 6, 23, 0.38) 68%, rgba(2, 6, 23, 0.84) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-content {
  position: absolute;
  left: max(1.25rem, calc((100vw - var(--max)) / 2 + 1.25rem));
  bottom: 8rem;
  max-width: 44rem;
  display: grid;
  gap: 1.1rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h2,
.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content h2 {
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
}

.hero-actions,
.quick-links,
.footer-links,
.category-nav-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.primary-button,
.ghost-button,
.section-link,
.hero-search button,
.filter-button {
  border: 0;
  border-radius: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(135deg, var(--red), var(--red-strong));
  color: #fff;
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.34);
}

.primary-button:hover,
.hero-search button:hover,
.filter-button:hover,
.filter-button.is-active {
  transform: translateY(-1px);
  background: var(--red);
  color: #fff;
}

.ghost-button,
.section-link,
.quick-links a,
.category-nav-row a,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-muted);
}

.ghost-button:hover,
.section-link:hover,
.quick-links a:hover,
.category-nav-row a:hover {
  border-color: rgba(239, 68, 68, 0.54);
  color: #fff;
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 1.2rem;
}

.hero-next {
  right: 1.2rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2.2rem;
  background: var(--red);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  min-height: 82vh;
  margin: 0 auto;
  padding: 8rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 0.42fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  align-self: start;
  max-width: 42rem;
  padding-top: 3rem;
  display: grid;
  gap: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
}

.hero-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.08rem;
}

.hero-search,
.toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
}

.hero-search {
  width: min(100%, 42rem);
  margin-top: 0.6rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 0.9rem;
  background: transparent;
  color: #fff;
  padding: 0.8rem 1rem;
}

.hero-search input::placeholder,
.search-box input::placeholder {
  color: var(--text-soft);
}

.hero-rail {
  display: grid;
  gap: 0.75rem;
}

.hero-thumb {
  width: 100%;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-muted);
  padding: 0.5rem;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: rgba(239, 68, 68, 0.52);
  background: rgba(127, 29, 29, 0.34);
  color: #fff;
  transform: translateX(-0.25rem);
}

.hero-thumb img {
  width: 4.4rem;
  height: 5.8rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.hero-thumb span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
  line-height: 1.35;
}

.content-section,
.page-main,
.detail-main {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.content-section {
  padding: 4.5rem 1.25rem 0;
}

.flush-section {
  padding-top: 2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.compact-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.category-overview-copy h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.movie-grid,
.ranking-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(239, 68, 68, 0.44);
  box-shadow: var(--shadow);
  transform: translateY(-0.45rem);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 35%, rgba(2, 6, 23, 0.86) 100%);
}

.type-badge,
.year-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.type-badge {
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.62rem;
  background: rgba(239, 68, 68, 0.88);
  color: #fff;
}

.year-badge {
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.62rem;
  background: rgba(2, 6, 23, 0.78);
  color: #e2e8f0;
}

.rank-number {
  top: 0.75rem;
  right: 0.75rem;
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}

.movie-card-body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.movie-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 0.65fr);
  gap: 1.5rem;
}

.ranking-list,
.category-panel,
.category-overview-card,
.detail-copy,
.detail-side,
.player-panel,
.page-hero {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.ranking-list {
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.small-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem;
  border-radius: 1rem;
  color: var(--text-muted);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.small-card:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.12);
  transform: translateX(0.25rem);
}

.small-card img {
  width: 4rem;
  height: 5.2rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.small-card span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.small-card strong,
.small-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.small-card em {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-style: normal;
}

.category-panel {
  padding: 1.25rem;
}

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

.category-tile {
  min-height: 9.6rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 45%),
    rgba(2, 6, 23, 0.48);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(239, 68, 68, 0.46);
  transform: translateY(-0.25rem);
}

.category-tile span {
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile p,
.category-tile em {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  font-style: normal;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 16rem);
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  scroll-snap-type: x proximity;
}

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

.page-main,
.detail-main {
  padding: 2rem 1.25rem 5rem;
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem);
  margin-top: 1rem;
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 38rem),
    rgba(15, 23, 42, 0.78);
}

.slim-hero {
  display: grid;
  gap: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 58rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.category-nav-row {
  margin-top: 0.4rem;
}

.category-overview-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.category-overview-card {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: minmax(14rem, 0.38fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.category-overview-copy {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.category-overview-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.toolbar {
  margin-bottom: 1.2rem;
}

.wide-toolbar {
  width: min(100%, 44rem);
}

.search-box {
  width: min(100%, 34rem);
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
  font-weight: 800;
}

.big-search {
  width: 100%;
}

.search-box input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  outline: 0;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  padding: 0.75rem 1rem;
}

.search-box input:focus {
  border-color: rgba(239, 68, 68, 0.58);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.empty-state {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 1rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-soft);
  margin: 0.6rem 0 1rem;
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 1.2rem;
  align-items: start;
}

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

.player-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.player-panel.is-playing .play-layer {
  display: none;
}

.play-circle {
  width: 4.6rem;
  height: 4.6rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 54px rgba(239, 68, 68, 0.4);
  padding-left: 0.18rem;
  font-size: 1.55rem;
}

.detail-side {
  padding: 1rem;
}

.detail-side img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-facts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.detail-facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 0.65rem;
}

.detail-facts span {
  color: var(--text-soft);
}

.detail-facts strong {
  text-align: right;
  color: #fff;
}

.detail-copy {
  margin-top: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-copy h1 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-copy h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.detail-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.04rem;
}

.detail-copy .lead-text {
  margin-top: 1rem;
  color: #e2e8f0;
  font-size: 1.12rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.tag-cloud span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  color: var(--text-muted);
  padding: 0.38rem 0.7rem;
  font-size: 0.88rem;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

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

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.7;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

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

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

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

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

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

  .home-hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-stage {
    min-height: 34rem;
  }

  .hero-content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 4.5rem;
  }

  .hero-shell {
    padding-top: 36rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

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

  .hero-arrow {
    display: none;
  }

  .two-column-section,
  .watch-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1rem;
  }

  .detail-facts {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .home-hero .section-kicker {
    display: none;
  }

  .hero-content h2,
  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-content {
    bottom: 3.8rem;
  }

  .hero-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .hero-search,
  .toolbar {
    flex-direction: column;
  }

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

  .hero-rail,
  .category-grid,
  .mini-poster-row {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .feature-grid,
  .ranking-card-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .content-section,
  .page-main,
  .detail-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

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

  .detail-side img {
    max-width: 16rem;
  }

  .play-circle {
    width: 3.9rem;
    height: 3.9rem;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .feature-grid,
  .ranking-card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    aspect-ratio: 16 / 20;
  }
}
