@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #fdf0f6, #fdeff2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  padding: 20px;
  color: #444;
  text-align: center;
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #aa6f8a;
}

.music-container {
  background-color: #ffffff;
  border-radius: 25px;
  box-shadow: 0 15px 25px rgba(255, 179, 200, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  margin-top: 20px;
  width: 100%;
  max-width: 420px;
  transition: box-shadow 0.3s ease;
}

.music-container:hover {
  box-shadow: 0 18px 30px rgba(255, 179, 200, 0.4);
}

.img-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}

.img-container img {
  border-radius: 50%;
  object-fit: cover;
  height: 100px;
  width: 100px;
  animation: rotate 5s linear infinite;
  animation-play-state: paused;
  border: 3px solid #e67fa4; /* darker pink border */
  box-shadow: 0 6px 12px rgba(255, 179, 200, 0.4);
}

.music-container.play .img-container img {
  animation-play-state: running;
}

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

.music-info {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background-color: #fff7f9;
  margin-top: 5px;
}

.music-info h4 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #874d68;
}

/* 🎚️ Custom Range Slider (progress bar) */
.progress-bar {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #e287b2 var(--progress, 0%), #f9d6e4 0%);
  border-radius: 50px;
  outline: none;
  margin-bottom: 6px;
  cursor: pointer;
}

/* Remove default track */
.progress-bar::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

/* Dot thumb */
.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e287b2;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  margin-top: -3px;
  transition: background 0.2s;
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e287b2;
  cursor: pointer;
  border: none;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  padding: 0 4px;
}

.navigation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
}

.action-btn {
  background: #fff;
  border: none;
  color: #d8a3b5;
  font-size: 22px;
  margin: 0 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(255, 179, 200, 0.3);
  transition: background 0.3s ease, transform 0.2s;
}

.action-btn:hover {
  background: #fce3eb;
  transform: scale(1.1);
}

.action-btn-big {
  font-size: 28px;
  color: #c97398;
}

/* 📱 Mobile Responsive */
@media (max-width: 600px) {
  .music-container {
    padding: 20px;
  }

  .img-container {
    width: 90px;
    height: 90px;
  }

  .img-container img {
    width: 90px;
    height: 90px;
  }

  .action-btn {
    font-size: 20px;
    margin: 0 10px;
    width: 55px;
    height: 55px;
  }

  .action-btn-big {
    font-size: 26px;
  }

  .progress-bar {
    height: 6px;
  }

  .time-display {
    font-size: 11px;
  }
}
