/* ==========================================================================
   DINKOMART — the video player (2026-11-20; js/player.js), for the Help
   videos of the console and the shop. A cover that says it is a video; then
   a bar along the foot: the line to jump on (thicker as you near it, the
   time shown over it, chapter marks, what has loaded behind), and the
   buttons. It rests while the video plays. Colours are its own: it sits on
   a dark picture in both themes.
   ========================================================================== */
.dmp-box { position: relative; isolation: isolate; overflow: hidden; background: #000; outline: none; user-select: none; -webkit-user-select: none; }
.dmp-box video { display: block; width: 100%; height: auto; cursor: pointer; }
.dmp-box.is-full { display: grid; place-items: center; width: 100vw; height: 100vh; border-radius: 0 !important; }
.dmp-box.is-full video { width: 100%; height: 100%; max-height: 100vh; object-fit: contain; }

/* the cover */
.dmp-box .vcover { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 0; border: 0; cursor: pointer; color: #fff; font: inherit;
  background: linear-gradient(to top, rgba(5, 14, 9, .78), rgba(5, 14, 9, .12) 48%, rgba(5, 14, 9, .04)); }
.dmp-box .vcover__tag { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; background: #E5322D; color: #fff; font: 700 12px/1 var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.dmp-box .vcover__tag svg { width: 12px; height: 12px; }
.dmp-box .vcover__btn { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #FFC531; color: #1A1200; box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .7); transition: transform 160ms cubic-bezier(.16, 1, .3, 1); }
.dmp-box .vcover__btn::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255, 197, 49, .7); animation: dmpRing 1.9s cubic-bezier(.16, 1, .3, 1) infinite; }
.dmp-box .vcover__btn svg { width: 40px; height: 40px; margin-left: 6px; }
.dmp-box .vcover__label { position: absolute; left: 22px; right: 22px; bottom: 18px; display: grid; gap: 3px; text-align: left; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.dmp-box .vcover__label b { font: 800 22px/1.2 var(--font-display, sans-serif); letter-spacing: -.01em; }
.dmp-box .vcover__label small { font-size: 14px; font-weight: 600; color: #E4ECE6; }
.dmp-box .vcover:active .vcover__btn { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .dmp-box .vcover:hover .vcover__btn { transform: scale(1.07); } }
.dmp-box .vcover:focus-visible { outline: 3px solid #FFC531; outline-offset: -3px; }
@keyframes dmpRing { from { transform: scale(.82); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* the controls */
.dmp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 14px 10px; color: #fff; font: 600 13px/1 var(--font-body, system-ui, sans-serif);
  background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .38) 55%, transparent); opacity: 0; transform: translateY(6px);
  transition: opacity 220ms cubic-bezier(.16, 1, .3, 1), transform 220ms cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.dmp-box.is-started .dmp { opacity: 1; transform: none; pointer-events: auto; }
.dmp-box.is-started.is-idle .dmp { opacity: 0; transform: translateY(6px); pointer-events: none; }
.dmp-box.is-idle { cursor: none; }
.dmp-box.is-idle video { cursor: none; }

.dmp__scrub { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.dmp__rail { position: relative; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .24); transition: height 140ms cubic-bezier(.16, 1, .3, 1); }
.dmp__scrub:hover .dmp__rail, .dmp-box.is-scrubbing .dmp__rail, .dmp__scrub:focus-visible .dmp__rail { height: 9px; }
.dmp__rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(.0001); }
.dmp__buf { background: rgba(255, 255, 255, .38); }
.dmp__hover { background: rgba(255, 255, 255, .22); opacity: 0; transition: opacity 120ms; }
.dmp__scrub:hover .dmp__hover { opacity: 1; }
.dmp__fill { background: linear-gradient(90deg, #1F9A50, #FFC531); transition: transform 250ms linear; }
.dmp-box.is-scrubbing .dmp__fill { transition: none; }
.dmp__marks { position: absolute; inset: 0; pointer-events: none; }
.dmp__marks i { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: rgba(0, 0, 0, .55); border-radius: 2px; transform: none !important; }
.dmp__knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #FFC531; box-shadow: 0 0 0 4px rgba(255, 197, 49, .28), 0 2px 8px rgba(0, 0, 0, .5); transform: scale(.0001); transition: transform 140ms cubic-bezier(.16, 1, .3, 1); }
.dmp__scrub:hover .dmp__knob, .dmp-box.is-scrubbing .dmp__knob, .dmp__scrub:focus-visible .dmp__knob { transform: scale(1); }
.dmp__tip { position: absolute; bottom: 26px; left: 0; display: grid; gap: 2px; justify-items: center; padding: 6px 9px; border-radius: 8px; background: rgba(10, 14, 12, .92); color: #fff; font: 700 12px/1.1 var(--font-mono, monospace); white-space: nowrap; transform: translateX(-50%); opacity: 0; transition: opacity 120ms; pointer-events: none; }
.dmp__tip em { font-style: normal; font: 600 11px/1.2 var(--font-body, sans-serif); color: #FFC531; }
.dmp__tip em:empty { display: none; }
.dmp__scrub:hover .dmp__tip, .dmp-box.is-scrubbing .dmp__tip { opacity: 1; }

.dmp__row { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.dmp__b { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: #fff; font: 700 13px/1 var(--font-mono, monospace); cursor: pointer; transition: background-color 120ms, transform 120ms; }
.dmp__b svg { width: 22px; height: 22px; }
.dmp__b:hover { background: rgba(255, 255, 255, .14); }
.dmp__b:active { transform: scale(.92); }
.dmp__b:focus-visible, .dmp__scrub:focus-visible { outline: 2px solid #FFC531; outline-offset: 2px; }
.dmp__play { min-width: 44px; height: 44px; border-radius: 50%; background: #FFC531; color: #1A1200; }
.dmp__play:hover { background: #FFD45C; }
.dmp__play svg { width: 22px; height: 22px; }
.dmp__time { margin-left: 6px; font: 600 13px/1 var(--font-mono, monospace); color: rgba(255, 255, 255, .78); white-space: nowrap; }
.dmp__time b { color: #fff; }
.dmp__ch { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #FFC531; min-width: 0; }
.dmp__ch:not(:empty)::before { content: "· "; color: rgba(255, 255, 255, .5); }
.dmp__sp { flex: 1; }
.dmp__rate { position: relative; }
.dmp__menu { position: absolute; right: 0; bottom: 48px; display: grid; min-width: 96px; padding: 6px; border-radius: 12px; background: rgba(12, 16, 14, .96); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); }
.dmp__menu button { padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: 600 13px/1 var(--font-mono, monospace); text-align: left; cursor: pointer; }
.dmp__menu button:hover { background: rgba(255, 255, 255, .12); }
.dmp__menu button[aria-checked="true"] { color: #FFC531; }
@media (max-width: 640px) {
  .dmp { padding: 18px 8px 6px; }
  .dmp__b { min-width: 34px; height: 34px; padding: 0 5px; }
  .dmp__b svg { width: 19px; height: 19px; }
  .dmp__play { min-width: 38px; height: 38px; }
  .dmp__ch, [data-skip="-10"] { display: none; }
  .dmp-box .vcover__btn { width: 66px; height: 66px; }
  .dmp-box .vcover__btn svg { width: 28px; height: 28px; margin-left: 4px; }
  .dmp-box .vcover__label { left: 12px; right: 12px; bottom: 10px; }
  .dmp-box .vcover__label b { font-size: 16px; }
  .dmp-box .vcover__tag { left: 10px; top: 10px; padding: 5px 9px 5px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dmp-box .vcover__btn::before { animation: none; } .dmp, .dmp__fill { transition: none; } }
