body.filter-page {
  --filter-shell-bg:
    radial-gradient(circle at top left, rgba(242, 163, 93, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(98, 191, 211, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(11, 17, 24, 0.92);
  --filter-panel-bg:
    linear-gradient(180deg, rgba(15, 23, 32, 0.94), rgba(10, 16, 22, 0.96));
  --filter-line: rgba(255, 255, 255, 0.1);
  --filter-line-strong: rgba(255, 255, 255, 0.16);
  --filter-text-main: #f7f1e9;
  --filter-text-sub: rgba(247, 241, 233, 0.76);
  --filter-text-soft: rgba(247, 241, 233, 0.54);
  --filter-chip: rgba(255, 255, 255, 0.06);
  --filter-chip-hover: rgba(255, 255, 255, 0.1);
  --filter-accent: #f2a35d;
  min-height: 100vh;
  color: var(--filter-text-main);
  background: var(--page-bg);
  overflow-x: hidden;
}

body.filter-page::before,
body.filter-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

body.filter-page::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 236, 205, 0.16) 0 18%, rgba(244, 168, 101, 0.12) 42%, rgba(67, 47, 31, 0.08) 72%, rgba(17, 24, 32, 0) 100%);
  top: 84px;
  right: -84px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  box-shadow:
    inset -20px -24px 48px rgba(0, 0, 0, 0.18),
    inset 18px 18px 32px rgba(255, 255, 255, 0.03),
    0 0 90px rgba(244, 168, 101, 0.09),
    -24px 18px 120px rgba(244, 168, 101, 0.07);
  opacity: 0.92;
  animation: filterPlanetWarmDrift 15s ease-in-out infinite alternate;
}

body.filter-page::after {
  background:
    radial-gradient(circle at 34% 30%, rgba(208, 235, 246, 0.14) 0 18%, rgba(74, 139, 176, 0.14) 42%, rgba(27, 48, 65, 0.1) 72%, rgba(12, 20, 28, 0) 100%);
  left: -78px;
  bottom: 64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  box-shadow:
    inset -18px -22px 40px rgba(0, 0, 0, 0.22),
    inset 14px 14px 28px rgba(255, 255, 255, 0.025),
    0 0 84px rgba(74, 139, 176, 0.08),
    22px -16px 110px rgba(74, 139, 176, 0.06);
  opacity: 0.82;
  animation: filterPlanetCoolDrift 17s ease-in-out infinite alternate;
}

@keyframes filterPlanetWarmDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-18px, 12px, 0);
  }
}

@keyframes filterPlanetCoolDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(16px, -10px, 0);
  }
}

body.filter-page .ambient {
  display: none;
}

body.filter-page .grid-noise {
  display: none;
}

body.filter-page .filter-reference {
  position: relative;
  z-index: 1;
  padding: 18px 0 64px;
}

body.filter-page .filter-reference__container {
  position: relative;
  z-index: 1;
}

