/* ========================================================
   BALLON D'OR - CERIMÔNIA DE GALA & PREMIAÇÕES BCL
   Identidade Visual: Preto Nobre Ônix & Dourado Metálico
   ======================================================== */

.ballon-dor-screen {
  padding: 24px 0px;
  max-width: 1200px;
  margin: 0 auto;
  color: #f8fafc;
  font-family: var(--font-base);
}

/* BANNER DE GALA */
.bd-header-banner {
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.22), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15), transparent 45%),
              linear-gradient(135deg, #09090b 0%, #121217 50%, #050507 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.12);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bd-kicker {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #fbbf24;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 4px 0;
  background: linear-gradient(135deg, #ffffff 20%, #fef08a 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bd-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 4px 0 0 0;
}

/* BARRA DE FILTROS BALLON D'OR */
.bd-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.bd-select-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.bd-filter-label {
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.bd-select {
  background: #09090b;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
}

.bd-select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.bd-export-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d4af37 50%, #b45309 100%);
  color: #050507;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}

.bd-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.6);
}

/* PÓDIO DO BALLON D'OR */
.bd-podium-section {
  margin-bottom: 36px;
}

.bd-podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.bd-podium-card {
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.9) 0%, rgba(10, 10, 14, 0.98) 100%);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.bd-podium-card.first {
  width: 320px;
  border: 2px solid #fbbf24;
  box-shadow: 0 16px 45px rgba(251, 191, 36, 0.25), 0 0 35px rgba(212, 175, 55, 0.15);
  order: 2;
  transform: translateY(-16px);
}

.bd-podium-card.second {
  width: 280px;
  border: 1.5px solid rgba(226, 232, 240, 0.5);
  order: 1;
}

.bd-podium-card.third {
  width: 280px;
  border: 1.5px solid rgba(217, 119, 6, 0.5);
  order: 3;
}

.bd-podium-badge {
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bd-podium-card.first .bd-podium-badge {
  background: linear-gradient(135deg, #fbbf24, #d4af37);
  color: #09090b;
}

.bd-podium-card.second .bd-podium-badge {
  background: rgba(226, 232, 240, 0.2);
  color: #e2e8f0;
  border: 1px solid #e2e8f0;
}

.bd-podium-card.third .bd-podium-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #f59e0b;
  border: 1px solid #d97706;
}

.bd-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px auto;
  padding: 3px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.bd-podium-card.first .bd-avatar-ring {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #fbbf24, #d4af37, #fef08a);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
}

.bd-podium-card.second .bd-avatar-ring {
  background: linear-gradient(135deg, #ffffff, #94a3b8);
}

.bd-podium-card.third .bd-avatar-ring {
  background: linear-gradient(135deg, #f59e0b, #78350f);
}

.bd-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #09090b;
}

.bd-avatar-fallback,
.bd-avatar-ring .ea-avatar-fallback,
.bd-ac-avatar-box .ea-avatar-fallback,
.bd-toty-avatar-box .ea-avatar-fallback,
.bd-rr-avatar-box .ea-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1c1917 0%, #0c0a09 100%) !important;
  color: #fbbf24 !important;
  font-weight: 900 !important;
  font-size: 1.4rem !important;
  letter-spacing: 0.05em !important;
  user-select: none !important;
  font-family: inherit !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.bd-podium-card.first .bd-avatar-ring .bd-avatar-fallback,
.bd-podium-card.first .bd-avatar-ring .ea-avatar-fallback {
  font-size: 1.7rem !important;
}

.bd-ac-avatar-box .bd-avatar-fallback,
.bd-ac-avatar-box .ea-avatar-fallback {
  font-size: 1rem !important;
}

.bd-toty-avatar-box .bd-avatar-fallback,
.bd-toty-avatar-box .ea-avatar-fallback {
  font-size: 0.95rem !important;
}

.bd-rr-avatar-box .bd-avatar-fallback,
.bd-rr-avatar-box .ea-avatar-fallback {
  font-size: 0.78rem !important;
}

.bd-trophy-symbol {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.bd-player-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-podium-card.first .bd-player-name {
  font-size: 1.55rem;
  color: #fbbf24;
}

.bd-player-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.bd-gala-score-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  margin-top: 12px;
}

.bd-score-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}

.bd-score-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* CATEGORIAS DE PREMIAÇÃO (GALA AWARDS) */
.bd-awards-section {
  margin-bottom: 36px;
}

.bd-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.bd-award-card {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.9) 0%, rgba(10, 10, 14, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.bd-award-card:hover {
  border-color: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.bd-ac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.bd-ac-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bd-ac-icon {
  font-size: 1.6rem;
}

.bd-ac-winner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bd-ac-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fbbf24;
  flex-shrink: 0;
  position: relative;
}

.bd-ac-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bd-ac-fallback {
  font-size: 0.95rem;
}

.bd-ac-info {
  flex: 1;
  min-width: 0;
}

.bd-ac-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-ac-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.bd-ac-stat {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fbbf24;
  text-align: right;
  line-height: 1;
}

/* TOTY - SELEÇÃO IDEAL DO ANO (FUTEBOL 7) */
.bd-toty-section {
  margin-bottom: 36px;
  background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.12), transparent 60%),
              linear-gradient(180deg, #0f0f14 0%, #08080a 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.bd-toty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.bd-toty-slot {
  background: rgba(18, 18, 24, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s ease;
}

.bd-toty-slot:hover {
  border-color: #fbbf24;
  background: rgba(212, 175, 55, 0.08);
}

.bd-toty-role {
  font-size: 0.72rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bd-toty-avatar-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.5);
  margin: 0 auto 8px auto;
  position: relative;
}

.bd-toty-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bd-toty-fallback {
  font-size: 0.9rem;
}

.bd-toty-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-toty-score {
  font-size: 0.8rem;
  font-weight: 900;
  color: #10b981;
  margin-top: 4px;
}

/* TABELA DE RANKING GERAL DO BALLON D'OR */
.bd-table-section {
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 28px;
}

.bd-ranking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.bd-ranking-row:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.04);
}

