/* Onitify — componenten v4.0. Plain CSS, geen build-stap. Laad na de tokens. */
/* ══ Base ═════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* componenten zetten zelf display; hidden moet altijd winnen */
body {
  margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11" 1;
}
.o-tnum, .t-score-xl, .t-score, .t-clock, .t-stat { font-variant-numeric: tabular-nums; }
.t-label { text-transform: uppercase; }
a, .o-link { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover, .o-link:hover { text-decoration-thickness: 2.5px; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.o-icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.o-icon--sm { width: 18px; height: 18px; }
.o-icon--lg { width: 32px; height: 32px; }
.o-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══ Typografie-klassen (uit tokens.json type.groups) ═══════════════════ */
.t-display-xl { font: 900 72px/68px var(--font-sans); letter-spacing: -0.035em; }
.t-display { font: 900 48px/48px var(--font-sans); letter-spacing: -0.03em; }
.t-h1 { font: 800 32px/36px var(--font-sans); letter-spacing: -0.02em; }
.t-h2 { font: 800 24px/28px var(--font-sans); letter-spacing: -0.015em; }
.t-h3 { font: 700 19px/24px var(--font-sans); letter-spacing: -0.01em; }
.t-body-lg { font: 400 17px/26px var(--font-sans); }
.t-body { font: 400 15px/22px var(--font-sans); }
.t-body-strong { font: 650 15px/22px var(--font-sans); }
.t-small { font: 450 13px/18px var(--font-sans); }
.t-label { font: 800 12px/16px var(--font-sans); letter-spacing: 0.1em; }
.t-button { font: 750 16px/20px var(--font-sans); letter-spacing: -0.005em; }
.t-score-xl { font: 900 120px/100px var(--font-sans); letter-spacing: -0.045em; }
.t-score { font: 900 88px/80px var(--font-sans); letter-spacing: -0.04em; }
.t-clock { font: 800 64px/64px var(--font-sans); letter-spacing: -0.03em; }
.t-stat { font: 900 32px/36px var(--font-sans); letter-spacing: -0.02em; }

/* ══ Motieven ══════════════════════════════════════════════════════════════
   Alles is afgeleid van het beeldmerk: de ring, drie oplopende staafjes,
   de hoek van -16°. Gebruik ze als ritme, nooit als vervanging van het logo. */

/* Drie staafjes: sectiemarkering, divider, mini-merkteken */
.o-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; flex: none; }
.o-bars > i, .o-bars::before, .o-bars::after { content: ""; display: block; width: var(--slash-w); border-radius: var(--radius-xs); transform: skewX(var(--slash-angle)); }
.o-bars::before { height: 76%; background: var(--bar-1); }
.o-bars > i { height: 100%; background: var(--bar-2); }
.o-bars::after { height: 62%; background: var(--bar-3); }
.o-bars--lg { height: 28px; gap: 5px; }
.o-bars--lg > i, .o-bars--lg::before, .o-bars--lg::after { width: 9px; }

/* Sectielabel met staafjes ervoor */
.o-label { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3);
  font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.o-label .o-bars { height: 11px; gap: 2px; }
.o-label .o-bars > i, .o-label .o-bars::before, .o-label .o-bars::after { width: 4px; }

/* Strepenpatroon evenwijdig aan de staafjes */
.o-stripes {
  background-image: repeating-linear-gradient(var(--slash-stripe), var(--o-stripe, var(--line)) 0 2px, transparent 2px 12px);
}
.o-stripes--red { --o-stripe: color-mix(in srgb, var(--red) 28%, transparent); }

/* Divider: haarlijn met de drie staafjes in het midden */
.o-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-6) 0; }
.o-divider::before, .o-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Schuine streep — tab-indicator, clubband, accentstreep */
.o-slash { display: inline-block; width: 6px; height: 20px; border-radius: var(--radius-xs); background: var(--o-slash, var(--red)); transform: skewX(var(--slash-angle)); flex: none; }

/* Live-ring: rode stip die ademt in een ring */
.o-live-dot { position: relative; display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--live); }
.o-live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live);
  animation: o-breathe var(--dur-live) var(--ease-out) infinite; }
