/* Kisure Frontend v607 - authoritative home/away lineup pitch */
#lineups.football-section--match-lineups{overflow:hidden}
#lineups .football-lineups-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem}
#lineups .football-lineup-card{min-width:0;overflow:hidden}
#lineups .football-lineup-card__head{align-items:center}
#lineups .football-lineup-card__crest{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 56px;width:56px;height:56px;border:1px solid var(--border,rgba(15,23,42,.10));border-radius:15px;background:var(--surface,#fff);overflow:hidden}
#lineups .football-lineup-card__crest img{display:block!important;width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#lineups .football-lineup-card__head>img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important}
#lineups .football-lineup-card__title-row{display:flex;align-items:center;gap:.55rem;min-width:0}
#lineups .football-lineup-card__title-row h3{min-width:0;margin:0}
#lineups .football-lineup-card__title-row h3 a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lineups .football-lineup-side{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid rgba(15,23,42,.12);border-radius:999px;background:#f8fafc;color:#475569;font-size:.65rem;font-weight:900;letter-spacing:.06em;line-height:1;padding:.34rem .5rem;text-transform:uppercase}
#lineups .football-lineup-side--home{background:rgba(13,148,136,.10);border-color:rgba(13,148,136,.22);color:#0f766e}
#lineups .football-lineup-side--away{background:rgba(59,130,246,.09);border-color:rgba(59,130,246,.20);color:#1d4ed8}

#lineups .football-formation-pitch{overflow:hidden!important;min-height:610px;padding:26px 14px 22px;gap:16px}
#lineups .football-formation-row{gap:8px;min-width:0}
#lineups .football-formation-player{position:relative;display:grid;grid-template-rows:auto auto auto;justify-items:center;align-content:start;max-width:104px;width:100%;min-width:0;color:#fff;text-align:center;text-decoration:none}
#lineups .football-formation-player__portrait{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;width:58px!important;height:58px!important;max-width:none!important;margin:0 auto 2px!important;padding:0!important;isolation:isolate;overflow:visible!important;white-space:normal!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
#lineups .football-formation-player .ks-player-face-frame--formation,
#lineups .football-formation-player__portrait>b{position:relative!important;z-index:1;display:flex!important;align-items:center;justify-content:center;width:58px!important;height:58px!important;min-width:58px;max-width:58px!important;border:3px solid #fff!important;border-radius:50%!important;background:#fff!important;box-shadow:0 8px 18px rgba(0,0,0,.22)!important;overflow:hidden!important;padding:0!important;white-space:normal!important}
#lineups .football-formation-player .ks-player-face-frame--formation img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center top;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff}
#lineups .football-formation-player__rating{position:absolute;z-index:5;right:-15px;top:-8px;display:inline-flex!important;align-items:center;justify-content:center;min-width:31px;height:24px;padding:0 7px!important;border-radius:999px!important;background:#f97316!important;color:#fff!important;font-size:.7rem!important;font-weight:900;line-height:1;box-shadow:0 4px 10px rgba(0,0,0,.18)!important;white-space:nowrap!important}
#lineups .football-formation-player__rating.is-high{background:#22c55e!important}
#lineups .football-formation-player__rating.is-low{background:#ef4444!important}
#lineups .football-formation-player__captain{position:absolute;z-index:6;left:-8px;bottom:-3px;display:inline-flex!important;align-items:center;justify-content:center;width:21px;height:21px;padding:0!important;border:2px solid #fff;border-radius:50%!important;background:#475569!important;color:#fff!important;font-size:.68rem!important;font-weight:950;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.25)!important}
#lineups .football-formation-player__card{position:absolute;z-index:6;right:-8px;display:inline-flex!important;align-items:center;justify-content:center;width:13px;height:18px;padding:0!important;border:2px solid rgba(255,255,255,.95);border-radius:4px!important;box-shadow:0 3px 8px rgba(0,0,0,.2)!important}
#lineups .football-formation-player__card.is-yellow{top:25px;background:#facc15!important}
#lineups .football-formation-player__card.is-red{top:43px;background:#ef4444!important}
#lineups .football-formation-player__card b{font-size:.48rem;color:#111827;line-height:1}
#lineups .football-formation-player__card.is-red b{color:#fff}
#lineups .football-formation-player__markers{display:flex!important;align-items:center;justify-content:center;gap:4px;min-height:18px;margin:1px 0 0!important;padding:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important}
#lineups .football-formation-player__goal{display:inline-flex!important;align-items:center;gap:2px;margin:0!important;padding:2px 5px!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;font-size:.62rem!important;font-weight:900;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.2)!important}
#lineups .football-formation-player__goal b{font-size:.58rem;line-height:1}
#lineups .football-formation-player__own-goal{display:inline-flex!important;align-items:center;margin:0!important;padding:2px 5px!important;border-radius:999px!important;background:#0f172a!important;color:#fff!important;font-size:.56rem!important;font-weight:900;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.18)!important}
#lineups .football-formation-player__name{display:block!important;width:100%;max-width:100%;margin:2px 0 0!important;padding:0!important;background:transparent!important;color:#fff!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;font-size:.75rem!important;font-weight:900;line-height:1.2;text-shadow:0 2px 8px rgba(0,0,0,.32)}
#lineups .football-formation-player__name em{font-style:normal;margin-right:4px;color:#dffcf6}
/* v195 added a hover-expansion tooltip-like label. v607 intentionally removes
   that behaviour; full names remain available to screen readers and player pages. */
