/* ToyBox for WordPress. GPL v3 or later. GENERATED by scripts/build-wordpress.mjs; do not edit. */
/* ToyBox player + standalone toy styles. Shared by the demo and the Moodle plugin.
   Everything is scoped under .tb-* so it can live inside any host page. */
/* ---- player ---------------------------------------------------------- */
.tb-player { background: #000; border-radius: var(--tb-radius, 12px); font-family: var(--tb-font, inherit); overflow: hidden; outline: none; }
.tb-player:focus-visible { box-shadow: 0 0 0 3px var(--tb-accent, #f59e0b); }
.tb-stage { position: relative; aspect-ratio: 16 / 9; }
.tb-stage .tb-media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; border: 0; }
.tb-stage .tb-embed > div, .tb-stage .tb-embed iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.tb-shield { position: absolute; inset: 0; cursor: pointer; }
.tb-overlay { position: absolute; inset: 0; pointer-events: none; container-type: size; }
.tb-overlay .toy { position: absolute; border: 0; pointer-events: auto; background: transparent; color-scheme: normal; }
.tb-player:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.tb-player:fullscreen .tb-stage { width: min(100vw, calc((100vh - 48px) * 16 / 9)); margin: 0 auto; }

.tb-controls { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--tb-band, #0b0f17); color: var(--tb-on-band, #e5e7eb); }
.tb-controls button { background: none; border: 0; color: inherit; font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 6px; }
.tb-controls button:hover { background: #ffffff1a; }
.tb-controls .tb-mute { display: grid; place-items: center; }
.tb-controls .tb-volume { width: 72px; flex: none; accent-color: var(--tb-on-band, #e5e7eb); }
@media (max-width: 520px) { .tb-controls .tb-volume { display: none; } }
.tb-controls .tb-mute.tb-muted { color: var(--tb-accent, #f59e0b); }
.tb-time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--tb-on-band, #9ca3af); opacity: .8; white-space: nowrap; }
.tb-track { position: relative; flex: 1; height: 24px; display: flex; align-items: center; }
.tb-scrub { width: 100%; margin: 0; accent-color: var(--tb-accent, #f59e0b); position: relative; z-index: 1; }
.tb-markers { position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 2; }
.tb-marker { position: absolute; top: 0; height: 5px !important; min-width: 6px; padding: 0 !important; border-radius: 3px !important; background: var(--tb-c2, #60a5fa) !important; }
.tb-marker--pause { background: var(--tb-accent, #f59e0b) !important; }


/* ---- standalone toy (no video) -------------------------------------- */
.tb-standalone { position: relative; width: 100%; }
.tb-standalone .toy { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
.tb-standalone.tb-auto .toy { position: static; display: block; }

/* WordPress front end (the player styles come from core/src/player.css). */
.toybox-wp { margin: 1.5em 0; width: 100%; }
.toybox-wp .toybox-stage { min-height: 120px; }
.toybox-wp .tb-standalone { width: 100%; }
.toybox-status { margin: .5em 0 0; font-weight: 600; color: var(--tb-success, #357a32); min-height: 1.5em; }
.toybox-progress-title { margin: 1em 0 .5em; font-weight: 700; }
.toybox-progress { list-style: none !important; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5em; }
.toybox-progress li { list-style: none !important; margin: 0 !important; }
.toybox-progress button { font: inherit; font-size: .9em; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .25em .8em; opacity: .85; }
.toybox-progress li.done button { opacity: 1; border-color: var(--tb-success, #357a32); }
.toybox-progress li.done button::before { content: '✓ '; color: var(--tb-success, #357a32); font-weight: 700; }
.toybox-progress .t { opacity: .7; margin-right: .4em; font-variant-numeric: tabular-nums; }
