/* vrc.dj  Listing: listing controls, directory, scope pages, ban wall, alerts */
/* -- Listing controls (search, sort, pagination) ------------------- */
.listing-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.listing-search {
  display: flex;
  gap: .35rem;
  flex: 1;
  min-width: 180px;
  max-width: 340px;
}
.listing-sort {
  display: flex;
  gap: .25rem;
}
.listing-scroll-sentinel {
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}
.listing-load-more-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: 1.5rem 0 2.5rem;
}
.listing-spinner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: listing-spinner-pulse 1s ease-in-out infinite;
}
.listing-spinner-dot:nth-child(2) { animation-delay: .15s; }
.listing-spinner-dot:nth-child(3) { animation-delay: .30s; }
@keyframes listing-spinner-pulse {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40%           { opacity: 1;   transform: scale(1);  }
}

/* -- Listing Directory & Scope Pages ------------------------------- */
.listing-hero {
  position: relative;
  z-index: 1; /* must be above .listing-tag-picks (later sibling) so the tag-input dropdown can overflow without being painted over */
  margin: 1rem 0 1.1rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-card) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
}
.listing-hero::before,
.listing-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.listing-hero::before {
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--listing-scope-color, var(--accent)) 34%, transparent), transparent 74%);
  opacity: .72;
  filter: blur(10px);
  transform: translate3d(0, 0, 0);
  clip-path: inset(0); /* self-clip blur bleed so parent needs no overflow:clip (which would clip the tag-input dropdown on mobile) */
}
.listing-hero::after {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--listing-scope-color, var(--accent)) 16%, transparent), transparent 32%),
    linear-gradient(120deg, color-mix(in srgb, var(--listing-scope-color, var(--accent)) 10%, transparent), transparent 38%, transparent 58%, color-mix(in srgb, var(--listing-scope-color, var(--accent)) 6%, transparent));
}
#listingContainer[data-scope="all"],
.listing-hero[data-scope="all"] { --listing-scope-color: color-mix(in srgb, var(--accent) 60%, #45b7d1); }
#listingContainer[data-scope="artist"],
.listing-hero[data-scope="artist"] { --listing-scope-color: var(--accent); }
#listingContainer[data-scope="community"],
.listing-hero[data-scope="community"] { --listing-scope-color: #38bdf8; }
#listingContainer[data-scope="liveset"],
.listing-hero[data-scope="liveset"] { --listing-scope-color: #f59e0b; }
#listingContainer[data-scope="tag"],
.listing-hero[data-scope="tag"] { --listing-scope-color: #a78bfa; }
.listing-hero-copy {
  position: relative;
  z-index: 1;
}
.listing-hero-copy {
  max-width: 42rem;
}
.listing-hero-eyebrow {
  margin: 0 0 .45rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 68%, var(--text-secondary));
}
.listing-hero-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  flex-wrap: wrap;
}
.listing-hero-inline-counts {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
  opacity: .7;
}
.listing-hero-inline-counts span {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
}
.listing-hero-inline-counts strong {
  font-weight: 700;
  color: var(--text);
}
.listing-hero-inline-counts i {
  font-size: .78rem;
  color: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 60%, var(--text-secondary));
}
.listing-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 18%, rgba(255,255,255,.04));
  color: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 75%, white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 30px color-mix(in srgb, var(--listing-scope-color, var(--accent)) 16%, transparent);
}
.listing-hero-desc {
  margin: .7rem 0 0;
  max-width: 38rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.listing-hero.is-animating .listing-hero-eyebrow,
.listing-hero.is-animating .listing-hero-title,
.listing-hero.is-animating .listing-hero-desc {
  animation: listingHeroSwap .42s cubic-bezier(.22,1,.36,1);
}
@keyframes listingHeroSwap {
  0% { opacity: .1; transform: translateY(14px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.listing-filter-bar {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.listing-hero.listing-filter-bar {
  background: color-mix(in srgb, var(--bg-card) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.listing-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 8px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.listing-advanced-toggle:hover,
.listing-advanced-toggle[aria-expanded="true"] {
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.listing-advanced-icon {
  font-size: .75rem;
}
.listing-advanced-chevron {
  font-size: .65rem;
  transition: transform .22s var(--ease);
}
.listing-advanced-toggle[aria-expanded="true"] .listing-advanced-chevron {
  transform: rotate(180deg);
}
.listing-advanced-panel {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding-top: .55rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  animation: advancedPanelIn .22s cubic-bezier(.22,1,.36,1);
}
.listing-advanced-panel[hidden] {
  display: none;
}
@keyframes advancedPanelIn {
  from { opacity: .2; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.listing-main-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}
.listing-sidebar,
.listing-results-column {
  min-width: 0;
  overflow-x: clip; /* contain ::before glow bleed without creating a scroll-clipping stacking context */
}
.listing-filter-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, .9fr);
  gap: .85rem;
  align-items: start;
}
.listing-tag-input-wrap,
.listing-search-wrap {
  min-width: 0;
}
.listing-filter-label {
  display: inline-flex;
  margin-bottom: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.listing-filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .38rem;
}
.listing-tag-input-widget {
  width: 100%;
}
.listing-tag-input-widget .tag-input-container {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.listing-tag-input-widget .tag-input-pills:not(:empty) ~ .tag-input-field-wrap {
  margin-top: .42rem;
}
.listing-tag-input-widget .tag-input-pills:empty + .tag-input-field-wrap {
  margin-top: 0;
}
.listing-search-compact {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 54px;
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 12px;
  padding: .45rem .75rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.listing-search-compact:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.listing-search-compact i {
  color: var(--text-muted);
  font-size: .82rem;
  flex-shrink: 0;
}
.listing-search-compact input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: .86rem;
  outline: none;
  width: 100%;
  padding: 0;
}
.listing-search-compact input::placeholder {
  color: var(--text-muted);
}
.listing-filter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.listing-filter-controls {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.listing-mode-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: color-mix(in srgb, var(--bg-elevated) 74%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
}
.listing-mode-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .34rem .74rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.listing-mode-btn.active {
  color: var(--white);
}
.listing-mode-btn i {
  font-size: .72rem;
}
.listing-mode-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--accent);
  border-radius: 8px;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  box-shadow: 0 1px 6px color-mix(in srgb, var(--accent) 40%, transparent);
}
.listing-mode-toggle[data-mode="or"] .listing-mode-slider {
  transform: translateX(100%);
}
.listing-mode-btn[data-tooltip] {
  position: relative;
}
.listing-mode-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 400;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: var(--z-overlay);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.listing-mode-btn[data-tooltip]:hover::after {
  opacity: 1;
}
.listing-hidden-toggle[data-tooltip] {
  position: relative;
}
.listing-hidden-toggle[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 400;
  padding: .4rem .65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .08s;
  z-index: var(--z-overlay);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.listing-hidden-toggle[data-tooltip]:hover::after {
  opacity: 1;
}
.listing-sort-compact {
  display: flex;
  gap: .2rem;
}
.listing-sort-btn {
  padding: .34rem .68rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.listing-sort-btn.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.listing-sort-btn:hover:not(.active) {
  color: var(--text-secondary);
}
.listing-result-count {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.listing-result-count::after {
  display: none;
}

.listing-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  font-size: .75rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, .35rem);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.listing-clear-btn.listing-clear-btn--hidden {
  opacity: 0;
  pointer-events: none;
}
.listing-clear-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}
.listing-clear-btn .bi {
  font-size: .65rem;
}

/* ── Cross-scope hint tooltip ── */
.scope-hint-glow {
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.scope-hint-tooltip {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  max-width: 280px;
  padding: .65rem .75rem;
  border-radius: .55rem;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.scope-hint-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scope-hint-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: color-mix(in srgb, var(--accent) 30%, transparent);
  border-top: 0;
}
.scope-hint-body {
  flex: 1;
  min-width: 0;
}
.scope-hint-primary {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.scope-hint-secondary {
  margin-top: .2rem;
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.scope-hint-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: .72rem;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.scope-hint-dismiss:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

/* Genre tag picks: only shown at the breakpoint where the sidebar gets its
   own column on the right (listing-main-grid flips to grid at 992px). Below
   that the sidebar stacks above the results and the picks card stack eats
   too much vertical space before users reach the actual livesets. */
.listing-tag-picks {
  display: none;
}
@media (min-width: 992px) {
  .listing-tag-picks {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.15rem;
  }
  .ltc-card {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    border-radius: 10px;
    padding: .75rem .65rem .85rem;
    margin-top: .45rem; /* room for notched label above */
  }
  /* Category label notched into the top-left border */
  .ltc-label {
    position: absolute;
    top: 0;
    left: .6rem;
    transform: translateY(-50%);
    padding: 0 .28rem;
    background: var(--bg-base); /* erases the border line - auto-correct in both themes */
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
  }
  /* Chips wrap - collapsed to ~2 rows by default */
  .ltc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .35rem;
    overflow: hidden;
    position: relative;
    transition: max-height .25s ease;
  }
  .ltc-card[data-collapsed="true"] .ltc-chips {
    max-height: 66px; /* ~2 chip rows */
  }
  .ltc-card[data-collapsed="true"] .ltc-chips::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 28px;
    background: linear-gradient(to bottom, transparent, var(--bg-base));
    pointer-events: none;
  }
  .ltc-card[data-collapsed="false"] .ltc-chips {
    max-height: unset;
  }
  /* "+N more" pill notched into the bottom-right border */
  .ltc-show-all {
    position: absolute;
    bottom: 0;
    right: .5rem;
    transform: translateY(50%);
    padding: .1rem .38rem;
    background: var(--bg-base);
    border: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
  }
  .ltc-show-all:hover {
    color: var(--text-secondary);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  }
}
.listing-tag-pick {
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
}
.listing-tag-pick:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 25%, transparent);
}
.listing-tag-pick--active {
  background: color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 85%, black) !important;
  border-color: var(--cat-color, rgb(124,58,237)) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 45%, transparent);
}
.listing-tag-pick--active .tag-chip-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.listing-tag-pick--dimmed {
  opacity: .35;
  transition: opacity .2s var(--ease);
}
.listing-tag-pick--dimmed:hover {
  opacity: .6;
}

.listing-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity .2s ease;
}
.listing-content.is-loading {
  opacity: .45;
  pointer-events: none;
}
.listing-section {
  display: flex;
  flex-direction: column;
  gap: .72rem;
}
/* Scope colour drives the section heading, divider, "show all" link, the
   roster's left edge accent, and the hover tint on roster items inside the
   section - so each scope reads as its own coloured lane on /directory. */
.listing-section[data-section-scope="artist"]    { --listing-section-color: var(--scope-color-artist); }
.listing-section[data-section-scope="community"] { --listing-section-color: var(--scope-color-community); }
.listing-section[data-section-scope="liveset"]   { --listing-section-color: var(--scope-color-liveset); }
.listing-section[data-section-scope="tag"]       { --listing-section-color: var(--scope-color-tag); }
.listing-section-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.listing-section-heading {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.listing-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .92rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 50%, #fff);
  letter-spacing: -.01em;
  text-shadow: 0 0 12px color-mix(in srgb, var(--listing-section-color, var(--accent)) 30%, transparent);
}
.listing-section-kicker i {
  color: var(--listing-section-color, var(--accent));
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--listing-section-color, var(--accent)) 55%, transparent));
}
.listing-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  padding: .14rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--listing-section-color, var(--accent)) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--listing-section-color, var(--accent)) 50%, transparent);
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 25%, #fff);
  font-size: .72rem;
  font-weight: 700;
}
.listing-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--listing-section-color, var(--accent)) 65%, transparent) 0%,
    color-mix(in srgb, var(--listing-section-color, var(--accent)) 22%, transparent) 55%,
    color-mix(in srgb, var(--border) 60%, transparent) 100%
  );
}
.listing-section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--listing-section-color, var(--accent)) 50%, transparent);
  background: color-mix(in srgb, var(--listing-section-color, var(--accent)) 18%, transparent);
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 25%, #fff);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.listing-section-link:hover {
  background: color-mix(in srgb, var(--listing-section-color, var(--accent)) 32%, transparent);
  border-color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 72%, transparent);
  color: #fff;
  transform: translateX(1px);
}

