/* Listen (listen.js): the Listen buttons on long explanations and the small player at the bottom left.
   Uses the app's color tokens, so it follows light and dark mode. */
.lsbtn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 4px 11px 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; vertical-align: middle; }
.lsbtn svg { width: 16px; height: 16px; fill: currentColor; }
.lsbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.lsbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lsbtn.on { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.phead .lsbtn { display: flex; width: max-content; margin-top: 10px; }
.gsec > .lsbtn { justify-self: start; width: max-content; margin: 0 0 8px; }
.cmd-bot > .lsbtn { display: flex; width: max-content; margin-top: 8px; font-size: 12px; }

.lsn { position: fixed; left: 20px; bottom: 20px; z-index: 62; display: flex; align-items: center; gap: 10px; width: min(560px, calc(100vw - 120px)); padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(15, 25, 45, .25), 0 1px 3px rgba(15, 25, 45, .15); font-size: 13px; }
.lsn[hidden] { display: none; }
.lsplay { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--surface); display: grid; place-items: center; cursor: pointer; }
.lsi-play { width: 0; height: 0; margin-left: 3px; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.lsi-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.lsmid { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lstitle { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsrow { display: flex; align-items: center; gap: 8px; }
.lsprog { flex: 1; min-width: 0; accent-color: var(--accent); height: 4px; cursor: pointer; }
.lsprog:disabled { cursor: default; opacity: .5; }
.lstime { flex: none; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); min-width: 74px; text-align: right; }
.lsfwd { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lsfwd:hover, .lsrate select:hover { border-color: var(--ink); }
.lsrate select { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 5px 6px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lsx { flex: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.lsx:hover { color: var(--ink); }
.lsplay:focus-visible, .lsfwd:focus-visible, .lsrate select:focus-visible, .lsx:focus-visible, .lsprog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.ls-open footer.foot { margin-bottom: 72px; }
@media (max-width: 599px) {
  .lsn { left: 12px; right: 76px; bottom: 12px; width: auto; gap: 6px; padding: 8px; flex-wrap: wrap; }
  .lsmid { flex-basis: calc(100% - 60px); }
  .lsplay { width: 36px; height: 36px; }
}
