:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f1f5f9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-search {
  width: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.nav-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--ink);
  background: transparent;
}

.nav-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary);
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-link {
  display: block;
  padding: 11px 6px;
  color: #334155;
  font-weight: 700;
}

.mobile-link.active {
  color: var(--primary);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 720px;
  padding-top: 68px;
  color: #ffffff;
  background: #0f172a;
}

.hero-stage {
  position: relative;
  min-height: 652px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 32%, rgba(6, 182, 212, 0.32), transparent 34%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.84));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 80px 0 92px;
}

.eyebrow,
.section-kicker,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(147, 197, 253, 0.28);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

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

.btn.subtle {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.48);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.page-main {
  padding-top: 68px;
}

.page-hero {
  padding: 84px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  background-position: center;
  background-size: cover;
}

.page-hero.small-hero,
.page-hero.search-hero,
.page-hero.rank-hero {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.34), transparent 35%), linear-gradient(135deg, #0f172a, #1d4ed8);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.content-section {
  padding: 74px 0;
  background: #ffffff;
}

.content-section.alt {
  background: #f8fafc;
}

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

.section-kicker {
  margin-bottom: 10px;
  color: var(--primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head > a,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--primary);
  background: #eff6ff;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease;
}

.section-head > a:hover,
.panel-link:hover {
  color: #ffffff;
  background: var(--primary);
}

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

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover .tile-bg {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile strong {
  margin-top: 50px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.layout-with-sidebar.reverse {
  grid-template-columns: minmax(0, 1fr) 360px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}

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

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

.poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 900;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
}

.meta-row a,
.meta-row span {
  max-width: 50%;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-row a {
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.meta-row span {
  color: #047857;
  background: #d1fae5;
}

.compact-card .movie-info h3 {
  min-height: 44px;
  font-size: 15px;
}

.compact-card .movie-info p {
  display: none;
}

.rank-panel,
.side-panel,
.text-panel,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.rank-title span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.rank-title h2 {
  margin: 3px 0 18px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.rank-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item + .rank-item {
  margin-top: 10px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-item a:hover {
  background: #eff6ff;
}

.rank-item strong {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 13px;
}

.rank-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-item em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #f8fafc;
}

.filter-bar.large {
  grid-template-columns: minmax(260px, 1fr) 180px 220px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 20px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
}

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

.detail-main {
  padding-top: 68px;
  background: #f8fafc;
}

.detail-hero {
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

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

.detail-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb em {
  color: rgba(255, 255, 255, 0.74);
  font-style: normal;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.88));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  font-weight: 950;
}

.player-cover strong {
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 950;
}

.player-cover em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.text-panel {
  padding: 26px;
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.text-panel h2:not(:first-child) {
  margin-top: 28px;
}

.text-panel p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.95;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.side-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-panel dl div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.side-panel dt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.55;
}

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

.site-footer {
  color: #cbd5e1;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 54px 0;
}

.footer-logo .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p,
.footer-block p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.75;
}

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

.footer-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-block a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-block a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

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

  .layout-with-sidebar,
  .layout-with-sidebar.reverse,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .side-panel,
  .sticky-panel {
    position: static;
    max-height: none;
  }
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

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

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

  .hero-poster {
    justify-self: start;
    width: min(340px, 100%);
  }

  .detail-poster {
    width: min(280px, 100%);
  }

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

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

@media (max-width: 640px) {
  .nav-shell {
    height: 62px;
  }

  .brand-text strong {
    font-size: 18px;
  }

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

  .page-main,
  .detail-main {
    padding-top: 62px;
  }

  .hero {
    padding-top: 62px;
  }

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

  .hero-content {
    padding: 56px 0 92px;
  }

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

  .content-section {
    padding: 52px 0;
  }

  .section-head {
    display: grid;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    min-height: 42px;
    font-size: 14px;
  }

  .movie-info p,
  .meta-row span {
    display: none;
  }

  .meta-row a {
    max-width: 100%;
  }

  .category-tile {
    min-height: 140px;
    padding: 18px;
  }

  .category-tile strong {
    margin-top: 42px;
    font-size: 19px;
  }

  .detail-hero-inner {
    padding: 48px 0;
  }

  .text-panel,
  .side-panel,
  .rank-panel {
    padding: 18px;
  }

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