/* Rusff Native Mentions v2.1.0-hsr
 * Standalone Honkai: Star Rail presentation layer for nearby suggestions.
 * The portable interaction rules are followed by forum-specific overrides.
 */
#post-mentions-kj {
  display: none;
  box-sizing: border-box;
  width: 270px;
  max-width: calc(100vw - 16px);
  max-height: 190px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #222;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .22);
  border-radius: 7px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  position: fixed;
  z-index: 2147483000;
}

#post-mentions-kj .kj-mention-empty {
  padding: 10px 12px;
  color: #777;
}

#post-mentions-kj .kj-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 5px 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  cursor: pointer;
}

#post-mentions-kj .kj-mention-item:last-child {
  border-bottom: 0;
}

#post-mentions-kj .kj-mention-item:hover,
#post-mentions-kj .kj-mention-item.is-active {
  background: rgba(0, 0, 0, .08);
}

#post-mentions-kj .kj-mention-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-color: #eee;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 50%;
}

#post-mentions-kj .kj-mention-group-icon {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: #777;
  border-radius: 50%;
}

#post-mentions-kj .kj-mention-copy {
  min-width: 0;
}

#post-mentions-kj .kj-mention-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#post-mentions-kj .kj-mention-meta {
  display: block;
  margin-top: 1px;
  color: #777;
  font-size: 11px;
}

@media (max-width: 600px) {
  #post-mentions-kj {
    width: 250px;
    max-height: 176px;
  }
}

.post-content a[href*="kjmention=1"] strong {
  font-weight: inherit;
}

.post-content a[href*="kjgroupmember=1"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
 * Honkai: Star Rail theme
 * Compact navy suggestion panel with the forum's gold contour and clipped
 * corner. Avatars retain prominence; group results use a separate crest.
 * -------------------------------------------------------------------------- */

#post-mentions-kj {
  width: 286px;
  max-height: 212px;
  padding: 4px;
  color: #d3cabb;
  font: 12px/1.35 "DIN Pro", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 88% 14%, rgba(200, 200, 255, .12) 0 1px, transparent 2px),
    linear-gradient(145deg, rgba(50, 59, 101, .99), rgba(2, 17, 33, .99));
  background-size: 90px 90px, auto;
  border: 1px solid #ffcf70;
  border-radius: 12px 0;
  box-shadow: 0 14px 34px rgba(2, 17, 33, .52);
  scrollbar-color: #bf9d64 #1c2035;
  scrollbar-width: thin;
}

#post-mentions-kj::before {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 23px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffcf70);
  content: "";
  pointer-events: none;
}

#post-mentions-kj::-webkit-scrollbar {
  width: 7px;
}

#post-mentions-kj::-webkit-scrollbar-track {
  background: #1c2035;
}

#post-mentions-kj::-webkit-scrollbar-thumb {
  background: #bf9d64;
  border: 2px solid #1c2035;
  border-radius: 7px;
}

#post-mentions-kj .kj-mention-empty {
  padding: 13px;
  color: #c0ba9d;
  letter-spacing: .025em;
}

#post-mentions-kj .kj-mention-item {
  min-height: 48px;
  padding: 6px 9px;
  color: #d3cabb;
  font: inherit;
  background: transparent;
  border-bottom: 1px solid rgba(255, 207, 112, .16);
  border-radius: 6px 0;
}

#post-mentions-kj .kj-mention-item:hover,
#post-mentions-kj .kj-mention-item.is-active {
  color: #fff;
  background: rgba(50, 59, 101, .92);
  box-shadow: inset 3px 0 #ffcf70;
}

#post-mentions-kj .kj-mention-avatar {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  background-color: #1c2035;
  border: 1px solid rgba(255, 207, 112, .72);
  border-radius: 50% 0 50% 50%;
  box-shadow: 0 0 8px rgba(255, 207, 112, .16);
}

#post-mentions-kj .kj-mention-group-icon {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  color: #ffcf70;
  font-size: 15px;
  font-weight: 600;
  background: #1c2035;
  border: 1px solid #ffcf70;
  border-radius: 50% 0 50% 50%;
}

#post-mentions-kj .kj-mention-name {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

#post-mentions-kj .kj-mention-meta {
  margin-top: 2px;
  color: #c0ba9d;
  font-size: 10px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

#post-mentions-kj .kj-mention-item.is-active .kj-mention-meta,
#post-mentions-kj .kj-mention-item:hover .kj-mention-meta {
  color: #ffcf70;
}

.post-content a[href*="kjmention=1"] {
  color: #323b65;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted #bf9d64;
}

.post-content a[href*="kjmention=1"] strong {
  color: inherit;
}

@media (max-width: 600px) {
  #post-mentions-kj {
    width: 264px;
    max-height: 190px;
  }
}
