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

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


#background {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}

#background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 0;
}
.container {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 80px auto 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: center;
}


.music-player img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.music-player h2 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: #fff;
}

.music-player p {
  color: #ddd;
  margin-bottom: 20px;
}

#seekBar {
  width: 100%;
  margin: 10px 0;
  height: 5px;
  border-radius: 5px;
  background: #8f6f2a;
  appearance: none;
  transition: background 0.3s;
}

#seekBar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0b0b;
  cursor: pointer;
}
.time-info {
  display: flex;
  justify-content: center;  /* Center the time values */
  align-items: center;
  font-size: 0.85em;
  color: #ccc;
  margin-bottom: 15px;
  gap: 220px; /* Space between currentTime and duration */
}

.time-info span {
  min-width: 70px;
  text-align: center;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 30px;
}
.controls button {
  font-size: 1.4em;
  border: none;
  background-color: rgba(255, 255, 255, 0.08); /* soft white tint */
  color: #eeeeee;
  padding: 12px;
  border-radius: 50%;          /* 👈 makes it circular */
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.controls button:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
  color: #ffffff;
}


.controls button:hover {
  background-color: rgba(255, 255, 255, 0.18); /* brighter on hover */
  transform: scale(1.1);
  color: #ffffff;
}

#playPause {
  background-color: rgba(255, 215, 0, 0.1); /* soft golden glow */
  color: #ffeb3b;
}

#playPause:hover {
  background-color: rgba(255, 215, 0, 0.2);
  color: #fff176;
}
