/* public/dj-controllers.css — panel "Controlador DJ (MIDI)" */
.dj-ctl { margin: 14px 0; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 0 12px; background: rgba(255,255,255,.03); }
.dj-ctl > summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.dj-ctl-body { display: grid; gap: 10px; padding-bottom: 12px; min-width: 0; }
.dj-ctl-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; min-width: 0; }
.dj-ctl-row label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.dj-ctl-chk { cursor: pointer; }
.dj-ctl-status.is-bad { color: #ff8a7a; }
.dj-ctl-devs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dj-ctl-devs li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dj-ctl-dot { width: 10px; height: 10px; border-radius: 50%; background: #5a5a5a; transition: background .1s, box-shadow .1s; flex: none; }
.dj-ctl-devs li.is-live .dj-ctl-dot { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.dj-ctl-last { margin: 0; font-size: 12px; opacity: .7; min-height: 1.2em; overflow-wrap: anywhere; }
.dj-ctl-group { border-top: 1px solid rgba(255,255,255,.08); }
.dj-ctl-group > summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; }
.dj-ctl-act { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.dj-ctl-act .dj-ctl-name, .dj-ctl-act .dj-ctl-map { overflow-wrap: anywhere; }
.dj-ctl-act .dj-ctl-map { opacity: .65; }
.dj-ctl-act.is-set .dj-ctl-map { opacity: 1; color: #6fe3a0; }
.dj-ctl-act.is-learning { background: rgba(255, 190, 60, .14); border-radius: 8px; }
.dj-ctl-act button { font-size: 12px; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: inherit; cursor: pointer; }
.dj-ctl-act.is-learning .dj-ctl-assign { background: #ffb53c; color: #20140a; border-color: #ffb53c; animation: djctlPulse 1s ease-in-out infinite; }
.dj-ctl-inv.is-on { background: #7a5cf5; border-color: #7a5cf5; }
.dj-ctl-sens { width: 140px; max-width: 100%; }
.dj-ctl-sinksel { max-width: 100%; min-width: 0; }
@keyframes djctlPulse { 50% { opacity: .55; } }
@media (max-width: 520px) { .dj-ctl-act { grid-template-columns: minmax(0, 1fr) auto auto; } .dj-ctl-act .dj-ctl-map { grid-column: 1 / -1; order: 5; } }
@media (prefers-reduced-motion: reduce) { .dj-ctl-act.is-learning .dj-ctl-assign { animation: none; } }
