/* Futebol Viseu v54 — classificação completa integrada em Jogos & Resultados.
   Mantém os cartões de jogos da v52 e substitui apenas a barra de separadores. */
html body #jogos .fv437-games-toolbar .fv401-match-tabs.fv52-tabs-count-4 {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:40px!important;
  width:min(100%,580px)!important;
  max-width:580px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  padding:4px!important;
  overflow:hidden!important;
}
html body #jogos .fv401-match-tabs.fv52-tabs-count-4 button{
  min-width:0!important;
  padding:0 6px!important;
  font-size:12px!important;
}
html body #jogos [data-fv401-panel][hidden]{display:none!important}
html body #jogos .fv54-ranking-panel {
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body #jogos .fv54-ranking-panel .fv53-standings-section {
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html body #jogos .fv54-ranking-panel .fv53-container {
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
}
html body #jogos .fv54-ranking-panel .fv53-card {max-width:100%!important;}
@media(max-width:700px){
  html body #jogos .fv437-games-toolbar .fv401-match-tabs.fv52-tabs-count-4 {
    width:100%!important;
    max-width:580px!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  html body #jogos .fv401-match-tabs.fv52-tabs-count-4 button{
    padding:0 2px!important;
    font-size:11px!important;
  }
}
@media(max-width:365px){
  /* Telefone estreito: dois separadores por fila para manter os rótulos legíveis. */
  html body #jogos .fv437-games-toolbar .fv401-match-tabs.fv52-tabs-count-4 {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:39px!important;
    height:86px!important;
    min-height:86px!important;
    max-height:86px!important;
  }
  html body #jogos .fv401-match-tabs.fv52-tabs-count-4 button{
    height:39px!important;
    min-height:39px!important;
    max-height:39px!important;
    font-size:12px!important;
  }
}
