/* The trajectory viewer's play bar (::trajectory, traj-viewer.js). gv-viewer.css is loaded first and does the
   stage, the poster, the veil and the round .gvv-tool buttons; this file is only the bar under the stage.
   House rules (.claude/kb/css-design-system.md): tokens only, space on the --space-N ladder, no breakpoint of
   its own (the bar is one row at every width). */

.tjv-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-2);
}
.tjv-bar[hidden] { display: none; }

/* the play / pause button: a .gvv-tool that sits in the bar instead of on the stage */
.tjv-play { flex: none; }

/* the scrubber: the rail of .gvv-steps, with a round knob in the viewer's orange */
.tjv-scrub {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--space-4);
  margin: 0;
  background: none;
  appearance: none;
  cursor: pointer;
}
.tjv-scrub::-webkit-slider-runnable-track {
  height: var(--space-1);
  border-radius: var(--radius);
  background: var(--gv-frost);
}
.tjv-scrub::-moz-range-track {
  height: var(--space-1);
  border-radius: var(--radius);
  background: var(--gv-frost);
}
.tjv-scrub::-moz-range-progress {
  height: var(--space-1);
  border-radius: var(--radius);
  background: var(--gv-cayenne);
}
.tjv-scrub::-webkit-slider-thumb {
  width: var(--space-4);
  height: var(--space-4);
  margin-top: calc((var(--space-1) - var(--space-4)) / 2);
  border: 0;
  border-radius: 50%;
  background: var(--gv-cayenne);
  box-shadow: var(--shadow-sm);
  appearance: none;
}
.tjv-scrub::-moz-range-thumb {
  width: var(--space-4);
  height: var(--space-4);
  border: 0;
  border-radius: 50%;
  background: var(--gv-cayenne);
  box-shadow: var(--shadow-sm);
}
.tjv-scrub:focus-visible { outline: var(--space-1) solid var(--gv-pine); outline-offset: var(--space-1); }

/* the frame counter: as wide as its longest reading, so the scrubber does not jump as the number grows */
.tjv-count {
  flex: none;
  min-width: 10ch;
  font-size: calc(var(--fs-body) * .8);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--gv-pine);
  text-align: right;
}
