/* Self-hosted Plus Jakarta Sans (SIL OFL, see fonts/OFL.txt). No requests to Google. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---- Colours: only the Figma palette (White, Black, Neutral/0–950) ----
   Dark is the default; [data-theme="light"] swaps the roles. */
:root {
  --white: #ffffff; --black: #000000;
  --n-0: #ffffff; --n-50: #fafafa; --n-100: #f5f5f5; --n-200: #e5e5e5; --n-300: #d4d4d4;
  --n-400: #a3a3a3; --n-500: #737373; --n-600: #525252; --n-700: #404040;
  --n-800: #262626; --n-900: #171717; --n-950: #0a0a0a;

  --bg: var(--n-950);
  --ink: var(--n-50);
  --muted: var(--n-400);
  --line: var(--n-800);
  --line-strong: var(--n-700);
  --focus: var(--n-500);
  --hover: var(--n-900);
  --panel: color-mix(in srgb, var(--n-900) 92%, transparent);
  --field: var(--n-900);
  --placeholder: var(--n-600);
  --ghost: color-mix(in srgb, var(--white) 6%, transparent);
  --ghost-hover: color-mix(in srgb, var(--white) 11%, transparent);
  --ghost-line: color-mix(in srgb, var(--white) 12%, transparent);
  --btn-bg: var(--n-50);
  --btn-ink: var(--n-950);
  --scrim: color-mix(in srgb, var(--black) 45%, transparent);
  --scroll: var(--n-700);
  --scroll-hover: var(--n-600);
  --accent: var(--n-400);          /* logo "&" until the thumbnail colour is read */
  --glow-opacity: 0.55;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--n-50);
  --ink: var(--n-900);
  --muted: var(--n-500);
  --line: var(--n-200);
  --line-strong: var(--n-300);
  --focus: var(--n-500);
  --hover: var(--n-100);
  --panel: color-mix(in srgb, var(--white) 94%, transparent);
  --field: var(--white);
  --placeholder: var(--n-400);
  --ghost: color-mix(in srgb, var(--white) 55%, transparent);
  --ghost-hover: color-mix(in srgb, var(--white) 85%, transparent);
  --ghost-line: var(--line);
  --btn-bg: var(--n-900);
  --btn-ink: var(--n-50);
  --scrim: color-mix(in srgb, var(--black) 20%, transparent);
  --scroll: var(--n-300);
  --scroll-hover: var(--n-400);
  --accent: var(--n-500);
  --glow-opacity: 0.28;
  color-scheme: light;
}
/* Colour changes fade when the theme is switched */
body, .drawer, .glide__bg, .field input, .field textarea, .theme-toggle { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Colour taken from the current video: its thumbnail, blown up and blurred behind everything */
.glow { position: fixed; inset: -10%; z-index: 0; pointer-events: none; }
.glow img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(90px) saturate(1.7);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.glow img.on { opacity: var(--glow-opacity); }
.glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%); }

/* Fine film grain over the gradient. A small tile of SVG noise, repeated. */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Light theme glow: brighten and saturate the blurred thumbnail so it reads as a clean pastel
   tint instead of a muddy grey, keep it faint, and fade it out sooner toward the edges. */
:root[data-theme="light"] .glow img { filter: blur(120px) saturate(2) brightness(1.3); }
:root[data-theme="light"] .glow::after { background: radial-gradient(ellipse at center, transparent 22%, var(--bg) 78%); }

/* On light backgrounds the grain is dark instead of light */
:root[data-theme="light"] .grain { filter: invert(1); opacity: 0.05; }

/* ---- Light / dark switch (top right) ---- */
.theme-toggle {
  position: relative; width: 40px; height: 40px; padding: 0; flex: none;
  border: 1px solid var(--ghost-line); border-radius: 8px;
  background: var(--ghost); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.theme-toggle:hover { background: var(--ghost-hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-toggle svg {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  transition: transform .45s cubic-bezier(.32, .72, 0, 1), opacity .25s ease;
}
/* Dark mode shows the sun (tap for light); light mode shows the moon (tap for dark) */
.theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="light"] .theme-toggle .moon { opacity: 1; transform: none; }

/* Simple tooltip under a button: <button data-tip="..."> */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 8px); right: 0;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 500 12px/1.2 var(--font);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: .25s; }

/* Top right: small contact button + theme switch */
.top-actions { display: flex; align-items: center; gap: 8px; }
.small-btn {
  height: 40px; padding: 0 14px; border: 1px solid var(--ghost-line); border-radius: 8px;
  background: var(--ghost); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 500 14px/1 var(--font); white-space: nowrap;
}
.small-btn:hover { background: var(--ghost-hover); }
.small-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.small-btn .short { display: none; }

.top, .stage, .foot { position: relative; z-index: 1; }

/* Suggestions line, bottom left */
.foot { padding: 0 48px 24px; }
.foot p { margin: 0; font-size: 14px; color: var(--muted); }
.foot a.link { text-decoration-color: currentColor; }
.foot-actions { display: none; }


