/* kairotic.tech: demo.css (v1.15). Used only by the Demo page (demo.html).
   Holds: the video player and the chapter buttons.
   Colours, sizes and fonts are the variables at the top of site.css; shared pieces (buttons, cards, header, footer, dark theme basics)
   are in site.css. The dark theme versions of these rules sit in this file too, written as :root[data-theme="dark"] ...
   Loaded AFTER site.css, so a rule here wins over an equal rule there. */

/* demo video.
   The picture is 16:9. The player is one control bar (--bar) taller than the picture: that dark strip is where the browser's own
   controls sit, so they never cover the captions burnt into the video. The big play button is for the first play (and replay) only;
   after that the browser controls do the pausing, so nothing covers the picture when it is paused. */
.player { --bar: 52px; position: relative; margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--rule); background: #1c1b18; container-type: inline-size; box-shadow: 0 44px 60px -44px rgba(28,27,24,.6); }

.player video { display: block; width: 100%; aspect-ratio: 1280 / 772; object-fit: contain; object-position: center top; background: #1c1b18; }

@supports (width: 1cqw) {
  .player video { aspect-ratio: auto; height: calc(56.25cqw + var(--bar)); }
}

.player.started .play { display: none; }

.player.started.ended .play { display: grid; }

.chapters { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }

.chapters button { font: 600 15px/1 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: background .15s, border-color .15s; }

.chapters button:hover, .chapters button.on { background: var(--green-tint); border-color: var(--accent); }

.chapters i { font: 500 12.5px/1 var(--mono); font-style: normal; color: var(--accent); margin-left: 8px; }

@media (max-width: 620px) {
  .player { border-radius: 18px; --bar: 44px; }
  .chapters button { padding: 11px 15px; font-size: 14px; }
}

.chapters button {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

.chapters button:hover, .chapters button.on { background: rgba(255,255,255,.85); }

.player { border: 1px solid var(--glass-edge); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 40px 70px -40px rgba(10,40,28,.7); }

@media (max-width: 700px), (hover: none) {
  .chapters button { min-height: 44px; }
}

:root[data-theme="dark"] .chapters button:hover, :root[data-theme="dark"] .chapters button.on { background: rgba(255,255,255,.16); }

:root[data-theme="dark"] .player { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 70px -40px rgba(0,0,0,.9); }
