@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);
}

body{
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #FF0099;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #493240, #FF0099);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #493240, #FF0099); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.wrapper{
  background-color: var(--white);
  width: 380px;
  box-shadow: 0 6px 15px var(--lightblack);
  border-radius: 15px;
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
}

.wrapper i{
  cursor: pointer;
}

.top-bar, .progress-area .time,.controls, .music-list .header, .music-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar i{
  font-size: 30px;
  color: var(--lightblack);
}

.top-bar span{
  font-size: 19px;
  color: var(--lightblack);
}

.img-area{
  height: 256px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 6px 15px var(--lightblack);
}

.img-area img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-details{
  margin: 40px 0;
  text-align: center;
  color: var(--lightblack);
}

.song-details .name{
  font-size: 21px;
}

.song-details .artists{
  font-size: 18px;
  opacity: 0.9;
}

.progress-area{
  height: 6px;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 50px;
}

.progress-area .progress-bar{
  border-radius: inherit;
  width: 0;
  height: inherit;
  position: relative;
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
}

.progress-bar::before{
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: inherit;
  right: -5px;
  background: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-area:hover .progress-bar::before{
  opacity: 1;
}

.progress-area .time{
  margin-top: 2px;
}

.time span{
  font-size: 13px;
  color: var(--lightblack);
}

.controls{
  margin: 40px 0 5px 0;
}

.controls i {
  user-select: none;
  font-size: 28px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.controls i:nth-child(2),
.controls i:nth-child(4){
  font-size: 43px;
}

.controls #prev{
  margin-right: -13px;
}

.controls #next{
  margin-right: -13px;
}

.controls .play-pause{
  width: 54px;
  height: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(var(--white) 0%, var(--darkwhite) 100%);
  box-shadow: 0px 0px 5px var(--pink);
}

.play-pause::before{
  content: "";
  position: absolute;
  width: 43px;
  height: 43px;
  border-radius: inherit;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
}

.play-pause i{
  height: 43px;
  width: 43px;
  background: inherit;
  line-height: 43px;
  text-align: center;
  background-clip: text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
}

.music-list{
  position: absolute;
  background-color: var(--white);
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  border-radius: 15px;
  box-shadow:  0px -5px 10px rgba(0,0,0,0.1);
  width: 100%;
  padding: 15px 30px;
  transform: all 0.5s ease-out;
}

/* we'wll use this to show class in javascript */
.music-list.show{
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}

.music-list .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: 270px;
  overflow-y: auto;
}

.music-list ul::-webkit-scrollbar{
  width: 0px;
}

.music-list ul li{
  color: var(--lightblack);
  list-style: none;
  cursor: pointer;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.music-list ul li:last-child{
  border-bottom: 0px;
}

.music-list ul li .row span{
  font-size: 17px;
}

ul li .row p{
  opacity: 0.9;
}

ul li .audio-duration{
  font-size: 16px;
}

ul li.playing{
  color: var(--violet);
  pointer-events: none;
}


