
/* ==== DOVO Formation — ONE‑FILE BUNDLE (safe) ====
   Gebruik dit als enige CSS voor het formatiebord.
   Lost op: geen groen veld, spelers op 1 lijn, witte vlakken, badge-styling.
*/

:root{
  --ls-brand:#c70000;
  --ls-ring: rgba(17,24,39,.08);
  --ls-muted:#6b7280;
  --ls-card:#ffffff;
  --ls-pitch:#0a7a34;
}

/* Container + headerbalk */
.ls-formation{ display:block; margin:12px 0; }
.ls-formation .bar{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:8px 12px; margin:0 0 10px 0;
  background:linear-gradient(180deg,#fafafa,#fff);
  border:1px solid var(--ls-ring); border-radius:12px; font-weight:800;
}
.ls-formation .bar *{ color:#111827 !important; background:transparent !important; box-shadow:none !important; }

/* PITCH zelf (volledige definitie zodat bundel zelfstandig werkt) */
.ls-formation .pitch{
  position:relative; width:100%; aspect-ratio: 105 / 68; /* hoogte */
  background: var(--ls-pitch);
  border-radius:12px; overflow:hidden;
  box-shadow: inset 0 8px 24px rgba(0,0,0,.08);
}
/* Lijnen */
.ls-formation .pitch::before,
.ls-formation .pitch::after{ content:""; position:absolute; inset:0; pointer-events:none; }
.ls-formation .pitch::before{
  background:
    linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat,
    linear-gradient(#fff,#fff) 0 100%/100% 2px no-repeat,
    linear-gradient(#fff,#fff) 0 0/2px 100% no-repeat,
    linear-gradient(#fff,#fff) 100% 0/2px 100% no-repeat,
    linear-gradient(#fff,#fff) 50% 0/2px 100% no-repeat;
  opacity:.85;
}
.ls-formation .pitch::after{
  background:
    radial-gradient(circle at 50% 50%, transparent 0 3.5%, #fff 3.5% 4.3%, transparent 4.3%),
    radial-gradient(circle at 50% 50%, transparent 0 14%, rgba(255,255,255,.7) 14% 15%, transparent 15%),
    linear-gradient(#fff,#fff) 0 50%/100% 2px no-repeat;
  opacity:.65; mix-blend-mode: screen;
}

/* Spelerkaartjes — ondersteunt zowel .ls-ply (aanrader) als .ply (fallback) */
.ls-formation .pitch .ls-ply,
.ls-formation .pitch .ply{
  position:absolute !important;
  left: calc(var(--x)*1%) !important;
  top:  calc(var(--y)*1%) !important;
  transform: translate(-50%, -50%) !important;
  display:grid !important; grid-template-columns: 36px 1fr auto !important;
  align-items:center !important; gap:8px !important;
  padding:6px 10px !important; max-width:220px !important;
  background: var(--ls-card) !important;
  border:1px solid var(--ls-ring) !important; border-radius:12px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.08) !important;
  z-index:1;
}
/* Reset vreemde theme-styles op teksten */
.ls-formation .pitch .ls-ply *,
.ls-formation .pitch .ply *{
  background:transparent !important; border:0 !important; box-shadow:none !important; text-shadow:none !important;
}

/* Rugnummer (rode cirkel + nummer) */
.ls-formation .pitch .ls-ply .num,
.ls-formation .pitch .ply .num{
  width:34px; height:34px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: var(--ls-brand) !important; color:#fff !important;
  font-weight:800; font-size:14px; line-height:1;
  text-indent:0; letter-spacing:0; overflow:visible;
}

/* Naam & positie */
.ls-formation .pitch .ls-ply .name,
.ls-formation .pitch .ply .name{ color:#111827 !important; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ls-formation .pitch .ls-ply .pos,
.ls-formation .pitch .ply .pos{ color:var(--ls-muted) !important; font-size:.8rem; }
