.song-player {
  --player-accent: #b69af7;
  --player-ink: #f3eff8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  column-gap: .35rem;
  width: 100%;
  max-width: 41rem;
  container-type: inline-size;
  color: var(--player-ink);
}
.song-player [hidden] { display: none !important; }
.song-player__controls, .song-player__fallback { grid-area: 1 / 1; min-width: 0 }
.song-share-action { grid-area: 1 / 2; position: relative; align-self: center }
.song-share, .song-permalink {
  display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #c6b8d5; cursor: pointer;
}
.song-share:hover, .song-permalink:hover, .song-share:focus-visible, .song-permalink:focus-visible {
  color: #fff; background: #b69af71a;
}
.song-share-status { position: absolute; z-index: 1; bottom: 100%; right: 0; white-space: nowrap; font: 500 .85rem/1.4 Inter, sans-serif }
.song-share-status:not(:empty) { padding: .3rem .6rem; color: #eee6f8; background: #26202e; border: 1px solid #6c5a79; border-radius: .35rem }
.song-share-url, .song-player__error { grid-column: 1 / -1 }
.song-share-url {
  width: 100%; min-width: 0; margin-top: .35rem; padding: .5rem .65rem;
  border: 1px solid #80708c; border-radius: .3rem; background: #18151c; color: #eee6f8; font: inherit;
}
@media print { .song-share-action, .song-share-url { display: none } }
.song-player .song-player__controls {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.5vw, .95rem);
  min-height: 3.25rem;
  padding: .18rem 0;
}
.song-player .song-player__toggle {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  color: #201527;
  background: var(--player-accent);
  cursor: pointer;
}
.song-player .song-player__toggle:hover { background: #d7c1ff; }
.song-player .song-player__toggle:focus-visible, .song-player .song-player__seek:focus-visible {
  outline: 2px solid #e6d9fc; outline-offset: 3px;
}
.song-player .song-player__toggle svg { display: block; width: 1.15rem; height: 1.15rem; fill: currentColor; }
.song-player .song-player__title { font-size: 1rem; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.song-player .song-player__wave { position: relative; flex: 1; min-width: 2rem; height: 2.75rem; }
.song-player .song-player__bars { position: absolute; width: 100%; height: 1.56rem; top: .595rem; pointer-events: none; }
.song-player .song-player__seek {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.song-player .song-player__seek::-webkit-slider-runnable-track { height: 100%; background: transparent; border: 0; }
.song-player .song-player__seek::-moz-range-track { height: 100%; background: transparent; border: 0; }
.song-player .song-player__seek::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 3px; height: 100%; border: 0; background: transparent;
}
.song-player .song-player__seek::-moz-range-thumb { width: 3px; height: 100%; border: 0; background: transparent; }
.song-player .song-player__seek:focus-visible::-webkit-slider-thumb { background: #e6d9fc; }
.song-player .song-player__seek:focus-visible::-moz-range-thumb { background: #e6d9fc; }
.song-player .song-player__time {
  flex: none;
  color: #c2bacd;
  font: normal .76rem/1.3 ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.song-player .song-player__current { color: #e5dfeb; }
.song-player .song-player__fallback { display: grid; gap: .3rem; }
.song-player audio { display: block; width: 100%; color-scheme: dark; }
.song-player .song-player__error { margin: .5rem 0; font-size: .9rem; }
.song-player .song-player__error a { color: var(--player-accent); }
@container (max-width: 275px) {
  .song-player .song-player__controls { flex-wrap: wrap; column-gap: .55rem; row-gap: 0; }
  .song-player .song-player__wave { order: 4; flex-basis: 100%; }
  .song-player .song-player__time { margin-left: auto; }
}
@media (forced-colors: active) {
  .song-player .song-player__bars { display: none; }
  .song-player .song-player__seek { appearance: auto; }
  .song-player .song-player__toggle { border: 1px solid ButtonText; }
}

.mini-player {
  position: fixed;
  z-index: 20;
  right: max(1rem,env(safe-area-inset-right,0px));
  bottom: calc(.65rem + env(safe-area-inset-bottom,0px));
  max-width: calc(100% - 2rem - env(safe-area-inset-right,0px) - env(safe-area-inset-left,0px));
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .2rem .25rem .2rem 1rem;
  border: 1px solid #73627f;
  border-radius: 2rem;
  background: #17141c;
  box-shadow: 0 .4rem 1.4rem #0008;
  color: #f1eaf8;
}
.mini-player[hidden] { display: none }
.mini-player__title {
  display: block; min-width: 0; min-height: 44px; max-width: 24rem;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: .99rem; font-weight: 600; line-height: 44px;
  color: inherit; text-decoration-color: #9680ab; text-underline-offset: .2em;
}
.mini-player__toggle {
  min-height: 44px; flex: none; padding: 0 1rem;
  border: 1px solid transparent; border-radius: 1.6rem;
  background: #e6d8f6; color: #282031; font: inherit; font-size: .9rem; font-weight: 650;
  cursor: pointer;
}
.mini-player__toggle:hover { background: white }
.mini-player :focus-visible { outline: 2px solid #e6d9fc; outline-offset: 2px }
.has-mini-player { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom,0px)) }
@media print {
  .mini-player { display: none }
  .has-mini-player { padding-bottom: 0 }
}
