/* The Demo player's look, shared by www.cineminds.net (#demo) and check.cineminds.net, which loads this very
   file from www.cineminds.net. Its controls are light and set in mono on purpose: the recording IS the app,
   so a control in the app's look would read as part of the video ("Pille", the 2026-11-11 mockup "Aufnahme
   oder App?"). Everything is scoped under .dm, the element the player is mounted in. */
.dm { --paper: #f6f6f2; --paper-ink: #0b0b0d; --paper-dim: #5c5f5d; --dm-glide: cubic-bezier(.16, 1, .3, 1);
  --dm-mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; --dm-sys: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; }
.dm-player { --p: 0; position: absolute; inset: 0; container-type: size; }
.dm :focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
:where(.dm) button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-mono { font: 600 11px/1 var(--dm-mono); letter-spacing: .1em; text-transform: uppercase; }
.dm-num { font-variant-numeric: tabular-nums; }
.dm-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-ic .f { fill: currentColor; stroke: none; }
.dm-dot { display: inline-block; flex: none; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dm-player[data-phase="play"]:not([data-atend]) .dm-dot { animation: dm-pulse 1.6s ease-in-out infinite; }
@keyframes dm-pulse { 50% { opacity: .25; } }
.dm-player:not([data-atend]) .dm-if-end, .dm-player[data-atend] .dm-if-notend,
.dm-player:not([data-muted]) .dm-if-muted, .dm-player[data-muted] .dm-if-unmuted { display: none; }

/* The phone recording: a column the picture's shape (1280×2327 on Vimeo), centred. The whole screen on a
   phone held upright, the middle of a tablet's. */
.dm-col { position: absolute; left: 50%; top: 50%; width: min(100cqw, 100cqh * 1280 / 2327); aspect-ratio: 1280 / 2327; translate: -50% -50%; overflow: hidden; }
@media (min-width: 761px) {
  .dm-player { inset: 24px 0; }
  .dm-col { width: min(100cqw - 200px, 100cqh * 1280 / 2327); border-radius: 14px; }
}
.dm-frame, .dm-video { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.dm-video { object-fit: contain; }
.dm-player:not([data-media="file"]) .dm-video, .dm-player[data-media="file"] .dm-frame { display: none; }
.dm-player[data-phase="start"] :is(.dm-frame, .dm-video) { visibility: hidden; }
.dm-tap { position: absolute; inset: 0; z-index: 5; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Waiting: while it jumps, and while Vimeo loads or buffers, the picture stops and dims, and a light disc
   turns in the middle of it. The disc sits where Vimeo draws its own loading ring, and covers it. */
.dm-dim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dm-wait { --disc: clamp(80px, 24cqmin, 140px); position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.dm-player[data-wait] :is(.dm-dim, .dm-wait) { opacity: 1; }
.dm-wait__disc { display: grid; place-items: center; width: var(--disc); height: var(--disc); border-radius: 50%; background: var(--paper); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.dm-wait__disc svg { width: 42%; height: 42%; fill: none; stroke-width: 3.2; stroke-linecap: round; }
.dm-wait__track { stroke: rgba(11, 11, 13, .12); }
.dm-wait__arc { stroke: var(--paper-ink); stroke-dasharray: 30 200; transform-origin: 24px 24px; animation: dm-spin .9s linear infinite; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-wait__label { color: var(--paper); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.dm-player:not([data-seeking]) .dm-wait__label { visibility: hidden; }
/* in the pill and the card, the dot turns into a small turning ring */
.dm-player[data-seeking] .dm-dot { width: 9px; height: 9px; background: none; border: 1.6px solid currentColor; border-right-color: transparent; animation: dm-spin .8s linear infinite; }

.dm-begin { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center; pointer-events: none; }
.dm-player:not([data-phase="start"]) .dm-begin { display: none; }
.dm .dm-start { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); font-size: 12px; letter-spacing: .12em; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); pointer-events: auto; }
.dm-start .dm-ic { width: 14px; height: 14px; }
.dm-start__dur { color: var(--paper-dim); }
.dm-begin__sub { margin: 0; font: 400 13px/1.4 var(--dm-sys); color: rgba(246, 246, 242, .66); }

/* The pill: status and time, sound, and Close (the site) or Skip (check, which turns into Go at the end
   card). As wide as the picture, 10 px in from its edges like the card it opens into (since 2026-11-14;
   it was as wide as its words before), so on a phone held upright it spans the screen. A 1 px timeline
   runs along its bottom edge; a tap or a drag along that edge jumps there. */
.dm-pill { position: absolute; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 12; display: flex; height: 42px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .75); white-space: nowrap; transition: opacity .25s; }
.dm-player:is([data-phase="start"], [data-phase="pause"]) .dm-pill { opacity: 0; pointer-events: none; }
.dm .dm-pill > :is(button, a) { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: inherit; text-decoration: none; }
/* the status, or Go at the end card, takes the width; sound, Skip, Close and Again keep theirs on the right */
.dm .dm-pill > :is([data-act="pause"], a) { flex: 1 1 auto; min-width: 0; padding-left: 18px; }
.dm .dm-pill > .dm-sep { padding: 0 13px; border-left: 1px solid rgba(11, 11, 13, .16); }
.dm-pill > :is(button, a):focus-visible { outline-color: var(--paper-ink); outline-offset: -5px; border-radius: 999px; }
.dm-pill a .dm-ic { width: 14px; height: 14px; }
.dm-pill__t { letter-spacing: .04em; color: var(--paper-dim); }
.dm-pill__ch, .dm-pill__tick { display: none; }
.dm-pill__dim { color: var(--paper-dim); }
.dm-pill__line { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 1px; background: rgba(11, 11, 13, .13); pointer-events: none; transition: height .15s, bottom .15s; }
.dm-pill__line::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--paper-ink); }
.dm-player[data-scrubbing] .dm-pill__line { bottom: 5px; height: 3px; }
.dm-pill__hit { position: absolute; left: 8px; right: 8px; top: 28px; bottom: -14px; z-index: 2; cursor: pointer; touch-action: none; }
.dm-pill__hit:focus-visible { outline-color: var(--paper-ink); outline-offset: -2px; border-radius: 8px; }
.dm-player[data-atend] :is(.dm-pill__line, .dm-pill__hit) { display: none; }
.dm-pill__tip { position: absolute; bottom: calc(100% + 10px); left: calc(20px + var(--p) * (100% - 40px)); translate: -50% 0; padding: 7px 10px; border-radius: 8px; background: var(--paper); font-size: 10px; letter-spacing: .08em; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; transition: opacity .15s; }
.dm-player[data-scrubbing] .dm-pill__tip { opacity: 1; }

/* The card a tap opens out of the pill: status and time, the chapter (its triangle folds out all seven),
   a scrubber, Resume, Close or Skip to the end, and sound */
.dm-scrim { position: absolute; inset: 0; z-index: 11; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.dm-player[data-phase="pause"] .dm-scrim { opacity: 1; }
.dm-card { position: absolute; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 13; padding: 12px 14px; border-radius: 20px; background: var(--paper); color: var(--paper-ink);
  clip-path: inset(calc(100% - 46px) 0 4px round 21px); opacity: 0; visibility: hidden; transition: clip-path .5s var(--dm-glide), opacity .2s, visibility 0s .5s; }
.dm-player[data-phase="pause"] .dm-card { clip-path: inset(0 round 20px); opacity: 1; visibility: visible; transition: clip-path .5s var(--dm-glide), opacity .12s; }
.dm-card :focus-visible { outline-color: var(--paper-ink); }
.dm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-card__status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; }
.dm-card__time { font: 500 11px/1 var(--dm-mono); letter-spacing: .04em; color: var(--paper-dim); }
.dm .dm-card__ch { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 6px 0 0 -6px; padding: 4px 6px; border-radius: 8px; text-align: left; }
@media (hover: hover) { .dm .dm-card__ch:hover { background: rgba(11, 11, 13, .06); } }
.dm-card__chname { overflow: hidden; font: 600 20px/1.15 var(--dm-sys); letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.dm-card__tri { flex: none; width: 10px; height: 10px; fill: currentColor; transition: rotate .3s var(--dm-glide); }
.dm-player[data-list] .dm-card__tri { rotate: 180deg; }
.dm-card__chn { flex: none; font: 600 10px/1 var(--dm-mono); letter-spacing: .08em; color: var(--paper-dim); }
.dm-card__list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--dm-glide); }
.dm-player[data-list] .dm-card__list { grid-template-rows: 1fr; }
.dm-card__listin { min-height: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.dm-card__listin li:first-child { margin-top: 6px; }
.dm .dm-card__listin button { display: grid; grid-template-columns: 16px 1fr auto; align-items: baseline; gap: 10px; width: 100%; padding: 8px 6px; border-top: 1px solid rgba(11, 11, 13, .08); text-align: left; }
.dm .dm-card__listin [aria-current="true"] { border-radius: 8px; background: rgba(11, 11, 13, .07); }
.dm .dm-card__listin [aria-current="true"], .dm .dm-card__listin li:has([aria-current="true"]) + li button { border-top-color: transparent; }
.dm-card__listin .dm-num { font: 600 10px/1 var(--dm-mono); letter-spacing: .06em; color: var(--paper-dim); }
.dm-card__listin span:nth-child(2) { font: 500 15px/1.2 var(--dm-sys); }
.dm-card__listin [aria-current="true"] span:nth-child(2) { font-weight: 700; }
.dm-card__scrub { display: block; padding: 12px 0 11px; cursor: pointer; touch-action: none; }
.dm-card__scrub:focus-visible { outline-offset: 0; border-radius: 8px; }
.dm-track { position: relative; height: 3px; border-radius: 2px; background: rgba(11, 11, 13, .14); }
.dm-track__tick { position: absolute; top: -3px; width: 1px; height: 9px; background: rgba(11, 11, 13, .3); }
.dm-track__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--paper-ink); }
.dm-track__knob { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--paper-ink); box-shadow: 0 0 0 4px rgba(11, 11, 13, .1); }
.dm-card__actions { display: flex; gap: 8px; }
.dm .dm-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px; height: 38px; padding: 0 14px; border: 1px solid var(--paper-ink); border-radius: 999px; color: var(--paper-ink); white-space: nowrap; }
.dm-btn .dm-ic { width: 13px; height: 13px; }
.dm .dm-btn--main { flex: 1; min-width: 0; background: var(--paper-ink); color: var(--paper); }
.dm .dm-btn--round { width: 38px; padding: 0; }
.dm-btn--round .dm-ic { width: 16px; height: 16px; }