@keyframes o-breathe { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* ══ Logo in de UI ════════════════════════════════════════════════════════
   Het beeldmerk vervangt de O: nooit "Onitify" naast het merk of naast de drie staafjes zetten. */
.o-wordmark { display: block; height: 20px; width: auto; flex: none; }
.o-lockup { display: inline-flex; align-items: center; gap: .32em; font-weight: 800; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.o-lockup .o-wordmark { height: 1.15em; }
.o-lockup__mod { color: var(--ink-2); }

/* Voettekst: wordmark + afzender. Nooit de losse staafjes. */
/* Vullingen voor de inline SVG van beeldmerk en wordmark (onitify.js): klassen i.p.v. style-attributen (CSP). */
.o-fill-bar1 { fill: var(--bar-1); }
.o-fill-bar2 { fill: var(--bar-2); }
.o-fill-bar3 { fill: var(--bar-3); }
.o-fill-wm { fill: var(--o-wm-ink, var(--ink)); }

.o-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: var(--space-6) var(--space-4); font-size: 13px; line-height: 18px; color: var(--ink-2); text-align: center; }
.o-footer .o-wordmark { height: 18px; }
.o-footer a { color: var(--ink-2); }
.o-footer__by { display: inline-flex; align-items: center; gap: 8px; }

/* ══ Clubidentiteit (klantdata) ═══════════════════════════════════════════
   De club ziet zichzelf terug: eigen logo, eigen kleur, eigen naam. Onitify levert de vorm. */
.o-clublogo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius-sm); background: #ffffff; box-shadow: 0 0 0 1px var(--line); }
.o-clublogo img, .o-clublogo svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.o-clublogo--lg { width: 72px; height: 72px; border-radius: var(--radius-md); padding: 6px; box-shadow: var(--shadow-2); }
.o-clublogo--xl { width: 96px; height: 96px; border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-2); }

.o-clubhead {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-5); min-height: 132px; border-radius: var(--radius-lg);
  background: var(--club-color); color: var(--club-ink);
}
.o-clubhead::before { /* clubkleur in Onitify-vorm: schuin strepenvlak rechts */
  content: ""; position: absolute; z-index: -1; top: -10%; bottom: -10%; right: -40px; width: 46%;
  transform: skewX(var(--slash-angle));
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--club-ink) 16%, transparent) 0 3px, transparent 3px 14px);
}
.o-clubhead::after { /* één massieve schuine band in de inktkleur: het accent */
  content: ""; position: absolute; z-index: -1; top: -10%; bottom: -10%; right: 46%; width: 10px;
  background: color-mix(in srgb, var(--club-ink) 22%, transparent); transform: skewX(var(--slash-angle));
}
.o-clubhead__text { flex: 1; min-width: 180px; }
.o-clubhead__name { margin: 0; font: 900 30px/32px var(--font-sans); letter-spacing: -.025em; }
.o-clubhead__sub { margin: 6px 0 0; font: 700 14px/18px var(--font-sans); }
.o-clubhead__stats { display: flex; gap: var(--space-6); }
.o-clubhead__stats .o-stat__label { color: inherit; font-weight: 600; }
@media (max-width: 559px) { .o-clubhead__name { font-size: 26px; line-height: 28px; } .o-clubhead::before { width: 38%; } .o-clubhead::after { right: 38%; } }

/* ══ Knoppen ═══════════════════════════════════════════════════════════════ */
.o-btn {
  --o-h: var(--tap);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--o-h); padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-sm);
  font: 750 16px/20px var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), color var(--dur-2);
}
.o-btn:active { transform: translateY(2px); }
.o-btn[disabled], .o-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .42; transform: none; }
.o-btn .o-icon { width: 20px; height: 20px; }

.o-btn--primary { position: relative; overflow: hidden; background: var(--red); color: var(--on-red); box-shadow: var(--shadow-press); font-weight: 800; }
.o-btn--primary::after { /* streepjes-glans bij hover: het motief in beweging */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image: repeating-linear-gradient(var(--slash-stripe), rgba(255,255,255,.14) 0 3px, transparent 3px 14px);
  transition: opacity var(--dur-2) var(--ease-out);
}
.o-btn--primary:hover { background: var(--red-press); }
.o-btn--primary:hover::after { opacity: 1; }
.o-btn--primary:active { box-shadow: none; transform: translateY(3px); }

