html {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
input,
textarea,
select,
button {
  outline: none;
}
input {
  line-height: normal;
}
label,
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  padding: 20px;
}

.playing {
  animation: spinner 4s infinite linear;
}

.music {
  background-color: white;
  max-width: 500px;
  padding: 45px 20px 30px;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.music-next-song {
  position: relative;
  bottom: 30px;
  float: right;
  font-size: 15px;
}
.music-next-song span:first-child {
  opacity: 0.5;
}
.music-next-song span:last-child {
  font-weight: 500;
}
.music-thumb {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
}
.music-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100rem;
  box-shadow: 0 0 0 3px #f62682, 0 0 0 6px white, 0 0 0 9px #6a5af9;
}
.music-name {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}
.music-artist {
  opacity: 0.6;
  text-align: center;
  margin-bottom: 20px;
}
.timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 40px;
}

.controls .icon {
  cursor: pointer;
  font-size: 20px;
}
.play {
  position: relative;
}
.play:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right bottom,
    #ff2483,
    #6a5af9 65%,
    #2cccff 90%
  );
  transform: scale(1.5);
  border-radius: 100rem;
}
.player-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 100rem;
  background-color: white;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  position: relative;
  z-index: 2;
}

.range {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  margin-bottom: 20px;
}
.range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #eeee;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border-radius: 100rem;
  background: #20e3b2;
  box-shadow: 0 0 0 3px white, 0 0 0 6px rgba(100, 100, 111, 0.05);
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
