/* Left-side discovery panel — shadcn Sheet (side=left). z-index above blog menu, below right drawer. */
.playlists-discovery-panel-lock {
  overflow: hidden !important;
}

.playlists-discovery-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .playlists-discovery-panel-overlay {
  background: rgb(24 24 27 / 0.88);
}

.playlists-discovery-panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.playlists-discovery-panel {
  --pdp-radius: var(--radius, 0.5rem);
  --pdp-divider: var(--border, 228 228 231);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(22.5rem, 92vw);
  max-width: 100%;
  background: rgb(var(--card, 255 255 255));
  color: rgb(var(--card-foreground, var(--foreground, 10 10 10)));
  border-right: 1px solid rgb(var(--border, 228 228 231));
  box-shadow:
    24px 0 48px -12px rgb(0 0 0 / 0.18),
    8px 0 24px rgb(0 0 0 / 0.08);
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(env(safe-area-inset-left, 0px), 0px);
  padding-right: env(safe-area-inset-right, 0px);
  touch-action: pan-y;
}

.dark .playlists-discovery-panel {
  --pdp-divider: 63 63 70;
  background: rgb(var(--card, 24 24 27));
  color: rgb(var(--card-foreground, var(--foreground, 250 250 250)));
  border-right-color: rgb(var(--pdp-divider));
  box-shadow:
    24px 0 56px -12px rgb(0 0 0 / 0.5),
    8px 0 32px rgb(0 0 0 / 0.35);
}

.playlists-discovery-panel-overlay.is-open .playlists-discovery-panel {
  transform: translateX(0);
}

.playlists-discovery-panel.is-dragging {
  transition: none !important;
}

/* Peek mode — narrow strip after Apply so results stay visible */
.playlists-discovery-panel-overlay.is-peek {
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.playlists-discovery-panel-overlay.is-peek .playlists-discovery-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  pointer-events: auto;
  box-sizing: border-box;
  height: var(--pdp-peek-height, var(--persistent-header-height, 4.5rem)) !important;
  max-height: var(--pdp-peek-height, var(--persistent-header-height, 4.5rem)) !important;
  min-height: 0;
  width: 3rem;
  min-width: 3rem;
  /* Match persistent header: content below status bar / notch (full panel uses this; peek had padding-top: 0) */
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(env(safe-area-inset-left, 0px), 0px);
  padding-bottom: 0;
  padding-right: 0;
  overflow: hidden;
  border-bottom-right-radius: var(--pdp-radius);
  background: rgb(var(--foreground, 10 10 10) / 0.07);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
  box-shadow:
    2px 0 10px rgb(0 0 0 / 0.06),
    1px 0 3px rgb(0 0 0 / 0.04);
  border-right: 1px solid rgb(var(--border, 228 228 231) / 0.38);
  transform: translateX(0);
}

.dark .playlists-discovery-panel-overlay.is-peek .playlists-discovery-panel {
  background: rgb(var(--card, 255 255 255) / 0.11);
  backdrop-filter: blur(8px) saturate(1.02);
  -webkit-backdrop-filter: blur(8px) saturate(1.02);
  box-shadow:
    2px 0 12px rgb(0 0 0 / 0.18),
    1px 0 4px rgb(0 0 0 / 0.1);
  border-right-color: rgb(var(--border, 63 63 70) / 0.42);
}

.playlists-discovery-panel-overlay.is-peek .playlists-discovery-panel-main {
  display: none;
}

.playlists-discovery-panel-peek-tab {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.625rem 0.25rem 0.75rem;
  border: none;
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.playlists-discovery-panel-peek-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: rgb(var(--muted-foreground, 100 116 139));
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
}

