:root {
  --icon-play: url('/static/image/body/player/play.png');
  --icon-pause: url('/static/image/body/player/pause.png');
  --icon-next: url('/static/image/body/player/next.png');
  --icon-prev: url('/static/image/body/player/prev.png');
  --icon-shuffle: url('/static/image/body/player/shuffle.png');
  --icon-vol-mute: url('/static/image/body/player/vol-mute.png');
  --icon-vol-low: url('/static/image/body/player/vol-low.png');
  --icon-vol-med: url('/static/image/body/player/vol-med.png');
  --icon-vol-high: url('/static/image/body/player/vol-high.png');
}

/*body {*/
/*  background: none;*/
/*  background-color: transparent;*/
/*  overflow:hidden;*/
/*  line-height: normal;*/
/*}*/

.new {
    height: 8px;
    position: absolute;
    margin-left: 2px;
    margin-top: 2px;
  }

.playlist {
  overflow:auto;
  }


/* AUDIO PLAYER */



/* (PART A) WHOLE PAGE */

#player, #playTimeD, #playButtons { 
  display: flex; 
  cursor: default;
  color: var(--artist-player-timefontcolor);
}

/* (PART B) WRAPPER & LAYOUT */
#player {
  width: 289px;
  background-color: var(--block-color);
  margin-bottom: 1px;
}

/* (PART C) CURRENT SONG IMAGE */
#playImg {
  /*width: 53px; */
  /*height: 53px; */
  /*aspect-ratio: 1/1;*/
  /*object-fit: cover; */
  /*padding: 4px; */
  position: absolute;
}

#playLink {
  padding: 9px;
  height: 61px;
  width: 61px;
  margin: 0px;
  cursor: pointer;
}

/* (PART D) CURRENT SONG NAME & CONTROLS */
/* (D1) WRAPPER & SHARED */
#playControls { 
  width: 201px;
  padding: 13px 9px 9px 0px;
  }

/* CHROME, SAFARI, EDGE, BRAVE TRACK AND THUMB */

#player input[type="range"] {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--artist-player-progressbarcolor
) 0%, var(--artist-player-progressbarcolor
) var(--range-progress, 0%), var(--artist-player-progressbarcolorplaceholder) var(--range-progress, 0%), var(--artist-player-progressbarcolorplaceholder) 100%);
  /* box-shadow: 0 0 0 1px #afafaf; */
  --range-progress: 0%;
}

#player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 15px;
  width: 15px;
  background-color: var(--artist-player-progressbarcolor
) !important;   /* FORCE THIS COLOR INSTEAD OF DEFAULT ACCENT-COLOR */
  border-radius: 50%;
  cursor: pointer;
  /*box-shadow: 0 0 0 1px #afafaf; */
}

#player input[type="range"]::-webkit-slider-thumb:hover {
  background-color: color-mix(in srgb, var(--artist-player-progressbarcolor
) 80%, white) !important;   /* FORCE THIS COLOR INSTEAD OF DEFAULT ACCENT-COLOR */
}

/* FIREFOX TRACK AND THUMB */

#player input[type="range"]::-moz-range-track {
  height: 6px; /* Matches the input height */
  border-radius: 5px;
  border: none;
  background: linear-gradient(to right, var(--artist-player-progressbarcolor
) 0%, var(--artist-player-progressbarcolor
) var(--range-progress, 0%), var(--artist-player-progressbarcolorplaceholder) var(--range-progress, 0%), var(--artist-player-progressbarcolorplaceholder) 100%);
}

/* Firefox fix: ensures the background of the input itself is transparent */
#player input[type="range"] {
  background-color: transparent; 
}

#player input[type="range"]::-moz-range-thumb {
  height: 15px;
  width: 15px;
  background-color: var(--artist-player-progressbarcolor
) !important; /* FORCE THIS COLOR INSTEAD OF DEFAULT ACCENT-COLOR */
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* (D2) SONG NAME */
#playName {
  font-size: 0px; margin-bottom: 0px; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: arial, sans-serif;
  font-weight: 700;
  display: none;
}