.listing-roster {
  transition: opacity .2s ease;
}
.listing-roster.is-entering {
  animation: rosterFadeIn .3s ease-out;
}
/* Scoped roster on /directory: a coloured spine on the left edge plus a
   matching hover tint so each section reads as its own lane. The spine sits
   inside the card via inset box-shadow so it doesn't add layout shift. */
.listing-section .listing-roster--section {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--listing-section-color, var(--accent)) 70%, transparent);
}
.listing-section .roster-item:hover {
  background: color-mix(in srgb, var(--listing-section-color, var(--accent)) 9%, transparent);
}
.listing-section .roster-item:hover .roster-arrow,
.listing-section .roster-item:hover .roster-name {
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 35%, #fff);
}
.listing-hidden-badge {
  display: inline-block;
  padding: .1em .4em;
  margin-left: .4em;
  font-size: .6em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
  border-radius: 4px;
  vertical-align: middle;
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  color: var(--text-muted);
  border: 1px solid color-mix(in srgb, var(--text-muted) 22%, transparent);
}
.roster-item--hidden {
  opacity: .5;
  filter: saturate(.35);
  transition: opacity .2s ease, filter .2s ease;
}
.roster-item--hidden:hover {
  opacity: .78;
  filter: saturate(.6);
}
/* Listing pages (/directory, /artists, /livesets, /communities): hover tint
   derives from the per-scope primary color so each scope feels distinct.
   Overrides the global purple hover in components.css. */