#lineups .football-formation-player:hover span,
#lineups .football-lineup-player:hover strong{overflow:inherit;white-space:inherit;position:static;z-index:auto;background:inherit;color:inherit;border-radius:inherit;padding:inherit;box-shadow:inherit}
#lineups .football-formation-player:hover .football-formation-player__name{display:block!important;overflow:hidden!important;white-space:nowrap!important;position:static!important;background:transparent!important;color:#fff!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
#lineups .football-formation-player:hover .football-formation-player__rating,
#lineups .football-formation-player:hover .football-formation-player__captain,
#lineups .football-formation-player:hover .football-formation-player__card,
#lineups .football-formation-player:hover .football-formation-player__goal,
#lineups .football-formation-player:hover .football-formation-player__own-goal{position:absolute}
#lineups .football-formation-player:hover .football-formation-player__goal,
#lineups .football-formation-player:hover .football-formation-player__own-goal{position:static}

/* v607: legacy base CSS clips every span until hover. The portrait is an
   overlay stage, so rating/captain/card badges must remain visible at rest. */
#lineups .football-formation-player>.football-formation-player__portrait,
#lineups .football-formation-player:hover>.football-formation-player__portrait{overflow:visible!important;max-width:none!important;white-space:normal!important}
#lineups .football-formation-player>.football-formation-player__portrait>.football-formation-player__rating,
#lineups .football-formation-player>.football-formation-player__portrait>.football-formation-player__captain,
#lineups .football-formation-player>.football-formation-player__portrait>.football-formation-player__card{overflow:visible!important;white-space:nowrap!important}

#lineups .football-lineup-player{min-width:0}
#lineups .football-lineup-player strong{overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap!important;background:transparent!important;color:inherit!important;padding:0!important;box-shadow:none!important}
#lineups .football-lineup-player:hover strong{overflow:hidden!important;white-space:nowrap!important;background:transparent!important;color:inherit!important;padding:0!important;box-shadow:none!important}
#lineups .football-lineup-player__mini-card{display:inline-block;width:8px;height:11px;margin:0 1px;border-radius:2px;vertical-align:-1px}
#lineups .football-lineup-player__mini-card.is-yellow{background:#facc15}
#lineups .football-lineup-player__mini-card.is-red{background:#ef4444}

