body { 
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #f0f0f0;
    background: linear-gradient(to bottom, #0a0a0a, rgb(20, 20, 20));
    min-height: 100vh;
    background-attachment: fixed;
}

.teams-container { 
    width: 90%;
    max-width: 1240px;
    margin: 80px auto 40px auto;
    padding: 30px;
    background-color: rgba(30,30,30,0.95);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141414ff;
    border-radius: 20px;
    padding: 64px 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    min-height: 240px;
    max-width: 100%;
    position: relative;
    z-index: 0;
    box-sizing: border-box;
    gap: 32px;
}

.cabecalho-team-info {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.cabecalho-team-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-right: 28px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
}

.cabecalho-team-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ededed;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cabecalho-side-info-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  margin-right: 36px;
  gap: 120px;
  min-width: 150px;
  height: auto;
}

.cabecalho-country-flag {
  display: flex;
  justify-content: flex-end;
}

.cabecalho-country-flag img {
  width: 38px;
  height: 25px;
  object-fit: cover;
}

.cabecalho-league-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ededed;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cabecalho-league-info:hover {
  opacity: 0.8;
}

.cabecalho-league-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cabecalho-league-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abas-principais {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.aba-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.aba-btn:hover {
    color: #fff;
}

.aba-btn.active {
    color: #fff;
    font-weight: bold;
}

.aba-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a73e8;
}