#listingContainer .roster-item:hover {
  background: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 8%, transparent);
}
[data-theme="light"] #listingContainer .roster-item:hover {
  background: color-mix(in srgb, var(--listing-scope-color, var(--accent-base)) 8%, var(--bg-surface));
}
[data-theme="light"] #listingContainer .roster-item:hover .roster-name {
  color: var(--listing-scope-color, var(--accent));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #listingContainer .roster-item:hover {
    background: color-mix(in srgb, var(--listing-scope-color, var(--accent-base)) 8%, var(--bg-surface));
  }
  :root:not([data-theme="dark"]) #listingContainer .roster-item:hover .roster-name {
    color: var(--listing-scope-color, var(--accent));
  }
}
.roster-item--hidden .roster-logo {
  opacity: .5;
}
.roster-item--hidden .roster-logo--liveset {
  opacity: .5;
}
.roster-item--liveset .roster-logo--liveset {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  background: var(--bg-card);
  /* iOS Safari: <button> with overflow:hidden + border-radius doesn't clip
     its <img> child unless we force the element onto its own compositor
     layer. translateZ(0) is the lightest-weight nudge that does the trick. */
  transform: translateZ(0);
}
/* YouTube 16:9 thumbnail variant */
.roster-item--liveset .roster-logo--liveset-wide {
  width: 96px;
  height: 54px;
  border-radius: 8px;
}
.roster-item--liveset .roster-logo--liveset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* iOS Safari: parent <button> overflow:hidden + border-radius doesn't clip
     <img> children. Apply the radius directly to the img so it clips itself,
     no parent overflow required. Inherit so the wide variant's 8px wins. */
  border-radius: inherit;
}
.roster-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.roster-logo--playable:hover .roster-play-overlay,
.roster-logo--playable:focus-visible .roster-play-overlay,
.roster-item--liveset:hover .roster-play-overlay,
.roster-item--liveset:focus-within .roster-play-overlay {
  opacity: 1;
}
/* When a liveset is loaded into the playback bar, keep its overlay visible (acts as
   a state indicator for play/pause). */
.roster-logo--playable.is-active .roster-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.55);
}
.roster-logo--playable.is-playing .roster-play-overlay {
  background: color-mix(in srgb, #f59e0b 65%, rgba(0, 0, 0, 0.55));
}

/* Platform indicator badge: small chip pinned to the top-right of the play thumb */
.roster-platform-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.roster-platform-badge i { line-height: 1; }
.roster-platform-badge--youtube    { background: #ff0000; }
.roster-platform-badge--soundcloud { background: #ff5500; }
.roster-platform-badge--mixcloud   { background: #5000ff; }
.roster-platform-badge--hearthis   { background: #1da0f2; }

/* ── EQ bars (now-playing indicator) ── */
.roster-eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}
.roster-eq-bars span {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: currentColor;
  animation: rosterEqBounce 0.7s ease-in-out infinite alternate;
}
.roster-eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s;    }
.roster-eq-bars span:nth-child(2) { height: 80%; animation-delay: 0.12s; }
.roster-eq-bars span:nth-child(3) { height: 55%; animation-delay: 0.24s; }
.roster-eq-bars span:nth-child(4) { height: 30%; animation-delay: 0.36s; }
@keyframes rosterEqBounce {
  from { transform: scaleY(0.35); }
  to   { transform: scaleY(1);    }
}
/* Show eq bars inside overlay when playing, hide the icon */
.roster-logo--playable.is-playing .roster-play-overlay i { display: none; }
.roster-logo--playable.is-playing .roster-play-overlay .roster-eq-bars {
  display: flex;
  color: #fff;
  height: 18px;
  gap: 3px;
}
.roster-logo--playable.is-playing .roster-play-overlay .roster-eq-bars span { width: 4px; }
/* Active-row left accent bar (inset shadow = no layout shift) */
.roster-item--liveset:has(.roster-logo--playable.is-active) {
  box-shadow: inset 3px 0 0 var(--plat-color, var(--scope-color-liveset));
}
/* Subtle pulsing tint on the row that is actively playing - no layout shift */
.roster-item--liveset:has(.roster-logo--playable.is-playing) {
  position: relative;
  isolation: isolate;
}
.roster-item--liveset:has(.roster-logo--playable.is-playing)::before {
  content: '';
  position: absolute;
  /* Leave 3px on the left so the active-row inset-shadow accent stays visible
     (box-shadow paints before z:-1 pseudo-elements, so a full-bleed ::before
     would otherwise cover the accent bar). */
  inset: 0 0 0 3px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 14%, transparent) 0%,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 4%, transparent)  50%,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 14%, transparent) 100%);
  background-size: 200% 100%;
  animation: rosterPlayingShimmer 3.2s ease-in-out infinite;
}
@keyframes rosterPlayingShimmer {
  0%   { background-position:   0% 0%; }
  100% { background-position: 200% 0%; }
}
/* Light mode: bump the tint up - pastel platform color reads better on white rows. */
[data-theme="light"] .roster-item--liveset:has(.roster-logo--playable.is-playing)::before {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 22%, transparent) 0%,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 8%,  transparent) 50%,
    color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 22%, transparent) 100%);
  background-size: 200% 100%;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .roster-item--liveset:has(.roster-logo--playable.is-playing)::before {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 22%, transparent) 0%,
      color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 8%,  transparent) 50%,
      color-mix(in srgb, var(--plat-color, var(--scope-color-liveset)) 22%, transparent) 100%);
    background-size: 200% 100%;
  }
}
/* Dim non-active rows when one is playing */
.roster-list:has(.roster-logo--playable.is-playing) .roster-item--liveset:not(:has(.roster-logo--playable.is-active)) {
  opacity: .55;
  transition: opacity .2s ease;
}
.roster-list:has(.roster-logo--playable.is-playing) .roster-item--liveset:not(:has(.roster-logo--playable.is-active)):hover {
  opacity: 1;
}

