body {
    font-family: "Inter", sans-serif;
    background: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

h1 {
    margin-bottom: 5px;
    font-size: 28px;
}

#players {
    margin-top: 25px;
}

.playerBox {
    background: #fff;
    padding: 15px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid #e7e7e7;
}

.speedTitle {
    font-weight: bold;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

button {
    padding: 7px 14px;
    border: none;
    background: #4b7bff;
    color: white;
    font-size: 14px;
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background: #365ee8;
}

#fileInfo {
    margin-top: 10px;
    font-size: 15px;
    background: #eef2ff;
    padding: 10px;
    border-radius: 8px;
}

.rating {
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 6px;
    color: white;
}

.green  { background:#22c55e; }
.red    { background:#ef4444; }
.orange { background:#f97316; }
.yellow { background:#eab308; }
.gray   { background:#6b7280; }


.ref-container {
  background: #f7f7f9;
  padding: 20px;
  border-radius: 14px;
  margin-top: 40px;
}

.ref-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border-left: 6px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.ref-card h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.tag-green { background: #2ecc71; }
.tag-yellow { background: #f1c40f; }
.tag-orange { background: #e67e22; }
.tag-red { background: #e74c3c; }
.tag-blue { background: #3498db; }


#players {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.player-card {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

