/* Twiggi Jingles - transparent, minimal audio controls; GPL v2 or later. */
.twiggi-jingles {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  color: inherit;
  font: inherit;
}
.twiggi-jingles *, .twiggi-jingles *::before, .twiggi-jingles *::after { box-sizing: border-box; }
.twiggi-jingles audio { display: none; }
.twiggi-jingles__toggle[hidden] { display: none !important; }
.twiggi-jingles__toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  min-height: 2.5rem;
  padding: .45rem .8rem;
  border: 1px solid var(--tj-button-border, #fff);
  border-radius: .45rem;
  background: var(--tj-button-bg, #181b1d);
  color: var(--tj-button-text, #fff);
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 4px rgba(0, 0, 0, .9), 0 2px 8px rgba(0, 0, 0, .4);
  transition: background-color .15s ease, opacity .15s ease;
}
.twiggi-jingles__toggle:hover { filter: brightness(1.15); }
.twiggi-jingles__toggle:active { opacity: .75; }
.twiggi-jingles__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.twiggi-jingles__icon { display: inline-flex; flex: 0 0 1rem; width: 1rem; height: 1rem; }
.twiggi-jingles__icon svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.twiggi-jingles__icon--stop { display: none; }
.twiggi-jingles__toggle[data-state="stop"] .twiggi-jingles__icon--play { display: none; }
.twiggi-jingles__toggle[data-state="stop"] .twiggi-jingles__icon--stop { display: inline-flex; }
.twiggi-jingles__name { overflow-wrap: anywhere; }
.twiggi-jingles__status { display: none; margin-top: .35rem; font-size: .875em; line-height: 1.4; }
.twiggi-jingles--message .twiggi-jingles__status { display: block; }
@media (prefers-reduced-motion: reduce) {
  .twiggi-jingles__toggle { transition: none; }
}
