/* ========================================================================
   5. SUMMARY — TEAM STATS
   ======================================================================== */

.match-summary{
  display:grid;
  gap:20px;
}

.match-summary__grid{
  display:grid;
  gap:20px;
}

.match-summary__card{
  padding:14px;
  background:rgba(255,255,255,.08);
}

.match-summary__head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}

.match-summary__title{
  margin:0;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.1;
  font-weight:700;
}

/* header teams inside summary stats */
.match-summary-stats .match-lineups{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  margin-top:0;
  margin-bottom:14px;
}

.match-summary-stats .match-lineups__col{
  min-width:0;
}

.match-summary-stats .match-lineups__team-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-height:58px;
  padding:10px 12px;
  background:rgba(255,255,255,.06);
}

.match-summary-stats .match-lineups__team-head--home .match-summary-head-record{
  margin-left:auto;
}

.match-summary-stats .match-lineups__team-head--away .match-summary-head-record{
  margin-right:auto;
}

.match-summary-stats .match-lineups__team{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.match-summary-stats .match-lineups__team-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:14px;
  line-height:1.15;
  font-weight:600;
}

.match-summary-stats .match-lineups__team-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
}

.match-summary-stats .match-lineups__team-logo img{
  display:block;
  width:28px;
  height:28px;
  object-fit:contain;
}

.match-summary-stats .match-lineups__formation{
  flex:0 0 auto;
  padding:6px 8px;
  white-space:nowrap;
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.90);
  font-size:11px;
  line-height:1;
  font-weight:700;
}

.match-summary-head-record{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  flex:0 0 auto;
  min-width:148px;
  padding:5px 8px;
  background:rgba(0,0,0,.24);
}

.match-summary-head-record__item{
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  min-width:42px;
  padding:0 5px;
  border-left:1px solid rgba(255,255,255,.14);
}

.match-summary-head-record__item:first-child{
  border-left:0;
}

.match-summary-head-record__value{
  color:#fff;
  font-size:18px;
  line-height:1;
  font-weight:900;
}

.match-summary-head-record__label{
  margin-top:2px;
  color:rgba(255,255,255,.62);
  font-size:8px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
}

.match-summary__subtitle{
  margin-top:3px;
  color:rgba(255,255,255,.54);
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  text-align:center;
  text-transform:none;
  letter-spacing:0;
}

.match-summary-stats__row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:rgba(255,255,255,.06);
}

.match-summary-stats__row + .match-summary-stats__row{
  margin-top:10px;
}

.match-summary-stats__cell{
  min-width:0;
}

.match-summary-stats__cell--left{
  justify-self:start;
  text-align:left;
  color:#fff;
  font-size:15px;
  line-height:1.1;
  font-weight:700;
}

.match-summary-stats__cell--right{
  justify-self:end;
  text-align:right;
  color:#fff;
  font-size:15px;
  line-height:1.1;
  font-weight:700;
}

.match-summary-stats__label{
  min-width:0;
  text-align:center;
  color:#fff;
  font-size:12px;
  line-height:1.2;
  font-weight:600;
  white-space:nowrap;
}

.match-summary-leaders{
  margin-top:22px;
  display:grid;
  gap:14px;
}

.match-summary-leaders__title{
  margin:0;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  text-align:center;
}

.match-summary-leaders__subtitle{
  margin-top:-10px;
  color:rgba(255,255,255,.54);
  font-size:10px;
  line-height:1.15;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.match-summary-leaders__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}

.match-summary-leaders__team{
  display:grid;
  align-content:start;
  gap:14px;
  min-width:0;
  padding:16px;
  background:rgba(255,255,255,.06);
}

.match-summary-leaders__team-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  height:72px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.12);
  box-sizing:border-box;
  overflow:hidden;
}

.match-summary-leaders__team-logo,
.match-summary-leaders__team-logo picture{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
}

.match-summary-leaders__team-logo img{
  display:block;
  width:30px;
  height:30px;
  max-width:30px;
  max-height:30px;
  object-fit:contain;
}

