:root {
  --icon-play: url('/.newsite/player/assets/play.png');
  --icon-pause: url('/.newsite/player/assets/pause.png');
  --icon-next: url('/.newsite/player/assets/next.png');
  --icon-prev: url('/.newsite/player/assets/prev.png');
  --icon-shuffle: url('/.newsite/player/assets/shuffle.png');
  --icon-vol-mute: url('/.newsite/player/assets/vol-mute.png');
  --icon-vol-low: url('/.newsite/player/assets/vol-low.png');
  --icon-vol-med: url('/.newsite/player/assets/vol-med.png');
  --icon-vol-high: url('/.newsite/player/assets/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;

}

/* (PART B) WRAPPER & LAYOUT */
#player {
  width: 289px;
  background-color: var(--primary);
  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, #ff3e3e 0%, #ff3e3e var(--range-progress, 0%), var(--background-color-2) var(--range-progress, 0%), var(--background-color-2) 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: #ff3e3e !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: #ff5e5e !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, #ff3e3e 0%, #ff3e3e var(--range-progress, 0%), #dddddd var(--range-progress, 0%), #dddddd 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: #ff3e3e !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;}
#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: 107px;
  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 125px;
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  }
#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;}
#playList div.current { font-weight: 700; color: #ff4b85; }

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

#playSearch { width: 100%;padding: 3px;font-size: 10px;border: 1px solid #ccc;border-radius: 3px;font-family: arial, sans-serif;box-sizing: border-box; background-color: white; }
#search-container {     
  width: 279px;
  padding: 5px 5px;
  background-color: white; 
  }

/* 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 */