#notify {
  --notify-card: rgba(20, 20, 25, 0.92);
  --notify-text: #ffffff;
  --notify-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --notify-accent: #6ee7b7;
}

.notify {
  position: fixed;
  right: 26px;
  bottom: calc(var(--player-bar-height) + 26px);
  display: block;
  width: 360px;
  height: 200px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
}
.notify.has-link .bubble {
  pointer-events: auto;
  cursor: pointer;
}
.notify.is-show {
  opacity: 1;
  transform: translateY(0);
}

.avatar-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 70px;
  transform-origin: 50% 100%;
}
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--notify-shadow);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  display: none;
}
.badge::after {
  display: none;
}

.bubble {
  position: absolute;
  right: 60px;
  bottom: 74px;
  max-width: 320px;
  background: var(--notify-card);
  color: var(--notify-text);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--notify-shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.bubble-body {
  display: flex;
  gap: 10px;
  /* align-items: flex-start; */
  align-items: center;
}
.bubble-main {
  flex: 1;
}
.bubble-thumb {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
}
.bubble-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bubble-thumb[hidden] {
  display: none;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--notify-card);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.title {
  font-size: 12px;
  opacity: 0.82;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.18);
  color: rgba(255, 255, 255, 0.88);
}
.msg-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.msg {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.1px;
}

.notify.is-show .avatar-wrap {
  animation: avatar-bounce 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both,
    subtle-idle 1800ms ease-in-out 1.05s infinite;
}
.notify.is-show .bubble {
  animation: bubble-pop 430ms cubic-bezier(0.2, 0.9, 0.2, 1) 320ms both;
}
.notify.is-show .badge {
  opacity: 1;
  animation: badge-pop 280ms ease-out 260ms both, badge-ping 1100ms ease-out 520ms 2;
}
.notify.is-show .badge::after {
  animation: badge-ping-ring 1100ms ease-out 520ms 2;
}

.notify.is-hide .avatar-wrap {
  animation: exit-down 260ms ease-in both;
}
.notify.is-hide .bubble {
  animation: exit-fade 220ms ease-in both;
}

@keyframes avatar-bounce {
  0% {
    transform: translateY(18px) scale(0.9);
  }
  55% {
    transform: translateY(-10px) scale(1.03);
  }
  75% {
    transform: translateY(3px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes bubble-pop {
  0% {
    opacity: 0;
    transform: translateX(12px) translateY(6px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}
@keyframes subtle-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes badge-pop {
  0% {
    transform: scale(0.75);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes badge-ping {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes badge-ping-ring {
  0% {
    transform: scale(0.45);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes exit-down {
  to {
    transform: translateY(18px) scale(0.96);
    opacity: 0;
  }
}
@keyframes exit-fade {
  to {
    transform: translateX(10px) translateY(4px) scale(0.98);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notify,
  .avatar-wrap,
  .bubble,
  .badge {
    animation: none !important;
    transition: none !important;
  }
}
