:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #1f2937;
  --muted: #64748b;
  --muted-strong: #475569;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --red: #dc2626;
  --red-light: #ef4444;
  --orange: #f97316;
  --yellow: #f59e0b;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 44%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand {
  font-size: 25px;
}

.brand span:last-child,
.footer-brand span:last-child {
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.35);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #e2e8f0;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #fca5a5;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #ffffff;
}

.hero-slider {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  filter: saturate(1.1);
  transition: background-image 0.55s ease, transform 0.55s ease;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(248, 113, 113, 0.28), transparent 34%),
    radial-gradient(circle at 22% 14%, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.50) 100%);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, #f8fafc);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 700;
  font-size: 14px;
}

.hero-title {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #ffffff, #fed7aa 54%, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(17px, 2.2vw, 23px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn-primary,
.btn-secondary,
.btn-dark,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #f97316);
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

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

.btn-dark {
  color: #ffffff;
  background: linear-gradient(90deg, #334155, #0f172a);
}

.btn-soft {
  color: #dc2626;
  background: #fee2e2;
}

.hero-poster-wrap {
  position: relative;
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
  transform: perspective(1000px) rotateY(-5deg);
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.hero-poster-caption strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.hero-poster-caption span {
  color: #e2e8f0;
  font-weight: 700;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-thumb {
  min-height: 62px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  text-align: left;
  overflow: hidden;
  transition: background 0.2s ease, border 0.2s ease;
}

.hero-thumb strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.hero-thumb span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
}

.hero-thumb.is-active {
  background: rgba(220, 38, 38, 0.74);
  border-color: rgba(254, 202, 202, 0.82);
}

.section {
  padding: 66px 0;
}

.section.alt {
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.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);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
  opacity: 0.92;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.12);
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-region,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.card-region {
  top: 10px;
  left: 10px;
  padding: 7px 8px;
  background: #dc2626;
}

.card-year {
  top: 10px;
  right: 10px;
  padding: 7px 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #dc2626;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  padding: 4px 8px;
  color: #dc2626;
  background: #fee2e2;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  min-height: 170px;
  background: linear-gradient(135deg, #ffffff, #fef2f2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -45px;
  bottom: -45px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(249, 115, 22, 0.22));
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--muted);
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #dc2626;
  font-weight: 850;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.spotlight-main {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 420px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.spotlight-main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(1.06);
}

.spotlight-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.88));
}

.spotlight-copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
}

.spotlight-copy h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.18;
}

.spotlight-copy p {
  margin: 0 0 18px;
  color: #e2e8f0;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.horizontal-card img {
  width: 92px;
  height: 62px;
  border-radius: 13px;
  object-fit: cover;
}

.horizontal-card strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.horizontal-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  font-weight: 950;
  font-size: 13px;
}

.search-panel {
  border-radius: 28px;
  padding: 26px;
  background:
    radial-gradient(circle at 12% 10%, rgba(249, 115, 22, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(220, 38, 38, 0.12), transparent 28%),
    #ffffff;
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 150px auto;
  gap: 12px;
  margin-bottom: 20px;
}

.search-form input,
.search-form select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.search-form input:focus,
.search-form select:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.search-count {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.32), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(220, 38, 38, 0.28), transparent 34%),
    linear-gradient(90deg, #0f172a, #991b1b 50%, #0f172a);
}

.page-hero .container {
  max-width: 1000px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fecaca;
  font-weight: 700;
}

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

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #fee2e2;
  font-size: 19px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

.filter-bar input {
  min-width: 280px;
  flex: 1;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22), rgba(0, 0, 0, 0.36));
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 7px;
  border-radius: 999px;
  font-size: 38px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.34);
  transition: transform 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.06);
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.player-shell.is-loading .player-overlay span {
  animation: pulse 1s infinite;
}

.detail-card {
  padding: 26px;
  margin-bottom: 24px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 950;
}

.detail-badge {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #f97316);
  font-size: 13px;
  font-weight: 850;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-meta span,
.category-pill {
  padding: 7px 11px;
  color: #475569;
  background: #f1f5f9;
  font-size: 13px;
}

.detail-block {
  margin-top: 22px;
}

.detail-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.detail-block h2::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(180deg, #dc2626, #f97316);
}

.detail-block p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  text-indent: 2em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

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

.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card img {
  width: 96px;
  height: 64px;
  border-radius: 13px;
  object-fit: cover;
}

.related-card strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.related-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
  margin-top: 44px;
  padding: 50px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #fca5a5;
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  font-weight: 700;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.76;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

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

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

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }

  .nav-container {
    flex-wrap: wrap;
    min-height: 66px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 2px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 46px 0 52px;
  }

  .hero-poster {
    transform: none;
  }

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

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

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

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

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

  .section-heading {
    display: block;
  }

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

  .detail-title-row {
    display: block;
  }

  .detail-badge {
    display: inline-flex;
    margin-top: 14px;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .hero-slider,
  .hero-inner {
    min-height: auto;
  }

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

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

  .horizontal-card {
    grid-template-columns: auto 76px 1fr;
  }

  .horizontal-card img {
    width: 76px;
    height: 54px;
  }

  .filter-bar input,
  .filter-bar select {
    min-width: 100%;
  }

  .detail-card {
    padding: 20px;
  }
}