#lineups .football-lineup-coaches{margin-top:1rem;border:1px solid rgba(15,23,42,.09);border-radius:20px;background:var(--surface,#fff);padding:1rem}
#lineups .football-lineup-coaches__heading{display:flex;align-items:baseline;gap:.55rem;margin-bottom:.8rem}
#lineups .football-lineup-coaches__heading span{color:var(--accent,#0f766e);font-size:.68rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
#lineups .football-lineup-coaches__heading h3{margin:0;color:var(--text,#0f172a);font-size:1rem}
#lineups .football-lineup-coaches__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
#lineups .football-lineup-coach{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:.75rem;min-width:0;padding:.75rem;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:color-mix(in srgb,var(--surface,#fff) 94%,#0f766e 6%);color:inherit;text-decoration:none;transition:border-color .18s ease,transform .18s ease}
#lineups .football-lineup-coach:hover{border-color:rgba(13,148,136,.35);transform:translateY(-1px)}
#lineups .football-lineup-coach__photo{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#e2e8f0}
#lineups .football-lineup-coach__photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
#lineups .football-lineup-coach__photo strong{font-size:.78rem;color:#334155}
#lineups .football-lineup-coach__copy{display:grid;min-width:0;gap:2px}
#lineups .football-lineup-coach__copy small{overflow:hidden;color:var(--text-soft,#64748b);font-size:.66rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
#lineups .football-lineup-coach__copy strong{overflow:hidden;color:var(--text,#0f172a);font-size:.9rem;text-overflow:ellipsis;white-space:nowrap}
#lineups .football-lineup-coach__copy em{color:var(--text-soft,#64748b);font-size:.68rem;font-style:normal}
#lineups .football-lineup-coach>i{color:var(--accent,#0f766e);font-size:.75rem}

html[data-theme="dark"] #lineups .football-lineup-side{background:#1c1c1c;border-color:rgba(148,163,184,.22);color:#cbd5e1;}
html[data-theme="dark"] #lineups .football-lineup-side--home{background:rgba(45,212,191,.12);color:#99f6e4}
html[data-theme="dark"] #lineups .football-lineup-side--away{background:rgba(96,165,250,.12);color:#bfdbfe}
html[data-theme="dark"] #lineups .football-lineup-coaches{background:#1c1c1c;border-color:rgba(148,163,184,.18);}
html[data-theme="dark"] #lineups .football-lineup-coach{background:#1c1c1c;border-color:rgba(148,163,184,.16);}
html[data-theme="dark"] #lineups .football-lineup-coaches__heading h3,
html[data-theme="dark"] #lineups .football-lineup-coach__copy strong{color:#f8fafc}
html[data-theme="dark"] #lineups .football-lineup-coach__copy small,
html[data-theme="dark"] #lineups .football-lineup-coach__copy em{color:#cbd5e1}

@media(max-width:991px){
  #lineups .football-lineups-grid{grid-template-columns:1fr}
  #lineups .football-formation-pitch{min-height:690px}
  #lineups .football-lineup-coaches__grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  #lineups .football-formation-pitch{min-height:720px;padding:22px 8px 18px;gap:14px}
  #lineups .football-formation-player{max-width:76px}
  #lineups .football-formation-player__portrait,
  #lineups .football-formation-player .ks-player-face-frame--formation,
  #lineups .football-formation-player__portrait>b{width:50px!important;height:50px!important;min-width:50px}
  #lineups .football-formation-player__name{font-size:.66rem!important}
  #lineups .football-formation-player__rating{right:-12px;top:-7px;min-width:28px;height:21px;font-size:.64rem!important}
  #lineups .football-formation-player__card{right:-7px}
  #lineups .football-lineup-coach{grid-template-columns:44px minmax(0,1fr) auto}
  #lineups .football-lineup-coach__photo{width:44px;height:44px}
}

/* v607 final hover guard: legacy redesign CSS expands every player span on
   hover. Keep the portrait as the positioning context and never turn a player
   face/name into a tooltip card. */
#lineups .football-formation-player:hover .football-formation-player__portrait{position:relative!important;display:inline-flex!important;width:58px!important;height:58px!important;margin:0 auto 2px!important;padding:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
#lineups .football-formation-player:hover .ks-player-face-frame--formation{position:static!important;display:flex!important;width:58px!important;height:58px!important;padding:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 8px 18px rgba(0,0,0,.22)!important;overflow:hidden!important}
#lineups .football-formation-player:hover .football-formation-player__markers{position:static!important;display:flex!important;margin:1px 0 0!important;padding:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;white-space:nowrap!important}
@media(max-width:560px){
  #lineups .football-formation-player:hover .football-formation-player__portrait,
  #lineups .football-formation-player:hover .ks-player-face-frame--formation{width:50px!important;height:50px!important}
}
