/* player.css */
#button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 10px;
  width: 97%;
  flex-wrap: nowrap;
}

.chat-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.spacer {
  flex: 1;
}

#button-container > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

#mic-button, #mute-button, #audio-toggle-button {
  background: transparent;
  border: 0.5px solid white;
  color: white;
  padding: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  transition: background 0.3s ease, color 0.3s ease;
  min-width: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mic-button i, #mute-button i, #audio-toggle-button i {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900; /* fa-solid */
  color: white;
}

#mic-button.recording i {
  color: red;
}

#mic-button:hover, #mute-button:hover, #audio-toggle-button:hover {
  background: #007bff;
  color: white;
}

#mic-button.recording {
  background: transparent;
  border-color: white;
  color: red;
}

#volume-control {
  width: 70px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 0.5px solid white;
  border-radius: 3px;
  vertical-align: middle;
}

#volume-control::-webkit-slider-runnable-track {
  background: transparent;
  border: 0.5px solid white;
  height: 6px;
  border-radius: 3px;
}

#volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  margin-top: -4px;
}

#volume-control::-moz-range-track {
  background: transparent;
  border: 0.5px solid white;
  height: 6px;
  border-radius: 3px;
}

#volume-control::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
}

/* Mobile: Maintain two-column layout */
@media only screen and (max-width: 768px) {
  #button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .chat-controls {
    justify-content: flex-start;
    gap: 8px;
  }

  .spacer {
    flex: 1;
  }

  #button-container > div:last-child {
    gap: 6px;
  }

  #mic-button, #mute-button, #audio-toggle-button {
    padding: 4px;
    font-size: 11px;
    min-width: 28px;
  }

  #mic-button:active, #mute-button:active, #audio-toggle-button:active {
    background: #007bff;
    color: white;
  }

  #volume-control {
    width: 60px;
  }
}