/* 📦 Sekcja podium – wyśrodkowana nad rankingami */
.podium-section {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 60px auto 100px auto;
  position: relative;
  width: 100%;
}

.podium-wrapper {
  position: relative;

  max-width: 1200px;
  margin: 0 auto;
  height: 340px;
  display: flex;
  justify-content: center; /* 💻 PC – lekki odstęp po bokach */
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 80px;
  transform: none !important; /* ✅ resetuje transformacje między podiumami */
  isolation: isolate; /* 🚀 kluczowe – tworzy nowy kontekst dla transform */
}

/* Każdy gracz */
.podium-player {
  position: relative;
  text-align: center;
}

/* Skin */
.podium-player img {
  width: 110px;
  display: block;
  margin: 0 auto;
}

/* 1. miejsce – wyżej */
.podium-player.first {
  order: 2;
  transform: translateY(-40px);
  z-index: 3;
}

/* 🥈 Top 2 – lewy, trochę niżej */
.podium-player.second {
  order: 1;
  transform: translateY(10px);
  z-index: 2;
}

/* 🥉 Top 3 – prawy, jeszcze niżej */
.podium-player.third {
  order: 3;
  transform: translateY(25px);
  z-index: 1;
}

/* Nick nad skinem */
.podium-name {
  font-size: 20px !important;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 0px black, -2px -2px 0px black,
               -2px 2px 0px black, 2px -2px 0px black;
  margin-bottom: 5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 4px 8px;
  display: inline-block;
}

/* Punkty */
.podium-points {
  color: #d0d0d0;
  font-size: 0.9rem;
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px black;
}

/* 🔗 Link wokół skina */
.podium-link {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* ✨ Efekt powiększenia przy najechaniu */
.podium-link:hover {
  transform: scale(1.1);
  z-index: 10;
}

/* 🔒 Zapobieganie błyskom tekstu przy hoverze */
.podium-player img {
  transition: transform 0.25s ease;
  will-change: transform;
}

/* 👆 Kursor wskazujący, że można kliknąć */
.podium-link img {
  cursor: pointer;
}

/* 📱 Na mniejszych ekranach (np. telefonach) */
@media (max-width: 768px) {
  .podium-section {
    margin-top: 0px; /* 📱 Mniejszy margines na górze na telefonach */
  }
  
  .podium-wrapper {
    justify-content: space-between; /* ⬅️ skiny idą bliżej krawędzi */
	gap: 20px;
  }

  .podium-player img {
    width: 90px; /* trochę mniejsze skiny, żeby się zmieściły */
  }

  .podium-player.first {
    transform: translateY(-20px);
  }

  .podium-player.second {
    transform: translateY(5px);
  }

  .podium-player.third {
    transform: translateY(10px);
  }

  .podium-name {
    font-size: 16px !important;
  }

  .podium-points {
    font-size: 0.85rem;
  }
  
  hr {
	height: 0px;
  }
}

@media (max-width: 459px) {
  .podium-wrapper {
    justify-content: space-around; /* 🔹 nie do brzegów, ale równy odstęp */
    flex-wrap: nowrap; /* 🔹 zapobiega złamaniu w nowy wiersz */
	gap: 10px;
  }

  .podium-player img {
    width: 70px; /* 🔹 mniejsze skiny, ale wszystkie równe */
  }

  /* 🔹 Top1 lekko wyżej, ale nie za bardzo */
  .podium-player.first {
    transform: translateY(-8px);
  }

  /* 🔹 Top2 i Top3 lekko niżej */
  .podium-player.second {
    transform: translateY(6px);
  }
  .podium-player.third {
    transform: translateY(10px);
  }

  /* 🔹 Nie pozwalamy, żeby coś się rozciągało lub kompresowało */
  .podium-player {
    flex: 0 0 auto;
  }
}