body {
  background-color: #0b0b0b;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1px;
  background: #111111;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(225, 6, 0, 0.25);
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
}

.search-bar {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 10px;
  background: #111111;
  z-index: 999;
}

.search-bar input {
  padding: 8px 12px;
  width: 280px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
}

.matches {
  width: 80%;
  margin: auto;
  background: #141414;
  padding: 15px;
  border-radius: 10px;
  flex-grow: 1;
}

.league {
  background: #e10600;
  padding: 8px;
  margin: 8px 0;
  font-weight: bold;
  border-radius: 5px;
}

.match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.match span {
  flex: 1;
}

.watch-button {
  background: #e10600;
  color: white;
  padding: 4px 8px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: #ccc;
  font-style: italic;
}

footer {
  background-color: #111111;
  color: white;
  padding: 15px;
  font-size: 14px;
  text-align: center;
  margin-top: auto;
}

footer a {
  color: #ff1e1e;
  text-decoration: none;
}

/* MOBILE */
@media screen and (max-width: 768px) {
  .matches {
    width: 90%;
    padding: 5px;
    font-size: 12px;
  }

  .match {
    padding: 4px;
  }

  .watch-button {
    padding: 2px 5px;
    font-size: 10px;
  }

  .search-discord-container {
    flex-wrap: nowrap !important;
    gap: 5px !important;
    padding: 0 5px !important;
  }

  .search-discord-container > div:first-child {
    padding: 8px 5px !important;
  }

  .search-discord-container input {
    width: 140px !important;
    font-size: 12px !important;
    padding: 6px 8px !important;
  }

  .search-discord-container .discord-button {
    padding: 8px 6px !important;
    font-size: 10px !important;
    min-width: 100px !important;
  }
}

@media screen and (max-width: 768px) {
  .nav {
    gap: 0;
  }

  .nav a {
    font-size: 12px;
    padding: 4px 8px;
  }
}

.section-footer {
  background-color: #111111;
  color: white;
  padding: 8px;
  font-size: 12px;
  text-align: center;
  margin-top: 15px;
  border-radius: 5px;
}

.section-footer a {
  color: #ff1e1e;
  text-decoration: none;
}

.refresh-note {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .refresh-note {
    font-size: 14px;
  }
}
