.ranking-main {
  padding: 40px 60px;
}

.botao-voltar-menu {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 999;
}

.botao-voltar-menu .btn-voltar {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid #6a0dad;
  background: #6a0dad;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.botao-voltar-menu .btn-voltar:hover {
  background: #530a9e;
  border-color: #530a9e;
  color: white;
}

.ranking-filtros {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.filtro-btn {
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid #945ccc;
  background: transparent;
  color: #945ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-btn.ativo {
  background: #6a0dad;
  color: white;
  border-color: #6a0dad;
}

.podio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-bottom: 2.5rem;
}

.podio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.foto-wrap {
  position: relative;
  display: inline-flex;
}

.foto-circulo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
}

.foto-inicial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #945ccc;
  color: white;
  font-size: 22px;
  font-weight: 500;
}

.borda-ouro   { border-color: #FFD700; }
.borda-prata  { border-color: #C0C0C0; }
.borda-bronze { border-color: #CD7F32; }

.medalha-emoji {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 22px;
  line-height: 1;
}

.podio-nome {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  text-align: center;
  max-width: 90px;
}

.podio-lider {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.podio-pct {
  font-size: 11px;
  color: #666;
}

.podio-base {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  width: 90px;
}

.base-1 { height: 90px; background: #FFD70018; border: 1px solid #FFD700; }
.base-2 { height: 65px; background: #C0C0C018; border: 1px solid #C0C0C0; }
.base-3 { height: 45px; background: #CD7F3218; border: 1px solid #CD7F32; }

.base-num { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.num-1 { color: #b8860b; }
.num-2 { color: #808080; }
.num-3 { color: #8B4513; }

.ranking-divisor {
  height: 0.5px;
  background: #ddd;
  margin: 0 0 1.5rem;
}

.ranking-legenda {
  display: flex;
  gap: 16px;
  margin-bottom: 1rem;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.leg-cor {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.titulo-secao {
  font-size: 13px;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.corredor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pos-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
  background: #f0e6ff;
  color: #6a0dad;
}

.corredor-nome {
  font-size: 13px;
  color: #333;
  width: 110px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pista {
  flex: 1;
  height: 30px;
  background: #f0e6ff;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 8px;
}

.carro-track {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  transition: width 0.8s ease;
}

.pacote-icon {
  font-size: 16px;
  line-height: 1;
}

.pct-label {
  font-size: 13px;
  font-weight: 500;
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.pct-ok   { color: #3B6D11; }
.pct-warn { color: #854F0B; }
.pct-bad  { color: #A32D2D; }

.bandeirada {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 1rem;
  padding-bottom: 2rem;
}