body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to right, #9a1d86, #1595be);
  font-weight: bold;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.player {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  width: 64vh;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  padding: 0.5rem;
  gap: 0.5rem;
  border-radius: 20px;
  background-color: #ddd;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.details {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.track-art {
  margin: 25px;
  height: 250px;
  width: 250px;
  border: 2px solid #FFFAFA;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  -moz-box-shadow: 0px 6px 5px black;
  -webkit-box-shadow: 0px 6px 5px black;
  box-shadow: 0px 6px 5px black;
  -moz-border-radius: 190px;
  -webkit-border-radius: 190px;
  border-radius: 190px;
}

.now-playing {
  font-size: 1rem;
}

.track-name {
  font-size: 2.5rem;
}

.track-artist {
  margin-top: 5px;
  font-size: 1.5rem;
}

.buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 30px;
  justify-content: space-between;
}

.active {
  color: black;
}

.repeat-track,
.download-track,
.playpause-track,
.prev-track,
.next-track {
  padding: 25px;
  opacity: 0.8;
  transition: opacity .2s;
}

.repeat-track:hover,
.download-track:hover,
.playpause-track:hover,
.prev-track:hover,
.next-track:hover {
  opacity: 1.0;
  background-color: #f0f0f0;
}

.slides {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.slider_container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.seek_slider,
.volume_slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 5px;
  background: #1d222c;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.seek_slider::-webkit-slider-thumb,
.volume_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: rgb(190, 214, 4);
  border: 3px solid #3774FF;
  cursor: grab;
  border-radius: 100%;
}

.seek_slider:hover,
.volume_slider:hover {
  opacity: 1.0;
}

.seek_slider {
  width: 60%;
}

.volume_slider {
  width: 30%;
}

.current-time,
.total-duration {
  padding: 10px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 0.4rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: rgb(189, 88, 0);
  border-radius: 2px;
  box-shadow:
    0 0 5px rgba(253, 207, 33, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
}

i.fa-volume-down,
i.fa-volume-up {
  padding: 10px;
}

i,
i.fa-play-circle,
i.fa-pause-circle,
i.fa-step-forward,
i.fa-step-backward,
p {
  cursor: pointer;
}

.randomActive {
  color: #FF3737;
}

.rotate {
  animation: rotation 8s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(359deg);
  }
}

.loader {
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader .stroke {
  background: #f1f1f1;
  height: 150%;
  width: 10px;
  border-radius: 50px;
  margin: 0 5px;
  animation: animate 1.4s linear infinite;
}

@keyframes animate {
  50% {
    height: 20%;
    background: #4286f4;
  }

  100% {
    background: #4286f4;
    height: 100%;
  }
}

.stroke:nth-child(1) {
  animation-delay: 0s;
}

.stroke:nth-child(2) {
  animation-delay: 0.3s;
}

.stroke:nth-child(3) {
  animation-delay: 0.6s;
}

.stroke:nth-child(4) {
  animation-delay: 0.9s;
}

.stroke:nth-child(5) {
  animation-delay: 0.6s;
}

.stroke:nth-child(6) {
  animation-delay: 0.3s;
}

.stroke:nth-child(7) {
  animation-delay: 0s;
}

.playlist-popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.form-popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.buttons-atas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.playlist-content {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  margin: 5% auto;
  padding: 10px;
  width: 400px;
  max-height: 80vh;
  border-radius: 10px;
  overflow: scroll;
}

.playlist-content::-webkit-scrollbar {
  display: none;
}

.container-form {
  background-color: rgba(0, 0, 0, 0.4);
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 400px;
}

.container-form h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.form-control {
  position: relative;
  margin: 20px 0 40px;
  width: 300px;
}

.form-control input {
  background-color: transparent;
  border: 0;
  border-bottom: 2px #fff solid;
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  color: #fff;
}

.form-control input:focus,
.form-control input:valid {
  outline: 0;
  border-bottom-color: lightblue;
}

.text {
  margin-top: 30px;
}

.form-control label {
  color: #fff;
  position: absolute;
  top: 5px;
  left: 0;
  pointer-events: none;
}

.form-control label span {
  display: inline-block;
  font-size: 18px;
  min-width: 5px;
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-control input:focus+label span,
.form-control input:valid+label span {
  color: lightblue;
  transform: translateY(-30px);
}

input[type="file"]::file-selector-button {
  background-color: transparent;
  color: transparent;
  padding: 5px 10px;
  cursor: pointer;
  margin-right: 10px;
  /* Memberi jarak antara tombol dan teks */
}

/* Memastikan teks berada di sebelah kanan */
input[type="file"] {
  display: flex;
  align-items: center;
}

.btn {
  cursor: pointer;
  display: inline-block;
  width: 100%;
  background: lightblue;
  padding: 15px;
  font-family: inherit;
  font-size: 16px;
  border: 0;
  border-radius: 5px;
}

.btn:focus {
  outline: 0;
}

.btn:active {
  transform: scale(0.98);
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.close-form {
  color: #fff;
  float: right;
  cursor: pointer;
  font-size: 20px;
}

#playlistList {
  list-style: none;
  padding: 0;
}

#playlistList li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

#playlistList li:hover {
  background: #3f067ca1;
}

#message {
  padding: 15px;
  background-color: #4CAF50;
  color: white;
  position: fixed;
  top: 60px;
  border-radius: 5px;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.wave-mini {
  display: inline-block;
  width: 15px;
  height: 10px;
  margin-left: 8px;
  background: linear-gradient(90deg,
      #00ffcc 0%,
      #00ffcc 20%,
      transparent 20%,
      transparent 40%,
      #00ffcc 40%,
      #00ffcc 60%,
      transparent 60%,
      transparent 80%,
      #00ffcc 80%);
  background-size: 200% 100%;
  animation: waveMove 1s linear infinite;
}

@keyframes waveMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100% 0;
  }
}

@media only screen and (max-width: 500px) {
  .player {
    width: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wrapper {
    width: 64vh;
    display: flex;
    flex-direction: column;
  }

  .buttons {
    font-size: 13px;
  }

  .buttons-atas {
    font-size: 13px;
  }

  .container-form {
    width: 100%;
  }

  .playlist-popup {
    width: 100%;
  }
}