/* ============================================================= */
/*  Карточка автора на форуме — modules/pbg_forum_card.css       */
/* ============================================================= */

.topic-answers div[id^="answer"] .left-side {
  padding: 0;
  text-align: initial;
}

.fac-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(1deg, rgb(37, 37, 46) 30%, rgb(41, 41, 50) 100%);
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .4);
}

/* ---- Баннер: фон профиля с площадки, аватарка утоплена в него ---- */
.fac-card__banner {
  position: relative;
  height: 108px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(160deg, rgba(79, 234, 159, .16), rgba(56, 100, 79, .28));
}

.fac-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

video.fac-card__bg {
  display: block;
}

.fac-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 22, .15) 0%, rgba(15, 16, 22, .35) 60%, rgba(28, 29, 36, .96) 100%);
}

.fac-card__like {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 16, 22, .45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.fac-card__like:hover {
  background: #ff6666;
  transform: scale(1.06);
}

.fac-card__avatar {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateY(34%);
}

.fac-card__avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgb(41, 41, 50), 0 8px 18px -8px rgba(0, 0, 0, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}

.fac-card__avatar:hover .fac-card__avatar-img {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgb(41, 41, 50), 0 0 0 6px rgba(79, 234, 159, .35), 0 10px 22px -8px rgba(0, 0, 0, .65);
}

/* ---- Плашка снизу: имя, группа, статистика, соцсети, кнопка ---- */
.fac-card__plate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 16px 18px;
}

.fac-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  max-width: 100%;
}

.fac-card__name a {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.fac-card__name a:hover {
  color: #4fea9f;
}

.fac-card__group {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.fac-card__signature {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.fac-card__stats.pbg_top_stats {
  margin-top: 6px;
  padding: 9px 4px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  width: 100%;
  gap: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}

.fac-card__stats.pbg_top_stats .pbg_top_stat {
  flex: 1 1 0;
  position: relative;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
}

.fac-card__stats.pbg_top_stats .pbg_top_stat:not(:last-child):after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .08);
}

.fac-card__stats.pbg_top_stats .pbg_top_stat .bx {
  font-size: 14px;
}

.fac-card__socials {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 2px;
  width: 100%;
}

.fac-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 6px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .18s ease, box-shadow .2s ease;
  overflow: hidden;
  white-space: nowrap;
}

.fac-card__social img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}

.fac-card__social:hover {
  transform: translateY(-2px);
}

.fac-card__social span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 700;
}

.fac-card__social--tg {
  background: rgba(42, 171, 238, .12);
  box-shadow: inset 0 0 0 1px rgba(42, 171, 238, .3);
}
.fac-card__social--tg:hover {
  background: #229ed9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(34, 158, 217, .6);
}

.fac-card__social--steam {
  background: rgba(102, 192, 244, .12);
  box-shadow: inset 0 0 0 1px rgba(102, 192, 244, .3);
}
.fac-card__social--steam:hover {
  background: #1b2838;
  box-shadow: inset 0 0 0 1px rgba(102, 192, 244, .5), 0 6px 16px -6px rgba(0, 0, 0, .6);
}

/* ---- Компактная кнопка «Ответить» — отдельная строка-футер ---- */
.fac-card__answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-radius: 0;
  background: rgba(79, 234, 159, .08);
  color: #4fea9f;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.fac-card__answer i {
  font-size: 14px;
}

.fac-card__answer:hover {
  background: rgba(79, 234, 159, .16);
}

.fac-card__answer:active {
  background: rgba(79, 234, 159, .22);
}

@media (max-width: 991.98px) {
  .fac-card__banner {
    height: 92px;
  }
  .fac-card__avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
  .fac-card__plate {
    padding: 26px 12px 14px;
  }
}

/* ---- Упоминание в ответе (вставляется в редактор кнопкой "Ответить") ---- */
.fac-mention {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(79, 234, 159, .14);
  color: #4fea9f !important;
  font-weight: 700;
  text-decoration: none !important;
}

.fac-mention:hover {
  background: rgba(79, 234, 159, .24);
}