.o-btn--secondary { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.o-btn--secondary:hover { background: var(--surface-3); }

.o-btn--ghost { background: transparent; color: var(--ink); }
.o-btn--ghost:hover { background: var(--surface-2); }

.o-btn--danger { background: transparent; color: var(--red-text); box-shadow: inset 0 0 0 2px var(--red-text); }
.o-btn--danger:hover { background: var(--red-soft); }

.o-btn--sm { --o-h: 36px; padding: 0 var(--space-3); font-size: 14px; }   /* alleen laptop/beheer */
.o-btn--lg { --o-h: var(--tap-primary); padding: 0 var(--space-6); font-size: 17px; }
.o-btn--block { display: flex; width: 100%; }
.o-btn--icon { width: var(--o-h); padding: 0; }

/* Score-knop: teamkleur is klantdata, de inkt wordt berekend */
.o-btn--score {
  --o-h: var(--tap-score); --o-team: var(--team-home); --o-team-ink: var(--team-home-ink);
  width: 100%; background: var(--o-team); color: var(--o-team-ink);
  font: 900 32px/1 var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.22);
}
.o-btn--score:active { box-shadow: none; }
.o-btn--score.is-away { --o-team: var(--team-away); --o-team-ink: var(--team-away-ink); }

/* ══ Invoer ════════════════════════════════════════════════════════════════ */
.o-field { display: grid; gap: 6px; }
.o-field__label { font-size: 14px; line-height: 18px; font-weight: 650; color: var(--ink); }
.o-field__hint { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.o-field__error { display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--red-text); }
.o-field__error .o-icon { width: 16px; height: 16px; }

.o-input, .o-select select, .o-textarea {
  width: 100%; min-height: 48px; padding: 0 var(--space-4);
  background: var(--surface-2); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 450 16px/22px var(--font-sans);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.o-textarea { padding: var(--space-3) var(--space-4); min-height: 96px; resize: vertical; }
.o-input::placeholder, .o-textarea::placeholder { color: var(--ink-3); }
.o-input:focus, .o-select select:focus, .o-textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.o-input[aria-invalid="true"] { border-color: var(--red-text); }
.o-select { position: relative; }
.o-select select { appearance: none; padding-right: 44px; cursor: pointer; }
.o-select .o-icon { position: absolute; right: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-2); width: 20px; height: 20px; }

/* Pincode: vier grote vakken, cijfers in tabular-nums */
.o-pin { display: flex; gap: var(--space-3); }
.o-pin input {
  width: 60px; height: 68px; text-align: center; padding: 0;
  font: 800 32px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.o-pin input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.o-pin input.is-filled { border-color: var(--ink); }

/* Schakelaar: aan = rood (een keuze met gevolgen voor de uitzending) */
.o-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--tap); cursor: pointer; }
.o-switch input { appearance: none; margin: 0; width: 52px; height: 32px; flex: none; border-radius: var(--radius-pill);
  background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; cursor: pointer;
  transition: background var(--dur-2) var(--ease-out); }
.o-switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink-2); transition: transform var(--dur-2) var(--ease-snap), background var(--dur-2); }
.o-switch input:checked { background: var(--red); box-shadow: none; }
.o-switch input:checked::after { transform: translateX(20px); background: var(--on-red); }

/* Vinkje */
.o-check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--tap); padding: 10px 0; cursor: pointer; }
.o-check input { appearance: none; margin: 0; width: 24px; height: 24px; flex: none; border-radius: var(--radius-sm);
  border: 2px solid var(--line-strong); background: var(--surface-1); display: grid; place-content: center; cursor: pointer; }
.o-check input::after { content: ""; width: 12px; height: 7px; border: solid var(--on-red); border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform var(--dur-2) var(--ease-snap); }
.o-check input:checked { background: var(--red); border-color: var(--red); }
.o-check input:checked::after { transform: rotate(-45deg) scale(1); }

