/* SG 2.2.194 — restore the original 2.2.190 compact score/rail geometry,
   while preserving every 2.2.191+ fix (mobile labels, red cards, live goal feedback,
   feature eligibility and a permanently reserved empty rail). */

.sg-match-row-wrap>.sg-match-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 118px!important;
  gap:0!important;
  align-items:stretch!important;
  min-height:64px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  padding-left:42px!important;
  padding-right:4px!important;
  width:100%!important;
  background:transparent!important;
}

.sg-match-main-link{
  display:grid!important;
  grid-template-columns:clamp(62px,10vw,76px) minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  min-width:0!important;
  width:100%!important;
  color:inherit!important;
  text-decoration:none!important;
  padding:5px 0!important;
}
.sg-match-main-link:hover{color:inherit!important}
.sg-match-main-link>.sg-match-status{
  grid-column:1!important;
  grid-row:1!important;
  justify-content:flex-start!important;
  text-align:left!important;
  padding-left:8px!important;
  padding-right:12px!important;
  font-size:10px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  min-width:0!important;
}
.sg-match-main-link>.sg-match-status.live{font-weight:900!important}
.sg-match-main-link>.sg-match-status i{width:5px!important;height:5px!important;flex:0 0 5px!important}

.sg-match-main-link>.sg-match-teams{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  width:100%!important;
}
.sg-match-main-link>.sg-match-teams>div{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) 28px!important;
  gap:7px!important;
  align-items:center!important;
  min-height:25px!important;
  min-width:0!important;
}
.sg-match-main-link>.sg-match-teams img{
  width:22px!important;
  height:22px!important;
  object-fit:contain!important;
  margin:0!important;
}
.sg-match-team-label{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  overflow:visible!important;
  white-space:normal!important;
  text-overflow:clip!important;
  padding:0!important;
}
.sg-match-team-name{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  padding:0!important;
  font-size:inherit!important;
  line-height:inherit!important;
  font-weight:inherit!important;
}
.sg-match-main-link>.sg-match-teams b[data-sg-score-home],
.sg-match-main-link>.sg-match-teams b[data-sg-score-away]{
  justify-self:end!important;
  min-width:22px!important;
  text-align:center!important;
  font-size:12px!important;
  padding-right:2px!important;
}

/* Espulsioni: un rosso semplice per 1, numero nel cartellino da 2 in su. */
.sg-team-red-card{
  flex:0 0 10px!important;
  width:10px!important;
  height:14px!important;
  min-width:10px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:2px!important;
  background:var(--sg-live)!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-style:normal!important;
  font-size:7px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  box-shadow:none!important;
}
.sg-team-red-card:not([data-count="0"]):not([data-count="1"]){width:auto!important;min-width:12px!important;padding-inline:2px!important}
.sg-team-red-card[hidden]{display:none!important}

/* Feature rail: always at the far right, never between logos/team names. */
.sg-match-feature-zone{
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  display:grid!important;
  grid-template-columns:1px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:9px 0 9px 8px!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
}
.sg-match-feature-zone.is-empty,
.sg-match-feature-zone.is-disabled{
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
}
/* Same fixed rail with or without icons: result, separator and rail never move. */
.sg-match-feature-zone.has-features{
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
}
.sg-match-feature-zone.has-features .sg-match-features{
  justify-content:flex-start!important;
  gap:7px!important;
}
.sg-match-feature-separator{
  width:1px!important;
  height:34px!important;
  background:var(--sg-line)!important;
  display:block!important;
}
.sg-match-features{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
}
.sg-match-feature-zone.is-empty .sg-match-features,
.sg-match-feature-zone.is-disabled .sg-match-features{display:none!important}
.sg-match-feature{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  border:0!important;
  background:transparent!important;
  color:var(--sg-muted)!important;
  text-decoration:none!important;
  border-radius:5px!important;
  position:relative!important;
}
.sg-match-feature:hover{color:var(--sg-text)!important;background:var(--sg-surface-2)!important}
.sg-match-feature.is-prediction{color:var(--sg-accent)!important}
.sg-match-feature.is-radio{width:auto!important;min-width:22px!important}
.sg-match-feature.is-radio b{font-size:7px!important;line-height:1!important;font-weight:950!important;letter-spacing:.04em;color:var(--sg-live)!important}
.sg-match-feature.is-tv .sg-svg,.sg-match-feature.is-lineup .sg-svg,.sg-match-feature.is-radio .sg-svg{stroke-width:1.65!important}

