/* Podium */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 3vw, 28px);
  min-height: 330px;
  margin-bottom: 34px;
  padding-top: 20px;
}
.podium-spot {
  flex: 0 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}
.podium-spot.first { order: 2; animation-delay: 0.3s; }
.podium-spot.second { order: 1; animation-delay: 0.1s; }
.podium-spot.third { order: 3; animation-delay: 0.5s; }

.podium-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ring, var(--gold));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06), 0 0 30px var(--ring, var(--gold));
  margin-bottom: 10px;
}
.podium-photo img, .podium-photo .avatar { width: 100%; height: 100%; object-fit: cover; font-size: 2rem; }
.first .podium-photo { width: 124px; height: 124px; }
.crown {
  font-size: 2rem;
  margin-bottom: -6px;
  animation: bob 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(255, 201, 74, 0.6));
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}
.podium-name { font-weight: 600; font-size: 0.98rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-votes { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.podium-block {
  width: 100%;
  border-radius: 16px 16px 6px 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.95);
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.first .podium-block { height: 150px; background: linear-gradient(180deg, #ffd65a, #e08e00); animation-delay: 0.3s; }
.second .podium-block { height: 110px; background: linear-gradient(180deg, #e3e8f0, #8d99ae); animation-delay: 0.1s; }
.third .podium-block { height: 80px; background: linear-gradient(180deg, #f4a261, #a0522d); animation-delay: 0.5s; }
.first { --ring: #ffc94a; }
.second { --ring: #cfd8e3; }
.third { --ring: #e9965a; }

@keyframes grow { from { transform: scaleY(0); } }

/* Leaderboard */
.leaderboard { display: flex; flex-direction: column; gap: 12px; }
.lb-row {
  display: grid;
  grid-template-columns: 42px 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.lb-row:hover { background: rgba(255, 255, 255, 0.09); }
.lb-row.bump { animation: bump 0.8s ease; }
@keyframes bump {
  0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(46, 229, 157, 0); }
}
.lb-rank {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}
.lb-row[data-rank="1"] .lb-rank { background: linear-gradient(135deg, #ffd65a, #e08e00); }
.lb-row[data-rank="2"] .lb-rank { background: linear-gradient(135deg, #e3e8f0, #8d99ae); color: #222; }
.lb-row[data-rank="3"] .lb-rank { background: linear-gradient(135deg, #f4a261, #a0522d); }
.lb-photo { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; }
.lb-photo img, .lb-photo .avatar { width: 100%; height: 100%; object-fit: cover; font-size: 1.3rem; }
.lb-main { min-width: 0; }
.lb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bar {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lb-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  transition: width 1s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.lb-count { text-align: right; }
.lb-count strong { display: block; font-size: 1.3rem; }
.lb-count small { color: var(--muted); }

@media (max-width: 600px) {
  .lb-row { grid-template-columns: 34px 44px 1fr auto; gap: 10px; padding: 10px 12px; }
  .lb-rank { width: 32px; height: 32px; font-size: 0.85rem; }
  .lb-photo { width: 44px; height: 44px; }
  .podium { min-height: 280px; }
  .podium-photo { width: 70px; height: 70px; }
  .first .podium-photo { width: 92px; height: 92px; }
  .first .podium-block { height: 120px; }
  .second .podium-block { height: 88px; }
  .third .podium-block { height: 64px; }
  .podium-block { font-size: 1.8rem; }
  .podium-name { font-size: 0.82rem; }
}
