:root {
  --bg: #f0f9ff;
  --surface: #ffffff;
  --surface-soft: #eefaff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #dbeafe;
  --brand: #0ea5e9;
  --brand-dark: #2563eb;
  --brand-soft: #cffafe;
  --accent: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #effaff 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.96), rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.96));
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.22);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand {
  color: #ffffff;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-size: 1.15rem;
  white-space: nowrap;
}

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

.nav-links > a,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.92);
  padding: 9px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links > a:hover,
.nav-links > a.is-active,
.nav-dropdown:hover > button {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  color: #334155;
  padding: 9px 10px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px;
}

.nav-search input {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.nav-search button,
.search-band button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 11px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(120deg, #06b6d4 0%, #2563eb 48%, #0891b2 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(240, 249, 255, 0) 65%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(0deg, #f0f9ff, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 56px 22px 86px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.6fr);
  gap: 48px;
  align-items: center;
}

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

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.category-hero .eyebrow {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.16);
}

.hero h1,
.page-hero h1,
.category-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.category-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-line span,
.detail-tags a {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 0.78rem;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.25);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  isolation: isolate;
}

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

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

.hero-poster-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 38px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 36px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

.search-band,
.content-section,
.page-hero,
.category-hero,
.filter-panel,
.breadcrumb,
.detail-layout {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 500px);
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band strong {
  display: block;
  font-size: 1.3rem;
}

.search-band span {
  color: var(--muted);
}

.search-band form {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: #ffffff;
}

.search-band input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--text);
}

.search-band button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  padding-left: 22px;
  padding-right: 22px;
}

.content-section {
  padding-top: 56px;
  padding-bottom: 8px;
}

.tint-section {
  margin-top: 46px;
  margin-bottom: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

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

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

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

.play-chip,
.rating-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  background: rgba(14, 165, 233, 0.88);
  backdrop-filter: blur(8px);
}

.rating-chip {
  right: 12px;
  bottom: 12px;
  min-width: 44px;
  padding: 7px 10px;
  background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.34);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong {
  font-size: 1.02rem;
  line-height: 1.35;
  color: #111827;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-line span {
  color: #0369a1;
  background: #e0f2fe;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: transform 0.35s ease;
}

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

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.1));
}

.category-tile > span,
.category-overview-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.category-tile strong,
.category-overview-card strong {
  font-size: 1.35rem;
}

.category-tile em,
.category-overview-card em {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.accent-blue { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.accent-cyan { background: linear-gradient(135deg, #22d3ee, #0284c7); }
.accent-violet { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }
.accent-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.accent-green { background: linear-gradient(135deg, #22c55e, #059669); }
.accent-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.accent-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.accent-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.accent-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.accent-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.accent-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.accent-slate { background: linear-gradient(135deg, #64748b, #334155); }

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.mini-list,
.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto 132px 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.ranking-row img {
  width: 132px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-index {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.ranking-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ranking-content strong {
  font-size: 1.05rem;
}

.ranking-content span,
.ranking-content em {
  color: var(--muted);
  line-height: 1.55;
  font-style: normal;
}

.ranking-score {
  font-size: 1.4rem;
  color: #f59e0b;
  font-weight: 900;
  padding-right: 10px;
}

.page-hero,
.category-hero {
  margin-top: 34px;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: var(--shadow);
}

.page-hero {
  padding-top: 64px;
  padding-bottom: 64px;
}

.category-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 50px;
  padding-bottom: 50px;
}

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

.search-hero {
  background: radial-gradient(circle at right, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.filter-panel {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 190px 220px;
  gap: 14px;
  align-items: center;
}

.strong-filter {
  padding-top: 0;
  padding-bottom: 0;
}

.empty-state {
  margin: 26px 0;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-card {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.category-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.5;
}

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

.category-overview-body span {
  width: max-content;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 7px 12px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 28px;
  padding-bottom: 18px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 700;
}

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

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

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

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.25));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35);
  font-size: 1.7rem;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 0.88rem;
  pointer-events: none;
}

.detail-card,
.side-card,
.poster-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-card {
  padding: 26px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-rating {
  flex: 0 0 auto;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f97316);
  padding: 10px 14px;
  font-size: 1.3rem;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
}

.detail-meta span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 7px 11px;
}

.lead-text {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.detail-tags a {
  color: #0369a1;
  background: #e0f2fe;
}

.article-content h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.article-content p {
  margin: 0 0 24px;
  color: #334155;
  line-height: 1.9;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.poster-panel {
  overflow: hidden;
  padding-bottom: 18px;
}

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

.poster-panel .primary-btn {
  margin: 18px 18px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.related-section {
  padding-bottom: 60px;
}

.site-footer {
  margin-top: 66px;
  background: #0f172a;
  color: #e2e8f0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 36px;
}

.footer-brand .brand-mark {
  color: #0f172a;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

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

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

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

  .detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: minmax(220px, 0.35fr) 1fr;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
    min-height: 64px;
  }

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

  .nav-links {
    order: 3;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-dropdown {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

  .search-band form {
    flex-direction: column;
    border-radius: 22px;
  }

  .featured-grid,
  .compact-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranking-row {
    grid-template-columns: auto 96px 1fr;
  }

  .ranking-row img {
    width: 96px;
  }

  .ranking-score {
    display: none;
  }

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

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

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

  .hero h1,
  .page-hero h1,
  .category-hero h1 {
    font-size: 2.45rem;
  }

  .featured-grid,
  .compact-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid,
  .two-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-index {
    position: absolute;
    margin: 10px;
  }

  .ranking-row img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }
}
