.users-s {
  display: flex;
  justify-content: center;
  position: relative;
  /* max-width: 100vw;
  overflow-x: hidden; */
}

.users-main {
  display: flex;
  justify-content: center;
}

.usr-loh {
  position: sticky;
  width: 80%;
  max-width: 330px;
  height: fit-content;
  top: 90px;
}

/* Контейнер в виде сетки */
.users-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* От 4 до 8 колонок */
  gap: 15px;
  padding: 20px;
  max-width: 1400px;
  /* margin: auto; */
}

/* Карточка пользователя */
.user-card {
  outline: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  white-space: nowrap;
  gap: 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  align-items: center;
  background-color: rgba(51, 51, 51, 0.45);
  backdrop-filter: blur(3px);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  flex-direction: row;
}

.user-card:hover {
  transform: scale(1.02);
}

/* Аватар пользователя */
.user-avatar {
  width: 98%;
  height: 98%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--darklite);
  position: relative;
  z-index: 1;
}

/* Информация о пользователе */
.user-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden; 
  text-overflow: ellipsis;
}

.user-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  max-width: 85%;
  overflow: hidden; 
  text-overflow: ellipsis;
}

.user-name a {
  text-decoration: none;
  color: inherit;
}

.user-date {
  font-size: 14px;
  color: #bbb;
}

/* Плейсхолдеры */
.placeholder-avatar {
  width: 50px;
  height: 50px;
  background: #444;
  border-radius: 50%;
  margin-right: 12px;
  animation: pulse 1.5s infinite ease-in-out;
}

.placeholder-text {
  width: 80%;
  height: 14px;
  background: #444;
  border-radius: 5px;
  margin-bottom: 6px;
  animation: pulse 1.5s infinite ease-in-out;
}

.placeholder-text.short {
  width: 50%;
}

/* Стили плейсхолдеров */
.placeholder {
  display: flex;
  align-items: center;
  background: #222;
  padding: 12px;
  border-radius: 12px;
  opacity: 0.7;
}

.hidden {
  display: none;
}

.loading-animation {
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 18px;
  color: #bbb;
}

.loading-animation::after {
  content: "Загрузка...";
  display: block;
  font-size: 16px;
  animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}


/* Анимация загрузки */
@keyframes pulse {
  0% {
    background-color: #444;
  }

  50% {
    background-color: #555;
  }

  100% {
    background-color: #444;
  }
}

/* Адаптация под разные экраны */
@media (max-width: 1200px) {
  .users-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: unset;
    width: 100%;
  }
  .users-main {
    width: 90%;
  }
  .user-info {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .users-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: unset;
    width: 100%;
    
  }
  .users-main {
    width: 90%;
  }
  .user-info {
    max-width: 80%;
  }
}