/* A computer (the site only: check.cineminds.net shows a computer the QR code) gets the desktop recording:
   16:9, with the pill as wide as the picture and 52 px tall, in a strip of its own below it, so it covers
   none of the recording's own bottom bar. The pill adds the chapter after the time and the chapters' ticks
   on its 1 px timeline; the card opens out of it across the same width. The band along the top belongs to
   the overlay: its close button and the language switch. */
.dm-player[data-desk] { inset: 84px 40px 24px; }
.dm-player[data-desk] .dm-col { --w: min(100cqw, (100cqh - 64px) * 16 / 9); width: var(--w); height: calc(var(--w) * 9 / 16 + 64px); aspect-ratio: auto; overflow: visible; border-radius: 0; }
.dm-player[data-desk] .dm-col::before { content: ''; position: absolute; inset: 0 0 64px; border-radius: 14px; background: #000; }
.dm-player[data-desk] :is(.dm-frame, .dm-video) { height: calc(100% - 64px); border-radius: 14px; }
.dm-player[data-desk] :is(.dm-tap, .dm-begin, .dm-scrim, .dm-dim, .dm-wait) { bottom: 64px; }
.dm-player[data-desk] :is(.dm-scrim, .dm-dim) { border-radius: 14px; }
.dm-player[data-desk] .dm-pill { container: dm-pill / inline-size; left: 0; right: 0; bottom: 0; height: 52px; translate: none; }
.dm .dm-player[data-desk] .dm-pill > :is(button, a) { padding: 0 20px; }
.dm .dm-player[data-desk] .dm-pill > [data-act="pause"] { flex: 1 1 auto; min-width: 0; gap: 10px; padding: 0 24px; font-size: 12px; }
.dm-player[data-desk] .dm-pill .dm-ic { width: 18px; height: 18px; }
.dm-player[data-desk] .dm-pill__ch { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dm-player[data-desk] .dm-pill__line { left: 26px; right: 26px; bottom: 9px; }
.dm-player[data-desk][data-scrubbing] .dm-pill__line { bottom: 8px; height: 3px; }
.dm-player[data-desk] .dm-pill__tick { display: block; position: absolute; bottom: 0; width: 1px; height: 5px; background: rgba(11, 11, 13, .3); }
.dm-player[data-desk] .dm-pill__hit { left: 12px; right: 12px; top: 34px; }
.dm-player[data-desk] .dm-pill__tip { left: calc(26px + var(--p) * (100% - 52px)); }
@container dm-pill (max-width: 560px) { .dm-player[data-desk] .dm-pill__ch { display: none; } }
.dm-player[data-desk] .dm-card { left: 0; right: 0; bottom: 0; padding: 16px 24px 18px; clip-path: inset(calc(100% - 52px) 0 0 round 26px); }
.dm-player[data-desk][data-phase="pause"] .dm-card { clip-path: inset(0 round 20px); }
.dm-player[data-desk] .dm-card__listin { max-width: 560px; }
.dm .dm-player[data-desk] .dm-btn--main { flex: 0 1 280px; }
/* a narrow window held upright has neither up there; the pill and the card close it */
@media (max-width: 760px) and (orientation: portrait) { .dm-player[data-desk] { inset: 24px 16px; } }

@media (prefers-reduced-motion: reduce) {
  .dm-player[data-phase="play"] .dm-dot { animation: none; }
  .dm-wait__arc, .dm-player[data-seeking] .dm-dot { animation-duration: 2.4s; }
  .dm-card, .dm-player[data-phase="pause"] .dm-card, .dm-card__list, .dm-pill { transition-duration: .01ms; }
}
