:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --red: #e11d48;
  --red-dark: #be123c;
  --orange: #f97316;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

img.is-hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.3);
}

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

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

.brand-mark,
.footer-brand span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 25px rgba(225, 29, 72, 0.35);
}

.brand-name {
  font-size: 25px;
  line-height: 1;
  background: linear-gradient(90deg, #fb7185, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #fb7185;
}

.header-search,
.mobile-search,
.finder-form,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.finder-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.finder-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.header-search button,
.mobile-search button,
.finder-form button,
.btn,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 750;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.finder-form button:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.35), transparent 34%), linear-gradient(120deg, #0f172a, #7f1d1d 48%, #0f172a);
}

.hero-track {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: -60px -18vw;
  opacity: 0.18;
  filter: blur(28px) saturate(1.25);
  z-index: 0;
}

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

.hero-copy,
.hero-cover,
.hero-controls {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fecdd3;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #fff, #fed7aa 55%, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.btn-ghost.dark {
  color: var(--red);
  border: 1px solid rgba(225, 29, 72, 0.18);
  background: rgba(225, 29, 72, 0.06);
}

.hero-cover {
  display: block;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.32), rgba(15, 23, 42, 0.9));
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(1deg);
}

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

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

.hero-cover span,
.play-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.34);
}

.hero-cover span {
  right: 24px;
  bottom: 24px;
  width: 66px;
  height: 66px;
  font-size: 28px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.finder-panel,
.section-wrap,
.latest-band,
.category-showcase-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.finder-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.finder-panel h2,
.section-head h2,
.rank-copy h2,
.sticky-rank h2,
.detail-content h2,
.category-showcase h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.finder-form input {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
}

.finder-form button {
  border-radius: 16px;
  white-space: nowrap;
}

.section-wrap,
.latest-band {
  padding: 72px 0 0;
}

.section-wrap.no-top {
  padding-top: 30px;
}

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

.section-head a {
  color: var(--red);
  font-weight: 800;
}

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

.category-tile {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #fff1f2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.slim-grid,
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.slim-card .poster {
  aspect-ratio: 3 / 4;
}

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

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

.play-float {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(225, 29, 72, 0.92);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--red);
}

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

.card-meta span {
  padding: 6px 9px;
  color: #475569;
  background: #f1f5f9;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  color: #be123c;
  background: #ffe4e6;
}

.latest-band {
  width: 100%;
  padding: 70px max(16px, calc((100% - 1180px) / 2)) 78px;
  margin-top: 70px;
  background: linear-gradient(90deg, #eff6ff, #f0fdfa);
}

.section-head.wide {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.latest-band .movie-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 34px;
  align-items: start;
}

.rank-copy {
  position: sticky;
  top: 104px;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(251, 113, 133, 0.5), transparent 42%), linear-gradient(135deg, #0f172a, #7f1d1d);
  box-shadow: var(--shadow);
}

.rank-copy h2,
.rank-copy p {
  color: #fff;
}

.rank-copy p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 42px 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

.rank-no {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.compact-card img {
  width: 78px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.inner-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(251, 113, 133, 0.3), transparent 34%), linear-gradient(120deg, #0f172a, #7f1d1d 54%, #0f172a);
}

.inner-hero {
  padding: 86px max(16px, calc((100% - 1180px) / 2));
}

.inner-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fecdd3;
}

.filter-bar {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  padding: 18px;
  position: relative;
  z-index: 4;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  min-width: 150px;
  border-radius: 16px;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

.related-categories {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-categories a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--red);
  background: #ffe4e6;
  font-weight: 750;
}

.category-showcase-wrap {
  padding: 54px 0 0;
}

.category-showcase {
  margin-bottom: 26px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.category-showcase p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.ranking-page {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.sticky-rank {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sticky-rank h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: -80px;
  opacity: 0.17;
  filter: blur(28px) saturate(1.2);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 68px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 36px;
  align-items: end;
  margin-top: 26px;
}

.detail-poster {
  min-height: 460px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.7;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-info .btn {
  margin-top: 28px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.22), rgba(0, 0, 0, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: inline-flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 24px 60px rgba(225, 29, 72, 0.45);
}

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

.detail-content {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content h2:not(:first-child) {
  margin-top: 30px;
}

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

.site-footer {
  margin-top: 84px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-brand {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.75;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

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

  .ranking-page,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .sticky-rank,
  .rank-copy {
    position: relative;
    top: auto;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0 88px;
  }

  .hero-cover,
  .hero-cover img {
    min-height: 280px;
  }

  .finder-panel,
  .rank-layout,
  .detail-grid,
  .footer-grid,
  .category-showcase-head {
    grid-template-columns: 1fr;
  }

  .finder-form,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }

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

  .movie-grid,
  .slim-grid,
  .related-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .nav-wrap {
    width: min(100% - 22px, 1180px);
    gap: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero h1,
  .detail-info h1,
  .inner-hero h1 {
    font-size: 40px;
  }

  .category-grid,
  .movie-grid,
  .slim-grid,
  .related-grid,
  .ranking-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .finder-panel,
  .category-showcase,
  .detail-content {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 38px 68px 1fr;
  }

  .compact-card img {
    width: 68px;
    height: 52px;
  }
}
