/* webmath.css — scene shell + player. The maths fonts themselves are loaded by the engine
 * via the FontFace API (measure.js), so layout never runs against a fallback face. */

.wm-scene {
  display: block;
  max-width: 100%;
  font-family: "KaTeX_Main", "Times New Roman", serif;
}

.wm-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  user-select: none;           /* scrubbing must never select the maths */
  -webkit-user-select: none;
}

.wm-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 2px;
  color: #8b9299;
}

.wm-play {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a4048;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.wm-play:hover { color: #f5f2ec; border-color: #6b7280; }

.wm-scrub {
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: #3a4048;
  outline: none;
  cursor: pointer;
}
.wm-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd6dd;
  border: none;
}
.wm-scrub::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd6dd;
  border: none;
}

.wm-time {
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
}
