body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(to right, #1e3c72, #2a5298);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  text-align: center;
}

input[type="file"] {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: #ffffff;
  color: #333;
  font-size: 1em;
  width: 100%;
  max-width: 300px;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: bold;
  background-color: #ffffff;
  color: #2a5298;
  cursor: pointer;
  transition: background 0.3s;
}

.file-label:hover {
  background-color: #e0e0e0;
}

#playlist table tr.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

#playlist table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

audio {
  width: 100%;
  max-width: 600px; /* Increased the max width */
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #fff;
}

ul#playlist {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 400px;
}

ul#playlist li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 6px;
  transition: background 0.3s;
}

ul#playlist li.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

#clearBtn {
  margin: 10px;
  padding: 10px 20px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

#chooseBtn, #shuffleBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: bold;
  background-color: #ffffff;
  color: #2a5298;
  cursor: pointer;
  transition: background 0.3s;
  line-height: normal;
}

#chooseBtn:hover, #shuffleBtn:hover {
  background-color: #e0e0e0;
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#shuffleBtn {
  margin-left: 10px;
}

@media (hover: hover) {
  ul#playlist li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
  }
}