/* Player UX page: style.css plus the stage and side panel around the player. */
.stage-wrap { position: relative; border-radius: 8px; overflow: hidden; outline: 1px solid var(--line); background: #000; }
/* style.css positions the stitcher page's #player absolutely and stretches its video; here the
   player sizes the stage (aspect ratio from the tile map) and the video keeps its shape. */
#player { position: relative; inset: auto; transform: none; transition: none; width: 100%; }
.stage-wrap #player video { object-fit: contain; }
.stage-wrap .empty { position: absolute; inset: 0; z-index: 5; background: #000; min-height: 240px; }
.stage-wrap .toast { z-index: 6; bottom: auto; top: 16px; }

.status { margin-top: 10px; font: 12px var(--mono); color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.status b { color: var(--text); font-weight: 500; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--faint); font-size: 12.5px; }
.keys kbd { margin-right: 2px; }

.chlist { display: flex; flex-direction: column; gap: 4px; }
.ch { display: grid; grid-template-columns: 22px auto 1fr; gap: 8px; align-items: baseline; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 9px; cursor: pointer; color: var(--muted); font: inherit; font-size: 12.5px; text-align: left; }
.ch:hover { border-color: var(--line-2); color: var(--text); }
.ch[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; color: var(--text); }
.ch .n { font: 600 12px var(--mono); color: var(--faint); }
.ch .t { font: 11px var(--mono); color: var(--faint); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fine.first { margin-top: 0; margin-bottom: 8px; }
.mapjson { margin-top: 10px; }
.mapjson summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.mapjson pre.code { margin: 8px 0 0; max-height: 420px; overflow: auto; font-size: 11.5px; }
.notes { margin: 0; padding-left: 18px; color: #c9ced4; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.notes b { color: var(--text); }
