/* Стили для страницы рейтинга игроков */
#player-rating {
  padding: 3rem 0;
}

.rating-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background-color: #f0f0f0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.tab-button i {
  margin-right: 0.5rem;
  color: #4f0151;
}

.tab-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.tab-button.active {
  background-color: #4f0151;
  color: white;
}

.tab-button.active i {
  color: white;
}

.rating-content {
  position: relative;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rating-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.rating-header {
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.rating-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.rating-table-container {
  padding: 1.5rem;
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
}

.rating-table th,
.rating-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.rating-table th {
  font-weight: 600;
  color: #555;
  background-color: #f9f9f9;
}

.rating-table tr:last-child td {
  border-bottom: none;
}

.rating-table tr:hover td {
  background-color: #f9f9f9;
}

.rating-table .current-user td {
  background-color: rgba(79, 1, 81, 0.1);
  font-weight: 600;
}

.rating-table .separator td {
  text-align: center;
  padding: 0.5rem;
  color: #999;
  font-weight: bold;
}

/* Стили для сообщения об ошибке */
.error-message {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.error-message p {
  color: #721c24;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.error-details {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  font-family: monospace;
  text-align: left;
  color: #666;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Стили для сообщения об отсутствии данных */
.no-data {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
  font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .rating-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-button {
    width: 100%;
    justify-content: center;
  }

  .rating-table th,
  .rating-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

