/* The replay (journal 012; design/replay_four.html and its states): the table's column without its panel, Seen
   by, the end line and the steps under the board; on a wide screen the column alone, centred; where no
   replay can be shown, the line under the bar in the column. From the tokens alone. */

/* The bar: ‹, then the title centred, no match menu. */
.replay-bar__back { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--color-text); cursor: pointer; }
.replay-bar .table-bar__kind { margin: 0; }

/* Seen by: its label, then All and each seat's sign. */
.replay-view { display: flex; align-items: center; gap: 10px; margin: 6px 16px 0; flex: none; }
.replay-view__label { color: var(--color-text-muted); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); white-space: nowrap; }
.replay-view .segmented { flex: 1; }
.replay-view__sign { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }

/* The end line above the steps: the winner's sign, the end sheet's title and reason. */
.replay__end { flex: none; }
.replay-end { display: flex; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 8px 12px; border-radius: var(--radius-control); background: var(--color-surface); }
.replay-end__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.replay-end__title { color: var(--color-text); font-weight: var(--font-weight-bold); }
.replay-end__reason { color: var(--color-text-muted); font-size: var(--font-size-xs); }

/* The steps: the buttons and the turn on a row, the slider under them. */
.replay-scrub { display: flex; flex-direction: column; gap: 8px; margin: 8px 16px; padding: 10px 12px; border-radius: var(--radius-control); background: var(--color-surface); flex: none; }
.replay-scrub__row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.replay-scrub__button { width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: var(--radius-control); background: var(--color-surface-raised); color: var(--color-text); font: inherit; font-weight: var(--font-weight-bold); cursor: pointer; }
.replay-scrub__button:disabled { background: var(--color-surface); color: var(--color-disabled-text); cursor: default; }
.replay-scrub__button--playing { background: var(--color-text); color: var(--color-bg); }
.replay-scrub__turn { flex: 1; min-width: 0; text-align: center; white-space: nowrap; color: var(--color-text); font-variant-numeric: tabular-nums; font-weight: var(--font-weight-semibold); }

/* The slider over the match: the track filled to the step shown (`--size-replay-at`), the knob on it. */
.replay-scrub__slider { width: 100%; height: 16px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.replay-scrub__slider::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--color-blue) var(--size-replay-at), var(--color-surface-raised) var(--size-replay-at)); }
.replay-scrub__slider::-moz-range-track { height: 4px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--color-blue) var(--size-replay-at), var(--color-surface-raised) var(--size-replay-at)); }
.replay-scrub__slider::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: var(--radius-pill); background: var(--color-text); -webkit-appearance: none; appearance: none; }
.replay-scrub__slider::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: var(--radius-pill); background: var(--color-text); }
.replay-scrub__slider:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* A wide screen (journal 012, Q6): the table's column alone, centred, as the table stands without chat. */
.table--alone { display: grid; max-width: none; justify-content: center; grid-template-columns: minmax(0, 440px); grid-template-rows: auto minmax(0, 1fr); }

/* No replay to show: the bar's title alone and the line under it, in the column. */
.replay-page { max-width: var(--size-column-wide); margin: 0 auto; }
.replay-page .replay-gone { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
