.chess-profile {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 600px;
}

.chess-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  gap: 15px;
}

.chess-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #000;
  flex-shrink: 0;
}

.chess-info {
  flex: 1;
  text-align: center;
}

.chess-username {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.chess-title {
  background-color: #000;
  color: #fff;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: normal;
}

.chess-location {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
}


.chess-ratings {
  margin-bottom: 20px;
}

.chess-ratings h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 5px;
}

.chess-ratings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chess-rating {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.rating-type {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.rating-value {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.chess-actions {
  text-align: center;
}

.chess-challenge-btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.chess-challenge-btn:hover {
  background-color: #333;
  color: #fff;
  text-decoration: none;
}

.chess-profile-error {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  background-color: #f9f9f9;
  text-align: center;
  max-width: 600px;
}

.chess-profile-error p {
  margin: 0;
  color: #000;
  font-weight: 500;
}

@media (max-width: 480px) {
  .chess-profile {
    max-width: 100%;
    padding: 15px;
  }
  
  .chess-profile-header {
    gap: 10px;
  }
  
  .chess-ratings-grid {
    grid-template-columns: 1fr;
  }
  
  .chess-challenge-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}