:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --orange: #f97316;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --rose: #e11d48;
  --emerald: #10b981;
  --violet: #7c3aed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b 50%, #0f172a);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.32);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #111827;
  background: linear-gradient(135deg, #fb923c, #facc15);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.45);
}

.brand-text {
  font-size: 1.15rem;
  background: linear-gradient(90deg, #fb923c, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  min-height: 680px;
  padding: 48px max(24px, calc((100vw - 1280px) / 2)) 54px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a 52%, #082f49);
}

.hero-stage {
  position: relative;
  min-height: 570px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.5);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity 0.65s ease, transform 0.65s ease;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 56%);
}

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

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.36);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

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

.hero-tags span,
.detail-meta span,
.rank-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
}

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

.primary-button,
.ghost-button,
.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.36);
}

.primary-button:hover,
.rank-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 46px rgba(249, 115, 22, 0.44);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  align-self: stretch;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  backdrop-filter: blur(18px);
}

.hero-rail-title {
  font-size: 1.1rem;
  font-weight: 800;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: #fb923c;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 54px auto;
}

.soft-section {
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 249, 0.72));
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 30px;
}

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

.section-heading h2 {
  position: relative;
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 32px;
  background: linear-gradient(180deg, #f97316, #facc15);
  border-radius: 999px;
}

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

.section-heading a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #ea580c;
  font-weight: 760;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow);
}

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

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

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent);
}

.card-badge,
.card-type {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.card-type {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 820;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover,
.rank-title:hover {
  color: #ea580c;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.15em;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.82rem;
}

.card-meta span {
  display: inline-flex;
  padding: 2px 0;
}

.card-meta span + span::before {
  content: "·";
  margin: 0 4px 0 0;
  color: #cbd5e1;
}

.card-body .tag-row span {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

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

.category-tile {
  display: block;
  min-height: 168px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  isolation: isolate;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 850;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.accent-orange {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.72), transparent 36%), linear-gradient(135deg, #7c2d12, #0f172a);
}

.accent-cyan {
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.65), transparent 36%), linear-gradient(135deg, #164e63, #0f172a);
}

.accent-blue {
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.68), transparent 36%), linear-gradient(135deg, #1e3a8a, #0f172a);
}

.accent-rose {
  background: radial-gradient(circle at top right, rgba(251, 113, 133, 0.72), transparent 36%), linear-gradient(135deg, #881337, #0f172a);
}

.accent-slate {
  background: radial-gradient(circle at top right, rgba(148, 163, 184, 0.62), transparent 36%), linear-gradient(135deg, #334155, #020617);
}

.accent-amber,
.accent-gold {
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.72), transparent 36%), linear-gradient(135deg, #78350f, #0f172a);
}

.accent-emerald {
  background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.68), transparent 36%), linear-gradient(135deg, #064e3b, #0f172a);
}

.accent-violet {
  background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.72), transparent 36%), linear-gradient(135deg, #4c1d95, #0f172a);
}

.rank-section {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.34);
}

.rank-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #facc15);
  border-radius: 14px;
  font-weight: 900;
}

.rank-title {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 1.08rem;
  font-weight: 850;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-play {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: center;
  min-height: 360px;
  padding: 64px max(24px, calc((100vw - 1280px) / 2));
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.45), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

.compact-hero {
  display: block;
  min-height: 300px;
}

.category-hero .hero-stack {
  display: grid;
  gap: 12px;
}

.ranking-hero {
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.52), transparent 30%), linear-gradient(135deg, #0f172a, #78350f);
}

.compact-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.compact-card img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card small {
  color: rgba(255, 255, 255, 0.72);
}

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

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #334155;
  font-weight: 750;
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-group {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.filter-group > span {
  padding-top: 7px;
  color: #334155;
  font-weight: 800;
}

.filter-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group button {
  padding: 8px 13px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.filter-group button.active,
.filter-group button:hover {
  color: #ffffff;
  background: #ea580c;
  border-color: #ea580c;
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 16px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 16px;
  text-align: center;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.44)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.28), transparent 30%), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 50%);
}

.detail-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cbd5e1;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

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

.detail-meta {
  margin: 22px 0 14px;
}

.detail-tags span {
  color: #ffedd5;
  border-color: rgba(251, 146, 60, 0.28);
}

.player-section {
  scroll-margin-top: 94px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.56));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 12vw, 116px);
  height: clamp(72px, 12vw, 116px);
  background: rgba(249, 115, 22, 0.92);
  border: 6px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.45);
}

.play-ring span {
  margin-left: 6px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.text-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.text-panel p {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 34px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 850;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.06rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

@media (max-width: 1100px) {
  .hero-carousel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .hero-rail-title {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(2, 6, 23, 0.4);
  }

  .site-nav.open {
    display: flex;
  }

  .hero-carousel {
    padding: 24px 16px 54px;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-poster {
    max-width: 230px;
    margin: 0 auto;
  }

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

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

  .movie-grid,
  .all-grid,
  .small-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .rank-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .rank-number {
    grid-row: span 2;
  }

  .rank-play {
    grid-column: 2;
    justify-self: start;
  }

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

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

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

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 1rem;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.15rem;
  }

  .movie-grid,
  .all-grid,
  .small-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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