.op-de-oche-widget {
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 10px;
  border: 2px solid #e8491c;
  background: linear-gradient(180deg, #7a1010, #470a0a);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  container-type: inline-size;
}
.op-de-oche-widget * {
  box-sizing: border-box;
}
.odo-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: #ffb347;
  margin-bottom: 0.5rem;
}
.op-de-oche-widget.odo-live .odo-label {
  color: #ff3b3b;
  animation: odo-live-knipper 1s ease-in-out infinite;
}
@keyframes odo-live-knipper {
  0%, 100% { color: #ff3b3b; }
  50% { color: #fff; }
}
.odo-stand {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}
/* Tussenstand in een kader dat ook de legenda is: de kant van Wizardz oranje, die van de
   tegenstander Roma-rood (zelfde kleuren als de balletjes). Drie kolommen met gelijke buitenste
   breedte, zodat het streepje precies op de kleurgrens staat. */
.odo-stand-kader {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 7.5rem;
  padding: 0.15rem 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}
.odo-ons-links {
  background: linear-gradient(90deg, #e6611a 50%, #7e0000 50%);
}
.odo-ons-rechts {
  background: linear-gradient(90deg, #7e0000 50%, #e6611a 50%);
}
.odo-stand-thuis {
  text-align: center;
  padding: 0 0.6rem;
}
.odo-stand-uit {
  text-align: center;
  padding: 0 0.6rem;
}
.odo-stand-streep {
  padding: 0 0.1rem;
}
/* Teamversus als één regel ("Thuisteam - Uitteam"), in dezelfde fontstijl als de h2-koppen op
   triple.wizardz.net (Truculenta, vet — zie het theme's eigen gecompileerde CSS). */
.odo-teams-versus {
  font-family: 'Truculenta', sans-serif;
  font-weight: 700;
  font-size: 1.8rem; /* terugval voor browsers zonder container-query-ondersteuning */
  font-size: clamp(1.5rem, 8cqw, 2.4rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}
.odo-bollen {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.odo-bol {
  width: 1.7rem;
  height: 1.7rem;
  border: none;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  color: #2a2a2a;
  cursor: default;
}
.odo-bol-leeg {
  background: #cfcfcf;
  color: #777;
}
.odo-bol-bezig {
  background: #ffd60a;
  cursor: help;
  animation: odo-knipper 1.1s ease-in-out infinite;
}
.odo-bol-winst {
  background: #e6611a;
  color: #fff;
  cursor: help;
}
.odo-bol-verlies {
  background: #7e0000; /* Roma-rood */
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); /* valt anders weg op de donkerrode kaart */
  color: #fff;
  cursor: help;
}
@keyframes odo-knipper {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .odo-bol-bezig { animation: none; }
  .op-de-oche-widget.odo-live .odo-label { animation: none; }
}
/* Zodra alle 9 sets beslist zijn worden de balletjes ook een wisselknop tussen sets (zie
   pasSwitcherToe in op-de-oche.js, zelfde opzet als de teammanager-app zelf). */
.odo-bol-wisselbaar {
  cursor: pointer;
}
.odo-bol-wisselbaar:hover,
.odo-bol-wisselbaar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.odo-bol-actief {
  box-shadow: 0 0 0 2px #ffb347;
}
.odo-bol-live {
  width: auto;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #ffb347;
  color: #2a2a2a;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.odo-bol-live:hover,
.odo-bol-live:focus-visible {
  filter: brightness(0.92);
}
.odo-partij {
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}
.odo-partij-label {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.odo-partij-fotos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}
/* Elke kant is een eigen flex-rijtje (niet één grote rij van 8): past een kant niet naast
   elkaar (smalle/mobiele kaart), dan wikkelt-ie naar een eigen 2x2-blokje i.p.v. foto's van de
   andere kant ertussen te laten vallen. Foto's raken elkaar (geen gap) en max-width is precies
   2 foto's breed, dus een 3e/4e foto wikkelt altijd naar een nieuwe regel — ongeacht de
   kaartbreedte, niet alleen op mobiel. min-width:0 is nodig omdat deze kant-groep zelf ook een
   flex-item is (van .odo-partij-fotos) en anders nooit onder z'n eigen inhoudsbreedte krimpt. */
.odo-fotos-kant {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 112px;
  min-width: 0;
}
/* De <span>-wrapper (i.p.v. de maat rechtstreeks op de <img>) ontwijkt de eigen img-reset van
   het Salient-thema (width/height:auto op content-afbeeldingen), die de foto anders op volledige
   originele grootte liet verschijnen (150x150) i.p.v. als rondje. De <img> zelf vult gewoon
   100% van deze al-vaste wrapper. */
.odo-foto-wrap {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.odo-foto-leeg {
  background: rgba(255, 255, 255, 0.25);
}
.odo-foto {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  display: block;
}
/* Grid i.p.v. een simpele tekstregel: de stand blijft zo altijd in het midden staan, ook als
   een van beide namen (bv. bij een koppel-/teamgame-partij) te lang is en op een eigen regel
   onder de andere naam doorloopt — alleen de naam-kolom breekt dan af, niet de hele regel. */
.odo-partij-stand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.6rem;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.odo-stand-naam {
  min-width: 0;
  border-radius: 4px;
}
.odo-stand-naam[data-kant="thuis"] {
  text-align: right;
}
.odo-stand-naam[data-kant="uit"] {
  text-align: left;
}
.odo-stand-score {
  white-space: nowrap;
}
.odo-stand-knippert {
  animation: odo-stand-knipper 0.6s ease-in-out 5;
}
@keyframes odo-stand-knipper {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .odo-stand-knippert { animation: none; outline: 2px solid #ffb347; outline-offset: 1px; }
}
.odo-verloop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0.15rem 0 0.4rem;
}
.odo-vak {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.2rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.odo-vak-winst {
  background: #e6611a;
}
.odo-vak-verlies {
  background: #7e0000; /* Roma-rood */
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); /* valt anders weg op de donkerrode kaart */
}
.odo-partij-cijfers {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
}
.odo-datum {
  font-weight: 700;
  font-size: 1.1rem;
}
.odo-adres {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.3;
}
.odo-verzet {
  margin-top: 0.6rem;
  background: #cc0000;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.odo-leeg {
  margin: 0;
  opacity: 0.8;
}
