@import "src/renderer/assets/scss/var.scss";
.player-bar {
  height: $play-bar-height;
  border-top: 1px solid $grey-light;
  background-color: $grey-main;
  padding: 0 26px;
  z-index: 9999;
  .content {
    margin: 0 auto;
    position: relative;
  }
  .play-btn {
    float: left;
    overflow: hidden;
    position: relative;
    z-index: 10;
    a {
      font-size: 0;
      display: inline-block;
      @include case(34px);
      border-radius: 50%;
      background-color: $red-light;
      transform: scale(0.88);
      &.prev {
        background: url('./assets/prev.svg') $red-light center center no-repeat;
        background-size: 14px;
      }
      &.next {
        background: url('./assets/next.svg') $red-light center center no-repeat;
        background-size: 14px;
      }
      &.play-status {
        margin: 0 20px;
        transform: scale(1);
      }
      &.play {
        background: url('./assets/pause.svg') $red-light center center no-repeat;
        background-size: 22px;
      }
      &.pause {
        background: url('./assets/play.svg') $red-light center center no-repeat;
        background-position-x: 10px;
        background-size: 16px;
      }
      &:active {
        background-color: #a02e27 !important;
      }
    }
  }
  .play-wrap {
    // float: left;
    margin: 20px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 180px;
    padding-right: 400px;
  }
  .play-time {
    float: left;
    margin: 20px 0;
    line-height: 24px;
    width: 80px;
    font-size: $font-size-base;
    color: $font-light;
  }
  .play-volume {
    float: left;
    margin: 20px 15px;
    width: 125px;
    padding-left: 25px;
    position: relative;
    .voice {
      position: absolute;
      top: 0;
      left: 0;
      height: 24px;
      line-height: 24px;
      .icon {
        display: inline-block;
        width: 18px;
        height: 18px;
        position: absolute;
        top: 50%;
        left: 0;
        background: url('./assets/voice-open.svg') no-repeat;
        background-size: 100%;
        transform: translate(0, -50%);
        opacity: 0.6;
      }
      &.open .icon {
        background: url('./assets/voice-open.svg') no-repeat;
        background-size: 100%;
      }
      &.close .icon {
        background: url('./assets/voice-close.svg') no-repeat;
        background-size: 100%;
      }
      &:active {
        .icon {
          opacity: 1;
        }
      }
    }
  }

  .play-innter {
    float: right;
    position: relative;
    z-index: 10;
  }

  .play-moer {
    float: left;
    overflow: hidden;
    margin: 17px 0;
    width: 125px;
    a {
      display: inline-block;
      font-size: 0;
      width: 30px;
      height: 30px;
      float: left;
      opacity: 0.6;
      margin: 2px 6px;
      position: relative;
    }
    a.for {
      background: url('./assets/for.svg') no-repeat;
      background-size: 100%;
      @include case(19px);
      margin: 5px 6px;
    }
    a.lyric {
      background: url('./assets/lyric.svg') no-repeat;
      background-size: 100%;
      @include case(24px);
    }
    a.list {
      background: url('./assets/list.svg') no-repeat;
      background-size: 100%;
      @include case(26px);
    }
    a:active {
      opacity: 1;
    }
    .badge {
      // position: absolute;
      // right: 0;
      // top: 0;
      font-size: 10px;
      display: inline-block;
      text-align: center;
      color: $white;
      padding: 0 5px;
      @include line-height(15px);
      border-radius: 100px;
      background-color: rgba(0,0,0,.3);
      margin: 4px 0 5px 23px;
    }
  }
}
