:root {
  --bg: #f4fbff;
  --text: #1f2937;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.26);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --purple: #7c3aed;
  --orange: #f97316;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.9), rgba(8, 145, 178, 0.9));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #071126;
  background: linear-gradient(135deg, #67e8f9, #fff);
  box-shadow: 0 8px 22px rgba(103, 232, 249, 0.36);
  font-size: 14px;
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  flex: 1;
  max-width: 390px;
}

.top-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
}

.desktop-nav a {
  opacity: 0.9;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  opacity: 1;
  color: #cffafe;
}

.menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-nav a {
  padding: 8px 0;
  font-weight: 700;
}

.search-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.58);
  padding: 90px 18px 24px;
}

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

.search-panel-card {
  max-width: 760px;
  max-height: 75vh;
  overflow: auto;
  margin: 0 auto;
  border-radius: 28px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.search-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.search-panel-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.search-result-list {
  padding: 8px 16px 20px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-item img {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.search-result-item strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
}

.search-result-item span,
.search-result-item p {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 52%, #7c3aed 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.2), transparent 30%), linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.34;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-one {
  width: 310px;
  height: 310px;
  left: 6%;
  top: 12%;
  background: #fff;
}

.hero-glow-two {
  width: 460px;
  height: 460px;
  right: 4%;
  bottom: -8%;
  background: #67e8f9;
  animation-delay: 1.5s;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  align-items: center;
  gap: 56px;
}

.hero-slide.is-active {
  display: grid;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #0891b2;
  background: #cffafe;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-copy h1 {
  margin: 22px 0;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  color: #cffafe;
}

.hero-copy p {
  margin: 0 0 26px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ecfeff;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hero-poster {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.36);
}

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

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0284c7, #7c3aed);
  z-index: -1;
}

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.hero-poster-caption strong,
.hero-poster-caption span {
  display: block;
}

.hero-poster-caption span {
  margin-top: 6px;
  color: #cbd5e1;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

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

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

.section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

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

.section-head h2,
.page-hero h1 {
  margin: 12px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head a {
  color: #2563eb;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.35), transparent 26%), linear-gradient(145deg, #0891b2, #2563eb 56%, #7c3aed);
}

.feature-grid .poster-frame {
  height: 220px;
}

.poster-frame img,
.detail-backdrop img,
.rank-cover img,
.small-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.movie-link:hover .poster-frame img {
  transform: scale(1.09);
}

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

.badge {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.top-left {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.top-right {
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.66);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.feature-band {
  background: linear-gradient(90deg, #f5d0fe 0%, #ffe4e6 50%, #ffedd5 100%);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr 90px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.rank-item span {
  color: #2563eb;
  font-size: 22px;
  font-weight: 900;
}

.rank-item em {
  text-align: right;
  color: #f97316;
  font-style: normal;
  font-weight: 900;
}

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

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

.category-tile {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 55%, #7c3aed);
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

.category-tile:nth-child(3n+2) {
  background: linear-gradient(135deg, #7c3aed, #db2777 55%, #f97316);
}

.category-tile:nth-child(3n+3) {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
}

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

.category-tile strong {
  font-size: 24px;
}

.category-tile span,
.category-tile em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.65;
}

.page-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(135deg, #0891b2, #2563eb, #7c3aed);
  color: #fff;
}

.page-hero > div {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero .section-kicker {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

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

.filters {
  padding-top: 40px;
}

.filter-row {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 14px;
}

.filter-row strong {
  color: #0f172a;
}

.filter-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row button {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  cursor: pointer;
}

.filter-row button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-movie-grid {
  margin-top: 30px;
}

.rank-cards {
  display: grid;
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 64px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-no {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #db2777);
  font-weight: 900;
}

.rank-cover {
  width: 120px;
  height: 156px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.rank-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-card em {
  color: #f97316;
  font-style: normal;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  filter: blur(10px);
  transform: scale(1.06);
  background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.56));
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #cffafe;
}

.detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  height: 440px;
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.detail-copy .section-kicker {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.16);
}

.detail-copy h1 {
  margin: 20px 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.85;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 26px;
}

.detail-stats span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.player-wrap {
  padding-top: 42px;
  padding-bottom: 42px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  text-align: center;
  padding: 24px;
  transition: 0.25s ease;
}

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

.play-symbol {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-size: 34px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: clamp(24px, 4vw, 42px);
}

.player-overlay em {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.7;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
}

.content-card,
.related-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

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

.content-card p {
  margin: 0 0 26px;
  color: #334155;
  line-height: 1.95;
  font-size: 16px;
}

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

.small-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.small-card:hover {
  background: #f8fafc;
}

.small-cover {
  height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0891b2, #7c3aed);
}

.small-card strong,
.small-card span,
.small-card p {
  display: block;
}

.small-card strong {
  color: #111827;
  line-height: 1.4;
}

.small-card span {
  margin: 5px 0;
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
}

.small-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  margin-top: 40px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: 32px;
}

.footer-grid p {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #67e8f9;
}

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

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

@media (max-width: 1080px) {
  .top-search {
    max-width: 300px;
  }

  .desktop-nav a:nth-last-child(-n + 4) {
    display: none;
  }

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

  .hero-poster {
    max-width: 430px;
    height: 420px;
  }

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

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

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

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

  .hero-inner {
    padding: 44px 0 76px;
  }

  .hero-slide.is-active {
    display: grid;
    gap: 30px;
  }

  .hero-poster {
    width: 100%;
    max-width: none;
    height: 360px;
  }

  .hero-dots {
    bottom: 34px;
  }

  .card-grid,
  .feature-grid,
  .category-grid,
  .category-grid.compact,
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 44px 90px 1fr;
  }

  .rank-cover {
    width: 90px;
    height: 122px;
  }

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

@media (max-width: 560px) {
  .nav-shell,
  .mobile-nav,
  .section-shell,
  .detail-shell,
  .page-hero > div,
  .footer-grid,
  .footer-bottom,
  .hero-inner {
    width: min(100% - 22px, 1200px);
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .card-grid,
  .feature-grid,
  .category-grid,
  .category-grid.compact,
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame,
  .feature-grid .poster-frame {
    height: 240px;
  }

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

  .rank-item em {
    grid-column: 2;
    text-align: left;
  }

  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    width: 100%;
    height: 220px;
  }

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

  .player-overlay em {
    display: none;
  }

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

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