.playlists-discovery-panel-overlay.is-peek .playlists-discovery-panel-peek-tab {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.125rem;
  padding: 0.4375rem 0.125rem 0.3125rem;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.playlists-discovery-panel-overlay.is-peek .playlists-discovery-panel-peek-label {
  display: block;
  flex-shrink: 0;
  margin-top: auto;
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.playlists-discovery-panel-peek-tab:hover {
  background: rgb(var(--accent, 244 244 245) / 0.35);
}

.dark .playlists-discovery-panel-peek-tab:hover {
  background: rgb(var(--accent, 39 39 42) / 0.32);
}

.playlists-discovery-panel-peek-tab svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.playlists-discovery-panel-peek-badge {
  position: absolute;
  top: 0.375rem;
  right: 0.25rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.dark .playlists-discovery-panel-peek-badge {
  background: rgb(var(--primary, 250 250 250));
  color: rgb(var(--primary-foreground, 24 24 27));
}

.playlists-discovery-panel-peek-query-bubble {
  position: fixed;
  z-index: 80;
  width: min(16rem, calc(100vw - 1rem));
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  transform-origin: top left;
  transition:
    opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.playlists-discovery-panel-peek-query-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.playlists-discovery-panel-peek-query-bubble__inner {
  position: relative;
  margin-top: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--pdp-radius, 0.5rem) - 2px);
  background: rgb(var(--popover, var(--card, 255 255 255)));
  color: rgb(var(--popover-foreground, var(--card-foreground, var(--foreground, 10 10 10))));
  border: 1px solid rgb(var(--border, 228 228 231));
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.playlists-discovery-panel-peek-badge.is-bubble-open {
  visibility: hidden;
}

.playlists-discovery-panel-peek-query-bubble__nub-count {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border-radius: 999px;
  background: rgb(var(--primary, 24 24 27));
  border: 1px solid rgb(var(--primary, 24 24 27));
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--primary-foreground, 250 250 250));
  pointer-events: none;
}

.dark .playlists-discovery-panel-peek-query-bubble__nub-count {
  background: rgb(var(--primary, 250 250 250));
  border-color: rgb(var(--primary, 250 250 250));
  color: rgb(var(--primary-foreground, 24 24 27));
}

.playlists-discovery-panel-peek-query-bubble__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgb(var(--foreground, 10 10 10));
}

.playlists-discovery-panel-peek-query-bubble__query {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgb(var(--foreground, 10 10 10));
  word-break: break-word;
}

.playlists-discovery-panel-peek-query-bubble__found,
.playlists-discovery-panel-peek-query-bubble__count-note {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-peek-query-bubble__found {
  font-weight: 500;
}

.playlists-discovery-panel-peek-query-bubble__count-note {
  font-weight: 400;
}

.playlists-discovery-panel-peek-query-bubble__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(var(--border, 228 228 231));
}

.playlists-discovery-panel-peek-query-bubble__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.25rem 0.375rem;
  border: none;
  border-radius: calc(var(--pdp-radius, 0.5rem) - 4px);
  background: transparent;
  color: rgb(var(--muted-foreground, 100 116 139));
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 150ms ease, color 150ms ease;
}

.playlists-discovery-panel-peek-query-bubble__action-btn:hover:not(.playlists-discovery-panel-peek-query-bubble__action-btn--placeholder) {
  background: rgb(var(--muted, 244 244 245));
  color: rgb(var(--foreground, 10 10 10));
}

.playlists-discovery-panel-peek-query-bubble__action-btn svg {
  flex-shrink: 0;
}

.playlists-discovery-panel-peek-query-bubble__action-sep {
  color: rgb(var(--muted-foreground, 100 116 139));
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}

.playlists-discovery-panel-peek-query-bubble__action-btn--placeholder {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.dark .playlists-discovery-panel-peek-query-bubble__inner {
  background: rgb(var(--popover, var(--card, 24 24 27)));
  color: rgb(var(--popover-foreground, var(--card-foreground, var(--foreground, 250 250 250))));
  border-color: rgb(var(--border, 63 63 70));
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.35),
    0 2px 4px -2px rgb(0 0 0 / 0.25);
}

