.yt-comment-wrapper {
  width: 520px;
  background-color: #0f0f0f;
  color: #f1f1f1;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 14px;
  line-height: 20px;
  padding: 16px;
  display: flex;
  gap: 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

/* Light Theme overrides */
.yt-comment-wrapper.light-theme {
  background-color: #ffffff;
  color: #0f0f0f;
}

.yt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #555;
}

.yt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-comment-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* allows text wrapping and truncation inside flex child */
}

.yt-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.yt-username {
  font-size: 13px;
  font-weight: 500;
  color: #f1f1f1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.yt-comment-wrapper.light-theme .yt-username {
  color: #0f0f0f;
}

.yt-badge-creator {
  background-color: #aaa;
  color: #000;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  padding: 0 6px;
  line-height: 18px;
}

.yt-badge-verified {
  width: 14px;
  height: 14px;
  fill: #aaa;
  display: inline-flex;
  align-items: center;
}

.yt-comment-wrapper.light-theme .yt-badge-verified {
  fill: #606060;
}

.yt-timestamp {
  font-size: 12px;
  color: #aaa;
}

.yt-comment-wrapper.light-theme .yt-timestamp {
  color: #606060;
}

.yt-text {
  word-break: break-word;
  white-space: pre-wrap;
}

.yt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #aaa;
}

.yt-comment-wrapper.light-theme .yt-actions {
  color: #606060;
}

.yt-action-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
}

.yt-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.yt-likes-count {
  font-size: 12px;
}

.yt-creator-heart {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 4px;
}

.yt-creator-heart-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #0f0f0f;
  z-index: 1;
}

.yt-comment-wrapper.light-theme .yt-creator-heart-avatar {
  border-color: #fff;
}

.yt-creator-heart-icon {
  width: 12px;
  height: 12px;
  background-color: #ff0000;
  border-radius: 50%;
  position: absolute;
  bottom: -4px;
  right: -4px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-creator-heart-icon svg {
  width: 8px;
  height: 8px;
  fill: #fff;
}

.yt-replies-link {
  color: #3ea6ff;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 0;
}

.yt-comment-wrapper.light-theme .yt-replies-link {
  color: #065fd4;
}

.yt-replies-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
