$playerBackgroundColor: #000 !default;
$playerTextColor: #fff !default;
$playerHeight: 50px !default;
$playerButtonFontSize: 18px !default;
$playerButtonPlayFontSize: 24px !default;
$playerButtonColor: #fff !default;
$playerButtonColorDisabled: #61565d !default;
$playerButtonOpacity: 0.65 !default;
$playerButtonBorderRadius: 20px !default;
$playerButtonBorder: 0 none !default;
$playerButtonBackground: #004477 !default;
$playerButtonBackgroundDisabled: #41393e !default;
$playerButtonPadding: 0 0.2em !default;
$playerButtonOpacityHover: 1 !default;
$playerButtonWidth: 54px !default;
$playerButtonHeight: 48px !default;
$playerButtonMargin: 0 5px !default;
$playerCoverWidth: 50px !default;
$playerCoverMargin: 0 5px 0 0 !default;
$playerTrackInfoColor: #fff !default;
$playerTrackInfoFontSize: 13px !default;
$playerTrackInfoTrackFontWeight: normal !default;
$playerTrackInfoWidth: 210px !default;

player {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  bottom: 0;
  width: 100%;
  height: $playerHeight;
  background-color: $playerBackgroundColor;
  color: $playerTextColor;
  font-size: 18px;
  z-index: 1000;
  -webkit-box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.30);
  -moz-box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.30);
  box-shadow: 0px -2px 5px 0px rgba(0,0,0,0.30);
  
  .track-info {
    display: flex;
    align-items: center;
    // width: $navbarWidth;
    .cover {
      width: $playerCoverWidth;
      margin: $playerCoverMargin;
    }
    .content {
      display: flex;
      flex-direction: column;
      a {
        color: $playerTrackInfoColor;
        font-size: $playerTrackInfoFontSize;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: $playerTrackInfoWidth;

        &.track{
          font-weight: $playerTrackInfoTrackFontWeight;
        }
      }
    }
  }

  .player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    .btn {
      font-size: $playerButtonFontSize;
      color: $playerButtonColor;
      opacity: $playerButtonOpacity;
      border: $playerButtonBorder;
      text-decoration: none;
      border-radius: $playerButtonBorderRadius;
      background: $playerButtonBackground;
      padding: $playerButtonPadding;
      width: $playerButtonWidth;
      height: $playerButtonHeight;
      margin: $playerButtonMargin;

      &:disabled{
        background: $playerButtonBackgroundDisabled;
        color: $playerButtonColorDisabled;
      }

      &.active {
        color: #1965A7;
      }
      &:focus {
        outline: none;
      }
      &:hover {
        text-decoration: none;
        opacity: $playerButtonOpacityHover;
      }
      &.play, &.pause, .icon-ico-playlist {
        font-size: $playerButtonPlayFontSize;
      }
      &.repeat {
        position: relative;
        .badge {
          position: absolute;
          background: #1965A7;
          font-size: 9px;
          right: 0;
          top: 0;
        }
      }
    }
    seek-bar {
      margin: 0 5px 0 5px;
      flex: 0.8;
    }
    volume-bar {
      width: 170px;
    }
  }
}