.dark .playlists-discovery-panel-peek-query-bubble__title,
.dark .playlists-discovery-panel-peek-query-bubble__query {
  color: rgb(var(--foreground, 250 250 250));
}

.dark .playlists-discovery-panel-peek-query-bubble__found,
.dark .playlists-discovery-panel-peek-query-bubble__count-note {
  color: rgb(var(--muted-foreground, 161 161 170));
}

.dark .playlists-discovery-panel-peek-query-bubble__actions {
  border-top-color: rgb(var(--border, 63 63 70));
}

.dark .playlists-discovery-panel-peek-query-bubble__action-btn {
  color: rgb(var(--muted-foreground, 161 161 170));
}

.dark .playlists-discovery-panel-peek-query-bubble__action-btn:hover:not(.playlists-discovery-panel-peek-query-bubble__action-btn--placeholder) {
  background: rgb(var(--muted, 39 39 42));
  color: rgb(var(--foreground, 250 250 250));
}

.dark .playlists-discovery-panel-peek-query-bubble__action-sep {
  color: rgb(var(--muted-foreground, 161 161 170));
}

@media (prefers-reduced-motion: reduce) {
  .playlists-discovery-panel-peek-query-bubble {
    transition: none;
    transform: none;
  }

  .playlists-discovery-panel-peek-query-bubble.is-visible {
    transform: none;
  }
}

.playlists-discovery-panel-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.playlists-discovery-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.625rem 1rem 0.5rem;
  border-bottom: 1px solid rgb(var(--pdp-divider, var(--border, 228 228 231)));
  background: rgb(var(--card, 255 255 255) / 0.96);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .playlists-discovery-panel-header {
  background: rgb(var(--card, 24 24 27) / 0.96);
  border-bottom-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-brand {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: rgb(var(--foreground, 10 10 10));
  border-radius: 0.375rem;
  -webkit-tap-highlight-color: transparent;
}

.playlists-discovery-panel-brand:hover {
  opacity: 0.88;
}

.playlists-discovery-panel-brand:focus-visible {
  outline: 2px solid rgb(var(--ring, 59 130 246));
  outline-offset: 2px;
}

.playlists-discovery-panel-wordmark {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlists-discovery-panel-logo-img {
  flex-shrink: 0;
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
}

.playlists-discovery-panel-title.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.playlists-discovery-panel-mode-bar {
  flex-shrink: 0;
  padding: 0.625rem 1rem 0.75rem;
  border-bottom: 1px solid rgb(var(--pdp-divider, var(--border, 228 228 231)));
  background: rgb(var(--card, 255 255 255));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlists-discovery-panel-music-entity-bar {
  width: 100%;
}

.playlists-discovery-panel-music-entity-bar[hidden] {
  display: none !important;
}

.dark .playlists-discovery-panel-mode-bar {
  border-bottom-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-mode-seg {
  display: flex;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(228 228 231);
  padding: 2px;
  background: rgb(244 244 245 / 0.8);
}

.dark .playlists-discovery-panel-mode-seg {
  border-color: rgb(63 63 70);
  background: rgb(39 39 42 / 0.8);
}

.playlists-discovery-panel-mode-seg button {
  flex: 1;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem;
  border: none;
  border-radius: calc(0.5rem - 2px);
  background: transparent;
  color: rgb(82 82 91);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

@media (min-width: 360px) {
  .playlists-discovery-panel-mode-seg button {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
  }
}

.dark .playlists-discovery-panel-mode-seg button {
  color: rgb(161 161 170);
}

.playlists-discovery-panel-mode-seg button:hover:not(.is-on) {
  background: rgb(228 228 231 / 0.5);
}

.dark .playlists-discovery-panel-mode-seg button:hover:not(.is-on) {
  background: rgb(63 63 70 / 0.5);
}

.playlists-discovery-panel-mode-seg button.is-on {
  background: rgb(255 255 255);
  color: rgb(24 24 27);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.dark .playlists-discovery-panel-mode-seg button.is-on {
  background: rgb(9 9 11);
  color: rgb(250 250 250);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.playlists-discovery-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--foreground, 10 10 10));
}

.playlists-discovery-panel-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.25rem 0.65rem;
  border: none;
  border-radius: var(--pdp-radius);
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.playlists-discovery-panel-close:hover {
  background: rgb(var(--accent, 244 244 245));
}

.playlists-discovery-panel-host-context {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgb(var(--muted-foreground, 100 116 139));
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--muted, 244 244 245) / 0.35);
}

.playlists-discovery-panel-host-context-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(var(--foreground, 10 10 10));
}

.playlists-discovery-panel-host-context-hint {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.dark .playlists-discovery-panel-host-context {
  border-bottom-color: rgb(var(--pdp-divider));
  background: rgb(var(--muted, 39 39 42) / 0.45);
}

.playlists-discovery-panel-host-context strong {
  color: rgb(var(--foreground, 10 10 10));
  font-weight: 600;
}

.playlists-discovery-panel-filters-sticky {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255) / 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .playlists-discovery-panel-filters-sticky {
  border-bottom-color: rgb(var(--pdp-divider));
  background: rgb(var(--card, 24 24 27) / 0.96);
}

.playlists-discovery-panel-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
}

.playlists-discovery-panel-filters-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.375rem;
}

