@mixin textoverflow() {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

@keyframes rowup {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
  }

  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
    transform-origin: center center;
  }
}

.imt-audio {
  background: #f7f7f7;
  width: 100%;
  padding: 20px 20px 20px 10px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  color: #666666;
  border-radius: 8rpx;

  .audio-top {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;

    .audio-left {
      width: 140rpx;
      position: relative;

      .cover {
        width: 120rpx;
        height: 120rpx;
        /* box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); */
        position: absolute;
        top: calc(50%);
        left: calc(50%);
        transform: translate(-50%, -50%);
        animation-fill-mode: forwards;
        -webkit-animation-fill-mode: forwards;
      }
    }

    .audio-right {
      padding-left: 20rpx;
      box-sizing: border-box;
    }
  }

  .audio-right {
    padding-left: 20rpx;
    width: calc(100% - 140rpx);
  }

  .audio-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;

    .titlebox {
      display: flex;
      margin-bottom: 10rpx;

      .title {
        font-size: 30rpx;
        max-width: 60%;
        @include textoverflow;
        color: #333;
      }

      .singer {
        margin-left: 20rpx;
        font-size: 28rpx;
        max-width: 50%;
        @include textoverflow;
      }
    }
  }

  .slidebox {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 20rpx;
    color: #787878;
    margin-top: 6rpx;
  }

  /deep/ .uni-slider-tap-area {
    padding: 0;
  }

  /deep/ .uni-slider-wrapper {
    min-height: 0;
  }

  /deep/ .uni-slider-handle-wrapper {
    height: 6px;
  }

  .audio-slider {
    width: 100%;
    margin: 0;
  }

  .play {
    width: 80rpx;
    height: 80rpx;
    z-index: 99;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    &.loading {
      width: 60rpx;
      height: 60rpx;
      animation: rotating_theme3 2s linear infinite;
    }
  }
}

@keyframes rotating {
  0% {
    transform: rotateZ(0deg)
  }

  100% {
    transform: rotateZ(360deg)
  }
}

@keyframes rotating_theme3 {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg)
  }

  100% {
    transform: translate(-50%, -50%) rotateZ(360deg)
  }
}

.hItem {
  margin-left: 16rpx;
}

.extrButton {
  font-size: 36rpx;
}

.play-btns {
  display: flex;
  padding: 10px 50px 0 50px;
  justify-content: space-between;
  align-items: center;

  .play-speed {
    text-align: center;
  }
}