@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
*::before, *::after{
  padding: 0;
  margin: 0;
}
:root{
  --pink: #ff74a4;
  --violet: #9f6ea3;
  --lightblack: #515C6F;
  --white: #ffffff;
  --darkwhite: #cecaca;
  --pinkshadow: #ffcbdd;
  --lightbshadow: rgba(0,0,0,0.15);
  --black: #000000;
  --lightblue: #496E92;
  --darkblackblue: #191C22;
  --golddust2: #E3D2C4;
  --golddust1: #FDFCFB;
  --intellectualgrey: #231F20;
  --lightgrey: #EAEAEA;
  --racoonblack: #434300;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle,var(--lightblue) 0%, var(--darkblackblue) 100%);
}
.show {display: block;}
.wrapper{
  width: 50%;
  margin: 0;
  padding: 25px 30px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  background: linear-gradient(90deg, var(--golddust1) 0%, var(--golddust2) 100%);
  box-shadow: 0px 6px 15px var(--lightbshadow);
}
.wrapper i{
  cursor: pointer;
}
.top-bar, .progress-area .song-timer, 
.controls, .music-list .header, .music-list ul li,
#player{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar i{
  font-size: 30px;
  color: var(--lightblack);
}
.top-bar i:first-child{
  margin-left: -7px;
}
.top-bar span{
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -3px;
  color: var(--lightblack);
}
.img-area{
  width: 100%;
  height: 350px;
  overflow: hidden;
  margin-top: 25px;
  border-radius: 15px;
  box-shadow: 0px 6px 12px var(--lightbshadow);
}
.img-area canvas{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
}
.song-details{
  text-align: center;
  margin: 20px 0;
}
.song-details p{
  color: var(--lightblack);
}
.song-details .name{
  font-size: 21px;
}
.song-details .artist{
  font-size: 18px;
  opacity: 0.9;
  line-height: 35px;
}
.progress-area{
  height: 6px;
  width: 100%;
  border-radius: 50px;
  background: #f0f0f0;
  cursor: pointer;
}
.progress-area .progress-bar{
  height: inherit;
  width: 0%;
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--racoonblack) 0%, var(--black) 100%);
}
.progress-bar::before{
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  top: 50%;
  right: -5px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  background: inherit;
  transition: opacity 0.2s ease;
}
.progress-area:hover .progress-bar::before{
  opacity: 1;
  pointer-events: auto;
}
.progress-area .song-timer{
  margin-top: 2px;
}
.song-timer span{
  font-size: 13px;
  color: var(--lightblack);
}
.controls, #player{
  margin: 10px 0 5px 0;
}
.controls, #player i{
  font-size: 28px;
  user-select: none;
  background: linear-gradient(var(--racoonblack) 0%, var(--black) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.controls, #player i:nth-child(2),
.controls, #player i:nth-child(4){
  font-size: 43px;
}
.controls #prev{
  margin-right: -13px;
}
.controls #next{
  margin-left: -13px;
}
.controls .play-pause{
  height: 54px;
  width: 54px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(var(--white) 0%, var(--darkwhite) 100%);
  box-shadow: 0px 0px 5px var(--lightblack);
}
.play-pause::before{
  position: absolute;
  content: "";
  height: 43px;
  width: 43px;
  border-radius: inherit;
  background: linear-gradient(var(--racoonblack) 0%, var(--black) 100%);
}
.play-pause i{
  height: 43px;
  width: 43px;
  line-height: 43px;
  text-align: center;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
}

.music-list{
  position: absolute;
  background: var(--white);
  width: 100%;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 10px rgba(0,0,0,0.1);
  transition: all 0.15s ease-out;
}
.music-list.show{
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}
.header .row{
  display: flex;
  align-items: center;
  font-size: 19px;
  color: var(--lightblack);
}
.header .row i{
  cursor: default;
}
.header .row span{
  margin-left: 5px;
}
.header #close{
  font-size: 22px;
  color: var(--lightblack);
}
.music-list ul{
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
}
.music-list ul::-webkit-scrollbar{
  width: 0px;
}
.music-list ul li{
  list-style: none;
  display: flex;
  cursor: pointer;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--lightblack);
  border-bottom: 1px solid #E5E5E5;
}
.music-list ul li:last-child{
  border-bottom: 0px;
}
.music-list ul li .row span{
  font-size: 17px;
}
.music-list ul li .row p{
  opacity: 0.9;
}
ul li .audio-duration{
  font-size: 16px;
}
ul li.playing{
  pointer-events: none;
  color: var(--violet);
}

/* #region Volume Control Slider */
/* #player {
	height: 54px;
  width: 54px;
  display: flex;
  position: relative;
	margin: 10px;
  padding: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#player i {
  position: absolute;
  margin-top: -6px;
  border-radius: 50%;
  color: linear-gradient(var(--white) 0%, var(--darkwhite) 100%);
  box-shadow: 0px 0px 5px var(--pink);
}
#player i#volume-down {
  margin-left: 10%;
}
#player i#volume-up {
  margin-right: -400px;
  right: 0;
}
 
#volume .volume-progressbar {
  position: absolute;
  top: 16px;
  left: 220px;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
}*/

/* #endregion */

#player {
  display: flex;
  margin-top: 10px;
  margin-bottom: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#player i {
  border-radius: 50%;
  color: linear-gradient(var(--white) 0%, var(--darkwhite) 100%);
  box-shadow: 0px 0px 5px var(--lightblack);
}
#player p {
  min-width: 10px;
  max-width: 10px;
  display: flex;
  position: relative;
  margin-left: 10px;
}

#volume {
  height: 5px;
	min-width: 300px;
  display: flex;
  position: relative;
	margin: 0;
  padding: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--racoonblack);
	border-radius: 15px;
} 
#volume .volume-slider {
  position: relative;
  top: 1px;
  width: 100%;
  height: 12px;
  border-radius: 15px;
  background: linear-gradient(var(--lightblack) 0%, var(--racoonblack) 100%);
  cursor: pointer;
  -webkit-appearance: none; 
} 

#volume .volume-slider::-webkit-slider-runnable-track {
  width: 75px;
  height: 20px;
  border: none;
}

#volume .volume-slider:hover::-webkit-slider-thumb, :active::-webkit-slider-thumb {
  display: block;
}

#volume .volume-slider:focus {
  outline: none;
}

#volume .volume-slider:active::-webkit-slider-thumb {
  background: var(--intellectualgrey);
}

#volume .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -3px;
  border: none;
  border-radius: 50%;
  background: var(--black);
  color: linear-gradient(var(--lightblack) 0%, var(--racoonblack) 100%);
  display: none;
}

/* Responsive Design */
@media only screen and (max-width:900px) {
  /* For tablets: */
   .wrapper{
    min-width: 450px;
    max-width: 450px;
  }
}
@media only screen and (max-width:500px) {
  /* For mobile phones: */
  .wrapper{
    min-width: 350px;
    max-width: 350px;
  }

  #player {
    min-width: 250px;
    max-width: 250px;
    display: flex;
    margin-top: 10px;
    margin-bottom: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  #volume {
    min-width: 75%;
    max-width: 75%;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
}

