/* Compact comment badges with text and icons in the role's accent color. */
:is(.anime-comment-role, .watch-comment-role)[class] {
  flex: 0 0 auto;
  gap: 4px;
  min-height: 20px;
  padding: 2px 7px;
  box-sizing: border-box;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
  color: var(--comment-role-ink, #eef2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:is(.anime-comment-role, .watch-comment-role)[class]::before,
:is(.anime-comment-role, .watch-comment-role)[class] > .fi {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  font-size: 11px;
  color: currentColor;
  line-height: 1;
  transform: none;
}

:is(.anime-comment-role, .watch-comment-role).role-superadmin {
  --comment-role-ink: #ff8eb1;
}

:is(.anime-comment-role, .watch-comment-role).role-admin {
  --comment-role-ink: #ffab57;
}

:is(.anime-comment-role, .watch-comment-role):is(.role-uploader, .role-moderator) {
  --comment-role-ink: #7898ff;
}

:is(.anime-comment-role, .watch-comment-role):is(.role-fansub, .role-team, .role-vip) {
  --comment-role-ink: #ffa678;
}

:is(.anime-comment-role, .watch-comment-role).role-premium {
  --comment-role-ink: #ffd86b;
}
