:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-soft: rgba(16, 185, 129, 0.12);
  --teal: #14b8a6;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.32);
}

.brand-name {
  font-size: 1.25rem;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 10px;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 0 16px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  padding: 72px 0 116px;
}

.hero-copy {
  max-width: 700px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 12px;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.32);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  filter: blur(34px);
  opacity: 0.72;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(16, 185, 129, 0.9);
  transform: translateY(-2px);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: var(--primary);
}

.hero-search-card {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 7;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search-card strong {
  display: block;
  font-size: 1.05rem;
}

.hero-search-card span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.hero-search-card input,
.filter-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
  padding: 14px 18px;
}

.quick-links {
  padding: 24px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

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

.quick-link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-link-grid a span {
  color: var(--primary-dark);
  font-size: 0.82rem;
}

.quick-link-grid a:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.section-block,
.category-section,
.ranking-section,
.category-overview-list,
.detail-content,
.player-section {
  padding: 72px 0;
}

.section-block.soft,
.ranking-section {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa 48%, #f8fafc);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

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

.movie-card h3 a:hover {
  color: var(--primary-dark);
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.movie-desc {
  margin: 12px 0 0;
  color: #334155;
  font-size: 0.95rem;
}

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

.tag-row span,
.mini-tags span {
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 5px 9px;
}

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

.movie-card.compact h3 {
  font-size: 1rem;
}

.movie-card.compact .movie-desc {
  font-size: 0.9rem;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

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

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

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

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

.category-tile p {
  margin: 8px 0 0;
  color: #dbeafe;
  font-size: 0.9rem;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.ranking-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.ranking-copy p:not(.eyebrow) {
  color: #475569;
  margin: 18px 0 28px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
}

.ranking-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  font-weight: 900;
}

.ranking-row img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-title {
  min-width: 0;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.filter-search {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.filter-search span {
  font-weight: 900;
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.page-hero {
  padding: 92px 0 68px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.4), transparent 38%), linear-gradient(135deg, #020617, #0f172a 62%, #064e3b);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.08rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #64748b;
  font-weight: 800;
}

.crumbs a:hover {
  color: var(--primary-dark);
}

.crumbs.light {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.crumbs.light a:hover {
  color: #ffffff;
}

.category-panels {
  display: grid;
  gap: 24px;
}

.category-panel {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.category-panel-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #e2e8f0;
}

.category-panel-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-panel-body {
  padding: 34px;
  align-self: center;
}

.category-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.category-panel p:not(.eyebrow) {
  color: #475569;
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(2px);
}

.detail-mask {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.32));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-line {
  max-width: 820px;
  margin: 22px 0 0;
  color: #e2e8f0;
  font-size: 1.15rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(20, 184, 166, 0.22);
  font-weight: 900;
}

.player-section {
  padding-bottom: 0;
  background: #020617;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 18px 44px rgba(16, 185, 129, 0.4);
  font-size: 2rem;
  text-indent: 4px;
}

.player-overlay strong {
  font-size: 1.25rem;
}

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

.story-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.story-card {
  padding: 34px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 1.05rem;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.side-card {
  padding: 26px;
}

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

.side-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.side-card dd {
  margin: -8px 0 0;
  font-weight: 800;
}

.side-card a {
  color: var(--primary-dark);
}

.wide-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.wide-card img {
  width: 90px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.wide-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.wide-card p {
  margin: 8px 0;
  color: #475569;
  font-size: 0.92rem;
}

.wide-rank {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.site-footer {
  padding: 42px 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

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

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

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

  .category-grid,
  .quick-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content,
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .detail-hero-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-content {
    padding: 78px 0 158px;
  }

  .hero-search-card {
    width: min(100% - 32px, 560px);
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    top: auto;
    bottom: 88px;
  }

  .hero-dots {
    bottom: 104px;
  }

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

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

  .ranking-row {
    grid-template-columns: 38px 56px minmax(0, 1fr);
  }

  .ranking-meta {
    display: none;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-poster {
    width: min(220px, 70vw);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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