body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #121212;
  color: white;
  text-align: center;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 20px 0;
  font-size: 2rem;
}

table {
  border-collapse: collapse;
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #333;
}

th {
  background: #222;
  cursor: pointer;
  user-select: none;
  position: relative;
}

th:hover {
  background: #333;
}

th.sort-asc::after {
  content: "▲";
  position: absolute;
  right: 10px;
  font-size: 0.8rem;
}

th.sort-desc::after {
  content: "▼";
  position: absolute;
  right: 10px;
  font-size: 0.8rem;
}

tr:hover {
  background: #292929;
}


a {
  color: white !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}


a.player-link,
a.player-link:visited,
a.player-link:hover,
a.player-link:active,
a.player-link:focus {
  color: white !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  outline: none !important;
}

a.player-link:hover {
  color: #ccc !important; 
}

#matchesContainer h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: left;
  color: #ddd;
}

#matchesContainer table {
  width: 100%;
  border-collapse: collapse;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
}

#matchesContainer th, #matchesContainer td {
  padding: 10px;
  border-bottom: 1px solid #444;
  text-align: center;
}

#matchesContainer th {
  background: #333;
}

#matchesContainer tr:hover {
  background: #3a3a3a;
}

@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 10px;
    background: #1e1e1e;
    border-radius: 5px;
    padding: 10px;
  }
  td {
    text-align: left;
    padding: 8px;
    border: none;
  }
  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
  }
}

#matchesContainer h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #ddd; 
}