/* SerieAGoal v1.46 | MOBILE ONLY | Container full-bleed, not child UI.
   Isolato in un asset nuovo caricato dopo tutti i fogli legacy (anche temi).
   NON modifica desktop, roster, testo, tab orizzontali, scoreboard, badge o accessi AI.
*/
@media screen and (max-width: 760px) {
  /* Lo spazio residuo veniva da piu' livelli di layout, non solo sg-shell. */
  html[data-sg-theme] body.sg-body:is(.sg-page-home,.sg-page-partite,.sg-page-news) .sg-shell,
  html[data-sg-theme] body.sg-body:is(.sg-page-home,.sg-page-partite,.sg-page-news) .sg-main,
  html[data-sg-theme] body.sg-body:is(.sg-page-home,.sg-page-partite,.sg-page-news) .sg-content-grid,
  html[data-sg-theme] body.sg-body:is(.sg-page-home,.sg-page-partite,.sg-page-news) .sg-feed,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* PARTITE: vere card renderizzate dalla lista home.
     Non togliamo il bordo separatore delle righe e non tocchiamo loghi/azioni. */
  html[data-sg-theme] body.sg-body.sg-page-home .sg-main section.sg-card.sg-league-card,
  html[data-sg-theme] body.sg-body.sg-page-home .sg-main section.sg-card.sg-home-league-card,
  html[data-sg-theme] body.sg-body.sg-page-home .sg-main [data-sg-league-card],
  html[data-sg-theme] body.sg-body.sg-page-home .sg-main > section.sg-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  /* NEWS: il layout attivo usa sg49-*, non le vecchie card sg-news-*.
     Gli spazi INTERNI dei testi rimangono per una lettura corretta. */
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-page,
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-layout,
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-main {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-panel,
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-panel.sg49-top,
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-panel.sg49-feed-section,
  html[data-sg-theme] body.sg-body.sg-page-news .sg50-focus-section {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  /* Pannelli News: 14px solo all'interno (non comprimere l'intera pagina). */
  html[data-sg-theme] body.sg-body.sg-page-news .sg49-panel {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* SINGLE MATCH: solo pannelli esterni, non il campo/giocatori o i tab. */
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout > .sg-feed > section.sg-card,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout > .sg-feed > .sg-card,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout .sg-card.sg-match-center-card,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout .sg-card.sg-section,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout .sg-card.sg-result-card,
  html[data-sg-theme] body.sg-body.sg-page-partite .sg-match-detail-layout .sg-card.sg-lineup-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
}
