/* The player uses one coordinate system at every viewport size. */
.deck-card .turntable{width:100%;height:auto;aspect-ratio:809/1153;background:none;border:0;overflow:visible;line-height:normal}
.deck-card .turntable:after{display:none}
.cdj-face{position:absolute;inset:0;container-type:inline-size;background:url('assets/cdj-3000x.png') center/100% 100% no-repeat;color:#f0f5f8;user-select:none;-webkit-user-select:none}
.cdj-face :is(button,input){font:inherit;letter-spacing:0;text-transform:none}
.cdj-hit,.cdj-lcd,.cdj-hub,.cdj-pitch{position:absolute;box-sizing:border-box}
.cdj-face .cdj-hit{display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:3px;background:transparent;touch-action:manipulation;--lamp:#ffa853}
.cdj-face .cdj-hit.round{border-radius:50%}
.cdj-hit:hover,.cdj-hit:focus-visible{outline:1px solid #f5b55a;outline-offset:1px;background:#ffb55020}
.cdj-face .cdj-hit[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--lamp),0 0 4px color-mix(in srgb,var(--lamp) 52%,transparent)}
.cdj-face .cdj-hit[aria-label*="Play / pause"]{--lamp:#50e987}
.cdj-face .cdj-hit[aria-label*="Jog wheel"]{touch-action:none;cursor:grab}
.cdj-face .cdj-hit[aria-label*="Jog wheel"]:active{cursor:grabbing}
.cdj-lcd{display:flex;flex-direction:column;gap:3%;padding:1.3% 1.5%;overflow:hidden;background:#0d131b;color:#e6f0f4;line-height:1.15;font:500 clamp(9px,2.1cqi,17px)/1.15 'PT Mono',monospace}
.cdj-lcd-head,.cdj-stats,.cdj-panel-head{display:flex;align-items:center;gap:3%;min-width:0}
.cdj-number{display:grid;place-items:center;min-width:1.7em;min-height:1.6em;background:#245581;color:#fff}
.cdj-track-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1em}
.cdj-lcd button{cursor:pointer;border:0;color:inherit;background:transparent;padding:0}
.cdj-grid{color:#7ecbfd!important;font-size:.82em!important}
.cdj-beats{display:flex;gap:2%;height:3%;min-height:2px}
.cdj-beats i{width:9%;background:#334253}.cdj-beats i.lit{background:#ffa651}
.cdj-lcd .waveform-shell{flex:1 1 30%;min-height:12px;width:100%;height:auto;margin:1% 0;border:0;border-radius:0;box-shadow:none;background:repeating-linear-gradient(90deg,#112232 0,#112232 calc(12.5% - 1px),#345268 12.5%);overflow:hidden}
.cdj-lcd .waveform-visual{width:100%;height:100%}
.cdj-lcd .waveform-base,.night .cdj-lcd .waveform-base{fill:#67bdfa;stroke:#85ceff}
.cdj-lcd .waveform-played,.night .cdj-lcd .waveform-played{fill:#ffb95f;stroke:#ffcf82}
.cdj-lcd .waveform-playhead,.night .cdj-lcd .waveform-playhead{stroke:#ff5458;stroke-width:2;vector-effect:non-scaling-stroke}
.cdj-lcd .waveform-status{fill:#bdcedb;font-size:14px}
.cdj-lcd .waveform-zoom{right:2%;width:1.8em;height:1.8em;min-width:0;min-height:0;background:#132536cc;color:#dfeffa;font-size:.85em}
.cdj-stats{justify-content:space-between;line-height:1.1}
.cdj-stats>*{min-width:0;text-align:left}.cdj-stats small{display:block;color:#9db3c2;font-size:.7em}
.cdj-stats b{font-size:1.2em;font-variant-numeric:tabular-nums}
.cdj-state{min-height:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffbd73;font-size:.8em}
.cdj-hub{isolation:isolate;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#151c27 53%,transparent 55%),conic-gradient(from var(--angle,0deg),#ff755c 0 8deg,#354150 9deg 180deg,#2985c4 181deg 194deg,#202735 195deg);display:flex;flex-flow:column;align-items:center;justify-content:center;line-height:1.1}
.cdj-hub strong{font:600 3.5cqi/1 monospace;color:#e3edf2}.cdj-hub small{font:500 1.25cqi/1.3 monospace;color:#8bb7cb}
.cdj-face .cdj-pitch{appearance:none;writing-mode:vertical-lr;direction:ltr;touch-action:none;margin:0;padding:0;border:2px solid #242424;border-radius:4px;cursor:ns-resize;background:linear-gradient(90deg,#171717 44%,#070707 46%,#030303 54%,#232323 56%,#171717 58%);outline-offset:1px}
.cdj-pitch::-webkit-slider-thumb{appearance:none;width:4.9cqi;height:4.3cqi;border-radius:2px;border:1px solid #101010;background:linear-gradient(#555,#191919 38%,#ddd 47%,#bbb 52%,#222 58%,#090909);box-shadow:0 1px 3px black}
.cdj-pitch::-moz-range-thumb{width:4.9cqi;height:4.3cqi;border:1px solid #101010;background:linear-gradient(#444,#222 38%,#ccc 48%,#222 58%,#111)}
.cdj-panel{position:absolute;inset:0;display:flex;flex-flow:column;gap:4%;padding:3%;background:#0e1720;z-index:9}
.cdj-panel[hidden]{display:none}
.cdj-panel-head{justify-content:space-between;text-transform:uppercase;color:#91cefa}
.cdj-panel-head button{font-size:1.6em}
.cdj-panel input{width:100%;background:#0a1118;color:white;border:1px solid #6e93a8;padding:2%}
.cdj-choices{overflow:auto;overscroll-behavior:contain}
.cdj-choices button{display:block;width:100%;text-align:left;padding:3% 1%;border-bottom:1px solid #35404a}
.cdj-choices button:hover,.cdj-choices button.selected{color:white;background:#1f5276}
.cdj-off .cdj-lcd,.cdj-off .cdj-hub{filter:brightness(.33)}
.cdj-help-photo{display:block;max-width:100%;max-height:350px;margin:12px auto}
.deck-card .deck-bottom-actions{display:flex;justify-content:center;gap:8px}
.deck-card .deck-bottom-actions>.deck-quick-controls{display:none}
.deck-card .deck-bottom-actions>button{width:auto;min-width:100px;font-size:10px;padding-inline:12px}
.deck-card .deck-heading-line{transform:none!important}
@media(min-width:1221px){.rig{max-width:1680px;margin-inline:auto;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);column-gap:10px}.deck-card,.mixer-card{min-width:0}}
@media(max-width:760px){.deck-card .turntable{max-width:520px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.cdj-face *{scroll-behavior:auto}}

.cdj-face .cdj-pitch{opacity:0;z-index:2}
.cdj-rail,.cdj-cap{position:absolute;pointer-events:none}
.cdj-rail{border:1px solid #252525;border-radius:4px;background:linear-gradient(90deg,#202020 43%,#141414 45%,#030303 49% 53%,#343434 55%,#202020 58%)}
.cdj-cap{border-radius:2px;border:1px solid #111;background:linear-gradient(#666,#212121 38%,#d1d1d1 47%,#bdbdbd 53%,#151515 60%,#363636);box-shadow:0 2px 3px #000}
.cdj-face:has(.cdj-pitch:focus-visible) .cdj-rail{outline:1px solid #ffa94c}
.cdj-overview{position:relative;height:9%;min-height:5px;background:#162533}
.cdj-overview canvas,.cdj-overview input{position:absolute;inset:0;width:100%;height:100%;margin:0}
.cdj-overview i{position:absolute;inset-block:0;width:2px;pointer-events:none;background:#ff655f}
.cdj-overview input{appearance:none;opacity:0;cursor:crosshair}
.cdj-overview:focus-within{outline:1px solid #ffba78}
.deck-card .deck-bottom-actions{flex-wrap:wrap}
.deck-card .deck-bottom-actions>.noise-toggle{display:none}
.deck-card .deck-bottom-actions>button{flex:0 1 auto;width:auto;min-width:0;text-transform:uppercase}
.cdj-large{border:1px solid var(--line);width:min(680px,96vw);max-height:94dvh;overflow:auto;padding:12px;background:var(--paper);color:var(--ink)}
.cdj-large::backdrop{background:#05090cbd}
.cdj-large-close{display:block;position:sticky;top:0;z-index:5;margin:0 0 8px auto;background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:7px 12px}
.cdj-large-face{position:relative;width:100%;aspect-ratio:809/1153}

.cdj-detail{position:absolute;z-index:4;inset:0;width:100%;height:100%;pointer-events:none}
.cdj-detail[hidden]{display:none}
.cdj-lcd .waveform-shell:has(.cdj-detail:not([hidden])){background:#0c121b}
.cdj-lcd .waveform-shell:not([data-state=ready]) .cdj-detail{display:none}

.cdj-lcd .deck-phase{flex:0 0 .55em;min-height:3px;background:#273340;color:#ecf5fc;}
.cdj-lcd .deck-phase i{inset-block:0;background:#ffaf53;}
