.audio-player {
  display: flex;
  align-items: stretch;
  width: 100%;

  mtg-spinner {
    width: $size-xs;
    height: $size-xs;

    div {
      width: $size-xs;
      height: $size-xs;
      border: 2px solid;
      border-color: $color-white transparent transparent transparent;
    }
  }

  .info-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: $spacing-xs;

    .info {
      flex-direction: row;
      display: flex;

      .name {
        flex-grow: 1;
        overflow: hidden;
        height: 24px;
        max-width: 200px;
        margin-right: $spacing-xxs;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .duration-time {
        flex-grow: 0;
      }
    }

    .duration {
      display: flex;
      align-items: center;
      flex-grow: 1;
      cursor: pointer;

      .line {
        position: relative;
        width: 100%;
        height: 4px;
        background: $color-controlbase;

        .progress {
          position: absolute;
          left: 0;
          top: 0;
          height: 100%;
          background: $color-primary;
        }
      }
    }
  }
}
