/**
 * @file
 * CSS to the audioplayer element displayed inside the body fields.
 *
 * RemixDesign | woaichidapi@163.com | Redesigned by JimmyCheung
 */

.audioplayer {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  margin: 1em 0;
  padding: 0 24px;
  width: 100%;
  height: 96px;
  align-items: center;
  border: 1px solid #DDE2E6;
  border-radius: 4px;
  background: #F9F9F9;
}

.audioplayer-playpause {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s ease-in-out;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
  background: #005A92;
  border: 1px solid #005A92;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
  background: #005A92;
  border: 1px solid #fff;
}

.audioplayer-playing .audioplayer-playpause {
  background: #005A92;
  border: 1px solid #005A92;
}

.audioplayer-playing .audioplayer-playpause:hover {
  background: #005A92;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-right: none;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  content: '';
  justify-content: center;
}

.audioplayer-playing .audioplayer-playpause a {
  width: 12px;
  height: 14px;
  content: '';
  display: flex;
  justify-content: space-between;
}

.audioplayer-playing .audioplayer-playpause a::before,
.audioplayer-playing .audioplayer-playpause a::after {
  width: 4px;
  height: 14px;
  content: '';
  background-color: #fff;
}

.audioplayer-time {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(51, 51 ,51, .6);
}

.audioplayer-time-current {
  margin-left: 0.625rem;
}

.audioplayer-time-duration {
  margin-right: 0.625rem;
}

.audioplayer-bar {
  position: relative;
  display: flex;
  margin: 0 12px;
  height: 12px;
  flex-basis: 0;
  flex-grow: 1;
  cursor: pointer;
}

.audioplayer-bar::before {
  content: '';
  position: absolute;
  top: 5px;
  width: 100%;
  height: 2px;
  background-color: #DDE2E6;
}

.audioplayer-bar > div {
  position: absolute;
  left: 0;
  top: 5px;
}

.audioplayer-bar-loaded {
  z-index: 1;
  height: 2px;
  background: #6A6A6A;
}

/*.audioplayer-bar-loaded {
  width: 100%!important;
  z-index: 1;
  height: 2px;
  background: #6A6A6A;
}
*/
.audioplayer-bar-played {
  flex-direction: row-reverse;
  z-index: 2;
  height: 2px;
  background: -webkit-linear-gradient(left, #000, #6a6a6a);
}

.audioplayer-bar-played::after {
  position: absolute;
  top: -5px;
  right: -1px;
  margin-right: -5px;
  width: 12px;
  height: 12px;
  display: flex;
  content: '';
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 6px;
}

.audioplayer-playing .audioplayer-bar-played::after {
  background-color: #6a6a6a;
}

.audioplayer-volume {
  display: flex;
  align-items: center;
  display: none;
}

.audioplayer-volume-button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.audioplayer-volume-button a {
  display: flex;
  width: 6px;
  height: 8px;
  background-color: #9A9FB0;
  position: relative;
}

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

.audioplayer-volume-button a:before {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 9px solid #9A9FB0;
  border-bottom: 8px solid transparent;
  border-left: none;
  top: -4px;
}

.audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after {
  left: 10px;
  top: -2px;
  width: 6px;
  height: 6px;
  border: 6px double #9A9FB0;
  border-width: 6px 6px 0 0;
  border-radius: 0 12px 0 0;
  transform: rotate(45deg);
}

.audioplayer-mute .audioplayer-volume-button a {
  background-color: #FD4F1A;
}

.audioplayer-mute .audioplayer-volume-button a:before {
  border-right: 9px solid #FD4F1A;
}

.audioplayer-volume-adjust {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.audioplayer-volume-adjust > div {
  position: relative;
  display: flex;
  width: 60px;
  height: 2px;
  cursor: pointer;
  background-color: #BEC8D2;
}

.audioplayer-volume-adjust div div {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #0059FF;
}

.audioplayer-pge {
  width: 17.938rem;
  display: flex;
  margin: 0 6px;
  color: #979797;
  justify-content: space-between;
}

/*.audioplayer-pge {
  width:100%;
  justify-content: space-between;
  display: flex;
  margin: 0 6px;
  color: #979797;
  justify-content: space-between;
}
*/

.audioplayer-bar-pge {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audiopub-player {
  display: flex;
}

.audioplayer-player-display-pge {
  width: 100%;
}

.audiopub-player div.container-playpause {
  margin-right: 6px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  position: relative;
}

.audiopub-player div.player-display-pge {
  width: 100%;
  margin: 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  min-height: 60px;
}

@media screen and (max-width: 679px) {
  .audioplayer-volume-adjust {
    display: none;
  }
}
