/* Fútbol Libre TV — lineups pitch (score808-style: field + player photos + bench + coach) */
.lucard > h2 { padding: 16px 18px 8px; margin: 0; }
.lfrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 16px 10px; font-size: 13px; opacity: .72; }
.lft { display: flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; }
.lft img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.lft b { color: #0d9488; font-weight: 800; }
.lft.ar { justify-content: flex-end; }

.pitch { position: relative; margin: 0 12px 14px; border-radius: 12px; aspect-ratio: 3/4; min-height: 470px; overflow: hidden;
  background-color: #1a6f3d;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.055) 0 8.33%, rgba(0,0,0,.05) 8.33% 16.66%), linear-gradient(180deg, #22834b, #145c31); }
.pmid { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.32); }
.pcirc { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.32); border-radius: 50%; }
.pspot { position: absolute; left: 50%; transform: translateX(-50%); width: 46%; height: 12.5%; border: 2px solid rgba(255,255,255,.28); }
.pspot.t { top: -2px; border-top: 0; border-radius: 0 0 7px 7px; }
.pspot.b { bottom: -2px; border-bottom: 0; border-radius: 7px 7px 0 0; }

.pn { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 62px; text-align: center; color: #fff; }
.ppic { position: relative; display: block; }
.ppic img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.92); background: #0d3b22; display: block; }
.pno { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.92); font-size: 13px; font-weight: 800; color: #fff; }
.pnum { position: absolute; right: -5px; bottom: -3px; background: #fff; color: #12331f; font-size: 9.5px; font-weight: 800; line-height: 1; padding: 2px 4px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pnm { font-size: 10.5px; font-weight: 700; line-height: 1.15; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.65); }

/* ── event overlays on pitch players (kept off the face) ── */
.pmk { position: absolute; top: -5px; right: -10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
/* sub pill sits to the LEFT of the avatar: clears the face and the name of the player above */
.psub { position: absolute; top: -3px; right: 100%; margin-right: -6px; z-index: 5; }
.mk { display: inline-flex; align-items: center; justify-content: center; font-style: normal; line-height: 1; }
.mk-g { font-size: 12px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.mk-g em { font-style: normal; font-size: 8.5px; font-weight: 800; margin-left: 1px; background: #111; color: #fff; border-radius: 6px; padding: 1px 3px; }
.mk-a { width: 14px; height: 14px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 9px; font-weight: 800; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.mk-y { width: 9px; height: 12px; border-radius: 1.5px; background: #f5c400; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.mk-r { width: 9px; height: 12px; border-radius: 1.5px; background: #e01e2b; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.subpill { display: inline-flex; align-items: center; gap: 1px; font-size: 8.5px; font-weight: 800; line-height: 1; padding: 2px 4px 2px 3px; border-radius: 7px; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; }
.subpill.off { background: #e01e2b; }
.subpill.on  { background: #16a34a; }

/* bench inline markers */
.bmk { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.bmk:empty { display: none; }
.bmk .mk-a, .bmk .mk-y, .bmk .mk-r { position: static; }
.bmk .subpill { font-size: 9px; }

/* legend under the pitch */
.lulegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 2px 16px 14px; font-size: 11.5px; font-weight: 600; opacity: .75; }
.lulegend span { display: inline-flex; align-items: center; gap: 5px; }
.lulegend .mk-g { font-size: 13px; }
.lulegend .mk-a { position: static; }
.lgarrow { font-style: normal; font-weight: 900; line-height: 1; }
.lgarrow.off { color: #e01e2b; }
.lgarrow.on  { color: #16a34a; }

.benchwrap { display: flex; flex-direction: row; gap: 16px; padding: 0 16px 16px; }
.benchcol { flex: 1; min-width: 0; }
.bh { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; opacity: .5; margin-bottom: 4px; }
.bh img { width: 16px; height: 16px; object-fit: contain; }
.benchl { display: flex; flex-direction: column; }
.bench-i { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.08); }
[data-theme=dark] .bench-i { border-color: rgba(255,255,255,.08); }
.bench-i:last-child { border-bottom: 0; }
.bench-i img.rnd { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #eef2f5; flex: 0 0 auto; }
.bno { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef2f5; font-size: 11px; font-weight: 700; opacity: .7; color: #334; flex: 0 0 auto; }
.bnm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpos { margin-left: auto; font-size: 11px; opacity: .5; font-weight: 600; }

.coachchip { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: 13.5px; font-weight: 700; }
[data-theme=dark] .coachchip { border-color: rgba(255,255,255,.08); }
.coachchip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef2f5; flex: 0 0 auto; }
.cph { width: 30px; height: 30px; border-radius: 50%; background: #eef2f5; display: block; flex: 0 0 auto; }
.coachchip small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; opacity: .5; font-weight: 700; }

@media (max-width: 520px) {
  .benchwrap { flex-direction: column; }
  .pitch { min-height: 440px; }
  .pn { width: 54px; }
  .ppic img, .pno { width: 32px; height: 32px; }
  .subpill { font-size: 8px; padding: 1.5px 3px 1.5px 2px; border-radius: 6px; }
  .pmk { right: -8px; gap: 1.5px; }
  .mk-g { font-size: 11px; }
  .mk-a { width: 13px; height: 13px; font-size: 8px; }
  .mk-y, .mk-r { width: 8px; height: 11px; }
  .pnm { font-size: 10px; }
}
