/* Copa V2 — Public Clean + Bracket
   Pacote incremental para deixar a página mais pública, menos poluída e mais útil. */

/* Remove excesso de botões dos pacotes anteriores */
#uxQuickbar,
#uxActionPanel,
#view-thirds,
#view-notes,
#view-warroom,
.nav-btn[data-view="thirds"],
.nav-btn[data-view="notes"],
.nav-btn[data-view="warroom"] {
  display: none !important;
}

/* Corrige dropdown claro/ilegível de forma mais dura */
select,
select option,
select optgroup {
  background: #071313 !important;
  background-color: #071313 !important;
  color: #f6f1e8 !important;
}

select option:checked {
  background: #d8b26e !important;
  color: #11100c !important;
}

/* Painel mais limpo */
.pp-hidden {
  display: none !important;
}

.pp-full {
  grid-column: 1 / -1 !important;
}

.pp-public-note {
  padding: 14px 16px;
  border: 1px solid rgba(216,178,110,.22);
  border-radius: 18px;
  background: rgba(216,178,110,.075);
  color: #d7cfbf;
  line-height: 1.58;
  font-size: 13px;
}

.pp-dashboard-agenda {
  display: grid;
  gap: 14px;
}

.pp-date-group {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}

.pp-date-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: rgba(255,255,255,.055);
  color: var(--gold);
  font-weight: 900;
}

.pp-date-title small {
  color: #d7cfbf;
}

.pp-agenda-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.pp-agenda-game {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.pp-agenda-game strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.pp-agenda-game small {
  color: #d7cfbf;
}

/* Bracket estilo tabela de finais */
.pp-bracket-wrap {
  overflow-x: auto;
  padding-bottom: 10px;
}

.pp-bracket {
  min-width: 1560px;
  display: grid;
  grid-template-columns: 1.4fr 1.25fr 1.15fr 1.05fr 1.15fr 1.25fr 1.4fr;
  gap: 16px;
  align-items: stretch;
}

.pp-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
}

.pp-round-title {
  margin: 0 0 10px;
  color: #a9113f;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
}

.pp-round-title.gold {
  color: var(--gold);
}

.pp-bracket-match {
  position: relative;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: rgba(246,241,232,.96);
  color: #172121;
  box-shadow: 0 8px 26px rgba(0,0,0,.16);
}

.pp-bracket-match small {
  display: block;
  margin-bottom: 8px;
  color: #394244;
  font-weight: 900;
}

.pp-bracket-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(23,33,33,.22);
  font-weight: 900;
}

.pp-bracket-line span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-bracket-score {
  width: 32px;
  height: 28px;
  border: 1px solid rgba(23,33,33,.22);
  border-radius: 7px;
  background: rgba(255,255,255,.88);
  color: #172121;
  text-align: center;
  font-weight: 900;
}

.pp-bracket-score:focus {
  outline: 2px solid rgba(216,178,110,.7);
}

.pp-bracket-winner {
  margin-top: 8px;
  color: #a9113f;
  font-size: 12px;
  font-weight: 900;
}

.pp-bracket-final {
  justify-content: center;
}

.pp-bracket-final .pp-bracket-match {
  min-height: 138px;
  border: 2px solid rgba(216,178,110,.65);
}

.pp-third-place {
  opacity: .92;
}

.pp-cup-mark {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: rgba(216,178,110,.65);
  font-family: "Playfair Display", serif;
  font-size: 62px;
  font-weight: 900;
}

/* Simulador de mata-mata */
.pp-ko-simulator {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(216,178,110,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,178,110,.10), transparent 32%),
    rgba(0,0,0,.18);
}

.pp-ko-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pp-ko-head h3 {
  margin-bottom: 6px;
}

.pp-ko-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pp-small-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  color: #f6f1e8;
  font-size: 12px;
  font-weight: 900;
}

.pp-small-btn:hover {
  background: rgba(255,255,255,.13);
}

.pp-small-btn.gold {
  background: rgba(216,178,110,.16);
  border-color: rgba(216,178,110,.32);
  color: #ffe7af;
}

.pp-small-btn.red {
  background: rgba(240,114,109,.13);
  border-color: rgba(240,114,109,.28);
  color: #ffe1df;
}

/* Times — galeria pública */
.pp-teams-gallery {
  margin-top: 18px;
}

.pp-teams-gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.pp-team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pp-team-card {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: .18s ease;
}

.pp-team-card:hover,
.pp-team-card.active {
  border-color: rgba(216,178,110,.45);
  background: rgba(216,178,110,.10);
  transform: translateY(-2px);
}

.pp-team-card strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-team-card small {
  color: #d7cfbf;
}

/* Inteligência mais clara */
.pp-intel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.pp-intel-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: rgba(0,0,0,.18);
}

.pp-intel-card h3 {
  margin-bottom: 10px;
}

.pp-intel-card p {
  color: #d7cfbf;
  line-height: 1.6;
}

.pp-span-4 { grid-column: span 4; }
.pp-span-6 { grid-column: span 6; }
.pp-span-8 { grid-column: span 8; }
.pp-span-12 { grid-column: span 12; }

.pp-ranking-list {
  display: grid;
  gap: 8px;
}

.pp-ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 58px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.pp-ranking-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-pill {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(216,178,110,.14);
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
}

.pp-matchlab-note {
  margin-bottom: 14px;
}

/* Responsivo */
@media (max-width: 1250px) {
  .pp-agenda-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-span-4,
  .pp-span-6,
  .pp-span-8,
  .pp-span-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  .pp-agenda-list,
  .pp-team-grid {
    grid-template-columns: 1fr;
  }

  .pp-ko-head,
  .pp-teams-gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