/* ══ Kaarten en tegels ═════════════════════════════════════════════════════ */
.o-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: var(--space-4); }
.o-card--flush { padding: 0; overflow: hidden; }
.o-card__title { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.o-card__meta { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
@media (min-width: 720px) { .o-card { padding: var(--space-5); } }

/* Moduletegel: Stream · Club · Trainer. Het strepenvlak rechtsboven is het merk, de inhoud is de module. */
.o-tile {
  position: relative; overflow: hidden; display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-5); min-height: 176px;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  color: var(--ink); text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.o-tile::before { /* schuin strepenvlak, afgesneden onder -16° */
  content: ""; position: absolute; top: 0; right: -28px; width: 132px; height: 100%;
  transform: skewX(var(--slash-angle)); transform-origin: top;
  background-image: repeating-linear-gradient(90deg, var(--o-tile-stripe, color-mix(in srgb, var(--ink) 12%, transparent)) 0 2px, transparent 2px 10px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
a.o-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.o-tile__glyph { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--red); color: var(--on-red); }
.o-tile__glyph .o-icon { width: 24px; height: 24px; }
.o-tile__name { margin: 0; font-size: 22px; line-height: 26px; font-weight: 900; letter-spacing: -0.02em; }
.o-tile__name span { color: var(--ink-2); font-weight: 700; }
.o-tile__desc { margin: 0; color: var(--ink-2); }
.o-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.o-tile__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink); }
.o-tile.is-off { box-shadow: none; background: transparent; border-style: dashed; border-color: var(--line-strong); }
.o-tile.is-off .o-tile__glyph { background: var(--surface-3); color: var(--ink-2); }
.o-tile.is-off::before { display: none; }

/* Kengetal */
.o-stat { display: grid; gap: 2px; }
.o-stat__value { font: 900 32px/36px var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.o-stat__label { font-size: 13px; line-height: 18px; color: var(--ink-2); }

/* ══ Tabs en segmentkeuze ══════════════════════════════════════════════════ */
.o-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.o-tab {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-4); border: 0; background: none; cursor: pointer;
  font: 700 15px/20px var(--font-sans); color: var(--ink-2); white-space: nowrap;
}
.o-tab:hover { color: var(--ink); }
.o-tab[aria-selected="true"] { color: var(--ink); }
.o-tab[aria-selected="true"]::after { /* schuine rode indicator */
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px; height: 4px;
  background: var(--red); border-radius: var(--radius-xs) var(--radius-xs) 0 0; transform: skewX(var(--slash-angle));
}
.o-tab .o-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink); font-size: 12px; line-height: 20px; font-weight: 800; text-align: center; }

.o-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: calc(var(--radius-sm) + 4px); box-shadow: inset 0 0 0 1px var(--line); }
.o-seg--block { display: flex; }
.o-seg--block .o-seg__btn { flex: 1; }
.o-seg__btn {
  min-height: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  font: 700 15px/20px var(--font-sans); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2);
}
.o-seg__btn:hover { color: var(--ink); }
.o-seg__btn[aria-pressed="true"], .o-seg__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* ══ Lijsten ═══════════════════════════════════════════════════════════════ */
.o-list { list-style: none; margin: 0; padding: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.o-list__item { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 10px var(--space-4); }
.o-list__item + .o-list__item { border-top: 1px solid var(--line); }
a.o-list__item, button.o-list__item { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
a.o-list__item:hover, button.o-list__item:hover { background: var(--surface-2); }
.o-list__lead { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); overflow: hidden; }
.o-list__lead img { width: 100%; height: 100%; object-fit: contain; }
.o-list__body { flex: 1; min-width: 0; }
.o-list__title { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-list__meta { display: block; font-size: 13px; line-height: 18px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-list__trail { flex: none; display: flex; align-items: center; gap: var(--space-2); color: var(--ink-2); }
/* Teamkleur als schuine streep i.p.v. een stip: herkenbaar Onitify, de kleur blijft van de club */
.o-team-mark { width: 8px; height: 28px; flex: none; border-radius: var(--radius-xs); background: var(--o-team, var(--club-color)); transform: skewX(var(--slash-angle)); box-shadow: inset 0 0 0 1px var(--line); }

/* ══ Badges ════════════════════════════════════════════════════════════════ */
.o-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2);
  font: 800 12px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.o-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-badge--plain::before { display: none; }
.o-badge--success { background: var(--success-soft); color: var(--success); }
.o-badge--warning { background: var(--warning-soft); color: var(--warning); }
.o-badge--danger { background: var(--red-soft); color: var(--red-text); }
.o-badge--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }

/* LIVE: parallellogram in Onit Red, rechte tekst, ademende ring */
.o-live {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px 0 10px;
  color: var(--on-red); font: 900 13px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
}
.o-live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--live); border-radius: var(--radius-xs); transform: skewX(var(--slash-angle)); }
.o-live .o-live-dot { width: 8px; height: 8px; background: var(--on-red); }
.o-live .o-live-dot::after { border-color: var(--on-red); }
.o-live__time { font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .9; }
.o-live--lg { height: 36px; padding: 0 16px 0 14px; font-size: 15px; }
.o-live.is-idle::before { background: var(--surface-3); }
.o-live.is-idle { color: var(--ink-2); }
.o-live.is-idle .o-live-dot { background: var(--ink-3); }
.o-live.is-idle .o-live-dot::after { display: none; }

