.comment-form {
  position: relative;
}

.comment-form textarea {
  flex: 1;
  min-height: 36px;
}

.send-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.send-btn:hover {
  background-color: #2563eb; /* Более яркий синий при наведении */
}

/* Комментарии — аккуратные отступы и плавность */
.comment-item {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}



/* Ответная форма — компактнее */
.reply-form textarea {
  min-height: 38px;
}

/* Кнопка "Показать ещё" как link-button */
.load-more-comments {
  padding: 6px 0;
}

.comment-item[data-parent-id] {
  margin-left: 18px;
  background-color: rgba(59, 130, 246, 0.04);
  position: relative;
}



@media (prefers-color-scheme: dark) {
  .comment-item[data-parent-id] {
    background: rgba(59, 130, 246, 0.08);
  }
  .comment-item[data-parent-id]::before {
    background: rgba(96, 165, 250, 0.35); /* blue-400-ish */
  }
}

/* ===== Appear animation ===== */
.comment-item {
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.comment-appear {
  opacity: 0;
  transform: translateY(4px);
}

.comment-appear.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

/* Replies: чуть больше “въезд” справа */
.comment-item[data-parent-id].comment-appear {
  transform: translateY(4px) translateX(6px);
}

.comment-item[data-parent-id].comment-appear.is-in {
  transform: translateY(0) translateX(0);
}

/* Hover без блюра */
.comment-item:hover {
  background-color: rgba(59, 130, 246, 0.06); /* blue-500 / 6% */
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

/* ответы чуть правее */
.comment-reply{
  margin-left: 22px;
  position: relative;
}

/* маленькая “точка” рядом с ответом */
.comment-reply::after{
  content: "";
  position: absolute;
  left: -16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .6);
}

.comment-reply:hover {
  background-color: rgba(59, 130, 246, 0.04);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

/* лёгкая подсветка root, когда наводим на ответ */
.comment-item.thread-root {
  transition: box-shadow .15s ease;
}
.comment-item.thread-root.thread-highlight {
  box-shadow: 0 0 0 1px rgba(59,130,246,.25);
}

.comment-item.just-added {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
}