/* Option A: compact dark glass labels, scoped to Library release artwork. */
body.library-page .favorites-artist-release-badge:is(.is-new, .is-popular),
body.library-page .favorites-artist-release-date-tag {
  box-sizing: border-box;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(12, 14, 23, .70);
  color: #f5f5fa;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .24);
  font-weight: 800;
  line-height: 1.1;
  pointer-events: none;
}

body.library-page .favorites-artist-release-badge:is(.is-new, .is-popular) {
  gap: 7px;
  font-size: .66rem;
  letter-spacing: .045em;
}

body.library-page .favorites-artist-release-badge.is-new {
  color: #b2f4e6;
}

body.library-page .favorites-artist-release-badge.is-new::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8df4dc;
  box-shadow: 0 0 5px rgba(141, 244, 220, .16);
}

body.library-page .favorites-artist-release-badge.is-popular::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: #d99aee;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 15l5-5 4 3 6-9M12 4h5v5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 15l5-5 4 3 6-9M12 4h5v5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.library-page .favorites-artist-release-date-tag {
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (forced-colors: active) {
  body.library-page .favorites-artist-release-badge:is(.is-new, .is-popular),
  body.library-page .favorites-artist-release-date-tag {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  body.library-page .favorites-artist-release-badge::before { display: none; }
}
