/* videodioggi theme — generated from src/server/ui/theme.js TOKENS. Local-first, no CDN. */
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-bg: #09090b;
  --color-surface: #111113;
  --color-surface2: #18181b;
  --color-surface-hover: #1f1f23;
  --color-border: #27272a;
  --color-border-strong: #3f3f46;
  --color-text: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-text-faint: #71717a;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-ink: #ffffff;
  --color-accent-soft: rgba(99,102,241,0.12);
  --color-weather: #38bdf8;
  --color-security: #f43f5e;
  --color-finance: #2dd4bf;
  --color-neutral-tone: #a1a1aa;
  --color-ok: #34d399;
  --font-sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --size-xs: 0.6875rem;
  --size-sm: 0.8125rem;
  --size-base: 0.9375rem;
  --size-md: 1.0625rem;
  --size-lg: 1.375rem;
  --size-xl: 1.75rem;
  --size-xxl: 2.25rem;
  --size-display: clamp(2.5rem, 5.2vw, 4rem);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 800;
  --weight-black: 900;
  --leading-tight: 1.1;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 3.5rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.38);
  --shadow-lg: 0 14px 38px rgba(0,0,0,0.46);
  --shadow-xl: 0 28px 64px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
  --shadow-glow-strong: 0 8px 44px rgba(99,102,241,0.45);
  --motion-xfast: 90ms;
  --motion-fast: 140ms;
  --motion-base: 240ms;
  --motion-slow: 480ms;
  --motion-slower: 760ms;
  --motion-ease: cubic-bezier(0.4,0,0.2,1);
  --motion-out: cubic-bezier(0.16,1,0.3,1);
  --motion-spring: cubic-bezier(0.34,1.56,0.64,1);
  --motion-inout: cubic-bezier(0.65,0,0.35,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-strong); }
/* ---- motion library ---- */
@keyframes vdoFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vdoRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes vdoScaleIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vdoShimmer { 0% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes vdoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes vdoGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.vdo-fade { animation: vdoFade var(--motion-slow) var(--motion-out) both; }

/* Staggered entrance — crawler-safe (always ends visible via both-fill; same guarantee as .vdo-fade)
   and zero-CLS. Each item rises+fades in with a per-item delay from --i (its index), so grids cascade
   instead of popping in all at once. No JS, no hidden-forever risk. reduced-motion neutralises it below. */
.vdo-reveal { animation: vdoRise var(--motion-slow) var(--motion-out) both; animation-delay: calc(var(--i, 0) * 55ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .vdo-reveal, .vdo-fade { animation: none !important; opacity: 1 !important; transform: none !important; }
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--color-accent-soft); color: var(--color-accent-hover); }

/* ---- layout utilities (curated; enough to compose without a utility framework) ---- */
.vdo-container { max-width: 80rem; margin: 0 auto; padding: 0 var(--space-5); }
.vdo-header-inner { max-width: 80rem; margin: 0 auto; padding: var(--space-4) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.vdo-main { flex: 1; width: 100%; max-width: 80rem; margin: 0 auto; padding: var(--space-6) var(--space-5) var(--space-8); }
.vdo-footer-inner { max-width: 80rem; margin: 0 auto; padding: var(--space-6) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.vdo-preview { color: var(--color-text-muted); font-size: var(--size-sm); line-height: var(--leading-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vdo-mono { font-family: var(--font-mono); }
.vdo-stack { display: flex; flex-direction: column; }
.vdo-row { display: flex; align-items: center; }
.vdo-row-between { display: flex; align-items: center; justify-content: space-between; }
.vdo-wrap { flex-wrap: wrap; }
.vdo-gap-1 { gap: var(--space-1); } .vdo-gap-2 { gap: var(--space-2); }
.vdo-gap-3 { gap: var(--space-3); } .vdo-gap-4 { gap: var(--space-4); }
.vdo-gap-5 { gap: var(--space-5); } .vdo-gap-6 { gap: var(--space-6); }
.vdo-grid { display: grid; gap: var(--space-5); }
.vdo-grid-cards { grid-template-columns: repeat(auto-fill, minmax(var(--grid-min, 20rem), 1fr)); gap: var(--grid-gap, var(--space-5)); }
.vdo-grid-wall { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0; }
.vdo-flex-1 { flex: 1; }
.vdo-mt-auto { margin-top: auto; }
.vdo-hidden { display: none; }

/* ---- primitives ---- */
.vdo-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  border-bottom: 1px solid var(--color-border);
}
.vdo-brand { display: flex; align-items: center; gap: var(--space-3); }
.vdo-brand-mark {
  position: relative; height: 2.4rem; width: 2.4rem; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-accent-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
  transition: transform var(--motion-base) var(--motion-spring);
}
.vdo-brand-mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-glow-strong); opacity: 0; animation: vdoGlow 4s var(--motion-inout) infinite; }
.vdo-brand:hover .vdo-brand-mark { transform: translateY(-1px) rotate(-4deg); }
.vdo-brand-name { font-weight: var(--weight-bold); letter-spacing: -0.01em; line-height: 1.1; }
.vdo-brand-sub { font-size: var(--size-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: var(--tracking-wider); font-weight: var(--weight-semibold); }

/* ---- hero / masthead (showcase) ---- */
.vdo-hero { position: relative; padding: var(--space-9) 0 var(--space-7); }
.vdo-hero::before { content: ""; position: absolute; inset: -30% 25% auto -8%; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(55% 60% at 28% 22%, color-mix(in srgb, var(--color-accent) 20%, transparent), transparent 70%); filter: blur(6px); }
.vdo-hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--size-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--color-accent-hover); }
.vdo-hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-ok) 22%, transparent); animation: vdoGlow 2.4s var(--motion-inout) infinite; }
.vdo-hero-title { margin: var(--space-3) 0 0; font-size: var(--size-display); font-weight: var(--weight-black); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-text); max-width: 18ch; }
.vdo-hero-title .grad { background: linear-gradient(120deg, var(--color-accent-hover), var(--color-weather)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vdo-hero-sub { margin: var(--space-4) 0 0; font-size: var(--size-md); color: var(--color-text-muted); max-width: 54ch; line-height: var(--leading-snug); }
.vdo-hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-7); margin-top: var(--space-6); }
.vdo-hero-stat { display: flex; flex-direction: column; }
.vdo-hero-stat b { font-size: var(--size-lg); font-weight: var(--weight-black); color: var(--color-text); font-variant-numeric: tabular-nums; }
.vdo-hero-stat span { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-text-faint); font-weight: var(--weight-semibold); }

