:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #07111f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(34, 211, 238, 0.18);
  --line-strong: rgba(34, 211, 238, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --gold: #fbbf24;
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.14), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(8, 47, 73, 0.22);
}

.header-inner,
.category-strip-inner,
.footer-inner,
.section-inner,
.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
  font-size: 18px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.header-search input,
.hero-search input,
.search-panel input,
.filter-input,
.filter-select {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input {
  height: 44px;
  padding: 0 92px 0 18px;
}

.header-search input:focus,
.hero-search input:focus,
.search-panel input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(34, 211, 238, 0.84);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
  background: rgba(15, 23, 42, 0.92);
}

.header-search button,
.hero-search button,
.search-panel button {
  border: 0;
  color: #04111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 34px;
  padding: 0 16px;
}

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

.nav-link {
  color: var(--soft);
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.category-strip {
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.category-strip-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 12px;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip a,
.mobile-panel a,
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  font-size: 13px;
}

.category-strip a:hover,
.footer-links a:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
  color: var(--cyan);
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel.is-open {
  display: grid;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.13);
}

.mobile-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(34, 211, 238, 0.18);
}

.hero-carousel {
  position: relative;
  min-height: clamp(580px, 80vh, 820px);
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

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

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

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

.hero-slide::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 34%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: clamp(580px, 80vh, 820px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 80px 0 92px;
}

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

.kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 860px;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 660px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.quick-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.quick-meta span {
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
}

.hero-meta span,
.detail-meta span,
.quick-meta span {
  padding: 7px 12px;
}

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

.btn-primary,
.btn-secondary,
.rank-action,
.play-button,
.search-panel button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.play-button {
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

.btn-secondary {
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.58);
}

.btn-primary:hover,
.btn-secondary:hover,
.rank-action:hover,
.play-button:hover,
.search-panel button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.28);
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  margin-top: 28px;
}

.hero-search input {
  min-height: 58px;
  padding: 0 132px 0 22px;
  background: rgba(15, 23, 42, 0.8);
}

.hero-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  min-height: 46px;
  border: 0;
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: max(16px, calc((100vw - 1200px) / 2));
  bottom: 46px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.hero-dot {
  width: 82px;
  min-height: 74px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--soft);
  cursor: pointer;
  overflow: hidden;
  padding: 8px;
  text-align: left;
}

.hero-dot img {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 5px;
}

.hero-dot.is-active {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.2);
}

.section {
  padding: 64px 0;
}

.section-header,
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title,
.page-title,
.detail-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
}

.section-lead,
.page-lead,
.detail-lead {
  color: var(--muted);
  line-height: 1.8;
}

.section-lead {
  max-width: 680px;
  margin: 10px 0 0;
}

.section-more {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.26);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 12%, rgba(34, 211, 238, 0.35), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.78));
}

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

.poster-frame img.image-missing,
.hero-backdrop.image-missing,
.rank-cover img.image-missing,
.detail-poster img.image-missing,
.hero-dot img.image-missing {
  opacity: 0;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.07);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 54%);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #03131d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 6px;
  margin-bottom: 10px;
}

.card-meta span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.text-link:hover,
.breadcrumb a:hover {
  color: var(--cyan);
}

.movie-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 12%, rgba(34, 211, 238, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.58));
  border: 1px solid rgba(34, 211, 238, 0.17);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.24);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 24px;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.category-card a {
  color: var(--cyan);
  font-weight: 800;
}

.preview-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.preview-links a {
  color: var(--soft);
  font-weight: 600;
}

.preview-links a:hover {
  color: var(--cyan);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 54px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 20px;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.82));
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-number {
  font-size: 28px;
  font-weight: 950;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34, 211, 238, 0.78);
}

.rank-copy h3 {
  margin: 0;
  font-size: 17px;
}

.rank-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-action {
  min-height: 38px;
  padding: 0 14px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
}

.page-shell {
  padding: 48px 0 72px;
}

.page-hero {
  padding: 48px;
  border-radius: 32px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(circle at 14% 12%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.68));
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.page-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  margin-top: 10px;
}

.page-lead {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
}

.search-panel {
  grid-template-columns: 1fr 180px 140px;
}

.search-panel input {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
}

.search-panel button {
  min-height: 52px;
  border: 0;
}

.result-note,
.empty-message {
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 48%, rgba(2, 6, 23, 0.72) 100%),
    linear-gradient(0deg, #020617, transparent 55%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 74px 0 64px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background:
    radial-gradient(circle at 22% 10%, rgba(34, 211, 238, 0.26), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.72));
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
}

.detail-lead {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: 18px;
}

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

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

.player-section {
  padding: 56px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  border: 1px solid rgba(34, 211, 238, 0.26);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.3)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.1), transparent 44%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  border: 0;
  min-height: 58px;
  padding: 0 26px;
  cursor: pointer;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 54px 0 72px;
}

.content-card,
.side-card {
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.68);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 20px;
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

.side-card {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 116px;
}

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

.quick-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(34, 211, 238, 0.1);
}

.quick-item img {
  width: 74px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.74));
}

.quick-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.quick-meta {
  margin-top: 7px;
  gap: 5px;
}

.quick-meta span {
  padding: 3px 7px;
  font-size: 11px;
}

.site-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.13);
  background: rgba(2, 6, 23, 0.75);
}

.footer-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 38px 0;
}

.footer-brand {
  color: var(--cyan);
  font-weight: 950;
  font-size: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

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

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

  .desktop-nav {
    display: none;
  }

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

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

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

  .side-card {
    position: static;
  }
}

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

  .brand-subtitle,
  .category-strip,
  .header-search {
    display: none;
  }

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

  .hero-content {
    padding-top: 48px;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-rail {
    left: 16px;
    right: 16px;
    bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-dot {
    min-width: 84px;
  }

  .section-header,
  .page-header {
    display: block;
  }

  .movie-grid,
  .rank-grid,
  .category-cards {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 82px 42px 1fr;
  }

  .rank-action {
    grid-column: 3;
    width: max-content;
  }

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

  .page-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .detail-hero-inner {
    min-height: auto;
    padding: 40px 0 48px;
    gap: 26px;
  }

  .detail-title {
    font-size: clamp(34px, 12vw, 54px);
  }

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .category-strip-inner,
  .footer-inner,
  .section-inner,
  .page-shell,
  .detail-hero-inner {
    width: min(100% - 22px, 1200px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero-search {
    display: block;
  }

  .hero-search input {
    padding-right: 18px;
  }

  .hero-search button {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .hero-actions,
  .detail-actions {
    display: grid;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
