/* Un control pequeño; los volúmenes quedan dentro del desplegable. */
.audio-controls { position: relative; display: inline-flex; align-items: stretch; margin-left: auto; z-index: 90; border: 1px solid #526082; border-radius: 10px; background: #182237; color: #dce6fc; }
.view-options .audio-controls + #immersive-toggle { margin-left: 0; }
.audio-controls button { font: inherit; cursor: pointer; }
.audio-controls > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font-size: 12px; }
.audio-controls > .audio-settings { border-left: 1px solid #526082; border-radius: 0 9px 9px 0; min-width: 32px; font-size: 19px; padding: 2px 7px; }
.audio-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.audio-controls.audio-on { border-color: #6394a7; background: linear-gradient(115deg, #1d3848, #302b4b); color: #c1f2ea; }
.audio-controls button:hover { background: #34435f; }
.audio-controls :focus-visible { outline: 2px solid #b7c7ff; outline-offset: 3px; }
.audio-popover { position: absolute; top: calc(100% + 8px); right: 0; box-sizing: border-box; width: 310px; max-width: calc(100vw - 28px); max-height: min(510px, 75dvh); overflow-y: auto; padding: 16px; border: 1px solid #697299; border-radius: 15px; background: linear-gradient(135deg, #202e48, #29243f); color: #ebeffc; box-shadow: 0 14px 45px #0009; font-size: 13px; text-align: left; }
.audio-popover[hidden] { display: none !important; }
.audio-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audio-heading strong { font-size: 15px; }
.audio-popover button { border: 1px solid #627293; border-radius: 8px; background: #2a3a56; color: #e9eeff; padding: 6px 10px; font-size: 12px; }
.audio-heading button { min-width: 32px; font-size: 18px; padding: 2px 8px; }
.audio-status { margin: 10px 0 16px; color: #bfcde7; font-size: 12px; line-height: 1.4; }
.audio-popover .audio-switch { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 13px; color: #f0eaff; }
.audio-switch input { width: 17px; height: 17px; accent-color: #b8a4ff; }
.audio-popover .audio-volume { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 11px; color: #b8cae8; }
.audio-volume input { grid-column: 1/-1; width: 100%; min-height: 24px; margin: 0; padding: 0; accent-color: #b8a4ff; }
.audio-track { display: grid; gap: 8px; margin: 8px 0 16px; padding-bottom: 14px; border-bottom: 1px solid #ffffff1f; }
.audio-track span { color: #f1d7ae; font-size: 11px; }
.audio-track button { justify-self: start; }
.audio-test { margin-top: 10px; }
.audio-note { margin: 12px 0 0; font-size: 10px; color: #afbed8; line-height: 1.5; }
.audio-popover button:disabled { opacity: .45; cursor: default; }
.is-immersive .audio-controls { margin-left: 0; flex-shrink: 0; z-index: 100; }
.is-immersive .audio-popover { top: auto; bottom: calc(100% + 10px); max-height: calc(100dvh - 150px); }
.is-immersive .immersive-toolbar { position: relative; z-index: 120; }
@media (max-width: 600px) {
  .view-options .audio-controls { margin-left: 0; }
  .audio-popover { right: auto; left: 0; width: 290px; }
  .is-immersive .audio-popover { left: auto; right: -70px; }
  .is-immersive .audio-controls > .audio-master { padding: 5px 8px; }
  .is-immersive .audio-master span { display: none; }
}

.audio-track .audio-progress { color: #b8cae8; font-variant-numeric: tabular-nums; }
.audio-popover .audio-play-music { background: #534576; border-color: #a99ad2; font-weight: 600; }