/* ══ Toasts en meldingen ═══════════════════════════════════════════════════ */
.o-toast-host { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 16px); z-index: var(--z-toast); display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.o-toast-host > .o-toast { pointer-events: auto; }
.o-toast {
  display: flex; align-items: center; gap: var(--space-3); max-width: 440px; min-height: 52px; padding: 10px var(--space-4);
  background: var(--inverse); color: var(--on-inverse); border-radius: var(--radius-md); box-shadow: var(--shadow-2);
  font-weight: 600; animation: o-rise var(--dur-3) var(--ease-out) both;
}
.o-toast .o-icon { width: 22px; height: 22px; }
.o-toast__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.o-toast--success .o-toast__icon { background: var(--success); color: #0b0b0a; }
.o-toast--danger .o-toast__icon { background: var(--red); color: var(--on-red); }
.o-toast--live .o-toast__icon { background: var(--red); color: var(--on-red); }
.o-toast__action { margin-left: auto; padding: 0 0 0 var(--space-3); border: 0; background: none; color: inherit; font: 800 15px/1 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: var(--tap); }
@keyframes o-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.o-notice { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); color: var(--ink); }
.o-notice > .o-icon { margin-top: 1px; color: var(--ink-2); }
.o-notice__title { display: block; font-weight: 750; }
.o-notice--success { background: var(--success-soft); } .o-notice--success > .o-icon { color: var(--success); }
.o-notice--warning { background: var(--warning-soft); } .o-notice--warning > .o-icon { color: var(--warning); }
.o-notice--danger { background: var(--red-soft); } .o-notice--danger > .o-icon { color: var(--red-text); }

/* ══ Dialoog en sheet ══════════════════════════════════════════════════════ */
.o-scrim { position: fixed; inset: 0; z-index: var(--z-dialog); background: var(--scrim); display: grid; place-items: center; padding: var(--space-4); animation: o-fade var(--dur-3) var(--ease-out) both; }
.o-dialog {
  position: relative; width: min(440px, 100%); background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: var(--space-6); display: grid; gap: var(--space-4); animation: o-rise var(--dur-3) var(--ease-out) both; overflow: hidden;
}
.o-dialog::before { content: ""; position: absolute; left: var(--space-6); top: 0; width: 56px; height: 5px; background: var(--red); transform: skewX(var(--slash-angle)); border-radius: 0 0 var(--radius-xs) var(--radius-xs); }
.o-dialog--danger::before { background: var(--red-text); }
.o-dialog__title { margin: 0; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.015em; }
.o-dialog__body { margin: 0; color: var(--ink-2); }
.o-dialog__actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; }
.o-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); }
@media (max-width: 559px) {
  .o-scrim--sheet { place-items: end stretch; padding: 0; }
  .o-scrim--sheet .o-dialog { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .o-dialog__actions { flex-direction: column-reverse; }
  .o-dialog__actions .o-btn { width: 100%; }
}
@keyframes o-fade { from { opacity: 0; } }

/* ══ Lege toestand ═════════════════════════════════════════════════════════ */
.o-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-6); }
.o-empty__art { position: relative; width: 112px; height: 112px; margin-bottom: var(--space-2); display: grid; place-items: center; }
.o-empty__art::before { /* de ring, gestippeld: hier komt nog iets */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 10px dashed var(--line-strong); opacity: .55;
}
.o-empty__art .o-bars { height: 44px; gap: 7px; }
.o-empty__art .o-bars > i, .o-empty__art .o-bars::before, .o-empty__art .o-bars::after { width: 12px; }
.o-empty__art .o-bars::before { background: var(--surface-3); } .o-empty__art .o-bars > i { background: var(--line-strong); }
.o-empty__title { margin: 0; font-size: 22px; line-height: 26px; font-weight: 900; letter-spacing: -0.02em; }
.o-empty__text { margin: 0; max-width: 34ch; color: var(--ink-2); }
.o-empty__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-2); }