/* Listening-progress paint on roster-item livesets.
   Three states share one ::after pseudo:
     - has-resume only (in-progress, never completed): amber fade ending
       at the saved position (--ls-progress)
     - listened only (completed, not currently being replayed): calm
       amber wash across the full row - "this one is settled"
     - listened + has-resume (replaying a previously-completed set):
       bright at the start, easing back into the calm completed wash
       past the current listen position - both states visible at once
   resume.js sets --ls-progress + the row classes. */
.roster-item--liveset {
  position: relative;
  isolation: isolate;
}
.roster-item--liveset > * { position: relative; z-index: 1; }

/* ::before is already claimed by the playing shimmer, so the wash uses
   ::after. Edge-to-edge - the active-row accent paints over us anyway
   and the wash is hidden entirely during active playback. */
.roster-item--liveset.roster-item--has-resume::after,
.roster-item--liveset.roster-item--listened::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s ease;
}
.roster-item--liveset.roster-item--has-resume:not(.roster-item--listened)::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #f59e0b 22%, transparent) 0%,
    color-mix(in srgb, #f59e0b 16%, transparent) calc(var(--ls-progress, 0%) * 0.6),
    transparent var(--ls-progress, 0%)
  );
}
.roster-item--liveset.roster-item--listened:not(.roster-item--has-resume)::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #f59e0b 16%, transparent) 0%,
    color-mix(in srgb, #f59e0b 10%, transparent) 70%,
    color-mix(in srgb, #f59e0b  6%, transparent) 100%
  );
}
.roster-item--liveset.roster-item--listened.roster-item--has-resume::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, #f59e0b 28%, transparent) 0%,
    color-mix(in srgb, #f59e0b 18%, transparent) calc(var(--ls-progress, 0%) * 0.7),
    color-mix(in srgb, #f59e0b 10%, transparent) var(--ls-progress, 0%),
    color-mix(in srgb, #f59e0b  6%, transparent) 100%
  );
}
/* Hide the wash while this row is the active one - playback shimmer already
   gives the row a "currently playing" texture, doubling up looks muddy. */
.roster-item--liveset:has(.roster-logo--playable.is-active)::after { opacity: 0; }

/* Resume label - sits inside .roster-stats-row in the side column, ordered
   before .roster-like-count so the visual reads "▶ time  ❤ count". Kept
   subtle (muted text tone, lighter weight) so the date + like still lead. */
.roster-item--liveset .ls-track-resume-label {
  display: inline-flex;
  align-items: center;
  gap: .22em;
  color: color-mix(in srgb, #f59e0b 35%, var(--text-muted));
  font-size: .7rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.3;
  flex-shrink: 0;
  opacity: .82;
}
.roster-item--liveset:hover .ls-track-resume-label {
  opacity: 1;
}
.roster-item--liveset .ls-track-resume-label .bi { font-size: .9em; }
.roster-item--liveset:has(.roster-logo--playable.is-active) .ls-track-resume-label { display: none; }

/* Completed-listen marker. Sits at the start of the heading; hidden during
   active playback so the user isn't reminded mid-replay.
   align-self centers the small icon against the taller title row instead of
   hugging its top (parent .roster-heading uses align-items: flex-start). */
.roster-item--liveset .ls-track-listened-mark {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 1rem;
  color: color-mix(in srgb, var(--accent) 70%, var(--text-muted));
  line-height: 1;
}
.roster-item--liveset:has(.roster-logo--playable.is-active) .ls-track-listened-mark { display: none; }
.roster-item--liveset.roster-item--listened .roster-name { color: var(--text-muted); }
.roster-item--liveset.roster-item--listened:hover .roster-name,
.roster-item--liveset.roster-item--listened.roster-item--has-resume .roster-name,
.roster-item--liveset.roster-item--listened:has(.roster-logo--playable.is-active) .roster-name { color: var(--text); }

/* Classic like-count: heart icon next to a bold count. */
.roster-like-count {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  flex-shrink: 0;
  line-height: 1;
}
.roster-like-icon {
  color: color-mix(in srgb, var(--accent) 60%, #f43f5e);
  font-size: .85rem;
}
.roster-like-num {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
}

/* Larger badge variant for liveset-card (profile pages) */
.liveset-card-play .roster-platform-badge {
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  font-size: 0.78rem;
}
.roster-meta {
  font-size: .78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.roster-meta i { font-size: .7rem; }
.roster-meta--liveset {
  gap: .35rem;
  min-width: 0;
}
.roster-meta-entities {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  min-width: 0;
}
.roster-meta-date {
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px dotted color-mix(in srgb, var(--text-muted) 35%, transparent);
  transition: color .15s var(--ease), border-color .15s var(--ease);
  display: inline-grid;
  grid-template-areas: "stack";
}
.roster-meta-date > span {
  grid-area: stack;
  transition: opacity .25s var(--ease);
}
/* Full date sits in the same grid cell as the relative label; the wider of
   the two sizes the column so swapping doesn't shift layout. Hidden by
   default and revealed when the whole liveset row is hovered/focused -
   pointer-events disabled so the stacked element doesn't steal clicks from
   the card-link overlay underneath. */
.roster-meta-date-full {
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) {
  .roster-item--liveset:hover .roster-meta-date,
  .roster-item--liveset:focus-within .roster-meta-date {
    color: var(--text-secondary);
    border-bottom-color: color-mix(in srgb, var(--text-secondary) 55%, transparent);
  }
  .roster-item--liveset:hover .roster-meta-date-rel,
  .roster-item--liveset:focus-within .roster-meta-date-rel {
    opacity: 0;
  }
  .roster-item--liveset:hover .roster-meta-date-full,
  .roster-item--liveset:focus-within .roster-meta-date-full {
    opacity: 1;
  }
}
/* Touch / no-hover devices: hide the full-date span entirely so the column
   sizes to the short relative label, matching prior mobile layout. */
@media (hover: none) {
  .roster-meta-date-full { display: none; }
}
/* Right-hand side column on liveset rows: date pinned to the top, stats
   (playtime + like count) at the bottom. The column stretches to the row's
   full height so date/stats sit at opposite vertical edges. */
.roster-item--liveset .roster-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  flex-shrink: 0;
  gap: .25rem;
  min-height: 2.4rem;
}
.roster-item--liveset .roster-stats-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
}
/* Card-link pattern: the row is the positioning context and the title link's
   ::after stretches across the row so clicking anywhere outside the play
   button or artist/community link still navigates to the liveset detail. */
.roster-item--liveset { position: relative; }
.roster-item--liveset .roster-name--link {
  color: inherit;
  text-decoration: none;
}
.roster-item--liveset .roster-name--link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.roster-item--liveset .roster-logo,
.roster-item--liveset .roster-meta .mention {
  position: relative;
  z-index: 1;
}
/* Roster meta mentions sit on a list row, not in flowing copy - drop the pill
   padding and pull the font down so they read as compact link text. Pump the
   bg/border tint and pivot text toward white (same higher-contrast recipe as
   .tag-detail-header-bg .tag-chip) so the artist/community pill stays readable
   against the dim roster background. */
.roster-item--liveset .roster-meta .mention {
  padding: .04rem .4rem;
  font-size: .76rem;
  line-height: 1.25;
  border-radius: 6px;
  box-shadow: none;
  background: color-mix(in srgb, var(--mention-color, var(--accent)) 28%, transparent);
  border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 60%, transparent);
  color: color-mix(in srgb, var(--mention-color, var(--accent)) 25%, #fff);
}
.roster-item--liveset .roster-meta .mention:hover {
  background: color-mix(in srgb, var(--mention-color, var(--accent)) 42%, transparent);
  border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 80%, transparent);
  color: #fff;
}
/* Light mode: flip text dark - the white-mix above is invisible on a pale page */
[data-theme="light"] .roster-item--liveset .roster-meta .mention {
  background: color-mix(in srgb, var(--mention-color, var(--accent)) 28%, rgba(255,255,255,.9));
  border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 70%, transparent);
  color: color-mix(in srgb, var(--mention-color, var(--accent)) 25%, #0f172a);
}
[data-theme="light"] .roster-item--liveset .roster-meta .mention:hover {
  background: color-mix(in srgb, var(--mention-color, var(--accent)) 40%, rgba(255,255,255,.9));
  border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 85%, transparent);
  color: color-mix(in srgb, var(--mention-color, var(--accent)) 35%, #0f172a);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .roster-item--liveset .roster-meta .mention {
    background: color-mix(in srgb, var(--mention-color, var(--accent)) 28%, rgba(255,255,255,.9));
    border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 70%, transparent);
    color: color-mix(in srgb, var(--mention-color, var(--accent)) 25%, #0f172a);
  }
  :root:not([data-theme="dark"]) .roster-item--liveset .roster-meta .mention:hover {
    background: color-mix(in srgb, var(--mention-color, var(--accent)) 40%, rgba(255,255,255,.9));
    border-color: color-mix(in srgb, var(--mention-color, var(--accent)) 85%, transparent);
    color: color-mix(in srgb, var(--mention-color, var(--accent)) 35%, #0f172a);
  }
}
.roster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .1rem;
}
.roster-tag {
  pointer-events: none;
  font-size: .65rem !important;
  padding: .12rem .4rem !important;
  /* Bump the tint toward the cat-color so the chips read clearly against the
     row background. Mirrors the higher-contrast treatment used in
     .tag-detail-header-bg and .artist-spotlight-tags. */
  background: color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 24%, transparent);
  border-color: color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 55%, transparent);
  color: color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 25%, #fff);
}
.roster-tag--matched {
  outline: 1.5px solid color-mix(in srgb, var(--cat-color, rgb(124,58,237)) 70%, white);
  outline-offset: 0;
}
.roster-tag-more {
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  color: var(--text-muted);
  border-color: transparent;
  pointer-events: none;
}
.roster-bookable-icon {
  margin-left: .4rem;
  font-size: .7rem;
  color: var(--accent-bright);
  opacity: .7;
  vertical-align: baseline;
  transition: opacity .18s var(--ease);
}
.roster-item:hover .roster-bookable-icon {
  opacity: 1;
}
@keyframes rosterFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.listing-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.listing-empty-state i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .75rem;
  opacity: .5;
}
.listing-page-btn {
  cursor: pointer;
}

