/* VibeDial - build vd30 layer (2026-09)
 * =====================================================================
 *  1. Player tool row - 48px targets, one stroked icon set, "more" group
 *  2. Coarse-pointer tap targets across the app
 *  3. Station rows - reason badges, pill case
 *  4. Vibe caption + facet strip
 *  5. Sectioned lanes ("Top picks", "Near you", ...) + "Also try"
 *  6. Home base - filter pill + Studio section
 *  Loaded last so it wins over the older layers.
 * ===================================================================== */

/* ---- 1. Player tool row ------------------------------------------------- */
.quick-actions {
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}
.tool-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 0;            /* legacy glyph text (hidden buttons) never shows */
  line-height: 0;
}
.tool-btn .ic {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}
.tool-btn .ic-on { display: none; }
.tool-btn.on .ic-on,
.tool-btn.is-muted .ic-on { display: block; }
.tool-btn.on .ic-off,
.tool-btn.is-muted .ic-off { display: none; }
.tool-btn.on {
  color: var(--c3, #f8c861);
  border-color: color-mix(in srgb, var(--c3, #f8c861) 45%, var(--line));
}
.tool-btn.is-muted { color: var(--warn, #f2c14e); }
.tool-btn:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.quick-actions .tool-more[aria-expanded="true"] {
  background: rgba(255, 255, 255, .1);
  border-color: var(--line-strong, rgba(255, 255, 255, .28));
}
.quick-actions-more {
  display: none;
  flex-basis: 100%;
  justify-content: center;
  gap: 12px;
}
.quick-actions.expanded .quick-actions-more { display: flex; }
.quick-actions-more .tool-btn {
  width: auto;
  min-width: 72px;
  height: auto;
  min-height: 56px;
  padding: 7px 12px 6px;
  border-radius: 14px;
  display: inline-grid;
  gap: 4px;
  place-items: center;
}
.tool-label {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
@container vd-player (min-width: 640px) {
  .quick-actions { justify-content: flex-end; }
  .quick-actions-more { justify-content: flex-end; }
}
@media (max-width: 380px) {
  .quick-actions { gap: 10px; }
  .tool-btn { width: 44px; height: 44px; min-height: 44px; }
  .tool-btn .ic { width: 20px; height: 20px; }
}
/* Cinema trigger injected by vibedial-plus.js now lives in the more group. */
.quick-actions-more .vdp-cine-trigger { font-size: 0; }

/* ---- 2. Coarse-pointer tap targets -------------------------------------- */
@media (pointer: coarse) {
  .station-card .star { width: 40px; height: 40px; min-height: 40px; margin-top: -8px; }
  .searchbtn, .filter-toggle, .refine-toggle, .chip-btn.icon-chip, .studio-icon-btn, .vdp-trigger {
    min-width: 44px;
    min-height: 44px;
  }
  .input-clear-btn { min-width: 40px; min-height: 40px; }
  .genre { min-height: 40px; }
}

/* ---- 3. Station rows ----------------------------------------------------- */
.tiny-pill.language-chip,
.tiny-pill.country-chip { text-transform: none; }
.tiny-pill.intel.reason {
  color: var(--c1);
  border-color: color-mix(in srgb, var(--c1) 40%, var(--line));
}
.tiny-pill.intel.home {
  color: var(--c3, #f8c861);
  border-color: color-mix(in srgb, var(--c3, #f8c861) 40%, var(--line));
}
.tiny-pill.intel.bad {
  color: var(--bad, #ff7d7d);
  border-color: color-mix(in srgb, var(--bad, #ff7d7d) 40%, var(--line));
}

/* ---- 4. Vibe caption + facet strip -------------------------------------- */
.vibe-caption {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.vibe-caption b { color: var(--c1); font-weight: 700; }
.facet-strip {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: none;
}
.facet-strip::-webkit-scrollbar { display: none; }
.facet-chip {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.facet-chip:hover { border-color: var(--line-strong, rgba(255, 255, 255, .28)); }
.facet-chip b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.facet-chip.is-on {
  background: color-mix(in srgb, var(--c1) 18%, transparent);
  border-color: color-mix(in srgb, var(--c1) 50%, var(--line));
}
.facet-chip.facet-sep { border: 0; background: transparent; padding: 6px 2px; cursor: default; color: var(--dim); }

/* ---- 5. Sectioned lanes -------------------------------------------------- */
.list-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 0 2px;
}
.list-section-head:first-child { margin-top: 2px; }
.list-section-head h4 {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c1);
  font-weight: 800;
}
.list-section-head span { font-size: 11px; color: var(--dim); }
.also-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 6px;
  padding: 0 2px;
}
.also-try .also-try-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-right: 4px;
}

/* ---- 6. Home base -------------------------------------------------------- */
.home-base-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.home-base-label {
  font-size: var(--text-xs, 11px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.home-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-pill:hover { border-color: var(--line-strong, rgba(255, 255, 255, .28)); }
.anywhere-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.anywhere-toggle input { accent-color: var(--c1); }
.home-lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.home-lang-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.home-lang-chip.is-on {
  background: color-mix(in srgb, var(--c1) 22%, transparent);
  border-color: color-mix(in srgb, var(--c1) 55%, var(--line));
}
.vibe-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.vibe-inline-check input { accent-color: var(--c1); }
#homeCountrySelect { max-width: 100%; }
