@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

:root {
  --primary: #2378e8;
  --secondary: #6b8cff;
  --dark-accent: #3a4d6b;
  --white: #fff;
  --light-accent: #e0e5ec;
  --primary-shadow: #b3c8ff;
  --lightshadow: rgba(0, 0, 0, 0.15);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

*::before, *::after {
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #6dd5ed;  
  background: -webkit-linear-gradient(to right, #2193b0, #6dd5ed);  
  background: linear-gradient(to right, #2193b0, #6dd5ed); 
}

body::-webkit-scrollbar {
  width: 0px;
}

.wrapper {
  width: 340px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  padding: 20px 25px;
  background: var(--white);
  box-shadow: 0px 6px 15px var(--lightshadow);
  margin: 20px auto;
}

.wrapper i {
  cursor: pointer;
}

.top-bar, .progress-area .timer,
.controls, .music-list .header, .music-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar i {
  font-size: 30px;
  color: var(--dark-accent);
}

.top-bar span {
  font-size: 18px;
  color: var(--dark-accent);
}

.img-area {
  height: 220px;
  width: 100%;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0px 6px 12px var(--lightshadow);
}

.img-area img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.song-details {
  text-align: center;
  margin: 10px 0;
  margin: 30px 0;
  color: var(--dark-accent);
}

.song-details .name {
  font-size: 19px;
}

.song-details .artist {
  opacity: 0.9;
  font-size: 16px;
}

.progress-area {
  height: 6px;
  width: 100%;
  background: #f0f0f0;
  border-radius: 50px;
  cursor: pointer;
}

.progress-area .progress-bar {
  height: inherit;
  width: 0%;
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.progress-bar::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  background: #000;
  border-radius: inherit;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  background: inherit;
  opacity: 0;
  transition: opacity 0.2s easE;
}

.progress-area:hover .progress-bar::before {
opacity: 1;
}

.progress-area .timer {
  margin-top: 2px;
}

.timer span {
  font-size: 13px;
  color: var(--dark-accent);
}

.controls {
  margin: 40px 0 5px 0;
}

.controls i {
  font-size: 28px;
  user-select: none;
  background: linear-gradient(var(--primary) 0%, var(--secondary) 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-left: -13px;
}

.controls .play-pause {
  height: 54px;
  width: 54px;
  background: linear-gradient(var(--white) 0%, var(--light-accent) 100%);
  box-shadow: 0 0 5px var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause::before {
  content: "";
  position: absolute;
  height: 43px;
  width: 43px;
  border-radius: inherit;
  background: linear-gradient(var(--primary) 0%, var(--secondary) 100%);
}

.play-pause i {
  height: 43px;
  width: 43px;
  line-height: 43px;
  text-align: center;
  border-radius: inherit;
  background-clip: text;
  background: inherit;
  position: relative;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.music-list {
  position: absolute;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  padding: 15px 30px;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.14s ease-out;
}

/* show class is 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(--dark-accent);
}

.header .row i {
  cursor: default;
}

.header .row span {
  margin-left: 5px;
}

.header #close {
  font-size: 22px;
  color: var(--dark-accent);
}

.header #close:hover {
  color: #ff0d0d;
}

.music-list ul {
  margin: 10px 0;
  max-height: 260px;
  overflow-y: auto;
}

.music-list ul::-webkit-scrollbar {
  width: 0px;
}

.music-list ul li {
  cursor: pointer;
  list-style: none;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--dark-accent);
  border-bottom: 1px solid #e5e5e5;
}

.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(--secondary);
  pointer-events: none;
}