.match-summary-leaders__team-name{
  min-width:0;
  margin: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.15;
  font-weight:700;
}

.match-summary-leaders__group{
  display:grid;
  gap:8px;
}

.match-summary-leaders__group-title{
  color:rgba(255,255,255,.62);
  font-size:11px;
  line-height:1.1;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.match-summary-leaders__list{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}

.match-summary-leaders__player{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:42px;
  padding:6px 8px;
  background:rgba(0,0,0,.18);
}

.match-summary-leaders__photo,
.match-summary-leaders__photo img{
  display:block;
  width:32px;
  height:32px;
  border-radius:999px;
}

.match-summary-leaders__photo img{
  object-fit:cover;
  background:#fff;
}

.match-summary-leaders__name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-family:var(--h1-font-family);
  font-size:13px;
  line-height:1.15;
  font-weight:700;
}

.match-summary-leaders__metric{
  flex:0 0 auto;
  padding:4px 6px;
  background:#050707;
  color:#a7e84b;
  font-size:11px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}

/* ========================================================================
   6. SUMMARY — FORM GUIDE
   ======================================================================== */

.match-summary-form{
  margin-top:24px;
  display:grid;
  gap:20px;
}

.match-summary-form__title{
  margin:0;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:18px;
  line-height:1.2;
  font-weight:700;
}

.match-summary-form__team{
  display:grid;
  gap:14px;
}

.match-summary-form__team + .match-summary-form__team{
  margin-top:0;
}

.match-summary-form__team-head{
  display:grid;
  gap:10px;
  padding:12px 14px;
  background:rgba(255,255,255,.08);
}

.match-summary-form__team-id{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.match-summary-form__team-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
}

.match-summary-form__team-logo img{
  display:block;
  width:24px;
  height:24px;
  object-fit:contain;
}

.match-summary-form__team-title{
  margin:0;
  min-width:0;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:16px;
  line-height:1.2;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.match-summary-form__team-form{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.match-summary-form__team-form-label{
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}

.match-summary-form__team-form .match-form-badges{
  display:flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  overflow:hidden;
}

.match-summary-form__list{
  display:grid;
  gap:12px;
}

.match-summary-form__card{
  display:block;
  overflow:hidden;
  padding:10px 14px;
  background:rgba(255,255,255,.08);
  color:inherit;
}

.no-touch .match-summary-form__card:hover{
  background:rgba(255,255,255,.10);
}

.match-summary-form__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);
  align-items:center;
  gap:14px;
  min-width:0;
}

.match-summary-form__side{
  display:grid;
  align-items:center;
  gap:12px;
  min-width:0;
  max-width:100%;
}

.match-summary-form__side--home{
  grid-template-columns:minmax(0,1fr) 44px;
  justify-self:stretch;
}

.match-summary-form__side--away{
  grid-template-columns:44px minmax(0,1fr);
  justify-self:stretch;
}

.match-summary-form__text{
  min-width:0;
}

.match-summary-form__side--home .match-summary-form__text{
  text-align:right;
}

.match-summary-form__side--away .match-summary-form__text{
  text-align:left;
}

.match-summary-form__logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  flex:0 0 44px;
}

.match-summary-form__logo img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
}

.match-summary-form__name{
  display:-webkit-box;
  overflow:hidden;
  overflow-wrap:anywhere;
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:12px;
  line-height:1.15;
  font-weight:600;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.match-summary-form__score{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
  padding:0 16px;
}

.match-summary-form__score::before,
.match-summary-form__score::after{
  content:"";
  position:absolute;
  top:8px;
  bottom:8px;
  width:1px;
  background:rgba(255,255,255,.14);
}

.match-summary-form__score::before{
  left:0;
}

.match-summary-form__score::after{
  right:0;
}

.match-summary-form__score-value{
  color:var(--color-content-heading);
  font-family:var(--h1-font-family);
  font-size:15px;
  line-height:1;
  font-weight:700;
}

