.biliindex-wrap {
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  position: relative;
  z-index: 2147483646;
  pointer-events: auto;
  flex-shrink: 0;
}

#user-name + .biliindex-wrap,
.user-name + .biliindex-wrap,
.upname .biliindex-wrap,
.up-name .biliindex-wrap {
  margin-left: 6px;
  vertical-align: middle;
}

bili-comment-user-renderer,
bili-comment-renderer .comment-header,
bili-comment-renderer .user-info {
  overflow: visible !important;
}

.video-page-card-small .upinfo .upname,
.video-page-card-small .r-upinfo .upname,
.rec-list-item .upinfo .upname {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
}

.up-panel-container .up-name,
.up-panel-container .upname,
.up-info-container .up-name,
#v_upinfo .up-name,
.up-info--wrapper .up-name {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

.video-page-card-small a.up-name,
.video-page-card-small .up-name a,
.video-page-card-small .upinfo a {
  display: inline !important;
  vertical-align: middle;
}

.video-page-card-small .biliindex-wrap {
  margin-left: 4px;
  vertical-align: middle;
}

.biliindex-bar {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  pointer-events: auto;
  font-size: inherit;
  line-height: inherit;
  visibility: visible !important;
  opacity: 1 !important;
}

#user-name,
.user-name,
bili-comment-user-renderer,
.upname,
.up-name,
.up-info--wrapper {
  overflow: visible !important;
}

.biliindex-slot {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 28px;
  min-height: 1.2em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 174, 236, 0.35);
  background: rgba(0, 174, 236, 0.12);
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  vertical-align: middle;
}

.biliindex-slot.biliindex-slot-filled {
  background: rgba(0, 174, 236, 0.22);
  border-color: rgba(0, 174, 236, 0.55);
  font-weight: 500;
  gap: 3px;
}

.biliindex-slot-label {
  line-height: 1.1;
}

.biliindex-slot-count {
  font-size: 0.82em;
  font-weight: 700;
  color: #00aeec;
  line-height: 1;
  min-width: 1ch;
}

.biliindex-tag-menu .menu-emoji {
  margin-right: 8px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15em;
  line-height: 1;
}

.biliindex-tag-menu .menu-count {
  margin-left: auto;
  font-size: 0.9em;
  color: #00aeec;
  font-weight: 700;
}

.biliindex-tag-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.biliindex-slot:hover {
  background: rgba(0, 174, 236, 0.32);
}

.biliindex-tag-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 99999;
  min-width: 96px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.biliindex-tag-menu button {
  padding: 6px 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #18191c;
  text-align: left;
}

.biliindex-tag-menu button:hover {
  background: #f1f2f3;
}

.biliindex-tag-empty {
  padding: 6px 8px;
  font-size: 12px;
  color: #9499a0;
}

a .biliindex-bar,
a .biliindex-slot {
  position: relative;
  z-index: 60;
}