.top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 48px;
}
.brand { display: flex; flex-direction: column; gap: 6px; }
.tagline { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 400; color: var(--ink); }
/* Each half stays on one line, so a wrap can only happen after "watch" */
.tagline span { white-space: nowrap; }
.mark {
  font-weight: 700; font-size: 34px; letter-spacing: -0.045em;
  color: var(--ink); text-decoration: none;
}
.mark .amp { font-size: 0.55em; font-weight: 600; vertical-align: 0.62em; line-height: 0; margin: 0 0.04em; color: var(--accent); letter-spacing: 0; transition: color 0.8s ease; }

/* Video centred in the space under the logo, ~15% bigger than before, never taller than the window allows */
.stage {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  width: min(1360px, calc(100vw - 96px), calc((100vh - 296px) * 16 / 9));
  margin: 0 auto; padding-bottom: 24px;
}
.screen {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.below { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-top: 28px; }
.meta { min-width: 0; }
.meta h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.meta a { color: var(--muted); font-size: 16px; text-decoration: none; }
.meta a:hover { color: var(--ink); }

.actions { display: flex; gap: 12px; flex: none; }
button { font-family: var(--font); cursor: pointer; }

/* ---- Glide-over buttons ----
   Hover: the text glides right, the end icon glides out, a start icon glides in.
   One crisp copy of each icon. */
.glide {
  --glide: 1.375rem;   /* how far text and icons travel: icon width + gap */
  --icon: 0.875rem;
  --pad: 26px;
  --elastic-ease: linear(0, 0.2178 2.1%, 1.1144 8.49%, 1.2959 10.7%, 1.3463 11.81%, 1.3705 12.94%, 1.3726, 1.3643 14.48%, 1.3151 16.2%, 1.0317 21.81%, 0.941 24.01%, 0.8912 25.91%, 0.8694 27.84%, 0.8698 29.21%, 0.8824 30.71%, 1.0122 38.33%, 1.0357, 1.046 42.71%, 1.0416 45.7%, 0.9961 53.26%, 0.9839 57.54%, 0.9853 60.71%, 1.0012 68.14%, 1.0056 72.24%, 0.9981 86.66%, 1 100%);
  --elastic-ease-out: linear(0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1);
  --transform-ease: cubic-bezier(.32, .72, 0, 1);

  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: calc(var(--glide) - var(--icon));
  height: 52px; padding: 0 var(--pad);
  border: 0; background: none;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform 1.05s var(--elastic-ease);
  -webkit-tap-highlight-color: transparent;
}
.glide:active { transform: scaleX(0.955) scaleY(0.954); }
.glide:focus-visible { outline: none; }

.glide__bg {
  position: absolute; inset: 0; z-index: -1; border-radius: 8px;
  transition: transform .75s var(--elastic-ease-out);
}
.glide__text { transition: transform .6s var(--transform-ease); }
.glide__icon { display: grid; width: var(--icon); height: var(--icon); flex: none; }
.glide__item svg { display: block; width: 100%; height: 100%; }
.glide__icon.is-first { position: absolute; left: var(--pad); top: 50%; margin-top: calc(var(--icon) / -2); }
.glide__item {
  grid-area: 1 / 1; display: block; width: 100%; height: 100%;
  transition: transform .6s var(--transform-ease), opacity .2s ease-out;
  transition-delay: calc(.015s * var(--index));
}
.glide__icon.is-first .glide__item { transform: translate3d(calc(var(--glide) * -1), 0, 0); opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .glide:hover .glide__icon.is-last .glide__item,
  .glide:focus-visible .glide__icon.is-last .glide__item {
    transform: translate3d(var(--glide), 0, 0); opacity: 0;
    transition-delay: calc(-.015s * var(--index));
  }
  .glide:hover .glide__icon.is-first .glide__item,
  .glide:focus-visible .glide__icon.is-first .glide__item {
    transform: translate3d(0, 0, 0); opacity: 1;
    transition-delay: calc((.015s * var(--index)) + .2s);
  }
  .glide:hover .glide__text,
  .glide:focus-visible .glide__text { transform: translate3d(var(--glide), 0, 0); transition-delay: .1s; }
  .glide:hover .glide__bg,
  .glide:focus-visible .glide__bg { transform: scaleX(1.015) scaleY(1.034) translateZ(0); }
  .glide:focus-visible .glide__bg { outline: 2px solid var(--ink); outline-offset: 3px; }
}

/* Main button: solid */
.glide.solid { color: var(--btn-ink); font-weight: 700; }
.glide.solid .glide__bg { background: var(--btn-bg); }

/* History: glass. No icon at rest; on hover the icon glides in from the right
   and the text glides left to make room (it starts centred). */
.glide.ghost { --icon: 1rem; --glide: 1.5rem; color: var(--ink); font-weight: 500; padding-left: calc(var(--pad) + var(--glide) / 2); padding-right: calc(var(--pad) + var(--glide) / 2); }
.glide__icon.is-reveal { position: absolute; right: var(--pad); top: 50%; margin-top: calc(var(--icon) / -2); }
.glide__icon.is-reveal .glide__item { transform: translate3d(var(--glide), 0, 0); opacity: 0; }
.glide.ghost .glide__bg { background: var(--ghost); border: 1px solid var(--ghost-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.glide.ghost:hover .glide__bg { background: var(--ghost-hover); }
@media (hover: hover) and (pointer: fine) {
  .glide.ghost:hover .glide__text,
  .glide.ghost:focus-visible .glide__text { transform: translate3d(calc(var(--glide) / -2), 0, 0); }
  .glide:hover .glide__icon.is-reveal .glide__item,
  .glide:focus-visible .glide__icon.is-reveal .glide__item {
    transform: translate3d(0, 0, 0); opacity: 1;
    transition-delay: .2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glide, .glide__bg, .glide__text, .glide__item { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* History drawer */
.drawer {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: 400px; z-index: 3;
  background: var(--panel); backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column;
  transform: translateX(calc(100% + 32px)); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 2; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.drawer { padding-top: 26px; }
.drawer-head { padding-right: 32px; }
.close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; padding: 7px;
  border: 0; border-radius: 8px; background: none; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.close:hover { color: var(--ink); background: var(--hover); }
.close svg { display: block; width: 100%; height: 100%; }
#history-list { list-style: none; margin: 0 -8px; padding: 0; overflow-y: auto; flex: 1; }
#history-list button {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center;
  width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left;
}
#history-list button:hover { background: var(--hover); }
#history-list img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }
#history-list .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
#history-list .c { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
#history-list [aria-current] .c::before { content: "Playing now · "; color: var(--accent); }
/* Slim scrollbar for the history list: a soft pill, no track, no arrows.
   Chrome/Safari/Edge use the ::-webkit rules; Firefox gets the standard properties. */
#history-list::-webkit-scrollbar { width: 10px; }
#history-list::-webkit-scrollbar-track { background: transparent; }
#history-list::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border: 3px solid transparent; background-clip: padding-box;
  border-radius: 999px; min-height: 40px;
}
#history-list::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-hover); }
#history-list::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  #history-list { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
}

.clear { margin-top: 12px; align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 14px; padding: 6px 0; }
.clear:hover { color: var(--ink); }

/* ---- Text-style button (bottom left, "Send another") ---- */
.link {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px;
  transition: color .15s ease;
}
.link:hover { color: var(--ink); }
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ---- Contact panel ---- */
.contact-form {
  flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form[hidden], .sent[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 14px; font-weight: 600; }
.label .req { color: var(--muted); font-weight: 400; margin-left: 2px; }
.label em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  font: 400 15px/1.45 var(--font); color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line); border-radius: 8px;
  outline: none; resize: vertical;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { min-height: 120px; }
.field input::placeholder { color: var(--placeholder); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { border-color: var(--focus); }

.video-preview { display: flex; align-items: center; gap: 12px; margin-top: -6px; font-size: 13px; color: var(--muted); }
.video-preview[hidden] { display: none; }
.video-preview img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha:empty { display: none; }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-error::before { content: "! "; }
.form-error[hidden] { display: none; }

.send { align-self: flex-start; margin-top: 4px; }
.send:disabled { cursor: progress; opacity: 0.7; }

.sent { padding-top: 8px; }
.sent h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.sent p { margin: 0 0 18px; color: var(--muted); }
.sent .link { color: var(--muted); font-size: 14px; }

.contact-form::-webkit-scrollbar { width: 10px; }
.contact-form::-webkit-scrollbar-track { background: transparent; }
.contact-form::-webkit-scrollbar-thumb { background: var(--scroll); border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }
.contact-form::-webkit-scrollbar-button { display: none; height: 0; }

/* ---- Phones and narrow windows ---- */
@media (max-width: 760px) {
  .top { padding: 18px 20px; }
  .small-btn .full { display: none; }
  .small-btn .short { display: inline; }
  .mark { font-size: 28px; }
  .tagline { font-size: 14px; }

  /* Video block fills the width and sits in the middle of the screen */
  .stage {
    flex: 1; justify-content: center;
    width: calc(100vw - 40px); margin: 0 auto; padding-bottom: 0;
  }
  /* On phones, Say hi and History move to the bottom right */
  .top-actions #open-contact { display: none; }
  .actions .glide.ghost { display: none; }
  .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .foot-actions { display: flex; gap: 8px; }
  .foot-actions .small-btn { width: 92px; padding: 0; text-align: center; }
  .below { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 18px; }
  .meta h1 { font-size: 22px; line-height: 1.2; }
  .meta a { font-size: 15px; }

  /* Buttons side by side, full width, Next video first and a bit wider */
  .actions { width: 100%; gap: 10px; }
  .actions .glide { justify-content: center; height: 52px; }
  .actions .glide.solid { order: -1; flex: 1; }
  .actions .glide.ghost { flex: 1; padding-left: 16px; padding-right: 16px; }
  .glide.solid { --pad: 18px; }

  .foot { padding: 0 20px 20px; }
  .foot p { font-size: 13px; }

  /* History fills the screen with a small margin */
  .drawer { top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; padding: 22px 16px 16px; }
  #history-list button { grid-template-columns: 104px 1fr; gap: 12px; }
  #history-list img { width: 104px; }
}
