.hy-audio-player {
  width: 100%;
  height: 256px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--hy-border));
  border-radius: 12px;
  overflow: hidden;
  .audio-play-box {
    width: 100%;
    height: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(var(--hy-background-3));
    box-shadow: rgba(var(--hy-dialog-box-shadow));
    border: 1px solid rgba(var(--hy-dialog-border));
    border-radius: rgba(var(--hy-dialog-border-radius))
      rgba(var(--hy-dialog-border-radius)) 0px 0px;

    .point_area {
      text-align: center;
      position: relative;
      width: 160px;
      height: 160px;
      transition: opacity 0.5s ease-out;
      .point {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 60%;
        height: 60%;
        margin: auto;
        -webkit-border-radius: 50%;
        -webkit-background-clip: padding-box;
        -moz-border-radius: 50%;
        -moz-background-clip: padding;
      }
      .point_dot {
        width: 96px;
        height: 96px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: rgba(var(--hy-main));
        background-color: rgba(var(--hy-background-2));
        z-index: 1;
        .hy-icon {
          width: 58px;
          height: 58px;
        }
      }
      .point_10 {
        width: 100%;
        height: 100%;
      }
      .point_10:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 50%;
        border: 4px solid rgba(var(--hy-theme));
        opacity: 0;
        -webkit-animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
        animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
      }
      .point_40 {
        width: 100%;
        height: 100%;
      }
      .point_40:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 50%;
        border: 4px solid rgba(var(--hy-theme));
        opacity: 0;
        -webkit-animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
        animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
      }
      .point_80 {
        width: 100%;
        height: 100%;
      }
      .point_80:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 50%;
        border: 4px solid rgba(var(--hy-theme));
        opacity: 0;
        -webkit-animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
        animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
      }
    }
  }

  .operator-box {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    position: relative;
    padding: 0 12px 0;
    color: rgba(var(--hy-main));
    background: #040814;

    .progress-operator {
      display: flex;

      input[type='range'] {
        width: 100%;
        height: 4px;
        outline: none;
        border-radius: 20px;
        -webkit-appearance: none; /*清除系统默认样式*/
        background-color: #eaf5f9;
      }

      input[type='range']::-webkit-slider-thumb {
        -webkit-appearance: none; /*清除系统默认样式*/
        width: 6px;
        height: 6px;
        border-radius: 20px;
        background: rgba(var(--hy-main));
        box-shadow: 0px 0px 6px 3px rgba(var(--hy-theme));
        cursor: pointer;
      }

      input[type='range']::-ms-fill-lower {
        -webkit-appearance: none;
      }

      &.progress-analyse {
        width: 100%;
        height: 6px;
        position: absolute;
        left: 0px;
        top: 13px;
        padding: 0 12px;
      }
      &:not(.progress-analyse) {
        width: 0;
        flex: 1;
        flex-direction: column;
        row-gap: 6px;

        input[type='range'] {
          height: 6px;
        }

        input[type='range']::-webkit-slider-thumb {
          width: 14px;
          height: 14px;
        }
      }
    }

    .duration-operator {
      display: flex;
      align-items: center;
      column-gap: 4px;
      font-size: 12px;
      color: rgba(var(--hy-auxiliary));
      white-space: nowrap;
    }

    .play-operator {
      display: flex;
      align-items: center;
      column-gap: 10px;
      & > div {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .hy-icon {
        width: 26px;
        height: 26px;
      }
      &.play-analyse {
        position: absolute;
        top: calc(50% + 8px);
        left: 50%;
        transform: translate(-50%, -50%);
        .hy-icon {
          &.last-icon,
          &.next-icon {
            width: 22px;
            height: 22px;
          }
        }
      }
    }

    .tools-operator {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      column-gap: 10px;
      .speed-box {
        min-width: 60px;
        height: 24px;
        font-size: 12px;
        color: rgba(var(--hy-auxiliary));
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
        padding: 0 6px;
        border: 1px solid rgba(var(--hy-border));
        border-radius: 4px;
        background-color: rgba(var(--hy-background-2));
      }
      .hy-icon {
        width: 26px;
        height: 26px;
        cursor: pointer;
      }
      &.tools-analyse {
        .speed-box {
          height: 20px;
        }
        .hy-icon {
          width: 20px;
          height: 20px;
        }
      }
    }

    &.operator-analyse {
      padding-top: 20px;
    }
  }

  &.audio-player-pack-up {
    height: 56px;
  }
}
.hy-audio-player-popover-volume-slider {
  min-width: auto !important;
  width: 40px !important;
  padding: 16px 0;
}

.hy-audio-player-popover-speed {
  min-width: auto !important;
  width: 62px !important;
  padding: 0px !important;
  .speed-list {
    width: 100%;
    color: rgba(var(--hy-auxiliary));
    font-size: 12px;
    li {
      transition: 0.5s;
      height: 26px;
      line-height: 26px;
      text-align: center;
      &:after {
        transition: 0s;
      }
      &:hover,
      &.selectBox {
        color: rgba(var(--hy-theme));
        background: rgba(var(--hy-background-3));
      }
    }
  }
}

@-webkit-keyframes hy-audio-player-ripple {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.1);
  }
  5% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: scale(1);
  }
}
@keyframes hy-audio-player-ripple {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.1);
    transform: scale(0.1);
  }
  5% {
    opacity: 1;
  }
  to {
    opacity: 0;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