.vdo-card {
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-spring), box-shadow var(--motion-base) var(--motion-ease);
}
.vdo-card:hover { border-color: var(--color-border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vdo-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }

.vdo-thumb { position: relative; aspect-ratio: 16/9; background: #000; display: block; overflow: hidden; }
.vdo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vdo-thumb .preview-anim { position: absolute; inset: 0; opacity: 0; transition: opacity var(--motion-base) var(--motion-ease); }
.vdo-thumb:hover .preview-anim { opacity: 1; }
.vdo-iconbtn.is-ok { background: var(--color-ok); color: #06281c; border-color: transparent; }
.vdo-thumb-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity var(--motion-base) var(--motion-ease);
}
.vdo-thumb-play span {
  height: 2.75rem; width: 2.75rem; border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2);
}
.vdo-card:hover .vdo-thumb-play { opacity: 0; }

.vdo-title { font-weight: var(--weight-bold); font-size: var(--size-md); line-height: var(--leading-tight); letter-spacing: -0.01em; color: var(--color-text); }
.vdo-title-lg { font-size: var(--size-xl); }

.vdo-chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--size-xs); font-weight: var(--weight-semibold);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--chip-tone, var(--color-neutral-tone)) 40%, transparent);
  color: var(--chip-tone, var(--color-neutral-tone));
  background: color-mix(in srgb, var(--chip-tone, var(--color-neutral-tone)) 10%, transparent);
  white-space: nowrap;
}
.vdo-chip svg { width: 0.85em; height: 0.85em; }

.vdo-meta { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--size-xs); color: var(--color-text-faint); }
.vdo-meta svg { width: 0.9em; height: 0.9em; opacity: 0.8; }