@media (max-width: 820px) {
  .listing-filter-top {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 992px) {
  .listing-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    gap: 1.25rem;
    align-items: start;
  }
  .listing-main-grid--no-sidebar {
    grid-template-columns: 1fr;
  }
  .listing-sidebar {
    order: 2;
  }
  .listing-results-column {
    order: 1;
  }
  .listing-filter-top {
    grid-template-columns: 1fr;
  }
}
/* Sticky right-side filter panel on desktop when the viewport is tall enough
   to comfortably show the whole sidebar without forcing inner scroll. */
@media (min-width: 992px) and (min-height: 1079px) {
  .listing-sidebar {
    position: sticky;
    top: calc(var(--nav-h, 72px) + 1rem);
    max-height: calc(100vh - var(--nav-h, 72px) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
/* ── Mobile: fuse hero → filter as one card ── */
@media (max-width: 767px) {
  .listing-hero:not(.listing-filter-bar) {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }
  /* Tags page has no filter bar - keep full border-radius on the hero */
  .listing-hero[data-scope="tag"] {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1.1rem;
  }
  .listing-filter-bar:not(.listing-hero) {
    border-top: 1px solid rgba(255,255,255,.06);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
    background: color-mix(in srgb, var(--bg-card) 62%, transparent);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
  }
  /* Hide description - eyebrow already conveys context */
  .listing-hero-desc {
    display: none;
  }
  /* Reduce hero vertical padding */
  .listing-hero {
    padding: .9rem 1rem .85rem;
  }
}

@media (max-width: 576px) {
  .listing-hero::before {
    top: -40%;
    right: -8%;
    width: 90%;
    height: 260px;
  }
  .listing-filter-bar:not(.listing-hero) {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-card) 55%, transparent);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
  }
  .listing-filter-bar:not(.listing-hero)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--listing-scope-color, var(--accent)) 22%, transparent) 0%, transparent 65%);
    border-radius: inherit;
  }
}

/* Mobile +more pill: hidden by default, shown only on small viewports */
.roster-tag-more--mobile { display: none; }