.playlists-discovery-panel-filters-empty {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground, 100 116 139));
  white-space: nowrap;
}

.playlists-discovery-panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--pdp-radius) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--muted, 244 244 245) / 0.65);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(var(--foreground, 10 10 10));
  white-space: normal;
  word-break: break-word;
  animation: pdp-chip-in 180ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

.dark .playlists-discovery-panel-chip {
  border-color: rgb(var(--pdp-divider));
  background: rgb(var(--muted, 39 39 42) / 0.75);
}

.playlists-discovery-panel-chip.is-removing {
  animation: pdp-chip-out 150ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes pdp-chip-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pdp-chip-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlists-discovery-panel-chip {
    animation: none;
  }
  .playlists-discovery-panel-chip.is-removing {
    animation: none;
    opacity: 0;
  }
  .playlists-discovery-panel,
  .playlists-discovery-panel-overlay {
    transition: none;
  }
  .playlists-discovery-panel.is-dragging {
    transition: none !important;
  }
}

.playlists-discovery-panel-chip-label {
  overflow: visible;
  text-overflow: unset;
}

.playlists-discovery-panel-chip-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--muted-foreground, 100 116 139));
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.playlists-discovery-panel-chip-remove:hover {
  color: rgb(var(--foreground, 10 10 10));
  background: rgb(var(--accent, 244 244 245));
}

.playlists-discovery-panel-clear-all {
  flex-shrink: 0;
  padding: 0.375rem 0.625rem;
  border: none;
  border-radius: calc(var(--pdp-radius) - 2px);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--primary, 24 24 27));
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.playlists-discovery-panel-clear-all.is-disabled,
.playlists-discovery-panel-clear-all:disabled {
  opacity: 0.45;
  cursor: default;
  text-decoration: none;
}

.dark .playlists-discovery-panel-clear-all {
  color: rgb(var(--primary, 250 250 250));
}

.playlists-discovery-panel-summary {
  flex-shrink: 0;
  padding: 0.375rem 1rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1rem 1rem;
}

.playlists-discovery-panel-section {
  margin-bottom: 1rem;
}

.playlists-discovery-panel-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-placeholder {
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--pdp-radius);
  border: 1px dashed rgb(var(--border, 228 228 231));
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
  background: rgb(var(--muted, 244 244 245) / 0.25);
}

.playlists-discovery-panel-input {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: calc(var(--pdp-radius) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--background, 255 255 255));
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.875rem;
  font-family: inherit;
}

