/* SerieAGoal 2.2.249 — compact article Data Blocks.
 * This file MUST load after article media CSS. Editorial photos may be full bleed;
 * logos, crests and avatars inside Data Blocks never are. */

body .sg-data-widget{
  width:100%!important;
  max-width:100%!important;
  margin:18px 0!important;
  overflow:hidden!important;
  border-radius:12px!important;
  box-shadow:0 4px 16px rgba(9,18,38,.035)!important;
}
body .sg-data-widget,
body .sg-data-widget *{box-sizing:border-box!important;min-width:0}

/* Neutralize every broad article-media rule first. */
body.slr-social-article-page .slr-article-body .sg-data-widget img,
body.slr-social-article-page .slr-social-article-content .sg-data-widget img,
body.slr-article-page .slr-article-body .sg-data-widget img,
body .sg-page-news .sg-article-section-body .sg-data-widget img,
body .sg-page-news .sg-article-body .sg-data-widget img,
body .sg-article-story .sg-data-widget img,
body .sg-data-widget img{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:auto!important;
  max-width:48px!important;
  height:auto!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}

/* Header: compact and visually consistent with the article column. */
body .sg-data-widget .sg-db-head{
  min-height:38px!important;
  padding:8px 11px!important;
  gap:8px!important;
}
body .sg-data-widget .sg-db-head>span{gap:7px!important;min-width:0!important}
body .sg-data-widget .sg-db-head b{
  padding:3px 6px!important;
  border-radius:5px!important;
  font-size:8px!important;
  line-height:1!important;
}
body .sg-data-widget .sg-db-head strong{
  overflow:hidden!important;
  font-size:11px!important;
  line-height:1.2!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .sg-data-widget .sg-db-head>small{
  max-width:44%!important;
  overflow:hidden!important;
  font-size:9px!important;
  line-height:1.2!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Main entity card: crests/avatars are deliberately small. */
body .sg-data-widget .sg-db-entity,
body .sg-data-widget.is-standard .sg-db-entity{
  gap:9px!important;
  padding:11px 12px!important;
}
body .sg-data-widget .sg-db-avatar,
body .sg-data-widget.is-standard .sg-db-avatar{
  display:grid!important;
  place-items:center!important;
  flex:0 0 40px!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  overflow:hidden!important;
  border-radius:9px!important;
}
body .sg-data-widget .sg-db-avatar.is-player{border-radius:50%!important}
body .sg-data-widget .sg-db-avatar img,
body .sg-data-widget.is-standard .sg-db-avatar img{
  width:36px!important;
  max-width:36px!important;
  height:36px!important;
  max-height:36px!important;
  object-fit:contain!important;
}
body .sg-data-widget .sg-db-avatar.is-player img{
  width:40px!important;
  max-width:40px!important;
  height:40px!important;
  max-height:40px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
body .sg-data-widget .sg-db-entity-copy{gap:2px!important}
body .sg-data-widget .sg-db-entity-copy>strong,
body .sg-data-widget.is-standard .sg-db-entity-copy>strong{
  font-size:13px!important;
  line-height:1.18!important;
}
body .sg-data-widget .sg-db-entity-copy>small{
  font-size:10px!important;
  line-height:1.2!important;
}
body .sg-data-widget .sg-db-arrow{font-size:20px!important}

/* KPI row. */
body .sg-data-widget .sg-db-metrics>span{padding:8px 7px!important}
body .sg-data-widget .sg-db-metrics small{font-size:8px!important}
body .sg-data-widget .sg-db-metrics strong{font-size:13px!important}
body .sg-data-widget .sg-db-note{padding:8px 12px!important;font-size:10px!important}
body .sg-data-widget .sg-db-next{gap:2px!important;padding:9px 12px!important}
body .sg-data-widget .sg-db-next small{font-size:9px!important}
body .sg-data-widget .sg-db-next strong{font-size:11px!important;line-height:1.25!important}

/* Match card crests. */
body .sg-data-widget .sg-db-fixture{
  gap:8px!important;
  padding:11px 12px!important;
}
body .sg-data-widget .sg-db-fixture-team{
  grid-template-columns:26px minmax(0,1fr) auto!important;
  gap:6px!important;
}
body .sg-data-widget .sg-db-fixture-team:last-child{
  grid-template-columns:auto minmax(0,1fr) 26px!important;
}
body .sg-data-widget .sg-db-fixture-team img{
  width:26px!important;
  max-width:26px!important;
  height:26px!important;
  max-height:26px!important;
  object-fit:contain!important;
}
body .sg-data-widget .sg-db-fixture-team strong{font-size:11px!important}
body .sg-data-widget .sg-db-fixture-team>b{font-size:15px!important}
body .sg-data-widget .sg-db-fixture-mid{min-width:62px!important}
body .sg-data-widget .sg-db-fixture-mid strong{font-size:9px!important}
body .sg-data-widget .sg-db-fixture-mid small{font-size:8px!important}

/* Standings / mini-standings. */
body .sg-data-widget .sg-db-table{width:100%!important;overflow:hidden!important}
body .sg-data-widget .sg-db-table-row{
  grid-template-columns:28px minmax(0,1fr) 36px 38px!important;
  min-height:36px!important;
  padding:0 9px!important;
  font-size:10px!important;
}
body .sg-data-widget .sg-db-table-row.is-head{min-height:27px!important;font-size:8px!important}
body .sg-data-widget .sg-db-table-team{gap:6px!important}
body .sg-data-widget .sg-db-table-team img{
  flex:0 0 19px!important;
  width:19px!important;
  max-width:19px!important;
  height:19px!important;
  max-height:19px!important;
  object-fit:contain!important;
}
body .sg-data-widget .sg-db-table-team strong{font-size:10px!important}

/* Player rankings / scorers / leaders. */
body .sg-data-widget .sg-db-rank-list>a{
  grid-template-columns:22px minmax(0,1fr) 40px!important;
  min-height:42px!important;
  padding:5px 10px!important;
}
body .sg-data-widget .sg-db-rank-list>a>span{grid-template-columns:28px minmax(0,1fr)!important;column-gap:7px!important}
body .sg-data-widget .sg-db-rank-list img{
  width:28px!important;
  max-width:28px!important;
  height:28px!important;
  max-height:28px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
body .sg-data-widget .sg-db-rank-list strong{font-size:10px!important}
body .sg-data-widget .sg-db-rank-list small{font-size:8px!important}
body .sg-data-widget .sg-db-rank-list em{font-size:13px!important}

/* Smart Team/Competition widgets used heavily inside articles. */
body .sg-data-widget .sg-db-smart-section{padding:9px 11px!important}
body .sg-data-widget .sg-db-smart-title{margin-bottom:7px!important}
body .sg-data-widget .sg-db-smart-title>span{font-size:9px!important}
body .sg-data-widget .sg-db-smart-title>small{font-size:8px!important}
body .sg-data-widget .sg-db-smart-kpis>span{padding:7px 6px!important}
body .sg-data-widget .sg-db-smart-kpis small{font-size:7px!important}
body .sg-data-widget .sg-db-smart-kpis strong{font-size:12px!important}
body .sg-data-widget .sg-db-smart-form{gap:4px!important}
body .sg-data-widget .sg-db-smart-form>a{gap:4px!important;padding:5px 6px!important}
body .sg-data-widget .sg-db-smart-form b{width:19px!important;height:19px!important;flex-basis:19px!important;font-size:8px!important}
body .sg-data-widget .sg-db-smart-form small{font-size:7px!important}
body .sg-data-widget .sg-db-smart-columns>section>header,
body .sg-data-widget .sg-db-smart-market>section>header{padding:7px 10px!important;font-size:8px!important}
body .sg-data-widget .sg-db-smart-podium>a{
  grid-template-columns:21px 24px minmax(0,1fr) auto!important;
  min-height:38px!important;
  padding:5px 10px!important;
}
body .sg-data-widget .sg-db-smart-podium img{
  width:24px!important;
  max-width:24px!important;
  height:24px!important;
  max-height:24px!important;
  object-fit:contain!important;
}
body .sg-data-widget .sg-db-smart-podium img.is-player{border-radius:50%!important;object-fit:cover!important}
body .sg-data-widget .sg-db-smart-podium>a>span,
body .sg-data-widget .sg-db-smart-podium>a>strong{font-size:9px!important}

/* Career, squad, injury, lineup and event rows. */
body .sg-data-widget .sg-db-career-row>img{
  width:25px!important;max-width:25px!important;height:25px!important;max-height:25px!important;object-fit:contain!important
}
body .sg-data-widget .sg-db-injury-list img{
  width:29px!important;max-width:29px!important;height:29px!important;max-height:29px!important;border-radius:50%!important;object-fit:cover!important
}
body .sg-data-widget .sg-db-squad img{
  width:24px!important;max-width:24px!important;height:24px!important;max-height:24px!important;border-radius:50%!important;object-fit:cover!important
}
body .sg-data-widget .sg-db-lineups>section>header img{
  width:25px!important;max-width:25px!important;height:25px!important;max-height:25px!important;object-fit:contain!important
}
body .sg-data-widget .sg-db-lineup-list img{
  width:23px!important;max-width:23px!important;height:23px!important;max-height:23px!important;border-radius:50%!important;object-fit:cover!important
}
body .sg-data-widget .sg-db-event-row>img{
  width:20px!important;max-width:20px!important;height:20px!important;max-height:20px!important;object-fit:contain!important
}

/* Match statistics. */
body .sg-data-widget .sg-db-stat-head>span{gap:7px!important;padding:8px 10px!important}
body .sg-data-widget .sg-db-stat-head img{
  width:24px!important;max-width:24px!important;height:24px!important;max-height:24px!important;object-fit:contain!important
}
body .sg-data-widget .sg-db-stat-head strong{font-size:9px!important}
body .sg-data-widget .sg-db-stat-list>div{min-height:36px!important;padding:7px 10px!important}
body .sg-data-widget .sg-db-stat-list span{font-size:8px!important}
body .sg-data-widget .sg-db-stat-list strong{font-size:10px!important}

/* Bracket logos. */
body .sg-data-widget .sg-db-bracket{grid-auto-columns:minmax(170px,1fr)!important;padding:9px!important}
body .sg-data-widget .sg-db-bracket img{
  width:18px!important;max-width:18px!important;height:18px!important;max-height:18px!important;object-fit:contain!important
}

/* Long translated labels must never widen/break the story column. */
body .sg-data-widget strong,
body .sg-data-widget small,
body .sg-data-widget span,
body .sg-data-widget header{
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .sg-data-widget .sg-db-entity-copy>strong,
body .sg-data-widget .sg-db-entity-copy>small,
body .sg-data-widget .sg-db-table-team strong,
body .sg-data-widget .sg-db-fixture-team strong{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media(max-width:640px){
  body .sg-data-widget{margin:15px 0!important;border-radius:10px!important;box-shadow:none!important}
  body .sg-data-widget .sg-db-head{min-height:36px!important;padding:7px 9px!important}
  body .sg-data-widget .sg-db-head strong{font-size:10px!important}
  body .sg-data-widget .sg-db-head>small{max-width:38%!important;font-size:8px!important}
  body .sg-data-widget .sg-db-entity,
  body .sg-data-widget.is-standard .sg-db-entity{padding:9px 10px!important}
  body .sg-data-widget .sg-db-avatar,
  body .sg-data-widget.is-standard .sg-db-avatar{
    flex-basis:36px!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important
  }
  body .sg-data-widget .sg-db-avatar img,
  body .sg-data-widget.is-standard .sg-db-avatar img{
    width:32px!important;max-width:32px!important;height:32px!important;max-height:32px!important
  }
  body .sg-data-widget .sg-db-avatar.is-player img{
    width:36px!important;max-width:36px!important;height:36px!important;max-height:36px!important
  }
  body .sg-data-widget .sg-db-entity-copy>strong,
  body .sg-data-widget.is-standard .sg-db-entity-copy>strong{font-size:12px!important}
  body .sg-data-widget .sg-db-fixture{grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr)!important;gap:5px!important;padding:10px 7px!important}
  body .sg-data-widget .sg-db-fixture-team,
  body .sg-data-widget .sg-db-fixture-team:last-child{display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;text-align:center!important}
  body .sg-data-widget .sg-db-fixture-team img{width:24px!important;max-width:24px!important;height:24px!important;max-height:24px!important}
  body .sg-data-widget .sg-db-fixture-team strong{max-width:110px!important;font-size:10px!important;line-height:1.15!important;white-space:normal!important}
  body .sg-data-widget .sg-db-fixture-team>b{font-size:14px!important}
  body .sg-data-widget .sg-db-fixture-mid{min-width:0!important}
  body .sg-data-widget .sg-db-table-row{grid-template-columns:25px minmax(0,1fr) 31px 33px!important;min-height:34px!important;padding:0 7px!important}
  body .sg-data-widget .sg-db-table-team img{width:18px!important;max-width:18px!important;height:18px!important;max-height:18px!important;flex-basis:18px!important}
  body .sg-data-widget .sg-db-metrics,
  body .sg-data-widget-player-stats .sg-db-metrics,
  body .sg-data-widget-player.is-standard .sg-db-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
