/* Own visual reimplementation of the site's WaveSurfer player theme.
 * Uses the free Font Awesome 6 CDN stylesheet already used by the theme. */

.wavesurfer-block { box-sizing: border-box; margin-bottom: 2em; }
.wavesurfer-player wave { z-index: 0; overflow: hidden !important; }
.wavesurfer-player canvas { max-width: none; }

.wavesurfer-buttons_set {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}
.wavesurfer-buttons_set button { width: 50px; }

.wavesurfer-block button:hover { cursor: pointer; opacity: .7; }

.wavesurfer-block button,
.wavesurfer-time,
.wavesurfer-duration {
  font-family: Arial, sans-serif;
  font-size: 1em;
  margin: 1em;
  padding: .5em 1em;
  border: 0;
  outline: none;
  background-color: #2ecc71;
  color: #fff;
  font-weight: bold;
  transition: .3s ease all;
}
.wavesurfer-time, .wavesurfer-duration { min-width: 5.5em; background-color: #4444f0; }
.wavesurfer-time { margin-left: auto; }

.wavesurfer-download a { color: #fff; text-decoration: none; }

button.wavesurfer-active-button { background-color: #ff4081; }
button.wavesurfer-paused-button { background-color: #ffb642; }

.wavesurfer-buttons_set button::before,
.wavesurfer-buttons_set div::before {
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-style: normal;
  width: 1em;
}
.wavesurfer-time::before, .wavesurfer-duration::before { padding-right: .3em; }
button.wavesurfer-play::before { content: "\f04b"; }
button.wavesurfer-play.wavesurfer-active-button::before { content: "\f04c"; }
button.wavesurfer-paused-button::before { content: "\f04b"; padding-right: 0; }
button.wavesurfer-stop::before { content: "\f04d"; }
div.wavesurfer-time::before { content: "\f041"; }
div.wavesurfer-duration::before { content: "\f017"; }
button.wavesurfer-download::before { content: "\f019"; }
button.wavesurfer-loop::before { content: "\f061"; }
button.wavesurfer-loop.wavesurfer-active-button::before { content: "\f01e"; }
button.wavesurfer-mute::before { content: "\f028"; padding-right: 4.5px; }
button.wavesurfer-mute.wavesurfer-active-button::before { content: "\f026\f00d"; padding-right: 0; }

.wavesurfer-block button span,
.wavesurfer-time span,
.wavesurfer-duration span { padding-left: .3em; display: none; }

@media (max-width: 550px) {
  .wavesurfer-duration, .wavesurfer-time { display: none; }
}

.wavesurfer-block wave:hover { cursor: pointer; }

.wavesurfer-list-group {
  counter-reset: section;
  list-style-type: none;
  padding: 0;
  margin: 0 1em;
}
.wavesurfer-list-group li:hover { cursor: pointer; }
.wavesurfer-active-track { background: rgba(0, 0, 0, .2); }
#waveform { position: relative; }

.wavesurfer-progress { position: relative; display: none; }
.wavesurfer-loading[value] {
  border: 0;
  appearance: none;
  width: 100%;
  height: 20px;
  background-color: #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1) inset;
  position: absolute;
  z-index: 10;
  margin-top: -80px;
}
.wavesurfer-marker:hover { cursor: pointer; text-decoration: underline; }
.wavesurfer-marker-current { background: #ffff66; }

.wavesurfer-list-group .list-group-item { display: flex; align-items: center; }
.wavesurfer-playlist-track-artist { margin: 0 .5em; }
.wavesurfer-playlist-track-title { margin-left: .5em; }
.wavesurfer-playlist-track-duration { margin-left: auto; }
.wavesurfer-playlist-track-thumbnail { margin-right: .5em; }
.wavesurfer-playlist-track-thumbnail img { max-height: 4em; width: auto; }