/* (D3) SONG TIME */
#playTimeN, #playTimeT { width: 50%; font-size: 10px; font-family: arial, sans-serif; margin-top: 6px;}
#playTimeR { width: 100%; }
#playTimeT { text-align: right; }

/* (D5) CONTROL BUTTONS */


.player-btn { /* Base class for all player buttons */
  /*width: 16px;*/
  /*height: 11px;*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  cursor: pointer;
}

#playTog { background-image: var(--icon-play); width:11px; height: 11px; }
#playTog.playing { background-image: var(--icon-pause); width:11px; height: 12px; }
#playNext { background-image: var(--icon-next); width:8px; height: 11px; }
#playLast { background-image: var(--icon-prev); width:8px; height: 11px; }
#playShuffle { background-image: var(--icon-shuffle); width:20px; height: 11px; }

#playButtons { cursor: pointer; margin-top: 10px; align-items: center; display: flex; }
#playButtons img { display: block; object-fit: contain; height: 11px; width: 16px; padding: 2px; }
#playLast, #playTog, #playNext, #playVolI { cursor: pointer; }
#playLast, #playTog, #playNext { flex-grow: 1; }
#playVolI { margin-right: 3px; }
#playShuffle { margin-right: 3px; }
#playVolR { flex-shrink: 1; max-width: 75px; --range-progress: 100%;}

/* (PART E) PLAY LIST */
#playList {
  width: 271px;
  height: 108px;
  font-family: arial, sans-serif;
  font-size: 10px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 9px;
  scrollbar-gutter: stable;
  margin-bottom: 1px;
  background-size: 278px 126px;
  background-image: linear-gradient(var(--block-color), var(--block-color));
  background-repeat: no-repeat;
  }

  @supports (-moz-appearance: none) {
    #playList {
      background-size: 280px 126px;
      }
    }
    
#playList div { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  overflow: hidden; 
  white-space: nowrap; 
  text-overflow: ellipsis; 
  padding: 3px; 
  cursor: pointer; 
  border-radius: 4px;
  color: var(--artist-player-titlefontcolor)
}

#playList div.current { font-weight: 700; color: var(--artist-player-highlight); }

.song-duration { margin-left: 10px; }

#playSearch { 
  width: 100%;
  padding: 3px;
  font-size: 10px;
  border: 1px solid var(--artist-player-searchborder);
  border-radius: 3px;
  font-family: arial, sans-serif;
  box-sizing: border-box; 
  background-color: var(--artist-player-searchbackground); 
  outline: none;
}

#playSearch::placeholder {
  color: var(--artist-player-searchfontcolor);
}
#playSearch:focus {
  outline: none;
  color: var(--artist-player-searchfontcoloractive);
}

#playSearch:active {
  outline: none;
  color: var(--artist-player-searchfontcoloractive);
}

#search-container {     
  width: 279px;
  padding: 5px 5px;
  background-color: var(--block-color); 
  }

/* FORCE NO TRANSITIONS ON THE SLIDER OR THUMB */
#player input[type="range"],
#player input[type="range"]::-webkit-slider-thumb,
#player input[type="range"]::-moz-range-thumb {
  transition: none !important;
  transition-duration: 0s !important;
  -webkit-transition: none !important;
  /* Some mobile browsers apply a brief 'tap' highlight/transition */
  -webkit-tap-highlight-color: transparent; 
}


#playlist::before,
#playlist::after {
  content: "";
  position: absolute;
  left: 0;
  width: 40px;          /* Control how long the "border" is */
  height: 5px;          /* Control thickness */
  background: black;    /* Border color */
  z-index: 100;
}

#playlist::before { top: 0; }    /* Stick to top */
#playlist::after { bottom: 0; }  /* Stick to bottom */