body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
}

header {
  text-align: center;
  padding: 2rem;
  background-color: #1e1e1e;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin-top: 0.5rem;
  color: #aaa;
}
img#header-logo {
  max-width: 300px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #ffcc00;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: background-color 0.2s, transform 0.1s;
}

.header-btn:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.header-btn:active {
  background-color: #d4a700;
  transform: translateY(0);
}

.track-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
}

.track {
  background-color: #1c1c1c;
  border-radius: 8px;
  margin: 1rem;
  padding: 1rem;
  width: 250px;
  text-align: center;
  transition: transform 0.2s;
}

.track:hover {
  transform: scale(1.03);
}

.track img {
  width: 100%;
  border-radius: 4px;
}

.track-info h3 {
  margin: 0.5rem 0 0;
}

.track-info p.duration {
  margin: 0.25rem 0;
  color: #aaa;
}

.play-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ffcc00;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.playing-indicator {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: green;
  font-weight: bold;
  visibility: hidden;
}

.playing-indicator.active {
  visibility: visible;
}

.audio-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-top: 2px solid #ffcc00;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.audio-player img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  margin-right: 1rem;
}

.player-info {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
}

.player-info h4 {
  margin: 0;
}

.time-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#current-time, #total-time {
  font-size: 0.9rem;
  color: #ffcc00;
  width: 40px;
  text-align: center;
}

#progress-bar {
  width: 100%;
  height: 10px;
  appearance: none;
  background: #333;
  border-radius: 5px;
  --progress: 0%;
  background-image: linear-gradient(to right, #ffcc00 var(--progress), #333 var(--progress));
}

#progress-bar::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 20px;
  background: #ffcc00;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #222;
  position: relative;
  z-index: 2;
}

.player-controls {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#play-pause-btn {
  font-size: 2rem;
  background-color: #ffcc00;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  margin-right: 0.5rem;
}

#play-status {
  margin-right: 1rem;
  font-size: 1rem;
  color: #ffcc00;
}

#volume-label {
  margin-left: 1rem;
  margin-right: 0.5rem;
  font-size: 1rem;
  color: #aaa;
}

#volume-slider {
  width: 150px;
  height: 10px;
  appearance: none;
  background-color: #333;
  border-radius: 5px;
}

#volume-slider::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 20px;
  background: #ffcc00;
  border-radius: 50%;
  cursor: pointer;
}

#visualizer {
  width: 100%;
  height: 60px;
  margin-top: 0.5rem;
  background-color: #000;
}

main {
  padding-bottom: 200px;
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .header-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .header-btn {
    width: 80%;
    text-align: center;
    font-size: 1rem;
  }

  .track-list {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .track {
    width: 90%;
    max-width: 400px;
    margin: 0.5rem 0;
  }

  .audio-player {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-info, .player-controls {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  #progress-bar, #volume-slider {
    width: 90%;
  }

  #player-cover {
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 768px) {
  .header-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    width: 30%;
  }
}