/* ══ Laders ════════════════════════════════════════════════════════════════ */
/* Merk-lader: de drie staafjes gaan om de beurt omhoog */
.o-loader { display: inline-flex; align-items: flex-end; gap: 5px; height: 32px; }
.o-loader > i { width: 8px; border-radius: var(--radius-xs); transform: skewX(var(--slash-angle)); transform-origin: bottom; animation: o-rise-bar var(--dur-live) var(--ease-in-out) infinite; }
.o-loader > i:nth-child(1) { height: 76%; background: var(--bar-1); }
.o-loader > i:nth-child(2) { height: 100%; background: var(--bar-2); animation-delay: 160ms; }
.o-loader > i:nth-child(3) { height: 62%; background: var(--bar-3); animation-delay: 320ms; }
.o-loader--sm { height: 18px; gap: 3px; } .o-loader--sm > i { width: 5px; }
@keyframes o-rise-bar { 0%, 100% { scale: 1 .45; } 35% { scale: 1 1; } 70% { scale: 1 .7; } }

/* Ring-spinner voor in knoppen */
.o-spinner { width: 20px; height: 20px; border-radius: 50%; border: var(--ring-w) solid currentColor; border-right-color: transparent; animation: o-spin 700ms linear infinite; flex: none; }
@keyframes o-spin { to { rotate: 360deg; } }

/* Voortgang: rood, met schuine strepen die meelopen */
.o-progress { height: 10px; border-radius: var(--radius-xs); background: var(--surface-3); overflow: hidden; }
.o-progress > i { display: block; height: 100%; width: var(--o-value, 40%); background-color: var(--red); border-radius: var(--radius-xs);
  background-image: repeating-linear-gradient(var(--slash-stripe), rgba(255,255,255,.22) 0 4px, transparent 4px 12px); background-size: 24px 100%;
  animation: o-march 900ms linear infinite; transition: width var(--dur-3) var(--ease-out); }
@keyframes o-march { to { background-position: 24px 0; } }

/* Voortgangsring (bv. checklist 3/5): rode ring zoals in het beeldmerk */
.o-ring { --o-value: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  background: radial-gradient(closest-side, var(--surface-1) calc(100% - 7px), transparent calc(100% - 6px)),
              conic-gradient(var(--red) calc(var(--o-value) * 1%), var(--surface-3) 0); }

.o-skeleton { display: block; height: 14px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: o-shimmer 1.4s linear infinite; }
@keyframes o-shimmer { to { background-position: -200% 0; } }

/* ══ Navigatie ═════════════════════════════════════════════════════════════ */
.o-topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--topbar-h); padding: 6px var(--space-2) 6px var(--space-4);
  background: var(--surface-1); border-bottom: 1px solid var(--line);
}
.o-topbar__club { display: flex; align-items: center; gap: var(--space-3); min-width: 0; flex: 1; }
.o-topbar__logo { width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); background: #ffffff; box-shadow: 0 0 0 1px var(--line); object-fit: contain; display: grid; place-items: center; overflow: hidden; }
.o-topbar__logo img, .o-topbar__logo svg { width: 100%; height: 100%; object-fit: contain; }
.o-topbar__band { /* clubkleur als schuine band: klantdata, het merk draagt hem */
  width: 6px; height: 28px; flex: none; border-radius: var(--radius-xs); background: var(--club-color); transform: skewX(var(--slash-angle)); }
.o-topbar__text { min-width: 0; }
.o-topbar__title { display: block; font-weight: 800; font-size: 16px; line-height: 20px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-topbar__sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.o-topbar__sub .o-lockup { font-size: 12px; }
.o-topbar__sub .o-bars { height: 10px; gap: 2px; } .o-topbar__sub .o-bars > i, .o-topbar__sub .o-bars::before, .o-topbar__sub .o-bars::after { width: 3px; }
.o-topbar__actions { display: flex; align-items: center; gap: var(--space-1); flex: none; }
.o-iconbtn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.o-iconbtn:hover { background: var(--surface-2); }

.o-tabbar {
  position: sticky; bottom: 0; z-index: var(--z-topbar);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  min-height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface-1); border-top: 1px solid var(--line);
}
.o-tabbar__item {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: var(--tabbar-h);
  border: 0; background: none; color: var(--ink-2); text-decoration: none; cursor: pointer;
  font: 700 12px/14px var(--font-sans);
}
.o-tabbar__item .o-icon { width: 24px; height: 24px; }
.o-tabbar__item[aria-current="page"] { color: var(--ink); }
.o-tabbar__item[aria-current="page"] .o-icon { color: var(--red-text); }
.o-tabbar__item[aria-current="page"]::before { content: ""; position: absolute; top: -1px; width: 32px; height: 4px; background: var(--red); border-radius: 0 0 var(--radius-xs) var(--radius-xs); transform: skewX(var(--slash-angle)); }
.o-tabbar__dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface-1); }

