/* ========================================================================
   9. LINEUPS MAP — HORIZONTAL PITCH
   real DOM:
   .match-lineups-pitch__field-team
   .match-lineups-pitch__formation-pill
   ======================================================================== */

.match-lineups-pitch{
  margin:14px 0 18px;
  padding:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
}

.match-lineups-pitch__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:16px;
  margin:0 0 14px;
  padding:0 6px;
  color:rgba(255,255,255,.92);
}

.match-lineups-pitch__head-team{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.match-lineups-pitch__head-team strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:16px;
  line-height:1.2;
  font-weight:700;
}

.match-lineups-pitch__head-team--right{
  justify-content:flex-end;
  text-align:right;
}

.match-lineups-pitch__formation-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.92);
  font-size:12px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
}

.match-lineups-pitch__canvas{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(134,167,55,.96), rgba(100,129,35,.98));
}

.match-lineups-pitch__field{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  min-height:520px;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.05) 0, rgba(255,255,255,0) 58%),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.035) 0 12.5%,
      rgba(0,0,0,.03) 12.5% 25%
    ),
    linear-gradient(180deg, #6b8626 0%, #58751e 100%);
}

.match-lineups-pitch__mark,
.match-lineups-pitch__box,
.match-lineups-pitch__arc,
.match-lineups-pitch__corner{
  position:absolute;
  z-index:1;
  pointer-events:none;
}

.match-lineups-pitch__mark--midline{
  top:0;
  bottom:0;
  left:50%;
  width:3px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.72);
}

.match-lineups-pitch__mark--center-circle{
  top:50%;
  left:50%;
  width:140px;
  height:140px;
  transform:translate(-50%, -50%);
  border:3px solid rgba(255,255,255,.72);
  border-radius:50%;
}

.match-lineups-pitch__mark--center-dot{
  top:50%;
  left:50%;
  width:10px;
  height:10px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:rgba(255,255,255,.85);
}

.match-lineups-pitch__half{
  position:relative;
  min-width:0;
  z-index:2;
}

.match-lineups-pitch__half--home .match-lineups-pitch__box--penalty{
  top:15%;
  bottom:15%;
  left:0;
  width:26%;
  border:3px solid rgba(255,255,255,.72);
  border-left:0;
}

.match-lineups-pitch__half--home .match-lineups-pitch__box--goal{
  top:36%;
  bottom:36%;
  left:0;
  width:9%;
  border:3px solid rgba(255,255,255,.72);
  border-left:0;
}

.match-lineups-pitch__half--away .match-lineups-pitch__box--penalty{
  top:15%;
  bottom:15%;
  right:0;
  width:26%;
  border:3px solid rgba(255,255,255,.72);
  border-right:0;
}

.match-lineups-pitch__half--away .match-lineups-pitch__box--goal{
  top:36%;
  bottom:36%;
  right:0;
  width:9%;
  border:3px solid rgba(255,255,255,.72);
  border-right:0;
}

.match-lineups-pitch__half--home .match-lineups-pitch__arc--penalty{
  top:50%;
  left:26%;
  width:78px;
  height:78px;
  transform:translate(-50%, -50%);
  border:3px solid rgba(255,255,255,.72);
  border-right-color:transparent;
  border-top-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
}

.match-lineups-pitch__half--away .match-lineups-pitch__arc--penalty{
  top:50%;
  right:26%;
  width:78px;
  height:78px;
  transform:translate(50%, -50%);
  border:3px solid rgba(255,255,255,.72);
  border-left-color:transparent;
  border-top-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
}

.match-lineups-pitch__corner{
  width:34px;
  height:34px;
  border:3px solid rgba(255,255,255,.72);
  border-radius:50%;
}

.match-lineups-pitch__corner--tl{
  top:-17px;
  left:-17px;
}

.match-lineups-pitch__corner--bl{
  bottom:-17px;
  left:-17px;
}

.match-lineups-pitch__corner--tr{
  top:-17px;
  right:-17px;
}

.match-lineups-pitch__corner--br{
  bottom:-17px;
  right:-17px;
}

.match-lineups-pitch__corner--tl,
.match-lineups-pitch__corner--bl{
  border-right-color:transparent;
}

.match-lineups-pitch__corner--tr,
.match-lineups-pitch__corner--br{
  border-left-color:transparent;
}

.match-lineups-pitch__corner--tl,
.match-lineups-pitch__corner--tr{
  border-bottom-color:transparent;
}

.match-lineups-pitch__corner--bl,
.match-lineups-pitch__corner--br{
  border-top-color:transparent;
}

.match-lineups-pitch__field-team{
  position:relative;
  z-index:3;
  display:flex;
  width:100%;
  height:100%;
  min-width:0;
}

.match-lineups-pitch__field-team--home{
  justify-content:flex-start;
}

.match-lineups-pitch__field-team--away{
  justify-content:flex-end;
}

.match-lineups-pitch__team{
  position:relative;
  z-index:3;
  display:flex;
  width:100%;
  height:100%;
  min-height:520px;
  min-width:0;
  padding:16px 12px;
}

.match-lineups-pitch__team--home{
  justify-content:flex-start;
}

.match-lineups-pitch__team--away{
  justify-content:flex-end;
}

.match-lineups-pitch__formation{
  display:grid;
  grid-template-columns:repeat(var(--afw-lines-count, 4), minmax(68px, 1fr));
  align-items:stretch;
  column-gap:14px;
  row-gap:0;
  width:100%;
  height:100%;
  min-width:0;
  min-height:100%;
  padding:0;
  border-radius:0;
  background:none;
}

.match-lineups-pitch__line{
  display:grid;
  flex:1 1 0;
  align-content:space-evenly;
  justify-items:center;
  gap:18px;
  min-width:0;
  height:100%;
}

.match-lineups-pitch__line--cols-1{ grid-template-rows:repeat(1, minmax(0,1fr)); }
.match-lineups-pitch__line--cols-2{ grid-template-rows:repeat(2, minmax(0,1fr)); }
.match-lineups-pitch__line--cols-3{ grid-template-rows:repeat(3, minmax(0,1fr)); }
.match-lineups-pitch__line--cols-4{ grid-template-rows:repeat(4, minmax(0,1fr)); }
.match-lineups-pitch__line--cols-5{ grid-template-rows:repeat(5, minmax(0,1fr)); }

.match-lineups-pitch__player{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-width:0;
  padding:0 2px;
}

.match-lineups-pitch__photo{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  margin:0 auto;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.34);
  box-shadow:0 2px 7px rgba(0,0,0,.28);
}

.match-lineups-pitch__photo-img,
.match-lineups-pitch__photo img{
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  object-fit:cover;
}

.match-lineups-pitch__photo-placeholder{
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(255,255,255,.24);
}

.match-lineups-pitch__label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  max-width:118px;
  min-width:0;
  margin:-1px auto 0;
  padding:4px 4px;
  border-radius:0;
  background:transparent;
  color:#fff;
  font-family:var(--h5-font-family, var(--h1-font-family));
  font-size:10px;
  line-height:1.05;
  font-weight:600;
  text-align:center;
  box-shadow:0 2px 5px rgba(0,0,0,.18);
}

.match-lineups-pitch__label-number{
  flex:0 0 auto;
}

.match-lineups-pitch__label-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.match-lineups-pitch__rating{
  position:absolute;
  right:-12px;
  bottom:-10px;
  z-index:6;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:21px;
  height:21px;
  padding:0;
  border-radius:999px;
  border:0;
  background:var(--afw-rating-bg, #25d269);
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:900;
  box-shadow:0 2px 5px rgba(0,0,0,.25);
}