.vdo-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.vdo-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2rem; width: 2rem; border-radius: var(--radius-md);
  background: var(--color-surface2); border: 1px solid var(--color-border);
  color: var(--color-text-muted); cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.vdo-iconbtn:hover { background: var(--color-surface-hover); color: var(--color-text); border-color: var(--color-border-strong); }
.vdo-iconbtn svg { width: 1rem; height: 1rem; }
.vdo-iconbtn-accent { background: var(--color-accent); color: var(--color-accent-ink); border-color: transparent; }
.vdo-iconbtn-accent:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }

.vdo-toggle { display: inline-flex; background: var(--color-surface2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 2px; }
.vdo-toggle button { border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: var(--size-sm); font-weight: var(--weight-semibold); padding: 0.35rem 0.9rem; border-radius: calc(var(--radius-md) - 2px); cursor: pointer; }
.vdo-toggle button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); }

.vdo-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.vdo-label { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: var(--tracking-wider); font-weight: var(--weight-bold); color: var(--color-text-faint); }
.vdo-input { width: 100%; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0.45rem 0.6rem; color: var(--color-text-muted); font-family: var(--font-mono); font-size: var(--size-xs); }
.vdo-divider { height: 1px; background: var(--color-border); border: 0; }

/* AI-disclosure badge + tooltip (EU AI Act) + language switcher — tokenised (was hand-inlined per page) */
.vdo-ai { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--size-xs); font-weight: var(--weight-bold); cursor: help; user-select: none; transition: border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.vdo-ai:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.vdo-ai:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.vdo-ai-tip { position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, 82vw); padding: var(--space-3); background: var(--color-surface2); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); font-size: var(--size-xs); line-height: var(--leading-normal); font-weight: var(--weight-normal); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-out), visibility var(--motion-fast); z-index: 60; }
.vdo-ai:hover .vdo-ai-tip, .vdo-ai:focus-within .vdo-ai-tip { opacity: 1; visibility: visible; transform: none; }
.vdo-ai-note { color: var(--color-text-faint); font-size: var(--size-xs); line-height: 1.5; max-width: 74ch; }
.vdo-langs { display: inline-flex; gap: var(--space-1); flex-wrap: wrap; }
.vdo-lang-btn { font: inherit; cursor: pointer; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-border); background: transparent; color: var(--color-text-muted); font-size: var(--size-xs); line-height: 1.6; transition: background var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.vdo-lang-btn:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.vdo-lang-btn[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); border-color: transparent; }
.vdo-lang-off { display: none !important; }

/* ---- watch page ---- */
.vdo-backlink { display: inline-flex; align-items: center; gap: var(--space-2); width: fit-content; font-size: var(--size-sm); font-weight: var(--weight-semibold); color: var(--color-accent-hover); transition: color var(--motion-fast) var(--motion-ease); }
.vdo-backlink:hover { color: var(--color-accent); }
.vdo-backlink svg { width: 1em; height: 1em; }
.vdo-watch-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .vdo-watch-grid { grid-template-columns: 1fr; } }
.vdo-video-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.vdo-video-frame video { width: 100%; height: 100%; object-fit: cover; }
/* centered player: title + video + a compact share bar, kept above the fold */
.vdo-watch-head { text-align: center; }
.vdo-watch-head .vdo-row { justify-content: center; }
.vdo-player { width: 100%; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.vdo-share-bar { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }

/* clickable (cue-timed) transcript segments → seek */
.vdo-seg-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; cursor: pointer; border: 0; border-left: 2px solid color-mix(in srgb, var(--color-accent) 40%, transparent); padding: 0.2rem 0 0.2rem var(--space-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease); }
.vdo-seg-btn:hover, .vdo-seg-btn:focus-visible { background: var(--color-surface2); border-left-color: var(--color-accent); outline: none; }
.vdo-seg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.vdo-seg-ts { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--size-xs); font-family: var(--font-mono); color: var(--color-accent-hover); flex: none; }
.vdo-seg-ts svg { width: 0.7em; height: 0.7em; }