/* ══ Scorebord-bediening (stream-app) ══════════════════════════════════════
   De ingebrande overlay valt hierbuiten; dit is de bediening op de telefoon. */
.o-score {
  --o-team: var(--team-home); --o-team-ink: var(--team-home-ink);
  position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-align: center;
}
.o-score.is-away { --o-team: var(--team-away); --o-team-ink: var(--team-away-ink); }
.o-score::before { /* teamkleur als schuine strepenkop */
  content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--o-team);
}
.o-score__name { margin-top: 6px; font-weight: 800; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-score__value { font: 900 88px/80px var(--font-sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.o-score__value.is-pop { animation: o-pop var(--dur-3) var(--ease-snap); }
@keyframes o-pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); color: var(--o-team); } 100% { transform: scale(1); } }
.o-score__fix { min-height: var(--tap); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font: 700 15px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.o-score__fix:hover { background: var(--surface-2); color: var(--ink); }

.o-clock { display: grid; justify-items: center; gap: var(--space-2); }
.o-clock__time { font: 800 64px/64px var(--font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.o-clock__period { display: inline-flex; align-items: center; gap: var(--space-2); font: 800 13px/16px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.o-clock.is-running .o-clock__time { color: var(--ink); }
.o-clock.is-paused .o-clock__time { color: var(--ink-3); }

/* Scorebordscherm op de telefoon: score en tijd gescheiden, alles voor tijdens het spel boven de vouw. */
.o-matchline { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); padding-left: var(--space-3); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-md); }
.o-matchline__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 750 14px/18px var(--font-sans); color: var(--ink-2); }
.o-matchline__text.active { color: var(--ink); }
.o-matchline__btn { flex: none; padding: 0 var(--space-3); font-size: 14px; }
.o-score__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: var(--space-1); }
.o-score__minus { min-height: 60px; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); font: 800 14px/16px var(--font-sans); cursor: pointer; }
.o-score__minus:active { background: var(--surface-3); transform: translateY(1px); }
.o-clockrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.o-clockrow .o-clock { justify-items: start; gap: 2px; }
.o-clockrow .o-clock__time { font-size: 48px; line-height: 48px; }
.o-teamtime { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.o-teamtime__side { display: grid; gap: 6px; align-content: start; min-width: 0; }
.o-teamtime__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-teamtime__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
.o-teamtime__timers { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.o-teamtime__timers:empty { display: none; }
.o-action { min-height: 48px; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font: 700 12px/14px var(--font-sans); cursor: pointer; }
.o-action .o-icon { color: var(--ink-2); }
.o-action:active { background: var(--surface-3); transform: translateY(1px); }
.o-action[disabled] { opacity: .4; cursor: default; }
.o-timer { display: inline-flex; align-items: center; height: 32px; padding-left: var(--space-2); border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font: 800 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-timer button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; font: 800 18px/1 var(--font-sans); cursor: pointer; }

/* Stage: camerabeeld met bediening eroverheen */
.o-stage { position: relative; background: var(--stage); color: var(--on-stage); overflow: hidden; }
.o-stage__bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); z-index: var(--z-overlay); }
.o-stage__bar--top { top: 0; background: linear-gradient(var(--stage-scrim), transparent); }
.o-stage__bar--bottom { bottom: 0; background: linear-gradient(transparent, var(--stage-scrim)); }
.o-stage__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--stage-scrim); color: var(--on-stage); font: 700 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.o-stage .o-iconbtn { color: var(--on-stage); background: var(--stage-scrim); border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .o-live-dot::after, .o-loader > i, .o-progress > i, .o-skeleton, .o-spinner { animation-duration: 0s; animation-iteration-count: 1; }
  .o-score__value.is-pop, .o-toast, .o-dialog, .o-scrim { animation: none; }
  .o-btn, .o-tile, .o-switch input::after { transition: none; }
}
