/* Návrh 54 (Peter 8. 11.): recording a line on the shot's clock — the dot that listens, the count-down, the strip of
   the result's length with its runner. One bar for Iná replika (form.n46, navrh46.css lays it out) and Nové video. */

/* the bar in Nové video (Moja nahrávka): the same row as in Iná replika */
.ln29 .rec46{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 6px 6px 8px;border-radius:8px;background:rgba(240,154,139,.08)}
.ln29 .rec46 .st46{min-width:0;flex:1;font-size:12.5px;color:var(--text2);line-height:1.3}
.ln29 .rec46 .st46 small{display:block;font-size:11px;color:var(--faint)}
.ln29 .rec46 .st46 b{font-variant-numeric:tabular-nums;color:var(--text)}
.ln29 .rec46 .rd46{width:10px;height:10px;border-radius:50%;background:#F09A8B;flex:none}
.ln29 .ln54mic .ic47{margin-right:4px;vertical-align:-2px}
.ln29 .er46{margin:6px 0 0;font-size:12px;line-height:1.4;color:var(--warn)}

/* the strip under the row: the result's length, filled to the runner */
form.n46 .rec54,.ln29 .rec54{flex-wrap:wrap}
.rec54 .pas54{flex:1 0 100%;order:9;position:relative;height:4px;margin:2px 2px 0 18px;border-radius:2px;background:var(--line2);overflow:hidden}
.rec54 .pas54 i,.cd54 .pas54 i{position:absolute;left:0;top:0;bottom:0;width:calc(var(--t,0) * 100%);background:#F09A8B}
.rec54 .pas54 i::after,.cd54 .pas54 i::after{content:"";position:absolute;right:-1px;top:-2px;bottom:-2px;width:2px;background:var(--text)}
.rec54:not([data-phase="rec"]) .pas54 i{width:0}

/* the dot listens: it grows with the voice (--lv from the blocks' RMS), it only pulses while the microphone starts */
.rec54 .rd46,form.n46 .rec54 .rd46{animation:none;transform:scale(calc(1 + var(--lv,0) * 1.4));transition:transform 70ms linear}
.rec54[data-phase="arming"] .rd46,form.n46 .rec54[data-phase="arming"] .rd46{animation:p46 1.2s infinite}
@media (prefers-reduced-motion:reduce){.rec54 .rd46,form.n46 .rec54 .rd46{transition:none}
  .rec54[data-phase="arming"] .rd46,form.n46 .rec54[data-phase="arming"] .rd46{animation:none}}
.rec54 [data-ln29-phase]{color:var(--text);font-weight:500}

/* the microphone hears nothing / a moment after it is saved */
.deaf54{margin:6px 0 0;font-size:12px;line-height:1.4;color:var(--warn)}
.done54{margin:6px 0 0;font-size:12px;color:var(--text2)}

/* over the stage: the count-down large, then a thin strip along the picture's bottom */
.cd54{position:absolute;inset:0;z-index:3;display:grid;place-items:center;pointer-events:none}
.cd54 b{font:600 clamp(48px,12vw,120px)/1 var(--font);color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.6);font-variant-numeric:tabular-nums}
.cd54 b:empty{display:none}
.cd54 .pas54{position:absolute;left:0;right:0;bottom:0;height:5px;background:rgba(255,255,255,.18)}

/* Nahovoriť repliku · TTS (Peter 8. 11.): the grey industry term, and the voice it is read with beside the button */
.tm54{margin-left:6px;color:var(--faint);font-weight:400;font-size:.9em}
.hv54{font-size:12px;color:var(--text2);text-decoration:none;white-space:nowrap;align-self:center}
.hv54 b{font-weight:500;color:var(--text)}
.hv54:hover,.hv54:focus-visible{color:var(--text);text-decoration:underline}
