/* ══════════════════════════════════════════
   Comments — shared across Artwork, Books, etc.
   ══════════════════════════════════════════ */

.comments-section {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 32px;
  animation: cardReveal 0.6s 0.2s var(--ease) both;
}

.comments__heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.cmt {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}

.comments-section > .cmt + .cmt {
  border-top: 1px solid var(--border);
}

.cmt__avatar-link {
  flex-shrink: 0;
  text-decoration: none;
}

.cmt__body {
  flex: 1;
  min-width: 0;
}

.cmt__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.cmt__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.cmt__name:hover {
  text-decoration: underline;
}

.cmt__time {
  font-size: 12px;
  color: var(--placeholder);
}

.cmt__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* ── Nested replies ── */

.cmt__replies {
  margin-top: 4px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1.5px solid var(--border);
}

.cmt--reply {
  padding: 10px 0 10px 0;
}
.cmt--reply .cmt__text {
  font-size: 13px;
}
.cmt--reply + .cmt--reply {
  border-top: 1px solid var(--border);
}

/* ── Depth-colored thread lines ── */

.cmt__replies--depth-1 {
  border-left-color: #6c9bde;
} /* мягкий синий   */
.cmt__replies--depth-2 {
  border-left-color: #a78bda;
} /* лавандовый     */
.cmt__replies--depth-3 {
  border-left-color: #e8a87c;
} /* персиковый     */
.cmt__replies--depth-4 {
  border-left-color: #82c9a1;
} /* мятный         */

/* Уменьшаем отступы и шрифт на глубоких уровнях */
.cmt__replies .cmt__replies {
  padding-left: 10px;
}
.cmt__replies .cmt__replies .cmt__text {
  font-size: 12.5px;
}
.cmt__replies .cmt__replies .cmt__replies .cmt__text {
  font-size: 12px;
}

/* ── Responsive ── */

@media (max-width: 700px) {
  .comments-section {
    padding: 0 16px;
    margin-bottom: 60px;
  }
  .cmt__replies {
    padding-left: 10px;
  }
}

@media (max-width: 400px) {
  .comments-section {
    padding: 0 8px;
  }
  .cmt__replies {
    padding-left: 8px;
  }
}
