@import '@/sass/style.scss';

.AudioPlayer {
  background-color: $very-soft-green;
  border-radius: 6px;
  border: 2px solid $mostly-black-green;
  padding: 24px 24px 24px 40px;
  position: relative;

  .progress-bar {
    background-color: $grayish-yellow;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    position: relative;
    width: 100%;

    .progress {
      background-color: $dark-grayish-green;
      height: 8px;
      left: 0;
      position: absolute;
      top: 0;
    }
  }

  .play-pause {
    display: block;
    left: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;

    svg {
      @include svg-block-by-width;
      fill: $mostly-black;
    }
  }

  .time {
    bottom: 4px;
    color: $black;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    position: absolute;
    right: 24px;
    width: fit-content;
  }
}
