/* Стили для модального окна профиля игрока */
.player-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* Оставляем место для табов внизу */
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 995;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.player-profile-content {
  width: 100%;
  height: 100%;
  background-color: #0a0a2a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.player-profile-header {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  background-color: #0a0a2a;
  border-bottom: 2px solid #5050ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.player-profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #5050ff;
  box-shadow: 0 0 15px rgba(80, 80, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 32px;
  background-color: #1a1a4a;
}

.player-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-profile-user-info {
  margin-left: 15px;
  flex: 1;
}

.player-profile-username {
  font-size: 22px;
  font-weight: bold;
  color: white;
  margin-bottom: 3px;
  text-shadow: 0 0 10px #5050ff;
}

.player-profile-stats {
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
  font-weight: bold;
}

.player-profile-stats-streak {
  font-size: 16px;
  color: #50ffff;
  font-weight: bold;
}

.player-profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 50, 50, 0.9); /* Красный фон */
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  z-index: 10;
  box-shadow: none; /* Убираем тень */
  margin: 0;
  padding: 20px;
}

.player-profile-close:hover {
  background-color: rgba(255, 0, 0, 1);
}

.player-profile-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px 30px 15px;
  scrollbar-width: thin;
  scrollbar-color: #5050ff #0a0a2a;
}

.player-profile-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.player-profile-content-scroll::-webkit-scrollbar-track {
  background: #0a0a2a;
}

.player-profile-content-scroll::-webkit-scrollbar-thumb {
  background-color: #5050ff;
  border-radius: 10px;
}

/* Loader styles */
.player-profile-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(10, 10, 42, 0.8);
  z-index: 1001;
  display: none;
}

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

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

.fadeOut {
  animation: fadeOut 0.3s ease forwards;
}