.brv-widget {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 620px);
  height: 78px;
  min-height: 78px;
  max-height: 78px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  opacity: 1;
  transition: opacity .2s ease;
}
.brv-widget[hidden] { display: none !important; }
.brv-widget.is-ident { opacity: .35; }
.brv-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 30px;
}
.brv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(220, 220, 224, .34);
  border-radius: 4px;
  background: rgba(25, 25, 29, .78);
  color: rgba(244, 244, 246, .92);
  font: 700 12px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .055em;
  cursor: pointer;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
.brv-btn:hover:not(:disabled) {
  background: rgba(225, 29, 46, .12);
  border-color: var(--accent, #e11d2e);
  color: #fff;
}
.brv-btn:focus-visible {
  outline: 2px solid var(--accent, #e11d2e);
  outline-offset: 3px;
  background: rgba(225, 29, 46, .12);
  border-color: var(--accent, #e11d2e);
}
.brv-btn:active:not(:disabled) { background: rgba(225, 29, 46, .2); }
.brv-btn:disabled { cursor: wait; opacity: .56; }
.brv-widget.is-ident .brv-btn:disabled,
.brv-widget.is-error .brv-btn:disabled { cursor: not-allowed; }
.brv-icon { width: 19px; height: 19px; flex: 0 0 19px; color: rgba(244, 244, 246, .9); fill: none; overflow: visible; }
.brv-btn:hover:not(:disabled) .brv-icon,
.brv-btn:focus-visible .brv-icon,
.brv-btn.is-selected .brv-icon { color: var(--accent, #e11d2e); }
.brv-btn-label { white-space: nowrap; }
.brv-btn b { display: inline-block; min-width: 2ch; margin-left: auto; font-family: var(--mono, monospace); }
.brv-like.is-selected { border-color: var(--accent, #e11d2e); background: rgba(225, 29, 46, .12); }
.brv-dislike.is-selected { border-color: #98515a; background: rgba(152, 81, 90, .12); }
.brv-rank {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  margin: 7px 0 0;
  min-height: 32px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: left;
}
.brv-widget.is-normal .brv-rank { display: none; }
.brv-toast {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(90vw, 620px);
  padding: 10px 14px;
  border-radius: 6px;
  background: #7f1722;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 14px;
}
.brv-toast.is-error { background: #a51b1b; }
@keyframes brv-activity-pulse {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(225, 29, 46, .22); }
}
.listener-ranking-strip.is-activity .listener-ranking-value {
  border-radius: 3px;
  animation: brv-activity-pulse .8s ease-in-out 10;
}
@media (max-width: 640px) {
  .brv-widget { height: 76px; min-height: 76px; max-height: 76px; margin: 0; padding: 8px 0; }
  .brv-actions { gap: 6px; flex-wrap: wrap; }
  .brv-btn { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 8px 7px; gap: 5px; font-size: 10px; letter-spacing: .025em; }
  .brv-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .brv-rank { padding-right: 0; }
  #listener-ranking-value { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .brv-btn { transition: none; }
  .listener-ranking-strip.is-activity .listener-ranking-value {
    animation: none;
    background-color: rgba(225, 29, 46, .16);
  }
}

.listener-ranking-strip.is-activity .listener-ranking-value .brv-activity-track {
  color: var(--accent, #e11d2e);
}

.listener-ranking-strip.is-activity .listener-ranking-value .brv-activity-track {
  margin: 0 .35em;
}
