/* ── Consolidated Pill Styles ──
   Single source of truth for YT pill, AM preview, and AM placeholder.
   Loaded via <link> in ns-layout.astro head — no Astro scoping or stripping.
   font-size is inherited from parent container so you control it per-context.
   ──────────────────────────────────── */

/* ── Base: all pill types identical box model ── */
.hs-pill,
.yt-pill,
.rec-inline-preview,
.am-placeholder {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.4;
  box-sizing: border-box;
  color: #1A1612;
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 1px 6px;
  background: #EBE4D8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-decoration: none;
}

/* ── Hover (all pill types) — terra text only, no border ── */
.hs-pill:hover,
.yt-pill:hover,
.rec-inline-preview:hover,
.am-placeholder:hover {
  color: #A83D2A;
}

/* ── YT pill SVG (red YouTube icon) ── */
.yt-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #FF0000;
}

/* ── AM preview pill (green play icon) ── */
.rec-inline-preview {
  transition: background 0.15s ease, color 0.15s ease;
}
.rec-inline-preview svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3A7A52;
  fill: currentColor;
}
.rec-inline-preview.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.rec-inline-preview.is-playing {
  background: #3A7A52;
  color: #fff;
}
.rec-inline-preview.is-playing svg {
  color: #fff;
}

/* ── AM placeholder ── */
.am-placeholder {
  gap: 4px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

/* ── Pill text truncation wrapper ── */
.ns-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
