* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

body {
  background-color: #0f0f0f;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HEADER + NAVIGACE --- */
header {
  background: url('../imgs/back.webp');
  box-shadow: 0px -18px 150px 120px #100D0D inset;
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
}

.nav-logo img {
  height: 75px;
}

.nav-links ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.discord-button {
  background-color: #5865f2;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.hero-title {
  color: #FFF;
  text-align: center;
  font-size: 50px;
  font-weight: 800;
  text-transform: capitalize;
  padding-bottom: 100px;
}

/* --- SELECT TURNAMENT --- */
.tournament-select {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.styled-select {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  background-color: #222;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.styled-select:hover {
  background-color: #333;
  transform: scale(1.05);
}

.styled-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.5);
}

/* --- LEADERBOARD --- */
.event-leaderboard {
  max-width: 1250px;
  width: 100%;
  margin: 40px auto;
  padding: 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.leaderboard-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start; /* klíčové: zarovnání nahoře */
}


.leaderboard-container,
.right-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.leaderboard-container {
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 800px; /* přidáno – referenční výška */
}


.right-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 800px; /* stejně jako vlevo */
}


/* --- TÝMY --- */
.leaderboard-team-header,
.leaderboard-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1b1b1b;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
}

.leaderboard-team-header {
  background-color: #29e7cd;
  color: #0f0f0f;
}

.leaderboard-team-row:hover {
  background-color: #232323;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.team-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
}

.team-points {
  font-weight: 800;
  font-size: 1.4rem;
}

/* --- VÍTĚZOVÉ --- */
.winners-container {
  background-color: #1b1b1b;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.winners-title {
  font-size: 2rem;
  font-weight: 900;
  color: #29e7cd;
  margin-bottom: 20px;
}

.winners-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.player img {
  width: 140px;
  height: 150px;
  border-radius: 10px;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.player img:hover {
  transform: scale(1.1);
}

.player p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* --- SHARDY HRÁČŮ --- */
.player-shards {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 5px;
}


.shards-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #29e7cd;
  flex-shrink: 0; /* nedovolí smrsknutí */
  padding-bottom: 10px;
}

.shard-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 5px; /* prostor pro scrollbar */
}


.shard-player {
  background-color: #1b1b1b;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.shard-player:hover {
  background-color: #232323;
}

.shard-list::-webkit-scrollbar {
  width: 6px;
}

.shard-list::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}

.shard-list::-webkit-scrollbar-track {
  background: transparent;
}

.player-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #333;
}

.player-name {
  flex-grow: 1;
  color: #FFFFFF;
}

.shard-count {
  font-weight: 900;
  font-size: 1.3rem;
}

/* --- FOOTER --- */
footer {
  margin-top: 50px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.footer-top {
  background-color: #29e7cd;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 30px;
}

.footer-icons {
  display: flex;
  gap: 20px;
}

.footer-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s;
}

.footer-icon:hover {
  transform: scale(1.2);
}

.footer-bottom {
  background-color: #0f0f0f;
  color: #ccc;
  text-align: left;
  padding: 10px;
  font-weight: 500;
}
