/*
			PLAYER
		*/

.audioplayer {
  /* height: 0.5rem; */
  /* 40 */
  color: #333;
  position: relative;
  z-index: 1;
}


/* mini mode (fallback) */

.audioplayer-mini {
  width: 2.5em;
  /* 40 */
  margin: 0 auto;
}


/* player elements: play/pause and volume buttons, played/duration timers, progress bar of loaded/played */

.audioplayer>div {
  position: absolute;
}


/* play/pause button */

.audioplayer-playpause {
  width: 2.5em;
  /* 40 */
  height: 100%;
  text-align: left;
  text-indent: -9999px;
  cursor: pointer;
  z-index: 2;
  top: 0;
  left: 0;
  display: none;
}


.audioplayer-mini .audioplayer-playpause {
  width: 100%;
}

.audioplayer-playpause a {
  display: block;
}

.audioplayer-stopped .audioplayer-playpause a {
  width: 0;
  height: 0;
  border: 0.5em solid transparent;
  /* 8 */
  border-right: none;
  border-left-color: #fff;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.5em 0 0 -0.25em;
  /* 8 4 */
}

.audioplayer-playing .audioplayer-playpause a {
  width: 0.75em;
  /* 12 */
  height: 0.75em;
  /* 12 */
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.375em 0 0 -0.375em;
  /* 6 */
}

.audioplayer-playing .audioplayer-playpause a:before,
.audioplayer-playing .audioplayer-playpause a:after {
  width: 40%;
  height: 100%;
  background-color: #fff;
  content: '';
  position: absolute;
  top: 0;
}

.audioplayer-playing .audioplayer-playpause a:before {
  left: 0;
}

.audioplayer-playing .audioplayer-playpause a:after {
  right: 0;
}


/* timers */

.audioplayer-time {
  height: 100%;
  text-align: center;
  z-index: 2;
  bottom: -0.1rem;
  color: #CACACA;
  font-size: .24rem;
}

.audioplayer-time-current {
  left: 0;
}

.audioplayer-time-duration {
  right: 0;
}

.audioplayer-novolume .audioplayer-time-duration {
  border-right: 0;
  right: 0;
}


/* progress bar of loaded/played */

.audioplayer-bar {
  height: 2px;
  background-color: #F1F1F1;
  cursor: pointer;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  /* margin-top: 6px; */
  border-radius: 6px;
}

.audioplayer-novolume .audioplayer-bar {
  right: 4.375em;
  /* 70 */
}

.audioplayer-bar div {
  width: 0;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.audioplayer-bar-loaded {
  background-color: #ddd;
  border-radius: 6px;
  z-index: 1;
}

.audioplayer-bar-played {
  position: relative;
  background: #007fd1;
  z-index: 2;
}
.audioplayer-bar-played::after {
  content: '';
  position: absolute;
  width: 0.22rem;
  height: 0.22rem;
  right: -0.22rem;
  top: -0.14rem;
  border-radius: 0.22rem;
  background: #E04834;
  border: 3px solid #FFFFFF;
  box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.2);
  cursor: pointer;
}
.audioplayer-bar-played::before {
  content: '';
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  right: -0.45rem;
  top: -0.4rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

/* volume button */

.audioplayer-volume {
  width: 2.5em;
  /* 40 */
  height: 100%;
  border-left: 1px solid #111;
  border-left-color: rgba(0, 0, 0, .25);
  text-align: left;
  text-indent: -9999px;
  cursor: pointer;
  z-index: 2;
  top: 0;
  right: 0;
  display: none;
}

.audioplayer-volume:hover,
.audioplayer-volume:focus {
  background-color: #222;
}

.audioplayer-volume-button {
  width: 100%;
  height: 100%;
}

.audioplayer-volume-button a {
  width: 0.313em;
  /* 5 */
  height: 0.375em;
  /* 6 */
  background-color: #fff;
  display: block;
  position: relative;
  z-index: 1;
  top: 40%;
  left: 35%;
}

.audioplayer-volume-button a:before,
.audioplayer-volume-button a:after {
  content: '';
  position: absolute;
}

.audioplayer-volume-button a:before {
  width: 0;
  height: 0;
  border: 0.5em solid transparent;
  /* 8 */
  border-left: none;
  border-right-color: #fff;
  z-index: 2;
  top: 50%;
  right: -0.25em;
  margin-top: -0.5em;
  /* 8 */
}

.audioplayer:not(.audioplayer-muted) .audioplayer-volume-button a:after {
  /* "volume" icon by Nicolas Gallagher, http://nicolasgallagher.com/pure-css-gui-icons */
  width: 0.313em;
  /* 5 */
  height: 0.313em;
  /* 5 */
  border: 0.25em double #fff;
  /* 4 */
  border-width: 0.25em 0.25em 0 0;
  /* 4 */
  left: 0.563em;
  /* 9 */
  top: -0.063em;
  /* 1 */
  -webkit-border-radius: 0 0.938em 0 0;
  /* 15 */
  -moz-border-radius: 0 0.938em 0 0;
  /* 15 */
  border-radius: 0 0.938em 0 0;
  /* 15 */
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* volume dropdown */

.audioplayer-volume-adjust {
  height: 6.25em;
  /* 100 */
  cursor: default;
  position: absolute;
  left: 0;
  right: -1px;
  top: -9999px;
  background: #333;
}

.audioplayer-volume:not(:hover) .audioplayer-volume-adjust {
  opacity: 0;
}

.audioplayer-volume:hover .audioplayer-volume-adjust {
  top: auto;
  bottom: 100%;
}

.audioplayer-volume-adjust>div {
  width: 40%;
  height: 80%;
  background-color: #222;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin: 30% auto 0;
}

.audioplayer-volume-adjust div div {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: #007fd1;
}

.audioplayer-novolume .audioplayer-volume {
  display: none;
}

.audioplayer-volume-adjust {
  -webkit-box-shadow: -2px -2px 2px rgba(0, 0, 0, .15), 2px -2px 2px rgba(0, 0, 0, .15);
  -moz-box-shadow: -2px -2px 2px rgba(0, 0, 0, .15), 2px -2px 2px rgba(0, 0, 0, .15);
  box-shadow: -2px -2px 2px rgba(0, 0, 0, .15), 2px -2px 2px rgba(0, 0, 0, .15);
}

.audioplayer-playpause,
.audioplayer-volume a {
  -webkit-filter: drop-shadow(1px 1px 0 #000);
  -moz-filter: drop-shadow(1px 1px 0 #000);
  -ms-filter: drop-shadow(1px 1px 0 #000);
  -o-filter: drop-shadow(1px 1px 0 #000);
  filter: drop-shadow(1px 1px 0 #000);
}


.audioplayer-bar-played {
  border-radius: 4px;
  background: -webkit-gradient(90deg, #FF7701, #F3055F);
  background: -webkit-linear-gradient(90deg, #FF7701, #F3055F);
  background: -moz-linear-gradient(90deg, #FF7701, #F3055F);
  background: -ms-radial-gradient(90deg, #FF7701, #F3055F);
  background: -o-linear-gradient(90deg, #FF7701, #F3055F);
  background: linear-gradient(90deg, #FF7701, #F3055F);
}
