/* The player is a quiet corner element: no plate, no accent colour, text and icons dimmed until hovered. */
.player { position: absolute; top: var(--s2); right: var(--s2); display: grid; justify-items: end; gap: 0;
  color: var(--muted); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.player__controls { display: flex; align-items: center; }
.player__btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.player__btn:hover { color: var(--text); }
.player__btn svg { width: 20px; height: 20px; fill: currentColor; }
.player__play svg { display: none; }
.player__play[aria-pressed="false"] .player__icon--play, .player__play[aria-pressed="true"] .player__icon--pause { display: block; }
.player__credit { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--s1); max-width: 280px; padding-right: var(--s1); font-size: 14px; line-height: 1.4; text-align: right; }
.player__credit a { color: inherit; text-decoration: none; }
.player__credit a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.player__title { color: var(--text); }
.player__btn:focus-visible, .player__credit a:focus-visible, .player__volume:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.player__btn:focus-visible { border-radius: 50%; }

.player__volume { -webkit-appearance: none; appearance: none; width: 72px; height: 44px; margin: 0 0 0 var(--s1); background: transparent; cursor: pointer; --fill: 50%; }
.player__volume::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: linear-gradient(to right, var(--muted) var(--fill), var(--line) var(--fill)); }
.player__volume::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--muted); border: 0; }
.player__volume:hover::-webkit-slider-thumb { background: var(--text); }
.player__volume::-moz-range-track { height: 2px; border-radius: 1px; background: var(--line); }
.player__volume::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--muted); }
.player__volume::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 0; }

/* Bottom-left corner variant. */
.player--bl { top: auto; right: auto; left: var(--s2); bottom: var(--s2); justify-items: start; }
.player--bl .player__credit { justify-content: flex-start; text-align: left; padding: 0 0 0 var(--s1); }

@media (max-width: 560px) {
  .player { top: var(--s1); right: var(--s1); }
  .player--bl { top: auto; right: auto; left: var(--s1); bottom: var(--s1); }
  .player__credit { max-width: 240px; }
}
