@import url("/cardstop-cardlist-v121.css?v=121");

/* V23: the full filter scrolls away; the compact switcher is mobile-only. */
.catalog-controls {
  position: relative;
  top: auto;
  z-index: 2;
  backdrop-filter: none;
}

.compact-set-switcher {
  position: sticky;
  top: 80px;
  z-index: 44;
  width: min(540px, 100%);
  min-height: 46px;
  margin: 10px auto 0;
  padding: 4px;
  display: none;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: stretch;
  gap: 4px;
  border: 1px solid rgba(210, 210, 207, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(16px) saturate(145%);
}

.compact-set-switcher > button {
  min-width: 0;
  border: 0;
  cursor: pointer;
}

.compact-set-arrow {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s, background 0.18s;
}

.compact-set-arrow:hover {
  background: var(--red);
  transform: scale(1.04);
}

.compact-set-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  padding: 3px 11px;
  border-radius: 999px;
  color: #111;
  background: transparent;
  text-align: left;
}

.compact-set-current small {
  grid-column: 1;
  color: var(--red);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.compact-set-current strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: #111;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-set-current i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #777;
  font-size: 13px;
  font-style: normal;
}

.compact-set-current:hover { background: #f5f5f3; }
.active-set-summary,
.rarity-filter-wrap,
.card-tile { scroll-margin-top: 92px; }

@media (max-width: 640px) {
  .compact-set-switcher {
    display: grid;
    top: 68px;
    min-height: 42px;
    margin-top: 8px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 3px;
    padding: 3px;
    box-shadow: 0 9px 23px rgba(17, 17, 17, 0.11);
  }

  .compact-set-arrow { font-size: 21px; }
  .compact-set-current { padding: 2px 8px; }
  .compact-set-current small { font-size: 6px; }
  .compact-set-current strong { font-size: 10px; }
  .compact-set-current i { font-size: 11px; }
  .active-set-summary,
  .rarity-filter-wrap,
  .card-tile { scroll-margin-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .compact-set-arrow { transition-duration: 0.01ms; }
}