.dark .playlists-discovery-panel-input {
  background: rgb(var(--background, 10 10 10));
  border-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-input:focus {
  outline: 2px solid rgb(var(--ring, 24 24 27));
  outline-offset: 2px;
}

.playlists-discovery-panel-foot {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlists-discovery-panel-foot-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlists-discovery-panel-save-search {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: var(--pdp-radius);
  background: rgb(var(--muted, 244 244 245) / 0.65);
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.playlists-discovery-panel-save-search:disabled {
  opacity: 0.5;
  cursor: default;
}

.dark .playlists-discovery-panel-save-search {
  border-color: rgb(var(--pdp-divider));
  background: rgb(var(--muted, 39 39 42) / 0.65);
  color: rgb(var(--foreground, 250 250 250));
}

.playlists-discovery-panel-save-search:not(:disabled):hover {
  background: rgb(var(--accent, 244 244 245));
}

.dark .playlists-discovery-panel-foot {
  border-top-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-status {
  min-height: 1.125rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-status-main {
  display: block;
}

.playlists-discovery-panel-status-tip {
  display: block;
  margin-top: 0.25rem;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-status[data-tone='warn'] .playlists-discovery-panel-status-main {
  color: rgb(var(--foreground, 24 24 27));
  font-weight: 600;
}

.playlists-discovery-panel-status[data-tone='success'] {
  color: rgb(22 163 74);
}

.playlists-discovery-panel-apply {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--pdp-radius);
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.playlists-discovery-panel-apply:hover {
  opacity: 0.92;
}

/* Browse list groups */
.playlists-discovery-panel-browse-wrap {
  position: relative;
  min-height: 8rem;
}

.playlists-discovery-panel-home-media-pick {
  padding: 0.75rem 1rem 1rem;
}

.playlists-discovery-panel-home-media-pick__intro {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel.is-home-media-pick .playlists-discovery-panel-body,
.playlists-discovery-panel.is-home-media-pick .playlists-discovery-panel-foot {
  display: none;
}

.playlists-discovery-panel-list-group {
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: var(--pdp-radius);
  overflow: hidden;
  background: rgb(var(--card, 255 255 255));
}

.dark .playlists-discovery-panel-list-group {
  border-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: none;
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.dark .playlists-discovery-panel-list-row {
  border-bottom-color: rgb(var(--pdp-divider));
}

.playlists-discovery-panel-list-row:last-child {
  border-bottom: none;
}

.playlists-discovery-panel-list-row:hover {
  background: rgb(var(--accent, 244 244 245));
}

.playlists-discovery-panel-list-row-label {
  flex: 1;
  min-width: 0;
}

.playlists-discovery-panel-list-row-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--muted-foreground, 100 116 139));
  margin-left: 0.2em;
}

.playlists-discovery-panel-row-chevron {
  flex-shrink: 0;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-list-row--toggle.is-on {
  background: rgb(var(--muted, 244 244 245) / 0.65);
}

.playlists-discovery-panel-list-row--toggle.is-on .playlists-discovery-panel-check::after {
  content: '✓';
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(var(--primary, 24 24 27));
}

.playlists-discovery-panel-check {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

/* Sub-panel stack */
.playlists-discovery-panel-stack {
  position: relative;
}

.playlists-discovery-panel-stack-pane {
  display: none;
}

.playlists-discovery-panel-stack-pane.is-active {
  display: block;
  animation: pdp-pane-in 220ms cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes pdp-pane-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlists-discovery-panel-stack-pane.is-active {
    animation: none;
  }
}

.playlists-discovery-panel-subheader {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.playlists-discovery-panel-subheader-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.25rem 0.375rem 0.25rem 0;
  border: none;
  background: transparent;
  color: rgb(var(--primary, 24 24 27));
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.dark .playlists-discovery-panel-subheader-back {
  color: rgb(var(--primary, 250 250 250));
}

.playlists-discovery-panel-subheader-title {
  margin: 0;
  justify-self: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(var(--foreground, 10 10 10));
}

.playlists-discovery-panel-stack-body {
  min-height: 4rem;
}

.playlists-discovery-panel-year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: none;
  background: transparent;
}

.playlists-discovery-panel-year-btn {
  min-height: 2.75rem;
  border: none;
  border-bottom: 1px solid rgb(var(--border, 228 228 231));
  border-right: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255));
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.playlists-discovery-panel-year-btn:hover {
  background: rgb(var(--accent, 244 244 245));
}

.dark .playlists-discovery-panel-year-btn {
  border-bottom-color: rgb(var(--pdp-divider));
  border-right-color: rgb(var(--pdp-divider));
  background: rgb(var(--card, 24 24 27));
}

.dark .playlists-discovery-panel-year-btn:hover {
  background: rgb(var(--accent, 39 39 42));
}

.playlists-discovery-panel-coming-soon {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-person-hint {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-person-search {
  position: relative;
}

.playlists-discovery-panel-person-suggestions {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
  border-radius: calc(var(--pdp-radius) - 2px);
  border: 1px solid rgb(var(--border, 228 228 231));
  background: rgb(var(--card, 255 255 255));
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.dark .playlists-discovery-panel-person-suggestions {
  border-color: rgb(var(--pdp-divider));
  background: rgb(var(--card, 24 24 27));
}

.playlists-discovery-panel-person-suggestion {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgb(var(--foreground, 10 10 10));
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.playlists-discovery-panel-person-suggestion:hover,
.playlists-discovery-panel-person-suggestion.is-active {
  background: rgb(var(--accent, 244 244 245));
}

.dark .playlists-discovery-panel-person-suggestion:hover,
.dark .playlists-discovery-panel-person-suggestion.is-active {
  background: rgb(var(--accent, 39 39 42));
}

.playlists-discovery-panel-lists-hint {
  margin: 0 0 0.875rem;
  padding: 0.75rem;
  border-radius: var(--pdp-radius);
  border: 1px solid rgb(var(--pdp-divider, var(--border, 228 228 231)));
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--muted-foreground, 100 116 139));
  background: rgb(var(--muted, 244 244 245) / 0.25);
}

.dark .playlists-discovery-panel-lists-hint {
  border-color: rgb(var(--pdp-divider));
  background: rgb(var(--muted, 39 39 42) / 0.35);
}

.playlists-discovery-panel-search-section {
  margin-bottom: 0.875rem;
}

/* Podcast: expandable search scope (show / episode / transcript) */
.playlists-discovery-panel-podcast-scope {
  margin-top: 0.625rem;
}

.playlists-discovery-panel-podcast-scope[hidden] {
  display: none !important;
}

.playlists-discovery-panel-music-entity {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.625rem;
}

.playlists-discovery-panel-music-entity[hidden] {
  display: none !important;
}

.playlists-discovery-panel-scope-details {
  border: 1px solid rgb(228 228 231);
  border-radius: 0.625rem;
  background: rgb(250 250 250 / 0.65);
  overflow: hidden;
}

.dark .playlists-discovery-panel-scope-details {
  border-color: rgb(63 63 70);
  background: rgb(24 24 27 / 0.55);
}

.playlists-discovery-panel-scope-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(113 113 122);
  cursor: pointer;
  list-style: none;
  user-select: none;
  touch-action: manipulation;
}

.playlists-discovery-panel-scope-summary::-webkit-details-marker {
  display: none;
}

.playlists-discovery-panel-scope-summary::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.playlists-discovery-panel-scope-details[open] .playlists-discovery-panel-scope-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.dark .playlists-discovery-panel-scope-summary {
  color: rgb(161 161 170);
}

.playlists-discovery-panel-scope-body {
  padding: 0 0.625rem 0.625rem;
}

.playlists-discovery-panel-scope-seg {
  margin-top: 0.125rem;
}

.playlists-discovery-panel-scope-seg .playlists-discovery-panel-scope-tab {
  font-size: 0.6875rem;
}

@media (min-width: 360px) {
  .playlists-discovery-panel-scope-seg .playlists-discovery-panel-scope-tab {
    font-size: 0.75rem;
  }
}

.playlists-discovery-panel-scope-hint {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgb(113 113 122);
}

.playlists-discovery-panel-compound-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.playlists-discovery-panel-compound-field:last-of-type {
  margin-bottom: 0;
}

.playlists-discovery-panel-compound-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(113 113 122);
}

.dark .playlists-discovery-panel-compound-label {
  color: rgb(161 161 170);
}

.playlists-discovery-panel-compound-input {
  width: 100%;
}

.playlists-discovery-panel-duration-seg {
  margin-top: 0.125rem;
}

.playlists-discovery-panel-duration-seg button {
  font-size: 0.625rem;
  line-height: 1.2;
  padding: 0.375rem 0.25rem;
}

@media (min-width: 360px) {
  .playlists-discovery-panel-duration-seg button {
    font-size: 0.6875rem;
    padding: 0.375rem 0.375rem;
  }
}

@media (min-width: 420px) {
  .playlists-discovery-panel-duration-seg button {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
}

.playlists-discovery-panel-search-section input[hidden] {
  display: none !important;
}

.dark .playlists-discovery-panel-scope-hint {
  color: rgb(161 161 170);
}

.playlists-discovery-panel-locale-filter {
  margin-top: 0.75rem;
}

.playlists-discovery-panel-locale-filter[hidden] {
  display: none !important;
}

.playlists-discovery-panel-numeric-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.playlists-discovery-panel-numeric-add-row .playlists-discovery-panel-input {
  flex: 1;
  min-width: 0;
}

.playlists-discovery-panel-numeric-add-btn {
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 1px solid rgb(228 228 231);
  background: rgb(250 250 250);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.dark .playlists-discovery-panel-numeric-add-btn {
  border-color: rgb(63 63 70);
  background: rgb(24 24 27);
  color: rgb(244 244 245);
}

.pls-discovery-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.375rem;
  border: none;
  border-radius: var(--radius, 0.5rem);
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pls-discovery-trigger:active {
  transform: scale(0.94);
  background: rgb(var(--accent, 244 244 245));
}

.pls-discovery-trigger__label {
  display: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground, 100 116 139));
}

@media (min-width: 400px) {
  .pls-discovery-trigger--labeled .pls-discovery-trigger__label {
    display: inline;
  }
}

.pls-discovery-trigger:hover {
  background: rgb(var(--accent, 244 244 245));
}

.pls-discovery-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
}

.pls-discovery-trigger-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Panel-primary hosts (CML + profile avatar): full-width Filters trigger */
.cml-discovery-panel-primary .pls-discovery-trigger,
.pav-discovery-panel-primary .pls-discovery-trigger {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  justify-content: center;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.5rem;
  background: rgb(var(--background, 255 255 255));
}

.dark .cml-discovery-panel-primary .pls-discovery-trigger,
.dark .pav-discovery-panel-primary .pls-discovery-trigger {
  border-color: rgb(var(--border, 63 63 70));
  background: rgb(var(--card, 24 24 27));
}

.cml-discovery-panel-primary .pls-discovery-trigger--labeled,
.pav-discovery-panel-primary .pls-discovery-trigger--labeled {
  gap: 0.5rem;
}

/* Saved queries bar (Phase 2) */
.playlists-discovery-panel-saved-queries {
  flex-shrink: 0;
  padding: 0.625rem 1rem 0.75rem;
  border-bottom: 1px solid rgb(var(--pdp-divider, var(--border, 228 228 231)));
  background: rgb(var(--card, 255 255 255));
}

.playlists-discovery-panel-saved-queries[hidden] {
  display: none !important;
}

.playlists-discovery-panel-saved-queries__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: 0.5rem;
  background: rgb(var(--muted, 244 244 245) / 0.5);
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.playlists-discovery-panel-saved-queries__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgb(var(--primary, 24 24 27));
  color: rgb(var(--primary-foreground, 250 250 250));
  font-size: 0.6875rem;
  font-weight: 700;
}

.playlists-discovery-panel-saved-queries__chevron {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: rgb(var(--muted-foreground, 100 116 139));
  transition: transform 0.15s ease;
}

.playlists-discovery-panel-saved-queries__chevron .playlists-discovery-panel-row-chevron {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.playlists-discovery-panel-saved-queries__toggle[aria-expanded='true'] .playlists-discovery-panel-saved-queries__chevron {
  transform: rotate(180deg);
}

.playlists-discovery-panel-saved-queries__list {
  margin-top: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlists-discovery-panel-saved-queries__list[hidden] {
  display: none !important;
}

.playlists-discovery-panel-saved-query-card {
  padding: 0.5rem 0.625rem;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: calc(var(--pdp-radius, 0.5rem) - 2px);
  background: rgb(var(--card, 255 255 255));
}

.playlists-discovery-panel-saved-query-card__name {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.playlists-discovery-panel-saved-query-card__summary,
.playlists-discovery-panel-saved-query-card__meta {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-saved-query-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}

.playlists-discovery-panel-saved-query-card__scope {
  font-weight: 500;
  color: rgb(var(--foreground, 24 24 27) / 0.72);
}

.playlists-discovery-panel-saved-query-card__last-run {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.playlists-discovery-panel-saved-query-card__search-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: rgb(var(--muted-foreground, 100 116 139));
}

.playlists-discovery-panel-saved-query-card__search-icon svg {
  display: block;
}

.playlists-discovery-panel-saved-query-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.playlists-discovery-panel-saved-query-card__action {
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgb(var(--border, 228 228 231));
  border-radius: calc(var(--pdp-radius, 0.5rem) - 4px);
  background: transparent;
  color: rgb(var(--foreground, 10 10 10));
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.dark .playlists-discovery-panel-saved-queries {
  border-bottom-color: rgb(var(--pdp-divider, 63 63 70));
  background: rgb(var(--card, 24 24 27));
}

.dark .playlists-discovery-panel-saved-queries__toggle {
  border-color: rgb(var(--border, 63 63 70));
  background: rgb(var(--muted, 39 39 42) / 0.5);
  color: rgb(var(--foreground, 250 250 250));
}

.dark .playlists-discovery-panel-saved-query-card {
  border-color: rgb(var(--border, 63 63 70));
  background: rgb(var(--card, 24 24 27));
}

.dark .playlists-discovery-panel-saved-query-card__action {
  border-color: rgb(var(--border, 63 63 70));
  color: rgb(var(--foreground, 250 250 250));
}

.playlists-discovery-panel-saved-query-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.playlists-discovery-panel-saved-query-card__host {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  background: rgb(var(--muted, 244 244 245));
  color: rgb(var(--muted-foreground, 100 116 139));
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dark .playlists-discovery-panel-saved-query-card__host {
  background: rgb(var(--muted, 39 39 42));
  color: rgb(var(--muted-foreground, 161 161 170));
}

.dark .playlists-discovery-panel-saved-query-card__scope {
  color: rgb(var(--foreground, 250 250 250) / 0.78);
}

@media (max-width: 480px) {
  .playlists-discovery-panel {
    width: min(24rem, 94vw);
  }

  .playlists-discovery-panel-body {
    padding: 0.875rem 1.125rem 1rem;
  }

  .playlists-discovery-panel-saved-queries__toggle {
    min-height: 2.75rem;
  }

  .playlists-discovery-panel-filters-sticky {
    padding: 0.75rem 1.125rem;
  }
}
