/* 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: #48cae4; 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: #48cae4;
  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, #48cae4, #48cae4); }
.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: #1b2a5e; 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: #e63946; 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: #00b4d8; 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: #00b4d8; }
.subpill.on  { background: #48cae4; }

/* 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: #00b4d8; }
.lgarrow.on  { color: #48cae4; }

.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; }
}
/* GOAL_SVG_SIZE 2026-11-24: the drawn ball needs an explicit size (the old emoji took it from font-size) */
.mk-g { color: #111; }
.mk-g svg { width: 13px; height: 13px; display: block; }
.lulegend .mk-g svg { width: 15px; height: 15px; }
.bmk .mk-g svg { width: 13px; height: 13px; }
/* REAL_BALL 2026-11-24: goals use the real football (emoji), sized per place */
.sx-ball { display: inline-block; line-height: 1; font-style: normal; }
.mk-g .sx-ball { font-size: 12px; }
.lulegend .mk-g .sx-ball { font-size: 14px; }
.mdx-ico .sx-ball { font-size: 17px; }
/* TEAM_CHIPS 2026-11-24: team on each half + colour-coded players (home light, away dark) */
.ptm { position: absolute; inset-inline-start: 10px; z-index: 4; display: flex; align-items: center; gap: 6px; max-width: 70%; padding: 4px 10px 4px 5px; border-radius: 99px; font-size: 12px; font-weight: 800; line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ptm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptm b { font-weight: 700; opacity: .7; font-size: 11px; }
.ptm img { width: 18px; height: 18px; object-fit: contain; border-radius: 50%; background: #fff; padding: 1px; flex: 0 0 auto; }
.ptm.t { top: 8px; } .ptm.b { bottom: 8px; }
.ptm.home { background: #fff; color: #12331f; }
.ptm.away { background: #111827; color: #fff; }
.pn.a .ppic img, .pn.a .pno { border-color: #111827; }
.pn.a .pnum { background: #111827; color: #fff; }
/* TABLE_TAB 2026-11-24: league table on the match page */
.mdx-tbl { overflow-x: auto; margin: 0 -4px; }
.mdx-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mdx-tbl th { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .5; padding: 6px 6px; text-align: center; white-space: nowrap; }
.mdx-tbl td { padding: 8px 6px; text-align: center; border-top: 1px solid rgba(127,127,127,.14); white-space: nowrap; }
.mdx-tbl .tm { text-align: start; width: 100%; }
.mdx-tbl .tm span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mdx-tbl .tm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.mdx-tbl .tm img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.mdx-tbl .rk { font-weight: 800; opacity: .7; box-shadow: inset 3px 0 0 transparent; }
.mdx-tbl .pts { font-weight: 900; }
.mdx-tbl tr.me td { background: rgba(127,127,127,.13); }
.mdx-tbl tr.me .tm b { font-weight: 900; }
.mdx-tbl tr.z-top .rk { box-shadow: inset 3px 0 0 #16a34a; }
.mdx-tbl tr.z-mid .rk { box-shadow: inset 3px 0 0 #3b82f6; }
.mdx-tbl tr.z-rpo .rk { box-shadow: inset 3px 0 0 #f59e0b; }
.mdx-tbl tr.z-rel .rk { box-shadow: inset 3px 0 0 #dc2626; }
@media (max-width: 480px) { .mdx-tbl .wdl { display: none; } .mdx-tbl td, .mdx-tbl th { padding: 7px 4px; } .mdx-tbl .tm b { max-width: 130px; } }
/* PROFILES 2026-11-24: player / team profile card */
.pn[data-pid], .bench-i[data-pid], .ptm[data-tid], .mdx-tbl tr[data-tid], .mdx-ev[data-pid] { cursor: pointer; }
.mdx-tbl tr[data-tid]:hover td, .mdx-ev[data-pid]:hover .mdx-txt b { text-decoration: underline; text-underline-offset: 2px; }
.sxpm { position: fixed; inset: 0; z-index: 9998; display: none; align-items: flex-end; justify-content: center; }
.sxpm.on { display: flex; }
.sxpm-dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sxpm-card { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; color: #111827; border-radius: 20px 20px 0 0; padding: 22px 18px 26px; box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
[data-theme="dark"] .sxpm-card { background: #161b22; color: #e6edf3; }
@media (min-width: 600px) { .sxpm { align-items: center; } .sxpm-card { border-radius: 18px; } }
.sxpm-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(127,127,127,.15); color: inherit; font-size: 15px; cursor: pointer; }
.sxpm-head { display: flex; align-items: center; gap: 14px; margin: 0 40px 16px 0; }
.sxpm-head h3 { font-size: 19px; font-weight: 900; margin: 0; line-height: 1.2; }
.sxpm-head p { margin: 3px 0 0; font-size: 13px; opacity: .6; }
.sxpm-ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #e5e7eb; flex: 0 0 auto; }
.sxpm-lo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.sxpm-st { margin-top: 14px; border-radius: 14px; background: rgba(127,127,127,.09); padding: 12px; }
.sxpm-lg { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; opacity: .75; margin-bottom: 10px; }
.sxpm-lg img { width: 18px; height: 18px; object-fit: contain; }
.sxpm-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.sxpm-nums b { display: block; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sxpm-nums small { display: block; font-size: 10px; font-weight: 700; opacity: .55; text-transform: uppercase; letter-spacing: .04em; }
.sxpm-sqh { margin: 16px 0 8px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.sxpm-sq { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.sxpm-pl { display: flex; align-items: center; gap: 9px; padding: 7px; border: 0; border-radius: 12px; background: rgba(127,127,127,.09); color: inherit; font: inherit; text-align: start; cursor: pointer; min-width: 0; }
.sxpm-pl img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #e5e7eb; flex: 0 0 auto; }
.sxpm-pl span { min-width: 0; } .sxpm-pl b { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxpm-pl small { display: block; font-size: 11px; opacity: .55; }
[dir="rtl"] .sxpm-head { margin: 0 0 16px 40px; }
/* INITIALS_AVATAR 2026-11-24 */
.sxpm-ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc, #334155); color: #fff; font-weight: 900; font-size: 24px; letter-spacing: .02em; flex: 0 0 auto; }
.sxpm-ini.sm { width: 34px; height: 34px; font-size: 13px; }
/* EVENT_AVATAR 2026-11-24: player photo in the timeline */
.mdx-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: rgba(127,127,127,.16); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(127,127,127,.18); }
.mdx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdx-av span { font-size: 11px; font-weight: 900; opacity: .75; }
.mdx-ev.goal .mdx-av { box-shadow: 0 0 0 2px var(--acc); }
@media (max-width: 420px) { .mdx-av { width: 26px; height: 26px; } }
/* TEAM_LOGOS 2026-11-24 */
.mdx-tlg { display: inline-block; object-fit: contain; vertical-align: middle; flex: 0 0 auto; }
.mdx-tn { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
div > .mdx-tlg:first-child { display: block; margin: 0 auto 6px; }
/* TEAM_LINKS 2026-11-24 */
#mc-md [data-tid] { cursor: pointer; }
#mc-md .mdx-tn[data-tid]:hover, #mc-md div[data-tid]:hover > .text-xs { text-decoration: underline; text-underline-offset: 2px; }