.bd-rr-pos {
  width: 36px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #94a3b8;
  text-align: center;
}

.bd-ranking-row.top-1 .bd-rr-pos { color: #fbbf24; }
.bd-ranking-row.top-2 .bd-rr-pos { color: #e2e8f0; }
.bd-ranking-row.top-3 .bd-rr-pos { color: #d97706; }

.bd-rr-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
  position: relative;
}

.bd-rr-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bd-rr-fallback {
  font-size: 0.75rem;
}

.bd-rr-info {
  flex: 1;
  min-width: 0;
}

.bd-rr-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.bd-rr-stats {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  gap: 10px;
}

.bd-rr-score {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* PREDITOR DE GALA & CHANCE BADGES */
.bd-gala-chance-badge {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
}

.bd-gala-chance-badge.first {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  font-size: 0.82rem;
}

.bd-pred-banner {
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 70%),
              linear-gradient(180deg, #121217 0%, #0a0a0d 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.bd-pred-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.bd-pred-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.bd-pred-contenders-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bd-cand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.bd-cand-pill:hover {
  border-color: #fbbf24;
  background: rgba(212, 175, 55, 0.1);
}

.bd-cand-chance {
  font-size: 0.85rem;
  font-weight: 900;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bd-median-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
  .bd-header-banner {
    padding: 20px 16px;
  }
  .bd-title {
    font-size: 1.8rem;
  }
  .bd-podium-container {
    flex-direction: column;
    align-items: center;
  }
  .bd-podium-card.first,
  .bd-podium-card.second,
  .bd-podium-card.third {
    width: 100%;
    transform: none;
    order: unset;
  }
  .bd-awards-grid {
    grid-template-columns: 1fr;
  }
  .bd-toty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================
   BALLON D'OR - ENCERRAMENTO OFICIAL & HISTÓRICO
   ======================================================== */
.bd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bd-admin-definir-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d4af37 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
}

.bd-admin-definir-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
}

.bd-consecrated-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(20, 20, 26, 0.95) 50%, rgba(212, 175, 55, 0.15) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

.bd-consecrated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d4af37;
  color: #000;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bd-mode-tabs {
  display: flex;
  background: #09090b;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.bd-mode-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bd-mode-tab.active {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #050507;
  font-weight: 900;
}

/* MODAL DE DEFINIR CAMPEÕES */
.bd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bd-modal-content {
  background: #111116;
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.2);
  color: #f8fafc;
  padding: 28px;
}

.bd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.bd-modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fbbf24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.bd-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.bd-preview-box {
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}

.bd-preview-winner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(20, 20, 26, 0.8) 100%);
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

