/* Favorite state shares the existing button shape, glass, and icon. */
:root .anime-app.anime-app :is(.detail-actions, .watch-summary-actions, .watch-rating-actions) .favorite-save-action {
  position: relative;
  color: var(--text, #edf1f6);
}
:root .anime-app.anime-app :is(.detail-actions, .watch-summary-actions, .watch-rating-actions) .favorite-save-action.is-active {
  color: #ffb8d0;
  background: rgb(240 130 171 / 13%) !important;
  border-color: rgb(255 173 204 / 42%);
}
:root .anime-app.anime-app :is(.detail-actions, .watch-summary-actions, .watch-rating-actions) .favorite-save-action.is-active:hover {
  color: #ffd4e3;
  background: rgb(240 130 171 / 19%) !important;
}
:root[data-theme='light'] .anime-app.anime-app :is(.detail-actions, .watch-summary-actions, .watch-rating-actions) .favorite-save-action.is-active {
  color: #97254b;
  background: rgb(197 60 109 / 10%) !important;
  border-color: rgb(158 39 80 / 32%);
}
:root .anime-app.anime-app .watch-summary-actions .watch-favorite-action.favorite-save-action {
  border-radius: 999px;
}
:root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: inherit;
}
.favorite-save-sparkles > i {
  position: absolute;
  top: 35%;
  left: 17%;
  display: block;
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
  opacity: 0;
  animation: favorite-save-star 620ms cubic-bezier(.2,.7,.2,1) both;
}
.favorite-save-sparkles > i:nth-child(2) { left: 38%; top: 29%; width: 6px; height: 6px; animation-delay: 50ms; }
.favorite-save-sparkles > i:nth-child(3) { left: 76%; top: 33%; width: 7px; height: 7px; animation-delay: 100ms; }
@keyframes favorite-save-star {
  0% { opacity: 0; transform: translateY(4px) scale(.4) rotate(-16deg); }
  24% { opacity: .95; transform: translateY(-3px) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-12px) scale(.6) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  :root .anime-app.anime-app .favorite-save-action > .favorite-save-sparkles { display: none !important; }
  .favorite-save-sparkles > i { animation: none; }
}
