/* Watch Party (src/ui/WatchPartyViews.tsx): the code on Settings → Watch
   Party, toasts outside the player, and reactions, chat and toasts over the
   picture. Sizes follow the Apple TV's (tvOS points = px at 1920x1080).
   No flex gap (Chrome 84): spacing is margins. */

.gm-party-code { color: #fff; font-size: 132px; font-weight: 800; line-height: 1.05; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.gm-party-avatars .gm-pill { font-size: 44px; padding-left: 24px; padding-right: 24px; }

/* Toasts: a capsule top-centre (3.5 s, WatchParty.showToast). */
.gm-party-root-toast,
.gm-party-toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1600px;
  padding: 20px 44px;
  border-radius: 999px;
  background: rgba(42, 42, 44, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: gm-party-drop 250ms ease-out both;
  z-index: 60;
}
.gm-party-root-toast { top: 40px; }
.gm-party-toast { top: 60px; }
@keyframes gm-party-drop { from { opacity: 0; transform: translate(-50%, -24px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Over the picture: never takes focus or the pointer. */
.gm-party-overlay { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 5; }

.gm-party-chat {
  position: absolute;
  left: 80px;
  bottom: 160px;
  width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: bottom 200ms ease;
}
.gm-party-chat > * + * { margin-top: 12px; }
.gm-party-bubble {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 640px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-sizing: border-box;
  animation: gm-party-slide 300ms ease-out both;
}
.gm-party-bubble-avatar { font-size: 36px; margin-right: 10px; line-height: 1.2; }
.gm-party-bubble-name { font-size: 24px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.gm-party-bubble-text { font-size: 30px; line-height: 1.3; }
@keyframes gm-party-slide { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.gm-party-reactions {
  position: absolute;
  right: 80px;
  bottom: 160px;
  width: 520px;
  height: 640px;
  transition: bottom 200ms ease;
}
.gm-party-overlay.lifted .gm-party-chat,
.gm-party-overlay.lifted .gm-party-reactions { bottom: 340px; }

/* One reaction: rises over three seconds, holds, fades from 2.2 s to 3.0 s. */
.gm-party-burst {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  animation: gm-party-rise 3s ease-out both, gm-party-fade 0.8s ease-in 2.2s both;
}
.gm-party-burst-emoji { font-size: 84px; line-height: 1.1; }
.gm-party-burst-name {
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes gm-party-rise { from { transform: translateY(0) scale(0.6); } to { transform: translateY(-420px) scale(1); } }
@keyframes gm-party-fade { from { opacity: 1; } to { opacity: 0; } }
