body {
  font-family: 'Orbitron', 'Arial Black', Tahoma, sans-serif;
  background-color: #0b0b0b;
  color: #e0d9c5;
  margin: 0;
  padding: 2rem;
  background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
  background-size: cover;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  color: #f44336; /* Soviet Red */
  text-shadow: 1px 1px 5px #000, 0 0 10px #f44336;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

.header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #f44336;
  text-shadow: 0 0 5px #f44336aa;
  text-transform: uppercase;
  margin: 0;
}


.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

input[type="text"] {
  padding: 0.6rem;
  width: 260px;
  border: 2px solid #c9ab4d;
  background-color: #1c1c1c;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

button {
  padding: 0.6rem 1rem;
  background: linear-gradient(145deg, #c93b3b, #9a1f1f);
  border: 2px solid #c9ab4d;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: linear-gradient(145deg, #d6492d, #b92424);
  border-color: #f2cc4c;
}

#player-stats {
  background-color: #1c1c1c;
  padding: 1rem;
  border: 2px solid #c9ab4d;
  border-radius: 6px;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px #000;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #101010;
  border: 2px solid #c9ab4d;
  margin-top: 1rem;
  box-shadow: 0 0 10px #000;
}

th, td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid #3a3a3a;
  color: #e0d9c5;
  font-weight: bold;
}

th {
  background-color: #b71c1c;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid #c9ab4d;
}

.season-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.season-buttons button {
  background-color: #2a2a2a;
  border: 2px solid #c9ab4d;
  color: #f44336;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
  border-radius: 4px;
}

.season-buttons button:hover {
  background-color: #f44336;
  color: #fff;
  border-color: #f2cc4c;
}

.season-buttons button.active {
  background-color: #f44336;
  color: #fff;
  border-color: #f2cc4c;
}

.mode-switch {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mode-switch button {
  background-color: #222;
  border: 2px solid #c9ab4d;
  color: #f44336;
  font-weight: bold;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
}

.mode-switch button:hover {
  background-color: #f44336;
  color: #fff;
}

.mode-switch button.active {
  background-color: #f44336;
  color: #fff;
  border-color: #f2cc4c;
}

.ladder-id-container {
  text-align: center;
  margin: 1rem auto;
}
#ladder-id-buttons button {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: 2px solid #c9ab4d;
  background: #111;
  color: #f44336;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}
#ladder-id-buttons button.active {
  background: #f44336;
  color: #fff;
}

#ladder tr.highlight {
  background-color: #c9ab4d;
  color: #000;
  font-weight: bold;
}

#division-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

.ladder-group-title {
  width: 100%;
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #444;
  padding-bottom: 0.2rem;
}

.ladder-button {
  padding: 0.2rem 0.6rem;
  border: 2px solid #ffd700;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 4px;
  background: #8b0000;
  color: #fff;
  transition: 0.2s ease;
  white-space: nowrap;
}

.ladder-button.top {
  background: #006400;
  border-color: #00ff00;
}

.ladder-button.mid {
  background: #aa8500;
  border-color: #ffcc00;
}

.ladder-button.low {
  background: #8b0000;
  border-color: #ff5555;
}

.ladder-button.active {
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}



/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
.season-buttons {
  justify-content: center;
}

  .search-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  input[type="text"] {
    width: 100%;
    font-size: 1rem;
  }

  button {
    width: 100%;
    font-size: 1rem;
  }

  #player-stats {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
  }

  .season-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .season-buttons button {
    flex: 1 1 45%;
    min-width: 100px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }
}