body.filter-page .filter-reference__shell {
  display: grid;
  gap: 18px;
  padding: 24px 26px 30px;
  border: 1px solid var(--filter-line);
  border-radius: 30px;
  background: var(--filter-shell-bg);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.filter-page .filter-topbar,
body.filter-page .filter-panel,
body.filter-page .filter-stage {
  position: relative;
  border: 1px solid var(--filter-line);
  border-radius: 24px;
  background: var(--filter-panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 38px rgba(0, 0, 0, 0.18);
}

body.filter-page .filter-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

body.filter-page .filter-topbar__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.filter-page .filter-topbar__eyebrow {
  color: var(--filter-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.filter-page .filter-topbar__title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.filter-page .filter-topbar__desc {
  margin: 0;
  color: var(--filter-text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

body.filter-page .filter-scene-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--filter-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

body.filter-page .tab-btn {
  min-width: 100px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--filter-text-soft);
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

body.filter-page .tab-btn:hover {
  color: var(--filter-text-main);
  transform: translateY(-1px);
}

body.filter-page .tab-btn.is-active {
  border-color: rgba(242, 163, 93, 0.36);
  background: linear-gradient(180deg, rgba(242, 163, 93, 0.22), rgba(242, 163, 93, 0.12));
  color: #fff5e8;
}

body.filter-page .filter-results-meta {
  display: grid;
  gap: 6px;
  min-width: 220px;
  justify-items: end;
  text-align: right;
}

body.filter-page .filter-results-meta__main,
body.filter-page .filter-results-meta__side {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.filter-page .filter-results-meta strong {
  color: var(--filter-text-main);
  font-size: 0.98rem;
  font-weight: 800;
}

body.filter-page .filter-results-meta span {
  color: var(--filter-text-soft);
  font-size: 0.78rem;
}

body.filter-page .filter-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}

body.filter-page .filter-panel__head,
body.filter-page .filter-stage__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.filter-page .filter-panel__head strong,
body.filter-page .filter-stage__head strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.filter-page .filter-panel__head span,
body.filter-page .filter-stage__head span {
  color: var(--filter-text-soft);
  font-size: 0.76rem;
}

body.filter-page .filter-groups {
  display: grid;
  gap: 12px;
}

body.filter-page .filter-group-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body.filter-page .filter-group-card__head {
  padding-top: 4px;
}

body.filter-page .filter-group-card__head h3 {
  margin: 0;
  color: rgba(247, 241, 233, 0.74);
  font-size: 0.9rem;
  font-weight: 700;
}

body.filter-page .filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.filter-page .filter-chip,
body.filter-page .filter-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--filter-line);
  border-radius: 999px;
  background: var(--filter-chip);
  color: var(--filter-text-sub);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

body.filter-page .filter-chip strong {
  display: none;
}

body.filter-page .filter-chip:hover,
body.filter-page .filter-more:hover {
  transform: translateY(-1px);
  border-color: var(--filter-line-strong);
  background: var(--filter-chip-hover);
  color: var(--filter-text-main);
}

body.filter-page .filter-chip.is-active {
  border-color: rgba(242, 163, 93, 0.36);
  background: linear-gradient(180deg, rgba(242, 163, 93, 0.18), rgba(242, 163, 93, 0.08));
  color: var(--filter-accent);
}

body.filter-page .filter-more {
  color: #ffd0a2;
}

body.filter-page .filter-active-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
}

body.filter-page .filter-active-summary:empty {
  display: none;
}

body.filter-page .filter-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--filter-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--filter-text-sub);
  font-size: 0.78rem;
  font-weight: 700;
}

body.filter-page .filter-active-pill--scene {
  border-color: rgba(98, 191, 211, 0.2);
  background: rgba(98, 191, 211, 0.08);
  color: #cceef6;
}

body.filter-page .filter-stage {
  display: grid;
  gap: 18px;
  padding: 18px 20px 22px;
}

body.filter-page .filter-stage__head-copy,
body.filter-page .filter-stage__head-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.filter-page .filter-stage__head-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--filter-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--filter-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

body.filter-page .filter-results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
}

body.filter-page .filter-poster-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

body.filter-page .filter-poster-card__poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  border: 1px solid var(--filter-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(7, 12, 18, 0.26)),
    linear-gradient(145deg, var(--poster-start), var(--poster-end));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

body.filter-page .filter-poster-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.filter-page .filter-poster-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

body.filter-page .filter-poster-card__badge,
body.filter-page .filter-poster-card__episode {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.68);
  color: #fff5e8;
  font-size: 0.64rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

body.filter-page .filter-poster-card__footer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

body.filter-page .filter-poster-card__scene {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(98, 191, 211, 0.16);
  color: #d5f2f7;
  font-size: 0.64rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

body.filter-page .filter-poster-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.filter-page .filter-poster-card__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--filter-text-main);
}

body.filter-page .filter-poster-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.filter-page .filter-poster-card__tag {
  color: var(--filter-text-soft);
  font-size: 0.72rem;
  line-height: 1.4;
}

body.filter-page .empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--filter-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--filter-text-soft);
  font-size: 0.92rem;
}

body.filter-page .ranking-pagination {
  justify-content: center;
}

body.filter-page .ranking-pagination__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

body.filter-page .ranking-pagination__btn,
body.filter-page .ranking-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--filter-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--filter-text-sub);
  font-size: 0.8rem;
  font-weight: 700;
}

body.filter-page .ranking-pagination__btn.is-active {
  border-color: rgba(242, 163, 93, 0.36);
  background: linear-gradient(180deg, rgba(242, 163, 93, 0.2), rgba(242, 163, 93, 0.1));
  color: var(--filter-accent);
}

body.filter-page .ranking-pagination__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body.filter-page .filter-sortbar {
  display: none !important;
}