/* ── Mobile: compact roster rows (livesets, artists, communities) ── */
@media (max-width: 576px) {
  #listingContainer .roster-item {
    padding: .5rem .7rem;
    gap: .6rem;
  }
  #listingContainer .roster-info {
    gap: .1rem;
  }
  #listingContainer .roster-logo:not(.roster-logo--liveset) {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  #listingContainer .roster-name {
    font-size: .82rem;
    line-height: 1.22;
  }
  #listingContainer .roster-text {
    font-size: .71rem;
    line-height: 1.35;
    -webkit-line-clamp: 1;
  }
  #listingContainer .roster-tags {
    gap: .2rem;
    margin-top: .05rem;
  }
  /* Show first tag + mobile "+N" pill; hide the rest and the desktop +more */
  #listingContainer .roster-tags .roster-tag:nth-of-type(n+2) {
    display: none;
  }
  #listingContainer .roster-tags .roster-tag-more:not(.roster-tag-more--mobile) {
    display: none;
  }
  #listingContainer .roster-tag-more--mobile {
    display: inline-flex;
  }
  #listingContainer .roster-tag {
    font-size: .62rem !important;
    padding: .1rem .35rem !important;
  }
  #listingContainer .roster-arrow {
    font-size: .65rem;
  }

  /* Liveset-specific (playable rows with thumb + side column) */
  .roster-item--liveset .roster-logo--liveset {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .roster-item--liveset .roster-logo--liveset-wide {
    width: 72px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  .roster-meta--liveset {
    font-size: .7rem;
  }
  .roster-item--liveset .roster-meta .mention {
    font-size: .7rem;
    padding: .02rem .32rem;
  }
  .roster-item--liveset .roster-side {
    min-height: 0;
    gap: .15rem;
  }
  .roster-meta-date {
    font-size: .64rem;
  }
  .roster-like-icon {
    font-size: .75rem;
  }
  .roster-like-num {
    font-size: .68rem;
  }
  .roster-item--liveset .ls-track-resume-label {
    font-size: .62rem;
  }
  /* Whole row is already tappable via .roster-name--link::after - drop chevron */
  .roster-item--liveset .roster-arrow-link {
    display: none;
  }
  .roster-platform-badge {
    width: 16px;
    height: 16px;
    font-size: .55rem;
    top: 3px;
    right: 3px;
  }
}

@media (max-width: 680px) {
  .listing-hero-title {
    font-size: 1.55rem;
    gap: .6rem;
  }
  .listing-hero-icon {
    width: 2.2rem;
    height: 2.2rem;
  }
  .listing-filter-bottom {
    align-items: flex-start;
  }
  .listing-result-count {
    white-space: normal;
  }
  .listing-section-divider {
    flex-wrap: wrap;
    gap: .5rem .6rem;
  }
  .listing-section-heading {
    order: 1;
  }
  .listing-section-link {
    order: 2;
    margin-left: auto;
  }
  .listing-section-line {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }
  .listing-mode-btn[data-tooltip]::after {
    display: none;
  }
}

[data-theme="light"] .listing-section-kicker {
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 75%, #000);
  text-shadow: none;
}
[data-theme="light"] .listing-section-count {
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 80%, #000);
}
[data-theme="light"] .listing-section-link {
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 80%, #000);
}
[data-theme="light"] .listing-section-link:hover {
  color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 90%, #000);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .listing-section-kicker {
    color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 75%, #000);
    text-shadow: none;
  }
  :root:not([data-theme="dark"]) .listing-section-count {
    color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 80%, #000);
  }
  :root:not([data-theme="dark"]) .listing-section-link {
    color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 80%, #000);
  }
  :root:not([data-theme="dark"]) .listing-section-link:hover {
    color: color-mix(in srgb, var(--listing-section-color, var(--accent)) 90%, #000);
  }
}
[data-theme="light"] .listing-filter-bar:not(.listing-hero) {
  background: var(--bg-surface);
  border-color: var(--border);
}
[data-theme="light"] .listing-hero {
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  border-color: var(--border);
}
[data-theme="light"] .listing-mode-btn.active {
  color: var(--white);
}
[data-theme="light"] .listing-sort-btn.active {
  color: var(--text);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .listing-filter-bar:not(.listing-hero) {
    background: var(--bg-surface);
    border-color: var(--border);
  }
  :root:not([data-theme="dark"]) .listing-hero {
    background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
    border-color: var(--border);
  }
  :root:not([data-theme="dark"]) .listing-mode-btn.active {
    color: var(--white);
  }
}

/* -- Tag catalog (scope=tag) --------------------------------------- */
.listing-tag-catalog-category {
  position: relative;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base));
  border: 2px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 35%, transparent);
  border-radius: .75rem;
  padding: .9rem 1.1rem .8rem;
  margin-bottom: 1rem;
}

/* Category label - sits on the top border */
.tt-cat-label {
  position: absolute;
  top: 0;
  left: .85rem;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .18em .6em;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 18%, var(--bg-base));
  color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 80%, var(--white));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 22%, transparent);
  line-height: 1.3;
  white-space: nowrap;
  z-index: 3;
}

/* When category has a real color (inline bg set), use it */
.tt-cat-label[style*="background:"] {
  color: var(--white);
  border-color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* Scroll container - horizontal */
.tt-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 22%, transparent) transparent;
}

.tt-scroll > .tt-forest {
  width: max-content;
  min-width: 100%;
}

/* Fade indicators - integrated into card border edge */
.listing-tag-catalog-category::before,
.listing-tag-catalog-category::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 4rem;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .25s ease;
}

.listing-tag-catalog-category::before {
  left: -1px;
  border-radius: .75rem 0 0 .75rem;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 30%,
    transparent 100%);
  border-left: 2px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 8%, transparent);
}

.listing-tag-catalog-category::after {
  right: -1px;
  border-radius: 0 .75rem .75rem 0;
  background: linear-gradient(to left,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 30%,
    transparent 100%);
  border-right: 2px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 8%, transparent);
}

/* Show fade + dark border only on the scrollable side */
.listing-tag-catalog-category.tt-fade-left::before { opacity: 1; }
.listing-tag-catalog-category.tt-fade-right::after { opacity: 1; }

/* Light theme overrides */
:root:not([data-theme="dark"]) .listing-tag-catalog-category {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base));
  border-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 35%, transparent);
}

:root:not([data-theme="dark"]) .listing-tag-catalog-category::before {
  background: linear-gradient(to right,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 30%,
    transparent 100%);
}

:root:not([data-theme="dark"]) .listing-tag-catalog-category::after {
  background: linear-gradient(to left,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 0%,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 30%,
    transparent 100%);
}

/* -- Category collapse / expand ------------------------------------ */
.tt-cat-body {
  position: relative;
}

.listing-tag-catalog-category.tt-cat-collapsed .tt-cat-body {
  max-height: 280px;
  overflow: hidden;
}

.tt-cat-fade {
  position: absolute;
  bottom: .8rem;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  border-radius: 0 0 .6rem .6rem;
  background: linear-gradient(to bottom,
    transparent,
    color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 4%, var(--bg-base)) 85%);
  z-index: 1;
  opacity: 0;
  transition: opacity .2s ease;
}