/* end-card ("watch next") — hidden until the video 'ended' event */
.vdo-endcard { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: color-mix(in srgb, #000 82%, transparent); backdrop-filter: blur(6px); z-index: 3; animation: vdoFade var(--motion-base) var(--motion-ease) both; overflow-y: auto; }
.vdo-endcard[hidden] { display: none; }
.vdo-endcard-title { font-size: var(--size-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wider); color: #fff; }
.vdo-endcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); flex: 1; }
.vdo-endcard-card { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.vdo-endcard-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.vdo-endcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vdo-endcard-thumb svg { position: absolute; inset: 0; margin: auto; width: 1.6rem; height: 1.6rem; color: #fff; opacity: 0.85; }
.vdo-endcard-card:hover .vdo-endcard-thumb { outline: 2px solid var(--color-accent); }
.vdo-endcard-label { font-size: var(--size-xs); line-height: var(--leading-snug); color: #f4f4f5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vdo-endcard-replay { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: var(--size-sm); font-weight: var(--weight-semibold); color: #fff; background: var(--color-accent); border: 0; border-radius: var(--radius-md); padding: 0.35rem 0.8rem; cursor: pointer; }
.vdo-endcard-replay svg { width: 0.9em; height: 0.9em; }
@media (max-width: 480px) { .vdo-endcard-grid { grid-template-columns: 1fr; } }
.vdo-transcript { display: flex; flex-direction: column; gap: var(--space-3); max-height: 30rem; overflow-y: auto; padding-right: var(--space-2); }
.vdo-seg { border-left: 2px solid color-mix(in srgb, var(--color-accent) 40%, transparent); padding: 0.15rem 0 0.15rem var(--space-3); }
.vdo-seg-label { display: block; font-size: var(--size-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--weight-bold); color: var(--color-text-faint); }
.vdo-seg-text { margin: 0.15rem 0 0; font-size: var(--size-sm); color: var(--color-text-muted); line-height: var(--leading-normal); }
.vdo-faq-item + .vdo-faq-item { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.vdo-faq-q { margin: 0; font-size: var(--size-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.vdo-faq-a { margin: 0.2rem 0 0; font-size: var(--size-sm); color: var(--color-text-muted); line-height: var(--leading-normal); }
.vdo-field { display: flex; gap: var(--space-2); align-items: center; }
.vdo-field .vdo-input { flex: 1; min-width: 0; }
.vdo-pagehead-meta { font-size: var(--size-xs); color: var(--color-text-faint); }

/* video wall */
.vdo-wall-item { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface); }
.vdo-wall-item video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-slow) var(--motion-ease); }
.vdo-wall-item:hover video { transform: scale(1.08); z-index: 2; }

.vdo-footer { border-top: 1px solid var(--color-border); color: var(--color-text-faint); font-size: var(--size-xs); }

/* ================================================================================================
   Procedural shell — client-signal variants (M4). The head engine (shell.contract.js) stamps
   data-shell-* on <html> before first paint; these rules react. CSS-only → zero content change,
   zero CLS. No attribute = the canonical default (dark · cozy · day), i.e. the no-JS/crawler view.
   ================================================================================================ */

/* viewport density — the card grid's min column width + gap adapt to the viewport bucket */
:root[data-shell-vp="compact"]  { --grid-min: 100%;  --grid-gap: var(--space-4); }
:root[data-shell-vp="spacious"] { --grid-min: 24rem; --grid-gap: var(--space-6); }

/* time-of-day — a subtle fixed ambient wash behind the page (calm, never gaudy). day = none. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 85% at 50% -12%, var(--ambient, transparent), transparent 62%);
  transition: background var(--motion-slow) var(--motion-ease);
}
:root[data-shell-tod="dawn"]  { --ambient: rgba(251,146,60,0.07); }
:root[data-shell-tod="dusk"]  { --ambient: rgba(244,114,182,0.07); }
:root[data-shell-tod="night"] { --ambient: rgba(56,66,120,0.12); }

/* color scheme — a light token override for prefers-color-scheme:light (accent tokens unchanged) */
:root[data-shell-scheme="light"] {
  --color-bg: #f7f7f8;
  --color-surface: #ffffff;
  --color-surface2: #f1f1f3;
  --color-surface-hover: #e9e9ec;
  --color-border: #e4e4e8;
  --color-border-strong: #c9c9d1;
  --color-text: #18181b;
  --color-text-muted: #52525b;
  --color-text-faint: #8a8a93;
}

@media (max-width: 640px) { .vdo-container { padding: 0 var(--space-4); } }
