:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: #111827;
  --bg-card: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --teal: #14b8a6;
  --teal-deep: #0891b2;
  --orange: #f97316;
  --red: #ef4444;
  --purple: #a855f7;
  --pink: #ec4899;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.12), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

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

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy strong,
.footer-brand {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-copy em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.header-search {
  position: relative;
  width: min(270px, 28vw);
}

.header-search input,
.large-search input,
.local-large-search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  outline: none;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  padding: 11px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.large-search input:focus,
.local-large-search input:focus {
  border-color: rgba(20, 184, 166, 0.72);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(430px, 92vw);
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
}

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

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-item img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.search-result-item strong {
  display: block;
  color: #fff;
  line-height: 1.25;
}

.search-result-item span,
.search-result-empty {
  color: var(--muted);
  font-size: 13px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 42px;
  height: 42px;
}

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

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

.mobile-nav .nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
}

.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-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(2, 6, 23, 0.82) 43%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 46px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5eead4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: var(--muted-strong);
  font-size: 13px;
}

.hero-tags span:first-child,
.detail-meta span:first-child {
  border-color: rgba(20, 184, 166, 0.65);
  background: rgba(20, 184, 166, 0.86);
  color: #fff;
}

.hero-topic-row {
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-poster-card {
  position: relative;
  display: block;
  flex: 0 0 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-poster-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-poster-card span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.86);
  box-shadow: 0 16px 38px rgba(20, 184, 166, 0.25);
}

.hero-controls {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-controls button:hover,
.hero-dot.is-active {
  background: rgba(20, 184, 166, 0.85);
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.search-hero-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
}

.search-hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: center;
  gap: 22px;
  padding: 22px 0;
}

.search-hero-inner strong {
  display: block;
  font-size: 22px;
  color: #fff;
}

.search-hero-inner span {
  color: var(--muted);
}

.large-search {
  position: relative;
}

.page-section {
  padding: 66px 0 0;
}

.section-heading,
.category-overview-head,
.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading h2,
.panel-title h2,
.category-overview-head h2,
.story-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-heading p,
.category-overview-head p,
.story-card p,
.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-icon,
.category-overview-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.20);
}

.section-more,
.panel-link {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 184, 166, 0.48);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

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

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.hero-poster-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.74), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.88);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.type-badge,
.rank-medal,
.list-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
}

.rank-medal {
  left: 10px;
  top: 10px;
  min-width: 34px;
  padding: 5px 8px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card-body h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-body h3 a:hover,
.wide-copy h3 a:hover {
  color: #5eead4;
}

.movie-card-body p {
  display: -webkit-box;
  margin: 7px 0 0;
  min-height: 44px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span:first-child {
  color: #facc15;
}

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

.tag-row span {
  min-height: 25px;
  padding: 3px 8px;
  font-size: 12px;
}

.movie-card-compact .movie-card-body {
  padding: 12px;
}

.movie-card-compact .tag-row {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.22));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 22px;
}

.category-tile strong {
  margin-top: 130px;
  color: #fff;
  font-size: 24px;
}

.category-tile em {
  color: var(--muted-strong);
  font-style: normal;
  margin-top: 8px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: start;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wide-card:hover {
  transform: translateX(4px);
  border-color: rgba(20, 184, 166, 0.42);
}

.wide-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.wide-poster img {
  width: 92px;
  height: 124px;
  object-fit: cover;
}

.list-rank {
  left: 8px;
  top: 8px;
  min-width: 28px;
  padding: 3px 6px;
  text-align: center;
  background: rgba(20, 184, 166, 0.88);
}

.wide-copy h3 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.wide-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  padding: 22px;
}

.ranking-panel .wide-card {
  grid-template-columns: 68px 1fr;
}

.ranking-panel .wide-poster img {
  width: 68px;
  height: 92px;
}

.ranking-panel .wide-copy h3 {
  font-size: 15px;
}

.ranking-panel .wide-copy p,
.ranking-panel .movie-meta span:nth-child(n+3) {
  display: none;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
}

.page-shell {
  padding: 58px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(168, 85, 247, 0.12)),
    rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  padding: 48px;
}

.compact-page-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  padding: 8px 14px;
}

.category-filter-row button:hover,
.category-filter-row button.is-active {
  border-color: rgba(20, 184, 166, 0.58);
  background: rgba(20, 184, 166, 0.16);
  color: #fff;
}

.local-large-search {
  max-width: 520px;
  margin-top: 22px;
}

.category-overview {
  display: grid;
  gap: 42px;
  margin-top: 54px;
}

.category-overview-block {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.62);
  padding: 28px;
}

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

.detail-shell {
  padding-bottom: 76px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 42px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: end;
  padding-top: 64px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy {
  max-width: 760px;
  padding-bottom: 12px;
}

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

.player-section {
  margin-top: -90px;
  position: relative;
  z-index: 5;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(2, 6, 23, 0.95);
  box-shadow: var(--shadow);
}

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

.player-box video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  z-index: 1;
  object-fit: contain;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

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

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.16), transparent 32%),
    linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.26));
}

.player-button-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.9);
  color: #fff;
  font-size: 30px;
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 56px rgba(20, 184, 166, 0.25);
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.74);
  padding: 32px;
}

.story-card h2 + p {
  margin-top: 12px;
}

.story-card p {
  color: var(--muted-strong);
  font-size: 17px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 42px;
  padding: 46px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.is-filter-hidden {
  display: none !important;
}

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

  .movie-grid.four-col,
  .category-tile-grid,
  .rank-wide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .brand {
    min-width: 0;
  }

  .hero-carousel {
    height: 640px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 86px;
  }

  .hero-poster-card {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 230px;
  }

  .player-section {
    margin-top: -54px;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

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

  .brand-copy em {
    display: none;
  }

  .hero-carousel {
    height: 600px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .footer-bottom,
  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-controls {
    right: 16px;
  }

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

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

  .movie-meta,
  .tag-row {
    gap: 6px;
  }

  .wide-card {
    grid-template-columns: 78px 1fr;
  }

  .wide-poster img {
    width: 78px;
    height: 106px;
  }

  .page-hero,
  .category-overview-block,
  .story-card {
    padding: 22px;
    border-radius: 22px;
  }

  .player-button-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .movie-grid.six-col,
  .movie-grid.four-col,
  .category-tile-grid,
  .rank-wide-list {
    grid-template-columns: 1fr;
  }
}