.listing-tag-catalog-category.tt-cat-collapsed .tt-cat-fade {
  opacity: 1;
}

.tt-cat-expand {
  position: absolute;
  bottom: .45rem;
  right: .65rem;
  display: flex;
  align-items: center;
  gap: .3em;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  padding: .22em .62em;
  border-radius: .45rem;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 18%, var(--bg-base));
  color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 80%, var(--white));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 30%, transparent);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 22%, transparent);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.listing-tag-catalog-category.tt-cat-collapsed .tt-cat-expand {
  opacity: 1;
  pointer-events: auto;
}

.tt-cat-expand:hover {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, var(--bg-base));
}

/* -- Flat category (no hierarchy) ---------------------------------- */
.tt-cat--flat .tt-scroll {
  overflow: visible;
}
.tt-cat--flat .tt-scroll > .tt-forest {
  width: auto;
  min-width: 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
}
.tt-cat--flat .tt-branch {
  display: flex;
  align-items: center;
  position: static;
  gap: .3rem;
}
.tt-cat--flat .tt-branch + .tt-branch::before {
  content: '·';
  font-size: 1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, var(--text-muted));
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}
.tt-cat--flat .tt-node--root {
  padding: 0;
}
.tt-cat--flat::before,
.tt-cat--flat::after {
  display: none;
}

/* -- Tag tree ------------------------------------------------------ */
.tt-forest {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tt-branch {
  position: relative;
}

/* -- Node row ------------------------------------------------------ */
.tt-node {
  --tt-line-size: 1.05px;
  --tt-line-glow: 8px;
  display: flex;
  align-items: center;
  gap: .22rem;
  position: relative;
  padding: .12rem 0;
  min-height: 1.65rem;
}

.tt-node--root {
  padding: .18rem 0;
}

/* -- Toggle button ------------------------------------------------- */
.tt-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.05rem;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 25%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 70%, var(--text));
  cursor: pointer;
  font-size: .6rem;
  padding: 0;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease), transform .18s var(--ease), box-shadow .35s var(--ease);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 10%, transparent);
}

.tt-toggle:hover {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 15%, transparent);
  border-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, transparent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 16%, transparent),
    0 0 10px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 15%, transparent);
}

.tt-toggle i {
  font-size: .46rem;
  transition: transform .22s var(--ease), filter .3s var(--ease);
}

.tt-toggle:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 52%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 26%, transparent),
    0 0 0 3px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 14%, transparent);
}

/* "Light switch" glow when expanded - no rotation, just warmth */
.tt-toggle[aria-expanded="true"] {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 22%, transparent);
  border-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 50%, transparent);
  color: var(--cat-color, var(--tag-color-fallback));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 18%, transparent),
    0 0 8px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 12%, transparent);
}

.tt-toggle[aria-expanded="true"] i {
  filter: drop-shadow(0 0 3px var(--cat-color, var(--tag-color-fallback)));
}

.tt-child-count {
  position: absolute;
  top: -.32rem;
  right: -.24rem;
  min-width: .72rem;
  height: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .14rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 86%, var(--cat-color, var(--tag-color-fallback)) 14%);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 10%, transparent);
  color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 78%, var(--white));
  font-size: .48rem;
  font-weight: 600;
  line-height: 1;
  opacity: .92;
}

.tt-toggle[aria-expanded="true"] .tt-child-count {
  opacity: .82;
}

.tt-toggle:hover .tt-child-count,
.tt-toggle:focus-visible .tt-child-count {
  border-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, transparent);
  color: var(--white);
}

/* -- Ghost trails (collapsed hint) --------------------------------- */
/* S-curves fanning right from toggle when collapsed */
.tt-ghost {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  transform: translateY(-50%);
  display: block;
  pointer-events: none;
  z-index: 0;
}

.tt-ghost-svg {
  display: block;
  width: 1.6rem;
  height: auto;
  color: white;
}

/* Hide ghost when expanded */
.tt-toggle[aria-expanded="true"] .tt-ghost {
  display: none;
}

/* Light theme */
:root:not([data-theme="dark"]) .tt-ghost-svg {
  color: black;
}

/* -- Children container with tree connectors ----------------------- */
/* Continuous trunk on container + horizontal branches per child.       */
/* Both use screen blend so where branch crosses trunk, alpha stacks.  */
.tt-children {
  position: relative;
  margin-left: .4rem;
  padding-left: 0;
}

/* Continuous vertical trunk - spans first-child center to last-child center */
.tt-children::before {
  content: '';
  position: absolute;
  left: .32rem;
  top: var(--trunk-top, .88rem);
  bottom: var(--trunk-bottom, .88rem);
  width: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Connector from toggle to trunk + junction dot */
.tt-children::after {
  content: '';
  position: absolute;
  left: -.35rem;
  top: calc(50% - 3px);
  width: .67rem;
  height: 6px;
  background:
    radial-gradient(circle 3px at right center,
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 52%, transparent) 100%,
      transparent 0),
    linear-gradient(
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, transparent),
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 28%, transparent)
    ) 0 50% / 100% 1px no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}

.tt-children > .tt-node {
  position: relative;
  padding-left: 1.25rem;
}

