/* styles.css */

#version-badge {
  position: fixed;
  top: 16px;
  right: 18px;
  background: #222b;
  color: #fff;
  font-size: 1rem;
  font-family: monospace;
  padding: 4px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(33,147,176,0.10);
  z-index: 9999;
  opacity: 0.93;
  pointer-events: none;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #2980b9;
} /* fixed blue color */

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}


main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 60vh;
  width: 100vw;
  max-width: 100vw;
  padding: 0;
}


#music-list {
  list-style: none;
  margin: 0 auto;
  padding: 2.5rem 1rem 3.7rem 1rem; /* extra bottom padding for footer */
  max-width: 400px;
  width: 100%;
  max-height: calc(100vh - 160px);
  min-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2193b0 #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
}


#music-list::-webkit-scrollbar {
  width: 8px;
  background: #e0e0e0;
  border-radius: 8px;
}
#music-list::-webkit-scrollbar-thumb {
  background: #2193b0;
  border-radius: 8px;
}

#music-list li {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-btn {
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  padding: 0.7rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(33,147,176,0.09);
  cursor: pointer;
  transition: transform 0.17s, box-shadow 0.17s, background 0.25s;
  outline: none;
  width: 100%;
  max-width: 170px;
  min-width: 170px;
  min-height: 48px;
  max-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

@media (max-width: 600px) {
  .play-btn {
    max-width: 100vw;
    min-width: 120px;
    font-size: 1rem;
    min-height: 42px;
    max-height: 42px;
  }
}

.play-btn:hover, .play-btn:focus {
  background: #117864;
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 4px 16px 0 rgba(33,147,176,0.13);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #222f3e;
  box-shadow: 0 -2px 16px 0 rgba(33,147,176,0.11);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 0;
  z-index: 99;
}

#fade-out-btn {
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  margin: 0 0.5rem 0 0;
  display: inline-block;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(33,147,176,0.10);
  transition: background 0.3s, color 0.3s, border 0.3s, transform 0.2s;
  max-width: 160px;
  height: 38px;
  min-height: 38px;
}
#fade-out-btn:hover, #fade-out-btn:focus {
  background: #117864;
  color: #fff;
  transform: scale(1.03);
}

#stop-btn {
  background: #b91616;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1.2rem;
  font-size: 1.1rem;
  margin: 0;
  display: inline-block;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(185,22,22,0.10);
  transition: background 0.3s, color 0.3s, border 0.3s, transform 0.2s;
  max-width: 160px;
  height: 38px;
  min-height: 38px;
}
#stop-btn:hover, #stop-btn:focus {
  background: #7c1010;
  color: #fff;
  transform: scale(1.03);
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 0;
  z-index: 99;
}

#fade-out-btn:hover, #fade-out-btn:focus {
  background: #117864;
  color: #fff;
  transform: scale(1.03);
}

audio#audioPlayer {
  display: block;
  margin: 0 auto 2rem auto;
  width: 100%;
  max-width: 450px;
  outline: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(33,147,176,0.08);
}

@media (max-width: 600px) {
  .music-list-container {
    max-width: 98vw;
    padding: 1rem 0.2rem;
  }
  audio#audioPlayer {
    max-width: 98vw;
  }
  header {
    font-size: 1.5rem;
    padding: 1.2rem 0 0.7rem 0;
  }
}

/* Remove redundant button rules - buttons are already styled above */

@media (max-width: 600px) {
  button {
    width: 100%;
    margin: 10px 0;
  }
}

  