
/* NUJIZ - Unified audio player dark appearance */

/* Preserve native audio functionality and hidden state */
html[data-theme="dark"] body audio[controls] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  border-radius: 14px;
  background: #202635 !important;
  color: #ffffff !important;
  color-scheme: dark !important;
  overflow: hidden;
}

html[data-theme="dark"] body audio[hidden],
body audio[hidden] {
  display: none !important;
}

/* Chromium native control background */
html[data-theme="dark"] body audio::-webkit-media-controls-enclosure,
html[data-theme="dark"] body audio::-webkit-media-controls-panel {
  background-color: #202635 !important;
  border-radius: 14px;
}

/* Time labels */
html[data-theme="dark"] body audio::-webkit-media-controls-current-time-display,
html[data-theme="dark"] body audio::-webkit-media-controls-time-remaining-display {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

/* Play and volume controls */
html[data-theme="dark"] body audio::-webkit-media-controls-play-button,
html[data-theme="dark"] body audio::-webkit-media-controls-mute-button,
html[data-theme="dark"] body audio::-webkit-media-controls-overflow-button {
  filter: invert(1) !important;
  opacity: 1 !important;
}

/* Timeline */
html[data-theme="dark"] body audio::-webkit-media-controls-timeline {
  filter: invert(1) !important;
  opacity: 1 !important;
}

/* Progress text in Vocal Remover */
#nujizVocalProgress .nvp-percent {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

#nujizVocalProgress .nvp-stage {
  color: #f3edff !important;
  -webkit-text-fill-color: #f3edff !important;
  opacity: 1 !important;
}

#nujizVocalProgress .nvp-note {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  opacity: 1 !important;
}

@media (max-width: 600px) {
  html[data-theme="dark"] body audio[controls] {
    width: 100%;
    min-width: 0;
  }
}