.filtros-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filtros-tempo, 
.filtros-mando,
.filtros-partidas {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filtro-btn {
    padding: 0.6rem 1rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    transition: background .2s;
    min-width: 100px;
}

.filtro-btn:hover,
.filtro-btn:focus {
    background: #444;
}

.filtro-btn.active {
    background: #1a73e8;
    color: #fff;
}

.partidas-selector {
    padding: 0.6rem 1rem;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 100px;
}

.partidas-selector option:disabled {
    color: #777;
    background-color: #333;
}

.partidas-selector-label {
    color: #bbb;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.partidas-info-message {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

.stats-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.stats-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    font-weight: bold;
}

.stats-summary.aviso-limite {
    background-color: #2a2a2a;
    color: #ff9800;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 6px 5px;
}

.stat-name-value {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.stat-name {
    font-weight: 400;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 8px;
}

.stat-value {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 0.9em;
}

.stat-progress-container {
    width: 100%;
    background: #333;
    border-radius: 3px;
    height: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.stat-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.category-title {
    font-weight: bold;
    color: #bbb;
    padding: 10px;
    border-bottom: 1px solid #555;
    text-align: left;
    margin-bottom: 0.5rem;
}

.partidas-container {
    padding: 1rem;
}

.partidas-subtitulo {
    margin: 1rem 0 0.5rem;
    color: #f0f0f0;
    font-size: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    text-align: center;
}

.partidas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sem-partidas {
    color: #aaa;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

.link-partida {
    text-decoration: none;
    color: inherit;
    display: block;
}

.partida-box {
    padding: 16px;
    margin-bottom: 12px;
    background: #1f1f1f;
    border-radius: 8px;
    border-left: 4px solid #444;
    transition: all 0.3s ease;
}

.partida-box:hover {
    background: #252525;
    transform: translateY(-2px);
}

.vitoria {
    border-left-color: #4CAF50;
}

.vitoria .partida-placar {
    color: #4CAF50;
}

.empate {
    border-left-color: #9E9E9E;
}

.empate .partida-placar {
    color: #9E9E9E;
}

.derrota {
    border-left-color: #F44336;
}

.derrota .partida-placar {
    color: #F44336;
}

.partida-topo {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.partida-centro {
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: normal;
    color: white;
}

.partida-times-placar {
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: normal;
    color: white;
}

.partida-times-placar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.time-casa, .time-fora {
    display: flex;
    align-items: center;
    flex: 1;
}

.time-casa {
    justify-content: flex-end;
    text-align: right;
}

.time-fora {
    justify-content: flex-start;
    text-align: left;
}

.partida-placar {
    width: 60px;
    text-align: center;
    font-size: 18px;
    margin: 0 15px;
    font-weight: bold;
}

.logo-time {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin: 0 8px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.partida-nome {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.partida-topo {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.resumo-partidas {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
    color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.resumo-partidas span {
    margin: 0 10px;
}

.resumo-destaque {
    font-weight: bold;
    color: #fff;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn, .load-less-btn {
    padding: 8px 16px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.load-more-btn:hover, .load-less-btn:hover {
    background-color: #0d5bba;
}

.load-more-message {
    margin-top: 10px;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

.accordion-group {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.accordion-toggle {
    width: 100%;
    padding: 14px 20px;
    background-color: #252525;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.accordion-toggle:hover {
    background-color: #2e2e2e;
}

.accordion-toggle .arrow-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #aaa;
}

.accordion-toggle.active .arrow-icon {
    transform: rotate(180deg);
    color: #f0f0f0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background-color: #1f1f1f;
    padding: 0 15px;
}

.accordion-content.open {
    padding: 10px 15px 15px 15px;
    max-height: 2000px;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .teams-container {
        margin-top: 120px !important;
        padding: 20px 15px;
    }

    .cabecalho {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        min-height: auto;
        text-align: center;
    }

    .cabecalho-team-info {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        gap: 10px;
    }

    .cabecalho-team-logo {
        height: 70px;
        width: auto;
        margin-right: 0;
    }

    .cabecalho-team-name {
        font-size: 1.8rem;
    }

    .cabecalho-side-info-vertical {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-right: 0;
    }

    .cabecalho-league-info {
        margin-top: 0;
    }

    /* Centralizar abas principais no mobile */
    .abas-principais {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .aba-btn {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    /* Centralizar e organizar filtros de estatísticas */
    #conteudo-estatisticas-ui {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filtros-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .filtros-tempo, 
    .filtros-mando,
    .filtros-partidas {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .filtro-btn {
        min-width: 80px;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .partidas-selector {
        min-width: 80px;
    }

    /* Ajustes para partidas no mobile */
    .partida-box {
        padding: 12px;
    }

    .partida-topo {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .partida-data, 
    .partida-estadio, 
    .partida-torneio {
        margin-right: 0;
        margin-bottom: 5px;
        justify-content: center;
        text-align: center;
    }

    .partida-nome {
        font-size: 13px;
        max-width: 100px;
    }

    .partida-placar {
        font-size: 16px;
        margin: 0 10px;
        min-width: 50px;
    }

    .logo-time {
        width: 28px;
        height: 28px;
    }

    .resumo-partidas {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .teams-container {
        padding: 15px 10px;
        margin-top: 110px !important;
    }

    .cabecalho-team-name {
        font-size: 1.5rem;
    }

    .cabecalho-team-logo {
        height: 60px;
    }

    .cabecalho-league-name {
        font-size: 0.8rem;
        max-width: 100px;
    }

    .cabecalho-country-flag img {
        width: 35px;
        height: 23px;
    }

    .cabecalho-league-logo {
        height: 20px;
        width: 20px;
    }

    .aba-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .partida-nome {
        font-size: 12px;
        max-width: 80px;
    }

    .partida-placar {
        font-size: 14px;
        min-width: 45px;
    }

    .logo-time {
        width: 24px;
        height: 24px;
    }
}

.filtros-mando .filtro-btn.active,
.filtros-mando .filtro-btn.is-active,
.filtros-mando .filtro-btn[aria-pressed="true"] {
  background-color: #1f6feb !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.is-hidden { display: none !important; }

::-webkit-scrollbar {
    width: 10px;
    background-color: #2c2c2c;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 2px solid #2c2c2c;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}







/* =========================
   Ultra-compacto (<= 350px)
   ========================= */
@media (max-width: 350px) {
  /* container geral dos filtros */
  .filtros-container {
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
  }

  /* Grids para organizar os grupos */
  .filtros-tempo,
  .filtros-mando,
  .filtros-partidas {
    display: grid;
    width: 100%;
    grid-gap: 0.5rem;
    justify-items: stretch;
    align-items: stretch;
  }

  /* Tempo: 2 colunas; "2º Tempo" quebra para linha de baixo ocupando toda a largura */
  .filtros-tempo {
    grid-template-columns: 1fr 1fr;
  }
  .filtros-tempo .filtro-btn:nth-child(3) {
    grid-column: 1 / -1; /* ocupa as 2 colunas */
  }

  /* Mando: "Todos" em linha própria; "Casa" e "Fora" lado a lado */
  .filtros-mando {
    grid-template-columns: 1fr 1fr;
  }
  .filtros-mando .filtro-btn:first-child {
    grid-column: 1 / -1;
  }

  /* Partidas: label em cima e select embaixo ocupando 100% */
  .filtros-partidas {
    grid-template-columns: 1fr;
  }
  .partidas-selector-label,
  .partidas-selector {
    width: 100%;
    justify-self: stretch;
  }

  /* Botões: tirar min-width herdado e ocupar a célula inteira */
  .filtro-btn {
    min-width: 0;   /* sobrescreve 80/100px do mobile padrão */
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
  }

  /* Select também sem min-width fixa */
  .partidas-selector {
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
  }
}.main-nav { overflow-y: clip; }

/* ==========================================================
   REVAMP (Times) — override visual (consistente com Matches)
   Substitua o arquivo: public/assets/teams/cabecalho.css
   Requer: times.css (variáveis --t-*)
   ========================================================== */

.teams-container{
  /* remove a “caixa gigante” e deixa o layout respirar, igual matches */
  margin: 22px auto 14px auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Cabeçalho do time (card) */
.cabecalho{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);

  padding: clamp(18px, 3.2vw, 44px);
  min-height: unset;

  border: 1px solid var(--t-border);
  background: rgba(16,16,16,.70);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  border-radius: var(--t-radius);
  margin-bottom: 14px;
}

.cabecalho-team-info{
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  margin-left: 0;
}

.cabecalho-team-logo{
  width: clamp(56px, 6vw, 96px);
  height: clamp(56px, 6vw, 96px);
  margin-right: 0;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.7));
}

.cabecalho-team-name{
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.cabecalho-side-info-vertical{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(18px, 5vw, 90px);
  margin-right: 0;
  min-width: 0;
}

.cabecalho-country-flag img{
  width: 34px;
  height: 22px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.cabecalho-league-info{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--t-radius-sm);
}

.cabecalho-league-info:hover{
  opacity: 1;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.cabecalho-league-logo{
  width: 28px;
  height: 28px;
}

.cabecalho-league-name{
  font-size: 0.98rem;
  font-weight: 800;
  color: rgba(255,255,255,.82);
  max-width: 320px;
}

/* Abas (segmentado estilo Matches) */
.abas-principais{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;

  padding: 12px 14px;
  border: 1px solid var(--t-border);
  background: rgba(16,16,16,.66);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  border-radius: var(--t-radius);
  margin: 0 0 14px 0;
}

.aba-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding: 9px 14px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  border-radius: var(--t-radius-sm);
}

.aba-btn:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
  color: rgba(255,255,255,.92);
}

.aba-btn:active{ transform: translateY(1px); }

.aba-btn.active{
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(29,78,216,.95));
  border-color: rgba(59,130,246,.90);
  color: #fff;
}

.aba-btn.active::after{ display:none !important; }

/* Filtros (card) */
.filtros-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 14px;
  border: 1px solid var(--t-border);
  background: rgba(16,16,16,.66);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  border-radius: var(--t-radius);
  margin-bottom: 14px;
}

.filtros-tempo,
.filtros-mando,
.filtros-partidas{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filtro-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--t-radius-sm);
  min-width: 110px;
}

.filtro-btn:hover,
.filtro-btn:focus{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
  outline: none;
}

.filtro-btn.active,
.filtro-btn.is-active,
.filtro-btn[aria-pressed="true"]{
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(29,78,216,.95));
  border-color: rgba(59,130,246,.90);
  color: #fff;
}

.partidas-selector-label{
  color: rgba(255,255,255,.70);
  font-weight: 900;
  font-size: 13px;
  margin-right: 0;
}

.partidas-selector{
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  border-radius: var(--t-radius-sm);
}

.partidas-selector:focus{
  border-color: rgba(59,130,246,.80);
  box-shadow: 0 0 0 2px rgba(59,130,246,.22);
}

.partidas-selector option:disabled{
  color: rgba(255,255,255,.38);
  background-color: rgba(10,10,10,.85);
}

/* Responsivo geral */
@media (max-width: 980px){
  .cabecalho{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cabecalho-side-info-vertical{
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .cabecalho-league-name{ max-width: 220px; }
  .filtros-container{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filtros-tempo,
  .filtros-mando,
  .filtros-partidas{
    justify-content: center;
  }
}

@media (max-width: 520px){
  .aba-btn{ flex: 1; min-width: 120px; text-align: center; }
  .filtro-btn{ min-width: 0; flex: 1; }
  .partidas-selector{ width: 100%; }
}


/* Ultra-compacto (<= 350px) — mantém o encaixe perfeito no celular pequeno */
@media (max-width: 350px){
  .filtros-container{
    gap: 10px;
    align-items: stretch;
  }

  .filtros-tempo,
  .filtros-mando,
  .filtros-partidas{
    display: grid;
    width: 100%;
    grid-gap: 8px;
    justify-items: stretch;
    align-items: stretch;
  }

  .filtros-tempo{ grid-template-columns: 1fr 1fr; }
  .filtros-tempo .filtro-btn:nth-child(3){ grid-column: 1 / -1; }

  .filtros-mando{ grid-template-columns: 1fr 1fr; }
  .filtros-mando .filtro-btn:first-child{ grid-column: 1 / -1; }

  .filtros-partidas{ grid-template-columns: 1fr; }

  .partidas-selector-label,
  .partidas-selector{ width: 100%; }

  .filtro-btn{
    width: 100%;
    padding: 9px 10px;
    font-size: 13px;
  }

  .partidas-selector{
    width: 100%;
    padding: 8px 10px;
  }
}

/* ==========================================================
   Ajuste CLEAN (Opções centralizadas e menos "bagunçadas")
   - Abas (Estatísticas/Partidas/Formação) como segment control
   - Filtros em uma barra central com grupos compactos
   ========================================================== */

/* Abas principais */
.abas-principais{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
  padding: 10px;
  margin: 18px auto 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(16,16,16,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border-radius: 0px;
  width: min(100%, 760px);
  border-bottom: none;
}

.aba-btn{
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  border-radius: 0px;
  line-height: 1;
}

.aba-btn:hover{
  color:#fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}

.aba-btn:active{
  transform: translateY(1px);
}

.aba-btn.active{
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 10px 18px rgba(29,78,216,.20);
}

/* remove o underline antigo */
.aba-btn.active::after{ display:none; }

/* Barra de filtros */
.filtros-container{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap: 12px;
  padding: 12px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(16,16,16,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  border-radius: 0px;
  width: min(100%, 920px);
}

.filtros-tempo,
.filtros-mando,
.filtros-partidas{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 0px;
}

.filtro-btn{
  min-width: unset;
  padding: 9px 12px;
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid transparent;
  border-radius: 0px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

.filtro-btn:hover{
  background: rgba(255,255,255,.06);
  color:#fff;
}

.filtro-btn:active{
  transform: translateY(1px);
}

.filtro-btn.active{
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-color: rgba(59,130,246,.55);
  color:#fff;
}

.partidas-selector-label{
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  font-weight: 600;
  margin-right: 6px;
}

.partidas-selector{
  min-width: 86px;
  padding: 9px 10px;
  background: rgba(0,0,0,.30);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0px;
  cursor: pointer;
  font-size: .95rem;
}

.partidas-info-message{
  margin-top: 8px;
  text-align: center;
}

/* Responsivo */
@media (max-width: 720px){
  .abas-principais{ width: 100%; }
  .filtros-container{ width: 100%; }
  .filtros-tempo, .filtros-mando, .filtros-partidas{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px){
  .abas-principais{ gap: 6px; }
  .aba-btn{ flex: 1; }
  .filtro-btn{ flex: 1; }
}

/* ==========================================================
   Ajuste pedido: remover contorno das opcoes + azul mais suave
   - .abas-principais sem caixa (só botões)
   - #conteudo-estatisticas-ui sem caixa e filtros sem caixa
   ========================================================== */
:root{
  --t-blue-1: rgba(96,165,250,.92);  /* azul mais suave */
  --t-blue-2: rgba(59,130,246,.92);
  --t-blue-border: rgba(96,165,250,.80);
  --t-blue-ring: rgba(96,165,250,.22);
}

/* Sem “caixa” nas abas */
.abas-principais{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  justify-content: center !important;
}

/* Sem “caixa” no bloco de estatísticas (e nos filtros) */
#conteudo-estatisticas-ui{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#conteudo-estatisticas-ui .filtros-container,
#conteudo-partidas-ui .filtros-container{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  justify-content: center !important;
  flex-wrap: wrap;
  row-gap: 10px;
}

/* Deixa os grupos só como alinhamento, sem “cartão” */
.filtros-tempo,
.filtros-mando,
.filtros-partidas{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Botões um pouco mais compactos (fica mais clean) */
.aba-btn,
.filtro-btn{
  min-width: unset;
}

/* Azul mais suave nos ativos */
.aba-btn.active{
  background: linear-gradient(180deg, var(--t-blue-1), var(--t-blue-2)) !important;
  border-color: var(--t-blue-border) !important;
}

.filtro-btn.active,
.filtro-btn.is-active,
.filtro-btn[aria-pressed="true"]{
  background: linear-gradient(180deg, var(--t-blue-1), var(--t-blue-2)) !important;
  border-color: var(--t-blue-border) !important;
}

.partidas-selector:focus{
  border-color: var(--t-blue-border) !important;
  box-shadow: 0 0 0 2px var(--t-blue-ring) !important;
}

/* Mobile: mantém centralizado e sem esticar */
@media (max-width: 720px){
  .abas-principais{ gap: 8px; }
  #conteudo-estatisticas-ui .filtros-container,
  #conteudo-partidas-ui .filtros-container{
    gap: 10px;
  }
}
