* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to right, rgba(0, 51, 124,1), rgba(0, 51, 124,0.7));
  font-family: "Libre Baskerville", serif;
  font-family: "Young Serif", serif;
}
.music-player {
  width: 380px;
  height: 580px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 15px -3px 100px rgba(255, 255, 255, 0.1);
  /* box-shadow: 0 40px 100px rgba(255, 255, 255, 0.1); */
  padding: 35px;
  overflow: hidden;
  color: whitesmoke;
}
.music-name,
.artist-name {
  text-align: center;
  text-transform: capitalize;
}
.music-name {
  font-size: 500;
  margin-bottom: 10px;
}
.artist-name {
  font-size: 20px;
}
.disk {
  position: relative;
  display: block;
  margin: 40px auto;
  height: 180px;
  width: 180px;
  border-radius: 50%;
  background-image: url("https://avatars.mds.yandex.net/i?id=7a8e89f9923e0af831b56ed3a2ff1d2e38f45157-10811575-images-thumbs&n=13");
  background-size: cover;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
}
.disk.play{
    animation-play-state: running;
}
.disk::before {
  content: "";
  position: absolute;
  /* way to center absolute position */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #00337c;
}
.song-slider {
  width: 100%;
  position: relative;
}
.bar {
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background-color: #00337c;
  overflow: hidden;
  cursor: pointer;
}
.bar::-webkit-slider-thumb {
  appearance: none;
  width: 1px;
  height: 20px;
  box-shadow: -400px 0 0 400px #d5eebb;
}
.current-time,
.duration {
  font-size: 14px;
}
.duration {
  position: absolute;
  right: 0;
}
.controls {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  margin-top: 20px;
}
.play-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #d5eebb;
  cursor: pointer;
  border: none;
}
.play-btn span {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  width: 10px;
  height: 30px;
  border-radius: 2px;
  background-color: #00337c;
  transition: 0.5s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.play-btn span:nth-child(2) {
  left: 55%;
  transform-origin: center;
}
.play-btn.pause span:nth-child(2) {
  transform: translateY(-50%) scaleY(0);
}
.play-btn.pause span:nth-child(1) {
  width: 35%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 50%, 100% 50%, 0% 100%);
}

.play-btn.pause {
  animation: pulse 2s linear infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.4);
  }
}
.btn {
  width: 40px;
  height: 40px;
  background: #d5eebb;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0 20px;
}
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
