/* ===========================================================
   FVDF - Competições ao vivo (2026-08-07)
   Ver fvdf-competicoes.js. Referência visual: página de competições da
   CBV (cbv.com.br), adaptada para a fonte (Manrope) e cores oficiais da
   marca (navy #21266E, dourado #E7D303, verde #2A9540). Todos os dados
   vêm da API pública do Placarsoft (window.FvdfPlacarsoft).
   =========================================================== */

.fvdf-live-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-family: 'Manrope', Roboto, sans-serif;
}

.fvdf-live-loading,
.fvdf-live-empty {
  text-align: center;
  color: #6B7280;
  padding: 40px 20px;
  font-weight: 600;
}

/* ---------- Landing: escolher Jogos Abertos / Campeonato ---------- */

.fvdf-live-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #21266E;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(33, 38, 110, 0.1);
}
.fvdf-live-section-title:first-child {
  margin-top: 8px;
}

.fvdf-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.fvdf-live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(19, 30, 63, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(19, 30, 63, 0.06);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.fvdf-live-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(19, 30, 63, 0.12);
}

.fvdf-live-card-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #21266E;
  color: #E7D303;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
}
.fvdf-live-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fvdf-live-card-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #21266E;
  margin: 0 0 4px;
  line-height: 1.35;
}
.fvdf-live-card-info span {
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
}

/* ---------- Detalhe da competição ---------- */

.fvdf-live-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #21266E;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 12px;
  font-family: inherit;
}
.fvdf-live-back:hover {
  color: #b39a00;
}

.fvdf-live-detail-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #21266E;
  margin: 0 0 12px;
}

.fvdf-live-subpicker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fvdf-live-subpicker button {
  border: 1px solid rgba(33, 38, 110, 0.2);
  background: #ffffff;
  color: #21266E;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.fvdf-live-subpicker button.is-active,
.fvdf-live-subpicker button:hover {
  background: #21266E;
  color: #ffffff;
}

/* Bloco de divisão (ex.: Divisão Especial, 1ª Divisão, 2ª Divisão) —
   quando a competição tem mais de uma, cada uma vira um bloco visual
   próprio com sua classificação + tabela de jogos completas. */
.fvdf-live-division {
  margin-bottom: 40px;
  padding-bottom: 8px;
}
.fvdf-live-division + .fvdf-live-division {
  border-top: 2px solid rgba(19, 30, 63, 0.08);
  padding-top: 32px;
}
.fvdf-live-division-title {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: #21266E;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.fvdf-live-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.fvdf-live-group-block {
  margin-bottom: 24px;
}
.fvdf-live-group-block h4 {
  font-size: 13px;
  font-weight: 800;
  color: #21266E;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 10px;
}

.fvdf-live-standings {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid rgba(19, 30, 63, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.fvdf-live-standings th {
  background: #F7F8FA;
  color: #6B7280;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 8px 10px;
  text-align: left;
}
.fvdf-live-standings th.fvdf-live-num {
  text-align: center;
  width: 30px;
}
.fvdf-live-standings td {
  padding: 8px 10px;
  border-top: 1px solid rgba(19, 30, 63, 0.06);
  color: #21266E;
  font-weight: 600;
}
.fvdf-live-standings td.fvdf-live-num {
  text-align: center;
  font-weight: 800;
  color: #6B7280;
}
.fvdf-live-standings td.fvdf-live-pts {
  text-align: center;
  font-weight: 800;
  color: #21266E;
}
.fvdf-live-standings-empty {
  font-size: 12.5px;
  color: #6B7280;
  padding: 10px 2px;
}

.fvdf-live-round {
  margin-bottom: 20px;
}
.fvdf-live-round h4 {
  font-size: 13px;
  font-weight: 800;
  color: #21266E;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 8px;
}

.fvdf-live-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(19, 30, 63, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.fvdf-live-match-date {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #6B7280;
  font-weight: 700;
  width: 90px;
}
.fvdf-live-match-teams {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fvdf-live-match-team {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #21266E;
}
.fvdf-live-match-team span:last-child {
  color: #6B7280;
  font-weight: 800;
}
.fvdf-live-match-row.is-winner-1 .fvdf-live-match-team:first-child span:last-child,
.fvdf-live-match-row.is-winner-2 .fvdf-live-match-team:last-child span:last-child {
  color: #2A9540;
}
.fvdf-live-match-status {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F7F8FA;
  color: #6B7280;
}
.fvdf-live-match-status.is-done {
  background: rgba(42, 149, 64, 0.12);
  color: #2A9540;
}

@media (max-width: 860px) {
  .fvdf-live-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .fvdf-live-match-row {
    flex-wrap: wrap;
  }
}