/* Straight horizontal branch from trunk to child */
.tt-children > .tt-node::before {
  content: '';
  position: absolute;
  left: .32rem;
  top: 50%;
  width: .82rem;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 32%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Junction dot where branch meets trunk */
.tt-children > .tt-node::after {
  content: '';
  position: absolute;
  left: calc(.32rem - 1.5px);
  top: calc(50% - 1.5px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 48%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
}

.tt-children .tt-children {
  margin-left: .25rem;
}

.tt-children .tt-children > .tt-node {
  padding-left: 1.1rem;
}

.tt-children .tt-children::before {
  left: .24rem;
}
.tt-children .tt-children::after {
  left: -.2rem;
  width: .44rem;
}

.tt-children .tt-children > .tt-node::before {
  left: .24rem;
  width: .68rem;
}
.tt-children .tt-children > .tt-node::after {
  left: calc(.24rem - 1.5px);
}

.tt-node--root > .tag-chip::before,
.tt-node > .tag-chip::before {
  display: none;
}

/* Leaf nodes (no children): hide branch + dot, sit close to trunk */
.tt-children > .tt-node:not(:has(.tt-toggle))::before,
.tt-children > .tt-node:not(:has(.tt-toggle))::after {
  display: none;
}
.tt-children > .tt-node:not(:has(.tt-toggle)) {
  padding-left: .55rem;
}
.tt-children .tt-children > .tt-node:not(:has(.tt-toggle)) {
  padding-left: .45rem;
}

/* Single child: no trunk/connector needed, just a direct line */
.tt-children:has(> .tt-node:only-child)::before,
.tt-children:has(> .tt-node:only-child)::after {
  display: none;
}
.tt-children:has(> .tt-node:only-child) > .tt-node::before {
  left: -.35rem;
  width: 1.49rem;
}
.tt-children:has(> .tt-node:only-child) > .tt-node::after {
  display: none;
}

/* Light-theme: multiply blend for dark-on-light */
:root:not([data-theme="dark"]) .tt-children::before {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, transparent);
  mix-blend-mode: multiply;
}
:root:not([data-theme="dark"]) .tt-children::after {
  background:
    radial-gradient(circle 3px at right center,
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 60%, transparent) 100%,
      transparent 0),
    linear-gradient(
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, transparent),
      color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 40%, transparent)
    ) 0 50% / 100% 1px no-repeat;
  mix-blend-mode: multiply;
}
:root:not([data-theme="dark"]) .tt-children > .tt-node::before {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 44%, transparent);
  mix-blend-mode: multiply;
}
:root:not([data-theme="dark"]) .tt-children > .tt-node::after {
  background: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 56%, transparent);
  mix-blend-mode: multiply;
}

/* Mobile: compact tree */
@media (max-width: 576px) {
  .tt-node {
    gap: .16rem;
    padding: .08rem 0;
    min-height: 1.4rem;
  }
  .tt-node--root {
    padding: .12rem 0;
  }
  .tt-children {
    margin-left: .22rem;
  }
  .tt-children::before {
    left: .18rem;
  }
  .tt-children::after {
    left: -.18rem;
    width: .36rem;
  }
  .tt-children > .tt-node {
    padding-left: .88rem;
  }
  .tt-children > .tt-node::before {
    left: .18rem;
    width: .58rem;
  }
  .tt-children > .tt-node::after {
    left: calc(.18rem - 1.5px);
  }
  .tt-children .tt-children {
    margin-left: .14rem;
  }
  .tt-children .tt-children::before {
    left: .14rem;
  }
  .tt-children .tt-children::after {
    left: -.12rem;
    width: .26rem;
  }
  .tt-children .tt-children > .tt-node {
    padding-left: .76rem;
  }
  .tt-children .tt-children > .tt-node::before {
    left: .14rem;
    width: .46rem;
  }
  .tt-children .tt-children > .tt-node::after {
    left: calc(.14rem - 1.5px);
  }
  .tt-children > .tt-node:not(:has(.tt-toggle)) {
    padding-left: .42rem;
  }
  .tt-children .tt-children > .tt-node:not(:has(.tt-toggle)) {
    padding-left: .34rem;
  }
  .tt-children:has(> .tt-node:only-child) > .tt-node::before {
    left: -.18rem;
    width: .94rem;
  }
  .tt-toggle {
    width: 1.15rem;
    height: .92rem;
  }
  .tt-toggle i {
    font-size: .4rem;
  }
  .tt-child-count {
    top: -.28rem;
    right: -.2rem;
    min-width: .64rem;
    height: .64rem;
    font-size: .42rem;
    padding: 0 .1rem;
  }
  /* Mobile: top + bottom scroll indicators (bright border + inset glow when scrollable) */
  .listing-tag-catalog-category {
    transition: border-color .25s ease, box-shadow .25s ease;
  }
  .listing-tag-catalog-category.tt-fade-left,
  .listing-tag-catalog-category.tt-fade-right {
    border-top-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 35%, transparent);
    border-bottom-color: color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 35%, transparent);
    box-shadow:
      inset 0 3px 8px -4px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 25%, transparent),
      inset 0 -3px 8px -4px color-mix(in srgb, var(--cat-color, var(--tag-color-fallback)) 25%, transparent);
  }
}

.tt-children[hidden] {
  display: none !important;
}

/* -- Ban wall ------------------------------------------------------ */
.ban-wall-card {
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid rgba(220,38,38,.55);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 56px rgba(220,38,38,.1), var(--shadow-lg);
}
.ban-wall-icon {
  font-size: 4rem;
  line-height: 1;
  color: #ef4444;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(239,68,68,.45));
}
.ban-wall-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.ban-wall-subtext {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.ban-wall-reason {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.ban-wall-reason-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ef4444;
  margin-bottom: .25rem;
}
.ban-wall-reason-text {
  font-size: .9rem;
  color: var(--text);
  margin: 0;
}
.ban-wall-expiry {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: .75rem;
}
.ban-wall-contact {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* -- Alert variants ------------------------------------------------- */
.alert-sm {
  font-size: .85rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
}

/* ── Active-filter sticky strip ──────────────────────────────────── */
.listing-sticky-strip {
  position: fixed;
  top: var(--nav-h, 56px);
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .42rem .9rem;
  /* --bg-elevated (solid), not --bg-card (~4% opaque) - a sticky bar floating
     over busy listing thumbnails/tags needs real substance to blur into. */
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid color-mix(in srgb, var(--listing-scope-color, var(--accent)) 22%, var(--border));
  box-shadow: 0 4px 20px rgba(0,0,0,.28), inset 0 -1px 0 color-mix(in srgb, var(--listing-scope-color, var(--accent)) 10%, transparent);
  /* Invisible & inert by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .22s ease, transform .22s ease;
}
.listing-sticky-strip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
body:has(.listing-sticky-strip.is-visible) .listing-results-column {
  padding-top: 48px;
}
.listing-sticky-strip[data-scope="all"]       { --listing-scope-color: color-mix(in srgb, var(--accent) 60%, #45b7d1); }
.listing-sticky-strip[data-scope="artist"]    { --listing-scope-color: var(--accent); }
.listing-sticky-strip[data-scope="community"] { --listing-scope-color: #38bdf8; }
.listing-sticky-strip[data-scope="liveset"]   { --listing-scope-color: #f59e0b; }
.listing-sticky-strip-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.listing-sticky-strip-chips {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.listing-sticky-strip-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.listing-sticky-strip-clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .52rem;
  font-size: .72rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.listing-sticky-strip-clear:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}
[data-theme="light"] .listing-sticky-strip {
  background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
  border-bottom-color: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 28%, var(--border));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .listing-sticky-strip {
    background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
    border-bottom-color: color-mix(in srgb, var(--listing-scope-color, var(--accent)) 28%, var(--border));
  }
}