@media (max-width: 1320px) {
  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  body.filter-page .filter-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body.filter-page .filter-results-meta {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  body.filter-page .filter-results-meta__main,
  body.filter-page .filter-results-meta__side {
    justify-content: flex-start;
  }

  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.filter-page .filter-reference__shell {
    padding: 18px 16px 24px;
    border-radius: 24px;
  }

  body.filter-page .filter-topbar,
  body.filter-page .filter-panel,
  body.filter-page .filter-stage {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 20px;
  }

  body.filter-page .filter-group-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.filter-page .filter-group-card__head {
    padding-top: 0;
  }

  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.filter-page .filter-scene-tabs {
    width: 100%;
  }

  body.filter-page .tab-btn {
    min-width: 0;
    flex: 1 1 0;
    font-size: 1.28rem;
  }

  body.filter-page .filter-chip-list {
    gap: 8px;
  }

  body.filter-page .filter-chip,
  body.filter-page .filter-more {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 420px) {
  body.filter-page .filter-topbar__title {
    font-size: 1.32rem;
  }

  body.filter-page .filter-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Match the provided mock more closely */
body.filter-page .filter-reference {
  padding-top: 8px;
}

body.filter-page .filter-reference__shell {
  gap: 12px;
  padding: 10px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.filter-page .filter-topbar,
body.filter-page .filter-panel,
body.filter-page .filter-stage {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.filter-page .filter-topbar {
  grid-template-columns: auto;
  justify-items: start;
  gap: 0;
  padding: 0;
}

body.filter-page .filter-topbar__copy,
body.filter-page .filter-results-meta,
body.filter-page .filter-panel__head,
body.filter-page .filter-stage__head,
body.filter-page .filter-active-summary {
  display: none;
}

body.filter-page .filter-scene-tabs {
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.filter-page .tab-btn {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 241, 233, 0.56);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

body.filter-page .tab-btn.is-active {
  border: 0;
  background: transparent;
  color: #fff7ec;
}

body.filter-page .filter-panel {
  padding: 4px 0 6px;
}

body.filter-page .filter-groups {
  gap: 8px;
}

body.filter-page .filter-group-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

body.filter-page .filter-group-card__head {
  padding-top: 2px;
}

body.filter-page .filter-group-card__head h3 {
  color: rgba(247, 241, 233, 0.56);
  font-size: 0.84rem;
  font-weight: 700;
}

body.filter-page .filter-chip-list {
  gap: 10px 18px;
}

body.filter-page .filter-chip,
body.filter-page .filter-more {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(247, 241, 233, 0.64);
  font-size: 0.86rem;
  font-weight: 700;
}

body.filter-page .filter-chip:hover,
body.filter-page .filter-more:hover {
  transform: none;
  border: 0;
  background: transparent;
  color: #fff7ec;
}

body.filter-page .filter-chip.is-active {
  color: var(--filter-accent);
}

body.filter-page .filter-more {
  color: rgba(247, 241, 233, 0.52);
}

body.filter-page .filter-stage {
  padding: 10px 0 0;
}

body.filter-page .filter-results-grid {
  gap: 28px 18px;
}

body.filter-page .filter-poster-card__poster {
  border-radius: 12px;
}

body.filter-page .filter-poster-card__badges {
  top: auto;
  left: auto;
  right: 10px;
  bottom: 10px;
  justify-content: flex-end;
}

body.filter-page .filter-poster-card__badge {
  background: rgba(12, 18, 26, 0.72);
}

body.filter-page .filter-poster-card__footer {
  left: auto;
  right: 10px;
  bottom: 10px;
  justify-content: flex-end;
}

body.filter-page .filter-poster-card__scene {
  display: none;
}

body.filter-page .filter-poster-card__title {
  font-size: 0.94rem;
}

body.filter-page .filter-poster-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 241, 233, 0.46);
  font-size: 0.64rem;
}

body.filter-page .ranking-pagination {
  margin-top: 4px;
}

@media (max-width: 860px) {
  body.filter-page .filter-group-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.filter-page .tab-btn {
    font-size: 1.6rem;
  }
}

/* Final hard override: match the provided mock exactly */
body.filter-page .filter-reference {
  padding-top: 4px !important;
}

body.filter-page .filter-reference__shell {
  gap: 10px !important;
  padding: 6px 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.filter-page .filter-topbar,
body.filter-page .filter-panel,
body.filter-page .filter-stage {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.filter-page .filter-topbar {
  display: grid !important;
  grid-template-columns: auto !important;
  justify-items: start !important;
  gap: 0 !important;
  padding: 0 !important;
}

body.filter-page .filter-topbar__copy,
body.filter-page .filter-results-meta,
body.filter-page .filter-panel__head,
body.filter-page .filter-stage__head,
body.filter-page .filter-active-summary {
  display: none !important;
}

body.filter-page .filter-scene-tabs {
  gap: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.filter-page .tab-btn {
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(247, 241, 233, 0.58) !important;
  font-size: 2rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.filter-page .tab-btn.is-active {
  color: #fff7ec !important;
}

body.filter-page .filter-panel {
  padding: 2px 0 0 !important;
  margin: 0 !important;
}

body.filter-page .filter-groups {
  gap: 8px !important;
}

body.filter-page .filter-group-card {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.filter-page .filter-group-card__head {
  padding-top: 1px !important;
}

body.filter-page .filter-group-card__head h3 {
  color: rgba(247, 241, 233, 0.56) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

body.filter-page .filter-chip-list {
  gap: 10px 18px !important;
}

body.filter-page .filter-chip,
body.filter-page .filter-more {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(247, 241, 233, 0.64) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.filter-page .filter-chip:hover,
body.filter-page .filter-more:hover {
  color: #fff7ec !important;
}

body.filter-page .filter-chip.is-active {
  color: var(--filter-accent) !important;
}

body.filter-page .filter-more {
  color: rgba(247, 241, 233, 0.48) !important;
}

body.filter-page .filter-stage {
  margin-top: 8px !important;
  padding: 0 !important;
}

body.filter-page .filter-results-grid {
  margin-top: 0 !important;
  padding-top: 8px !important;
  gap: 28px 18px !important;
}

body.filter-page .empty-state {
  min-height: 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(247, 241, 233, 0.52) !important;
  box-shadow: none !important;
}

body.filter-page .filter-poster-card {
  gap: 10px !important;
}

body.filter-page .filter-poster-card__poster {
  border: 0 !important;
  border-radius: 12px !important;
}

body.filter-page .filter-poster-card__badges {
  top: auto !important;
  left: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  justify-content: flex-end !important;
}

body.filter-page .filter-poster-card__badge {
  background: rgba(12, 18, 26, 0.72) !important;
}

body.filter-page .filter-poster-card__footer {
  left: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  justify-content: flex-end !important;
}

body.filter-page .filter-poster-card__scene {
  display: none !important;
}

body.filter-page .filter-poster-card__title {
  font-size: 0.94rem !important;
}

body.filter-page .filter-poster-card__tag {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(247, 241, 233, 0.44) !important;
  font-size: 0.62rem !important;
}

body.filter-page .ranking-pagination {
  margin-top: 8px !important;
}

/* Tighten the header-to-filter spacing and avoid hidden grid tracks leaving blank space. */
body.filter-page .site-header {
  padding-bottom: 0 !important;
}

body.filter-page .filter-reference {
  padding-top: 0 !important;
  margin-top: -6px !important;
}

body.filter-page .filter-reference__shell {
  gap: 10px !important;
  padding-top: 0 !important;
}

body.filter-page .filter-topbar__controls {
  display: flex !important;
  align-items: flex-start !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.filter-page .filter-panel > .filter-topbar__controls {
  justify-content: flex-start !important;
  margin: 0 0 10px !important;
}

body.filter-page .filter-scene-tabs {
  margin: 0 !important;
}

body.filter-page .filter-panel {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 6px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.filter-page .filter-groups {
  margin: 0 !important;
  padding: 0 !important;
  gap: 12px !important;
}

body.filter-page .filter-stage {
  margin-top: 100px !important;
  position: relative !important;
  z-index: 1 !important;
}

body.filter-page .filter-panel {
  padding: 4px 0 6px !important;
}

body.filter-page .filter-group-card {
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 14px !important;
}

body.filter-page .filter-group-card__head {
  width: 56px !important;
  padding-top: 0 !important;
}

body.filter-page .filter-group-card__head h3 {
  margin: 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  line-height: 1.35 !important;
}

body.filter-page .filter-chip-list {
  align-items: center !important;
  column-gap: 18px !important;
  row-gap: 12px !important;
}

body.filter-page .filter-chip,
body.filter-page .filter-more {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

body.filter-page .filter-results-grid {
  padding-top: 0 !important;
}
