/* Codex-NOTE: Timelines fit their lane; pointer drags change time rather than causing page-wide horizontal scroll. */
.sound-shell { max-width: 1100px; width: 100%; margin: auto; padding: 20px; min-width: 0; box-sizing: border-box; }
.sound-shell * { box-sizing: border-box; }
.sound-picker { display: flex; gap: 12px; align-items: center; }
.sound-picker select { min-width: 0; max-width: 100%; flex: 1; }
.sound-stage { background: #080808; border-radius: 12px; overflow: hidden; }
.sound-stage video { display: block; width: 100%; max-height: 55vh; aspect-ratio: 16 / 9; }
.sound-stage video[hidden] { display: none; }
.sound-transport, .sound-control, .sound-options, .sound-shots { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
#sound-seek { flex: 1 1 160px; min-width: 0; }
#sound-clock { font: 12px monospace; }
.sound-lane { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #4a4235; border-radius: 10px; }
.sound-lane h3 { display: inline-block; margin: 0 16px 12px 0; }
.sound-lane:disabled { opacity: .6; }
.sound-control label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.sound-control input[type=range] { width: 130px; min-width: 0; }
.sound-shell .selected { outline: 2px solid #c7a666; }
.sound-cue { border-top: 1px solid #4a4235; padding: 14px 0; min-width: 0; }
.sound-track { height: 42px; margin: 10px 0; background: #292720; position: relative; border-radius: 5px; overflow: hidden; }
.sound-block { position: absolute; top: 4px; height: 34px; background: #a88951; color: #100e0a; border-radius: 4px; cursor: grab; touch-action: none; user-select: none; overflow: hidden; white-space: nowrap; font: 11px monospace; padding: 8px 2px; }
.sound-shell input[type=text], .sound-shell textarea { display: block; width: 100%; min-width: 0; margin: 6px 0; }
.sound-shell select { max-width: 100%; min-width: 0; }
.sound-shell input[type=text], .sound-shell textarea, .sound-shell select { background: #201e18; color: #f1eadc; border: 1px solid #625641; border-radius: 6px; padding: 9px; font: inherit; }
.sound-shell input[type=range], .sound-shell input[type=checkbox] { accent-color: #c7a666; }
.sound-request-item { border-top: 1px solid #4a4235; padding: 12px 0; overflow-wrap: anywhere; }
#sound-request { margin: 20px 0; padding: 16px; border: 1px solid #c7a666; border-radius: 10px; }
@media (max-width: 600px) {
  .sound-shell { padding: 12px; }
  .sound-shell .panel-heading { display: block; }
  .sound-lane { padding: 10px; }
  .sound-control { align-items: flex-start; }
  .sound-control strong { flex-basis: 100%; overflow-wrap: anywhere; }
  .sound-shell button { min-height: 42px; }
  .sound-transport { gap: 8px; }
  #sound-seek { flex-basis: 100%; order: 1; }
}
