body.legacy-player .legacy-toasts {
  position: fixed;
  top: 50%;
  left: 50%;
  bottom: auto;
  z-index: 500;
  display: grid;
  gap: 10px;
  width: min(540px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.legacy-player .legacy-toast {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  max-width: none;
  padding: 15px 20px 15px 52px;
  overflow-wrap: anywhere;
  border: 1px solid var(--legacy-border, #ff878c);
  border-radius: 12px;
  background: linear-gradient(145deg, #26282e, #111217);
  box-shadow: 0 18px 50px #000c, inset 0 1px #ffffff1f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  animation: legacy-toast-appear .22s ease-out both;
}

body.legacy-player .legacy-toast::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--legacy-gradient, #c80c12);
  color: #fff;
  font-size: 16px;
  transform: translateY(-50%);
}

body.legacy-player .legacy-toast[data-tone=info]::before { content: 'i'; font-family: Georgia, serif; }
body.legacy-player .legacy-toast[data-tone=error]::before { content: '!'; background: #ac3434; }
body.legacy-player[data-legacy-brand=gogo] .legacy-toast { background: linear-gradient(145deg, #183149, #101821); }

@keyframes legacy-toast-appear {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  body.legacy-player .legacy-toast { min-height: 56px; padding: 13px 14px 13px 46px; font-size: 14px; }
  body.legacy-player .legacy-toast::before { left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  body.legacy-player .legacy-toast { animation: none; }
}
