/* The console's own player for a tester's recording (admin-rec-player.js, 16 November 2026).
   The console's values: ink on its surface, hairlines, one lilac for focus. Nothing of the browser's own controls,
   nothing that moves for its own sake: the line follows the film, the mark turns only while something is loading. */

.rp { container-type: inline-size; overflow: hidden; border: 1px solid var(--cl-line-2); border-radius: 12px; background: var(--cl-surface); }

/* the picture */
.rp-stage { position: relative; width: 100%; aspect-ratio: var(--rp-shape, 16 / 9); max-height: min(58vh, 520px); background: #101116; color: #F2F2F0; cursor: pointer; }
.rp-stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.rp--voice .rp-stage { aspect-ratio: auto; height: 112px; }
.rp-voice { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 15px; color: #D6D6D3; }
.rp-voice > i { font-size: 20px; }

/* what is happening, said on the picture */
.rp-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 20px; background: rgba(16, 17, 22, .74); font-size: 15px; line-height: 1.4; text-align: center; cursor: default; }
.rp-note[hidden], .rp-tag[hidden], .rp-b[hidden], .rp-fail [hidden] { display: none; }
.rp-note > i { flex: none; font-size: 18px; }
.rp-turn { display: inline-block; animation: rp-turn 1s linear infinite; }
@keyframes rp-turn { to { transform: rotate(360deg); } }
.rp-fail { flex-direction: column; gap: 14px; background: rgba(16, 17, 22, .9); }
.rp-fail p { margin: 0; }
.rp-fail-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rp-tag { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(16, 17, 22, .8); font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; color: #F2F2F0; cursor: default; }

/* the time line and the words under it */
.rp-bar { padding: 6px 14px 14px; border-top: 1px solid var(--cl-line); }
.rp-row { display: flex; align-items: center; gap: 12px; }
.rp-t { flex: none; min-width: 32px; font-size: 13.5px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cl-ink-2); }
.rp-t--all { text-align: right; color: var(--cl-ink-3); }
.rp-line { position: relative; flex: 1; min-width: 0; height: 36px; border-radius: 8px; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; }
.rp-rail, .rp-got, .rp-fill { position: absolute; top: 50%; left: 0; height: 4px; margin-top: -2px; border-radius: 999px; pointer-events: none; }
.rp-rail { right: 0; background: var(--adm-quiet-soft); }
.rp-got { width: 0; background: var(--cl-line-3); }
.rp-fill { width: 0; background: var(--cl-ink); }
.rp-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cl-ink); box-shadow: 0 0 0 2px var(--cl-surface); pointer-events: none; transition: transform .15s var(--cl-out); }
.rp-line:hover .rp-knob, .rp-line.is-held .rp-knob { transform: scale(1.2); }

.rp-ctl { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rp-gap { flex: 1; }
.rp .rp-b { height: 36px; padding: 0 14px; font-size: 14px; }
.rp .rp-b > i { font-size: 16px !important; }
.rp .rp-b--play { min-width: 104px; }
.rp .rp-b:disabled { opacity: .45; }

/* a narrow panel (a phone): the four controls in one row of equal cells, each word under its icon */
@container (max-width: 500px) {
  .rp-bar { padding: 4px 12px 12px; }
  .rp-ctl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
  .rp-ctl:has(.rp-b[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-gap { display: none; }
  .rp .rp-b { flex-direction: column; gap: 4px; min-width: 0; height: 56px; padding: 0 2px; border-radius: 12px; font-size: 12.5px; }
  .rp .rp-b--play { min-width: 0; }
  .rp .rp-b > i { font-size: 18px !important; }
}

/* full screen: the picture takes the room, the controls stay under it */
.rp:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.rp:fullscreen .rp-stage { flex: 1; min-height: 0; aspect-ratio: auto; max-height: none; height: auto; }
.rp:fullscreen .rp-bar { padding: 8px 24px 18px; }

@media (prefers-reduced-motion: reduce) {
  .rp-turn { animation: none; }
  .rp-knob { transition: none; }
}

/* the Recordings panel: each recording is its name, what it holds, and its player; air between one and the next */
.rp-rec + .rp-rec { margin-top: 32px; }
.rp-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 12px; }
.rp-rec-t { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--cl-ink); }
.rp-rec-head .adm-sub { margin-top: 2px; font-size: 13.5px; }
.rp-rec-more { margin-top: 12px; }