/* Goal feedback: soft red row -> 5s slow/small dot -> GOAL for 10s. */
.sg-match-row.sg-goal-row,
.sg-match-row.sg-goal-confirmed,
.sg-page-home .sg-match-row.sg-goal-row,
.sg-page-home .sg-match-row.sg-goal-confirmed,
.sg-page-preferiti .sg-match-row.sg-goal-row,
.sg-page-preferiti .sg-match-row.sg-goal-confirmed{
  background:color-mix(in srgb,var(--sg-live) 11%,var(--sg-surface))!important;
  transition:background .18s ease!important;
}
.sg-match-row.sg-goal-row .sg-match-status,
.sg-match-row.sg-goal-confirmed .sg-match-status{color:var(--sg-live)!important}
.sg-match-teams>div.sg-goal-target span{padding-right:0!important}
.sg-match-teams>div.sg-goal-target>.sg-match-team-label{padding-right:42px!important}
.sg-match-teams>div.sg-goal-target .sg-match-team-name{padding-right:0!important}
.sg-goal-signal,.sg-page-home .sg-goal-signal,.sg-page-preferiti .sg-goal-signal{right:31px!important}
.sg-goal-signal.is-pending,.sg-page-home .sg-goal-signal.is-pending,.sg-page-preferiti .sg-goal-signal.is-pending{
  width:6px!important;height:6px!important;border-radius:50%!important;background:var(--sg-live)!important;
  animation:sgGoalDotSlow2191 1.05s ease-in-out infinite!important;box-shadow:none!important;
}
.sg-goal-signal.is-goal,.sg-page-home .sg-goal-signal.is-goal,.sg-page-preferiti .sg-goal-signal.is-goal{
  color:var(--sg-live)!important;font-size:9px!important;font-weight:950!important;letter-spacing:.055em!important;
  background:transparent!important;animation:sgGoalPopClean .24s ease-out both!important;
}
@keyframes sgGoalDotSlow2191{0%,100%{opacity:.35;transform:translateY(-50%) scale(.82)}50%{opacity:1;transform:translateY(-50%) scale(1)}}

.sg-match-row>.sg-match-row-meta{grid-column:1/-1!important;margin:5px 0 0!important}

@media(max-width:760px){
  .sg-match-row-wrap>.sg-match-row{
    grid-template-columns:minmax(0,1fr) 92px!important;
    min-height:56px!important;
    padding-left:35px!important;
    padding-right:2px!important;
  }
  .sg-match-main-link{
    grid-template-columns:clamp(56px,16vw,66px) minmax(0,1fr)!important;
    min-width:0!important;
    width:100%!important;
  }
  .sg-match-main-link>.sg-match-status{
    padding-left:4px!important;
    padding-right:10px!important;
    font-size:9px!important;
  }
  .sg-match-main-link>.sg-match-teams{gap:2px!important;min-width:0!important}
  .sg-match-main-link>.sg-match-teams>div{
    grid-template-columns:20px minmax(0,1fr) 23px!important;
    gap:6px!important;
    min-height:24px!important;
    min-width:0!important;
  }
  .sg-match-main-link>.sg-match-teams img{width:19px!important;height:19px!important}
  .sg-match-team-label{gap:4px!important;min-width:0!important}
  .sg-match-team-name{font-size:11.5px!important;min-width:0!important}
  .sg-match-main-link>.sg-match-teams b[data-sg-score-home],
  .sg-match-main-link>.sg-match-teams b[data-sg-score-away]{font-size:12px!important;min-width:20px!important;padding-right:0!important}
  .sg-team-red-card{width:9px!important;height:13px!important;min-width:9px!important;font-size:6.5px!important;border-radius:2px!important}
  .sg-team-red-card:not([data-count="0"]):not([data-count="1"]){min-width:11px!important;padding-inline:2px!important}
  .sg-match-feature-zone{width:92px!important;min-width:92px!important;max-width:92px!important;grid-template-columns:1px minmax(0,1fr)!important;gap:5px!important;padding:8px 0 8px 5px!important}
  .sg-match-feature-zone.has-features,.sg-match-feature-zone.is-empty,.sg-match-feature-zone.is-disabled{width:92px!important;min-width:92px!important;max-width:92px!important}
  .sg-match-feature-separator{height:31px!important}
  .sg-match-features{gap:2px!important}
  .sg-match-feature-zone.has-features .sg-match-features{justify-content:flex-start!important;gap:3px!important}
  .sg-match-feature{width:18px!important;height:18px!important;min-width:18px!important}
  .sg-match-feature .sg-svg{width:14px!important;height:14px!important}
  .sg-match-feature.is-radio b{display:none!important}
  .sg-match-teams>div.sg-goal-target>.sg-match-team-label{padding-right:37px!important}
  .sg-goal-signal,.sg-page-home .sg-goal-signal,.sg-page-preferiti .sg-goal-signal{right:26px!important}
  .sg-goal-signal.is-goal,.sg-page-home .sg-goal-signal.is-goal,.sg-page-preferiti .sg-goal-signal.is-goal{font-size:8px!important}
}

