:root {
  color-scheme: light;
  --mist-950: #020617;
  --mist-900: #0f172a;
  --mist-800: #1e293b;
  --mist-700: #334155;
  --mist-600: #475569;
  --mist-500: #64748b;
  --mist-300: #cbd5e1;
  --mist-200: #e2e8f0;
  --mist-100: #f1f5f9;
  --mist-50: #f8fafc;
  --lake-900: #0c4a6e;
  --lake-700: #0369a1;
  --lake-600: #0284c7;
  --lake-500: #0ea5e9;
  --lake-100: #e0f2fe;
  --sepia-50: #fffbeb;
  --white: #ffffff;
  --shadow-soft: 0 16px 50px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 22px 80px rgba(2, 6, 23, 0.28);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --content: min(1180px, calc(100vw - 32px));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sepia-50) 0%, var(--mist-50) 38%, var(--white) 100%);
  color: var(--mist-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--lake-600);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--content);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lake-500), #38bdf8);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

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

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--mist-300);
  font-size: 12px;
}

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

.nav-link {
  padding: 9px 11px;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-open,
.menu-toggle {
  border: 1px solid rgba(226, 232, 240, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-open:hover,
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 18px 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.search-panel.is-open {
  display: flex;
}

.search-panel-card {
  width: min(720px, 100%);
  position: relative;
  border-radius: var(--radius-xl);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.search-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--mist-100);
  cursor: pointer;
  font-size: 24px;
  color: var(--mist-700);
}

.search-panel-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 850;
}

.search-panel-card p {
  margin: 10px 0 22px;
  color: var(--mist-600);
}

.search-input-wrap,
.filter-bar label,
.quick-search label {
  display: grid;
  gap: 8px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 700;
}

.search-input-wrap input,
.filter-bar input,
.filter-bar select,
.quick-search input {
  width: 100%;
  border: 1px solid var(--mist-200);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--mist-900);
  background: var(--mist-50);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.quick-search input:focus {
  border-color: var(--lake-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.search-hot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.search-hot a,
.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--lake-700);
  background: var(--lake-100);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.search-results {
  display: grid;
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--mist-200);
  border-radius: 16px;
  padding: 9px;
  text-decoration: none;
  transition: border 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--lake-500);
  transform: translateY(-1px);
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-200);
}

.search-result-item strong {
  display: block;
  font-size: 15px;
}

.search-result-item span {
  color: var(--mist-600);
  font-size: 12px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.34), transparent 28%),
              linear-gradient(135deg, var(--mist-900) 0%, var(--mist-800) 48%, var(--lake-900) 100%);
  color: #fff;
}

.hero-bg-glow {
  position: absolute;
  inset: auto -20% -45% 45%;
  height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 62%);
  pointer-events: none;
}

.hero-stage {
  width: var(--content);
  min-height: 620px;
  margin: 0 auto;
  position: relative;
  padding: 72px 0 92px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 5vw, 66px);
  min-height: 460px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeSlide 0.45s ease both;
}

.hero-kicker,
.detail-kicker,
.page-hero > p,
.section-heading p {
  margin: 0 0 12px;
  color: #bae6fd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 850;
  color: #e0f2fe;
}

.hero-desc {
  max-width: 680px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-actions,
.detail-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--lake-600), #38bdf8);
  color: #fff;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.25);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.btn-link {
  color: #e0f2fe;
}

.hero-poster {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  background: var(--mist-800);
  text-decoration: none;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-poster strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  font-size: 26px;
  line-height: 1.2;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.5;
}

.hero-dot.is-active {
  width: 44px;
  background: #38bdf8;
  opacity: 1;
}

.quick-search-section {
  width: var(--content);
  margin: -34px auto 34px;
  position: relative;
  z-index: 5;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--mist-900);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.content-section {
  width: var(--content);
  margin: 0 auto;
  padding: 56px 0;
}

.section-muted {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: rgba(241, 245, 249, 0.82);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: var(--lake-700);
}

.section-heading a {
  color: var(--lake-700);
  font-weight: 850;
  text-decoration: none;
}

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 165, 233, 0.35);
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--mist-200);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(14, 165, 233, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.movie-meta-line {
  margin: 0;
  color: var(--mist-500);
  font-size: 12px;
}

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

.movie-card h3 a {
  text-decoration: none;
}

.movie-card h3 a:hover {
  color: var(--lake-700);
}

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

.tag-row span {
  color: var(--mist-700);
  background: var(--mist-100);
}

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

.category-card,
.category-overview-card a {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff, #f0f9ff);
  border: 1px solid rgba(186, 230, 253, 0.8);
  text-decoration: none;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card span,
.category-overview-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mist-900);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--mist-600);
  line-height: 1.7;
}

.category-card strong,
.category-overview-card strong {
  color: var(--lake-700);
}

.ranking-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
}

.small-movie-item {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.small-movie-item:hover {
  border-color: rgba(14, 165, 233, 0.45);
}

.small-movie-item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist-200);
}

.rank-num {
  min-width: 34px;
  color: var(--lake-700);
  font-size: 18px;
  font-weight: 950;
}

.small-movie-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.small-movie-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.small-movie-copy em {
  color: var(--mist-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  width: var(--content);
  margin: 38px auto 0;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--mist-900), var(--lake-900));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.page-hero-text {
  max-width: 780px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

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

.category-side,
.detail-sidebar {
  position: sticky;
  top: 98px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.category-side h2,
.detail-sidebar h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
}

.side-list {
  display: grid;
  gap: 10px;
}

.breadcrumb {
  width: var(--content);
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--lake-700);
  text-decoration: none;
  font-weight: 800;
}

.detail-hero {
  width: var(--content);
  margin: 24px auto 34px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
  padding: clamp(22px, 5vw, 44px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--mist-900), var(--mist-800) 55%, var(--lake-900));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  background: var(--mist-700);
}

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

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

.detail-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e0f2fe;
  line-height: 1.9;
  font-size: 18px;
}

.detail-tags {
  margin-top: 20px;
}

.player-section {
  width: var(--content);
  margin: 0 auto 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.26), rgba(2, 6, 23, 0.42));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: clamp(74px, 10vw, 106px);
  height: clamp(74px, 10vw, 106px);
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--lake-700);
  font-size: clamp(28px, 4vw, 44px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

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

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

.detail-block {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 950;
}

.detail-block p {
  margin: 0;
  color: var(--mist-700);
  font-size: 17px;
  line-height: 1.95;
  white-space: pre-line;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mist-100);
}

.info-list dt {
  color: var(--mist-500);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--mist-900);
  font-weight: 750;
}

.site-footer {
  margin-top: 52px;
  background: var(--mist-900);
  color: var(--mist-300);
}

.footer-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 0.8fr 0.8fr;
  gap: 34px;
}

.footer-logo .brand-copy strong {
  color: #fff;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

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

.site-footer a {
  color: var(--mist-300);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  width: var(--content);
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  font-size: 14px;
  color: var(--mist-500);
}

.is-filtered-out {
  display: none !important;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .category-side,
  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-stage {
    min-height: auto;
    padding: 42px 0 84px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
  }

  .hero-controls {
    bottom: 24px;
  }

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

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

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

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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

  .small-movie-item {
    grid-template-columns: 48px 1fr;
  }

  .small-movie-item .rank-num {
    grid-row: span 2;
  }

  .small-movie-item img {
    display: none;
  }

  .footer-inner {
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .category-grid-list,
  .library-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .search-panel-card {
    padding: 22px;
  }

  .page-hero {
    padding: 26px 20px;
  }
}
