:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --gold: #facc15;
  --gold-strong: #eab308;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 22px;
  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;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(250, 204, 21, 0.12), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f1f45 45%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 80%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(30, 58, 138, 0.88), rgba(2, 6, 23, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.28);
}

.brand-text {
  font-size: 1.18rem;
}

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

.nav-link,
.mobile-link {
  color: #dbeafe;
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.nav-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
  background: rgba(2, 6, 23, 0.78);
}

.nav-search button,
.hero-search button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.9);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mobile-category-row a {
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  height: min(72vh, 640px);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.02);
}

.hero-bg::after {
  content: attr(data-cover-title);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.12), transparent 24rem);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 110px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.detail-info-card h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  line-height: 1.02;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hero-content p,
.page-hero p {
  max-width: 780px;
  color: #dbeafe;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.tag-row span {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.hero-actions,
.category-overview-head,
.section-heading,
.rank-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
  flex-wrap: wrap;
}

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

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 18px 38px rgba(250, 204, 21, 0.22);
}

.ghost-btn,
.section-more {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.68);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 2.1rem;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--gold);
}

.hero-search {
  position: absolute;
  right: max(32px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 94px;
  width: min(420px, calc(100% - 64px));
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(16px);
}

.home-stat-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 72px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-stat-strip a {
  min-height: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.home-stat-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.7rem;
}

.home-stat-strip span {
  color: var(--muted);
}

.page-section,
.subpage-main,
.detail-main,
.rank-list-section,
.filter-panel,
.category-overview-card {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-section {
  margin-top: 76px;
}

.no-top-space {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.rank-list-head h2,
.text-card h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

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

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

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

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 28px 62px rgba(250, 204, 21, 0.12);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.cover-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.18), transparent 38%),
    linear-gradient(135deg, #0f172a, #1e3a8a 55%, #020617);
}

.cover-frame::before {
  content: attr(data-cover-title);
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: rgba(248, 250, 252, 0.84);
  font-weight: 900;
  text-align: center;
  line-height: 1.45;
  z-index: 0;
}

.cover-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 200ms ease;
}

.cover-frame.cover-missing img {
  opacity: 0;
}

.movie-card:hover .cover-frame img,
.category-tile:hover .cover-frame img {
  transform: scale(1.08);
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.duration-badge {
  right: 12px;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
  left: 12px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(0, 0, 0, 0.38);
  font-size: 3rem;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 200ms ease, transform 200ms ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 1.03rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-line {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.compact-card .card-line {
  min-height: 44px;
}

.spotlight-band {
  width: min(1280px, calc(100% - 32px));
  margin: 76px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.42)),
    radial-gradient(circle at 88% 50%, rgba(250, 204, 21, 0.14), transparent 20rem);
  box-shadow: var(--shadow);
}

.spotlight-band h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.spotlight-band p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.44);
}

.tile-cover {
  min-height: 150px;
}

.category-tile > div:last-child {
  padding: 20px 20px 20px 0;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.category-tile span {
  color: var(--gold);
  font-weight: 900;
}

.subpage-main,
.detail-main {
  padding-top: 42px;
  padding-bottom: 86px;
}

.page-hero {
  position: relative;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.42)),
    radial-gradient(circle at 82% 12%, rgba(250, 204, 21, 0.16), transparent 22rem);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.small-hero p {
  margin-bottom: 0;
}

.category-overview-card {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.category-overview-head {
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.filter-panel label {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.filter-panel label span {
  display: block;
  margin-bottom: 8px;
}

.filter-panel select {
  appearance: none;
  border-radius: 16px;
}

.filter-search-label {
  margin-bottom: 16px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  padding: 9px 13px;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #111827;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  font-weight: 900;
}

.filter-count {
  margin: 14px 0 0;
  color: var(--muted);
}

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

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

.rank-list-section {
  margin-top: 58px;
}

.rank-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
}

.rank-row {
  display: grid;
  grid-template-columns: 68px 1.2fr 2fr 150px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: rgba(250, 204, 21, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: var(--gold);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

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

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

.breadcrumb a:hover {
  color: var(--gold);
}

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

.detail-primary,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.detail-info-card,
.text-card,
.poster-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #000;
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 900;
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fde68a);
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.28);
  font-size: 2.2rem;
}

.player-status {
  margin: 0;
  padding: 13px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.32);
}

.detail-info-card,
.text-card,
.side-card,
.poster-card {
  padding: 24px;
}

.detail-info-card h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.detail-one-line {
  color: #dbeafe;
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-meta-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.3);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.text-card h2 {
  margin-bottom: 14px;
}

.text-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
  white-space: pre-wrap;
}

.poster-card {
  padding: 18px;
}

.poster-cover {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  margin-bottom: 16px;
}

.full-btn {
  width: 100%;
}

.side-related {
  display: grid;
  gap: 14px;
}

.side-related .movie-card {
  border-radius: 18px;
}

.side-related .card-body {
  padding: 12px;
}

.side-related .card-line,
.side-related .tag-row {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer p,
.footer-links a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  text-align: center;
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-search {
    left: 32px;
    right: auto;
    bottom: 34px;
  }

  .hero-content {
    bottom: 142px;
  }

  .home-stat-strip,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .mini-grid,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .rank-row {
    grid-template-columns: 56px 1fr;
  }

  .rank-meta,
  .rank-score {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .nav-shell,
  .page-section,
  .subpage-main,
  .detail-main,
  .rank-list-section,
  .filter-panel,
  .category-overview-card,
  .footer-grid,
  .footer-copy {
    width: min(100% - 22px, 1280px);
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 168px;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-control {
    display: none;
  }

  .hero-search {
    left: 16px;
    bottom: 72px;
    width: calc(100% - 32px);
    border-radius: 24px;
    flex-direction: column;
  }

  .home-stat-strip,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .mini-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .home-stat-strip {
    margin-top: -28px;
  }

  .spotlight-band,
  .section-heading,
  .hero-actions,
  .category-overview-head,
  .rank-list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .spotlight-band,
  .page-hero,
  .category-overview-card {
    padding: 24px;
    border-radius: 22px;
  }

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

  .category-tile > div:last-child {
    padding: 18px;
  }

  .tile-cover {
    min-height: 190px;
  }

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

  .rank-row {
    gap: 10px;
    padding: 14px;
  }
}
