/* Compact soundtrack controls. The speaker and slider follow the JAQLIV
   profile player, with the profile accent reserved for playback and volume. */
.audio-dock .pa-compact {
  --player-ink: var(--surface-ink, #f5f5f7);
  --player-highlight: var(--control-fill, #e0e3e5);
  display: flex;
  align-items: center;
  gap: 3px;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 40px));
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 4px 12px 4px 5px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .17);
  border-radius: 16px;
  background: rgb(20 21 25 / .93);
  box-shadow: 0 3px 12px rgb(0 0 0 / .2);
  color: var(--player-ink);
}
.pa-compact > :not(.pa-fx) { position: relative; z-index: 2; }
.audio-dock .pa-compact button {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--player-ink);
  box-shadow: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.audio-dock .pa-compact .pa-compact__play {
  width: 38px;
  border-radius: 12px;
  background: var(--player-highlight);
  color: var(--control-ink, #111216);
}
.pa-compact__play svg { width: 16px; height: 16px; }
.pa-compact__mute svg { width: 18px; height: 18px; }
.pa-compact__mute:not([aria-pressed="true"]) .pa-compact__silent,
.pa-compact__mute[aria-pressed="true"] .pa-compact__waves { display: none; }
.audio-dock .pa-compact button:focus-visible,
.pa-compact input:focus-visible { outline: 2px solid var(--surface-ink, white); outline-offset: -2px; }
@media (hover: hover) {
  .audio-dock .pa-compact button:hover { background: color-mix(in srgb, var(--surface-ink, white) 12%, transparent); }
  .audio-dock .pa-compact .pa-compact__play:hover { background: color-mix(in srgb, var(--player-highlight) 85%, var(--control-ink)); }
}
.pa-compact__info {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  padding-inline: 7px 1px;
  text-align: start;
}
.pa-compact__source {
  color: var(--surface-muted, #c4c6cd);
  font: 500 9px/1.15 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.pa-compact__title {
  color: var(--player-ink);
  font: 600 14px/1.15 var(--font-sans);
}
.pa-compact__source, .pa-compact__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-compact__queue:empty, .pa-compact__queue[hidden],
.pa-compact .pa-next__count, .audio-dock.hide-volume .pa-compact__volume { display: none; }
.pa-compact__sound { display: flex; align-items: center; }
.pa-compact__volume { display: grid; align-items: center; }
.pa-compact__volume input {
  appearance: none;
  width: clamp(44px, 7vw, 64px);
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.audio-dock .pa-range {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.audio-dock input[data-audio-volume]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--rail-fill) var(--volume-fill, 60%), var(--rail-rest) var(--volume-fill, 60%));
}
.audio-dock input[data-audio-volume]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--surface-ink, white);
}
.audio-dock input[data-audio-volume]::-moz-range-track { height: 4px; border-radius: 8px; background: var(--rail-rest); }
.audio-dock input[data-audio-volume]::-moz-range-progress { height: 4px; border-radius: 8px; background: var(--rail-fill); }
.audio-dock input[data-audio-volume]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--surface-ink, white); }
@media (pointer: coarse) {
  .audio-dock .pa-compact button { width: 40px; height: 40px; }
  .pa-compact__volume input { height: 40px; }
}