@media(max-width:380px){
  .sg-match-row-wrap>.sg-match-row{padding-left:32px!important}
  .sg-match-main-link{grid-template-columns:54px minmax(0,1fr)!important}
  .sg-match-main-link>.sg-match-status{padding-right:7px!important;font-size:8.5px!important}
  .sg-match-main-link>.sg-match-teams>div{grid-template-columns:18px minmax(0,1fr) 21px!important;gap:5px!important}
  .sg-match-main-link>.sg-match-teams img{width:17px!important;height:17px!important}
  .sg-match-team-name{font-size:10.8px!important}
  .sg-match-feature-zone{padding-left:4px!important}
  .sg-match-feature{width:16px!important;height:17px!important;min-width:16px!important}
  .sg-match-feature .sg-svg{width:13px!important;height:13px!important}
}

@media(prefers-reduced-motion:reduce){
  .sg-goal-signal{animation:none!important}
  .sg-goal-signal.is-pending{opacity:1!important}
}

/* SG 2.2.199 — final fixtures do not need a favorite control.
   Recover the left gutter only for finished rows; pre-match/live geometry stays untouched. */
.sg-match-row-wrap.is-finished>.sg-match-row{
  padding-left:10px!important;
}
.sg-match-row-wrap.is-finished .sg-match-main-link{
  grid-template-columns:44px minmax(0,1fr)!important;
}
.sg-match-row-wrap.is-finished .sg-match-main-link>.sg-match-status{
  padding-left:2px!important;
  padding-right:7px!important;
}
@media(max-width:760px){
  .sg-match-row-wrap.is-finished>.sg-match-row{padding-left:8px!important}
  .sg-match-row-wrap.is-finished .sg-match-main-link{grid-template-columns:38px minmax(0,1fr)!important}
  .sg-match-row-wrap.is-finished .sg-match-main-link>.sg-match-status{padding-left:0!important;padding-right:5px!important}
}
@media(max-width:380px){
  .sg-match-row-wrap.is-finished>.sg-match-row{padding-left:6px!important}
  .sg-match-row-wrap.is-finished .sg-match-main-link{grid-template-columns:36px minmax(0,1fr)!important}
}
\n\n/* SG 2.2.200 — finished fixtures: move FT slightly right without moving teams/scores.\n   Desktop and mobile only; all live/pre-match geometry stays untouched. */\n.sg-match-row-wrap.is-finished .sg-match-main-link>.sg-match-status{\n  padding-left:8px!important;\n  padding-right:1px!important;\n}\n@media(max-width:760px){\n  .sg-match-row-wrap.is-finished .sg-match-main-link>.sg-match-status{\n    padding-left:5px!important;\n    padding-right:0!important;\n  }\n}\n@media(max-width:380px){\n  .sg-match-row-wrap.is-finished .sg-match-main-link>.sg-match-status{\n    padding-left:4px!important;\n  }\n}\n