/* Container */
.init-recent-comments {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  color: #333;
  overflow: hidden;
}

/* Comment block */
.init-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Avatar */
.init-comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Body */
.init-comment-body {
  background: #f4f4f4;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

/* Meta wrapper thành 2 dòng */
.init-comment-meta {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #666;
  gap: 2px;
  overflow: hidden;
}

/* Line 1: tên + thời gian */
.init-comment-meta-line1 {
  display: flex;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Line 2: "In" + tiêu đề */
.init-comment-meta-line2 {
  display: flex;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
}

/* Author và time */
.init-comment-author {
  font-weight: 700;
}

.init-comment-author,
.init-comment-time {
  flex-shrink: 0;
  white-space: nowrap;
}

/* "In" */
.init-comment-in-label {
  color: #999;
  flex-shrink: 0;
  margin-right: -2px;
}

/* Tiêu đề bài viết */
.init-comment-post-title {
  color: #1e87f0;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  min-width: 0;
}

.init-comment-post-title:hover {
  text-decoration: underline;
}

/* Nội dung comment */
.init-comment-content {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Scroll disable option */
.init-recent-comments.disable-scrollbar {
  max-height: 650px;
  overflow-y: auto;
}

.init-recent-comments.disable-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.init-recent-comments.disable-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Dark mode */
.init-recent-comments.dark {
  color: #ddd;
}

.init-recent-comments.dark .init-comment-body {
  background: #272727;
  box-shadow: none;
}

.init-recent-comments.dark .init-comment-meta,
.init-recent-comments.dark .init-comment-meta-line1,
.init-recent-comments.dark .init-comment-meta-line2 {
  color: #aaa;
}

.init-recent-comments.dark .init-comment-author {
  color: #fff;
}

.init-recent-comments.dark .init-comment-content {
  color: #ccc;
}

.init-recent-comments.dark .init-comment-in-label {
  color: #888;
}

.init-recent-comments.dark .init-comment-post-title {
  color: #4ea3ff;
}

/* Review */
.init-review-criteria-list {
  padding-left: 0;
  list-style: none;
}

.init-review-criteria-list li {
  line-height: 1.4;
}

.init-review-criteria-list strong {
  font-weight: 600;
}

/* Replying to */
.init-comment-replying {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 2px 0;
  border-left: 3px solid #1e87f0;
  padding-left: 8px;
}

.init-comment-replying-label {
  color: #666;
}

.init-comment-replying-author {
  color: #1e87f0;
  font-weight: 700;
}

/* Dark mode for replying */
.init-recent-comments.dark .init-comment-replying-label {
  color: #aaa;
}