#player-container {
  position: absolute;
  bottom: 0%;
  right: 0;
  width: 430px;
  height: 100px;
  margin: -4px auto;
}

@media (max-width: 768px) {
  #player-container {
    width: 100vw;
  }
}

#player-bg-artwork {
  position: fixed;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  background-image: url("https://raw.githubusercontent.com/himalayasingh/music-player-1/master/img/_1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  filter: blur(40px);
  -webkit-filter: blur(40px);
  z-index: 1;
}

#player-bg-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  opacity: 0.5;
  z-index: 2;
}

#player {
  position: relative;
  height: 100%;
  z-index: 3;
}

#player-track {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  padding: 13px 22px 10px 184px;
  background: linear-gradient(200deg, #2e225d, #9bd8ff, #6e7fd3, #3a2e7b);
  border-radius: 15px 15px 0 0;
  transition: 0.3s ease top;
  z-index: 1;
}

#player-track.active {
  top: -92px;
}

#track-name {
  color: #54576f;
  font-size: 16px;
  font-weight: bold;
}

#album-name {
  color: #dadcee;
  font-size: 13px;
  margin: 2px 0 13px 0;
}

#track-time {
  height: 12px;
  margin-bottom: 3px;
  overflow: hidden;
}

#current-time {
  float: left;
}

#track-length {
  float: right;
}

#current-time,
#track-length {
  color: transparent;
  font-size: 11px;
  background-color: #ffe8ee;
  border-radius: 10px;
  transition: 0.3s ease all;
}

#track-time.active #current-time,
#track-time.active #track-length {
  color: #fff;
  background-color: transparent;
}

#seek-bar-container,
#seek-bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
}

#seek-bar-container {
  background: linear-gradient(160deg, #0f1021, #2e225d, #44398a, #6b4fa1);
  cursor: pointer;
}

#seek-time {
  position: absolute;
  top: -29px;
  color: #fff;
  font-size: 12px;
  white-space: pre;
  padding: 5px 6px;
  border-radius: 4px;
  display: none;
}

#s-hover {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  opacity: 0.2;
  z-index: 2;
}

#seek-time,
#s-hover {
  background-color: #3b3d50;
}

#seek-bar {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(160deg, #c1b5f8, #9bd8ff, #f5e6fe, #ffddff);

  transition: 0.2s ease width;
  z-index: 1;
}

#player-content {
  position: relative;
  height: 100%;
  background: linear-gradient(220deg, #2e225d, #0c1e5d, #145da0, #0b7285);
  box-shadow: 0 30px 80px #656565;
  border-radius: 15px;
  z-index: 2;
}

#album-art {
  position: absolute;
  top: -40px;
  width: 115px;
  height: 115px;
  margin-left: 40px;
  transform: rotateZ(0);
  transition: 0.3s ease all;
  box-shadow: 
    0 0 10px 4px rgba(255, 255, 255, 0.9),   /* Cahaya putih utama */
    0 0 20px 8px rgba(173, 216, 230, 0.7),   /* Biru muda nebula */
    0 0 35px 15px rgba(147, 112, 219, 0.6),  /* Ungu bercahaya */
    0 0 50px 25px rgba(255, 182, 193, 0.5);  /* Pink soft glow */
  border-radius: 50%;
  overflow: hidden;
}

#album-art.active {
  top: -60px;
  box-shadow: 
    0 0 15px 5px rgba(255, 255, 255, 0.8),   /* Cahaya putih utama */
    0 0 30px 10px rgba(173, 216, 230, 0.6),  /* Biru muda nebula */
    0 0 45px 20px rgba(147, 112, 219, 0.5),  /* Ungu bercahaya */
    0 0 60px 30px rgba(255, 182, 193, 0.4);  /* Pink soft glow */
  
  animation: galaxyPulse 3s infinite alternate ease-in-out;
}

@keyframes galaxyPulse {
  0%, 100% {
    box-shadow: 
      0 0 15px 5px rgba(255, 255, 255, 0.8),
      0 0 30px 10px rgba(173, 216, 230, 0.6),
      0 0 45px 20px rgba(147, 112, 219, 0.5),
      0 0 60px 30px rgba(255, 182, 193, 0.4);
  }
  50% {
    box-shadow: 
      0 0 20px 8px rgba(255, 255, 255, 1),
      0 0 35px 15px rgba(173, 216, 230, 0.8),
      0 0 55px 25px rgba(147, 112, 219, 0.6),
      0 0 75px 40px rgba(255, 182, 193, 0.5);
  }
}

#album-art:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px auto 0 auto;
  background-color: #d6dee7;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
  z-index: 2;
}

#album-art img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
}

#album-art img.active {
  opacity: 1;
  z-index: 1;
}

#album-art.active img.active {
  z-index: 1;
  animation: rotateAlbumArt 3s linear 0s infinite forwards;
}

@keyframes rotateAlbumArt {
  0% {
    transform: rotateZ(0);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

#buffer-box {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 13px;
  color: #1f1f1f;
  font-size: 13px;
  font-family: Helvetica;
  text-align: center;
  font-weight: bold;
  line-height: 1;
  padding: 6px;
  margin: -12px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.19);
  opacity: 0;
  z-index: 2;
}

#album-art img,
#buffer-box {
  transition: 0.1s linear all;
}

#album-art.buffering img {
  opacity: 0.25;
}

#album-art.buffering img.active {
  opacity: 0.8;
  filter: blur(2px);
  -webkit-filter: blur(2px);
}

#album-art.buffering #buffer-box {
  opacity: 1;
}

#player-controls {
  width: 250px;
  height: 100%;
  margin: 0 5px 0 141px;
  float: right;
  overflow: hidden;
}

.control {
  width: 33.333%;
  float: left;
  padding: 12px 0;
}

.button-music {
  padding: 25px;
  background: radial-gradient(circle at center, #9185f540, #2e225d30, #0f102120);
  border-radius: 6px;
  cursor: pointer;
}

.button-music i {
  display: block;
  color: #d6dee7;
  font-size: 26px;
  text-align: center;
  line-height: 1;
}

.button-music,
.button-music i {
  transition: 0.2s ease all;
}

.button-music:hover {
  background-color: #d6d6de;
}

.button-music:hover i {
  color: #fff;
}