:root {
  color-scheme: dark;
  --bg: #080b16;
  --bg-soft: rgba(255, 255, 255, 0.055);
  --bg-card: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #aab3c5;
  --soft: #d7def0;
  --purple: #9333ea;
  --pink: #db2777;
  --yellow: #fde047;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(147, 51, 234, 0.35), transparent 34rem),
    radial-gradient(circle at top right, rgba(219, 39, 119, 0.25), transparent 36rem),
    linear-gradient(145deg, #0f172a 0%, #1e1538 44%, #050816 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-container {
  max-width: 920px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  background: linear-gradient(90deg, rgba(49, 46, 129, 0.94), rgba(88, 28, 135, 0.94), rgba(131, 24, 67, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #261147;
  background: linear-gradient(135deg, #fde047, #f9a8d4, #c4b5fd);
  box-shadow: 0 0 34px rgba(253, 224, 71, 0.25);
  animation: glowPulse 2.4s ease-in-out infinite;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fef3c7, #fbcfe8, #ddd6fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link,
.nav-chip {
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.25s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-current,
.mobile-link:hover,
.mobile-link.is-current,
.nav-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.header-search {
  position: relative;
  width: 260px;
  flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(216, 180, 254, 0.32);
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.header-search input {
  height: 40px;
  border-radius: 999px;
  padding: 0 44px 0 16px;
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-search input:focus,
.filter-panel select:focus {
  border-color: rgba(216, 180, 254, 0.88);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22);
}

.quick-cats {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.nav-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.07);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  padding: 16px;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.97), rgba(30, 41, 59, 0.97));
}

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-search input {
  height: 42px;
  border-radius: 12px;
  padding: 0 12px;
}

.mobile-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.mobile-link {
  display: block;
  padding: 12px;
}

.hero {
  position: relative;
  height: clamp(540px, 72vh, 680px);
  overflow: hidden;
  background: #020617;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.35)),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.3) 40%, transparent 78%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 112px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(147, 51, 234, 0.72);
  backdrop-filter: blur(8px);
}

.hero h1,
.hero h2,
.page-hero h1 {
  max-width: 840px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbe3f5;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  gap: 12px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 16px 42px rgba(147, 51, 234, 0.35);
}

.primary-button:hover,
.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
}

.ghost-button,
.section-more {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover,
.section-more:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-search {
  width: min(520px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-search input {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

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

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: all 0.25s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

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

.section-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card > span:not(.category-glow) {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.category-card img {
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.58;
  transform: rotate(-6deg);
}

.category-glow {
  position: absolute;
  inset: auto -20% -50% auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(36px);
}

.tone-purple { background: linear-gradient(135deg, #7e22ce, #db2777); }
.tone-indigo { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.tone-pink { background: linear-gradient(135deg, #be185d, #ec4899); }
.tone-amber { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tone-cyan { background: linear-gradient(135deg, #0e7490, #2563eb); }
.tone-violet { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.tone-red { background: linear-gradient(135deg, #991b1b, #ef4444); }
.tone-green { background: linear-gradient(135deg, #166534, #10b981); }
.tone-stone { background: linear-gradient(135deg, #44403c, #a16207); }
.tone-rose { background: linear-gradient(135deg, #881337, #e11d48); }
.tone-sky { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.tone-fuchsia { background: linear-gradient(135deg, #86198f, #d946ef); }
.tone-lime { background: linear-gradient(135deg, #4d7c0f, #84cc16); }
.tone-blue { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.tone-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.tone-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(216, 180, 254, 0.35);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(147, 51, 234, 0.82);
  backdrop-filter: blur(8px);
}

.badge {
  top: 10px;
  left: 10px;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.25s ease;
}

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

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  min-height: 48px;
  color: #fff;
  font-weight: 760;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  gap: 8px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

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

.ranking-panel,
.side-card,
.detail-card,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 800;
}

.ranking-title a {
  color: #d8b4fe;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px 74px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.055);
  transition: all 0.25s ease;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.rank-item img {
  width: 74px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

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

.rank-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: var(--yellow);
  font-weight: 800;
}

.large-rank-list .rank-item {
  grid-template-columns: 42px 120px 1fr auto;
  padding: 12px;
}

.large-rank-list .rank-item img {
  width: 120px;
  height: 68px;
}

.page-hero {
  position: relative;
  padding: 76px 0 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(216, 180, 254, 0.25), transparent 25rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.74), rgba(88, 28, 135, 0.42));
  border-bottom: 1px solid var(--line);
}

.slim-hero {
  padding: 62px 0 42px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: #e9d5ff;
}

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

.category-overview {
  min-height: 230px;
  padding: 0;
}

.category-overview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.category-overview-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.category-overview-copy {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: 8px;
}

.category-overview-copy strong {
  font-size: 22px;
}

.category-overview-copy em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
}

.filter-search input,
.filter-panel select {
  height: 46px;
  border-radius: 14px;
  padding: 0 14px;
}

.filter-panel select option {
  color: #111827;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.result-pill strong {
  color: var(--yellow);
}

.detail-wrap {
  padding: 32px 0 70px;
}

.detail-breadcrumb {
  margin: 0 0 22px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 20px 60px rgba(147, 51, 234, 0.5);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-meta {
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.tag {
  border-radius: 999px;
  padding: 7px 12px;
  color: #e9d5ff;
  background: rgba(255, 255, 255, 0.1);
}

.text-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.text-block h2,
.side-card h2,
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.text-block p {
  color: var(--soft);
  line-height: 1.9;
  margin: 0 0 14px;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px;
}

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

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

.side-card dd {
  margin: 0;
  color: #fff;
}

.side-card a {
  color: #e9d5ff;
}

.site-footer {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
}

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

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

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

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .brand-text {
    font-size: 21px;
  }

  .quick-cats {
    padding-bottom: 8px;
  }

  .hero-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    width: 100%;
  }

  .hero-dots {
    justify-content: center;
  }

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

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

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

  .large-rank-list .rank-item,
  .rank-item {
    grid-template-columns: 34px 74px 1fr;
  }

  .rank-score {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .quick-cats,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-bottom: 164px;
  }

  .hero-actions {
    width: 100%;
  }

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

  .category-grid,
  .movie-grid,
  .category-overview-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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