/* =============================================================================
   Urban Chat — Live Stream Page
   Owncast-integrated livestreaming surface.
   Palette: Cool Blue-Gray browse family (matches Browse, Porch, Wire, Games)
   ============================================================================= */

/* ── Page Surface ───────────────────────────────────────────────────────────── */

#page-live.uc-live-lobby {
  position: relative;
  color: var(--uc-text);
  background: linear-gradient(180deg, var(--uc-surface-muted) 0%, var(--uc-surface-sunken) 100%);
  isolation: isolate;
}

#page-live .uc-live-lobby-grid {
  position: relative;
  z-index: 1;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

#page-live .uc-live-lobby-grid__main,
#page-live .uc-live-lobby-grid__rail {
  min-width: 0;
}

@media (min-width: 1024px) {
  #page-live .uc-live-lobby-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  #page-live .uc-live-lobby-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 1.75rem;
  }
}

/* Card shells now rely on .main-card.uc-card-trippy from retro-chrome.css */
#page-live .uc-live-stage-shell,
#page-live .uc-live-feed-shell,
#page-live .uc-live-sidebar-card {
  position: relative;
  border: 1px solid var(--uc-slate-300) !important;
  border-radius: 1.25rem !important;
  overflow: hidden;
  background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-raised) 100%) !important;
  box-shadow: 0 10px 22px var(--uc-wash-weak);
}

/* Fallback for any remaining custom heads (most now use .section-header) */
#page-live .uc-live-stage-head,
#page-live .uc-live-feed-head,
#page-live #live-guest-box > div:first-child,
#page-live [data-uc-card-kind="live.room-members.v1"] > div:first-child {
  background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary) 100%) !important;
  border-bottom: 1px solid var(--uc-veil-soft) !important;
  color: var(--uc-text-on-primary) !important;
}

#page-live .uc-live-feed-head {
  background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary) 100%) !important;
}

#page-live .uc-inventory-more {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
}

#page-live .uc-inventory-more-meta {
  color: rgba(255, 255, 255, 0.55);
}

#page-live .uc-live-streams-grid,
#page-live .uc-live-feed-body,
#page-live #live-guest-slots,
#page-live #live-room-members-list,
#page-live #live-top-givers-list {
  background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%) !important;
}

#page-live .uc-live-streams-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

@media (min-width: 640px) {
  #page-live .uc-live-streams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1280px) {
  #page-live .uc-live-streams-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

#page-live #live-active-count {
  color: var(--uc-danger-text) !important;
  background: var(--uc-surface-soft) !important;
  border-color: var(--uc-primary-wash-strong) !important;
}

#page-live #live-go-live-btn,
#page-live #live-offline-card [data-uc-action="live:start-broadcast"] {
  background: linear-gradient(180deg, var(--uc-primary) 0%, var(--uc-primary) 100%) !important;
  color: var(--uc-text-on-primary) !important;
  border: 2px solid var(--uc-primary) !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.24);
}

#page-live #live-go-live-btn:hover,
#page-live #live-offline-card [data-uc-action="live:start-broadcast"]:hover {
  background: linear-gradient(180deg, var(--uc-primary) 0%, var(--uc-primary-darker) 100%) !important;
  border-color: var(--uc-primary) !important;
}

#page-live #live-offline-card {
  padding: 2.25rem 1.5rem 2.5rem !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-muted) 100%) !important;
}

#page-live #live-offline-card .text-xl {
  color: var(--uc-primary) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  letter-spacing: -0.03em;
}

#page-live #live-offline-card p {
  max-width: 760px;
  color: var(--uc-text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.7;
}

#page-live #live-offline-card .justify-center {
  margin-top: 0.75rem;
}

#page-live #live-offline-card [data-uc-action="nav:page:chat"] {
  background: transparent !important;
  color: var(--uc-text-secondary) !important;
  border: 2px solid var(--uc-slate-300) !important;
  border-radius: 9999px !important;
}

#page-live #live-offline-card [data-uc-action="nav:page:chat"]:hover {
  background: var(--uc-primary-wash) !important;
  border-color: var(--uc-primary) !important;
  color: var(--uc-primary) !important;
}

#page-live #live-owncast-setup-hint > div {
  background: var(--uc-surface-raised) !important;
  border: 1px dashed var(--uc-slate-300) !important;
  color: var(--uc-text-secondary) !important;
}

#page-live #live-owncast-url-display {
  background: var(--uc-surface-muted) !important;
  color: var(--uc-primary) !important;
}

#page-live #feed-container {
  min-height: 260px !important;
}

#page-live #feed-container .opacity-50 {
  opacity: 1 !important;
}

#page-live #live-gift-bar,
#page-live #live-chat-form,
#page-live #live-guest-box > div:first-child + div {
  background: linear-gradient(180deg, var(--uc-surface-muted), var(--uc-surface-muted)) !important;
}

#page-live #live-guest-box,
#page-live [data-uc-card-kind="live.room-members.v1"],
#page-live [data-uc-card-kind="live.top-givers.v1"] {
  background: linear-gradient(180deg, var(--uc-surface), var(--uc-surface-raised)) !important;
}

#page-live #live-broadcast-modal {
  z-index: 10020;
}

#page-live #live-broadcast-modal.uc-scroll-modal-overlay {
  overflow: hidden;
  align-items: stretch;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

#page-live #live-broadcast-modal > .uc-live-broadcast-shell {
  box-shadow: 0 30px 90px var(--uc-wash-soft) !important;
  display: flex;
  flex-direction: column;
  max-height: min(
    92dvh,
    calc(
      100dvh
      - max(12px, env(safe-area-inset-top, 0px))
      - max(12px, env(safe-area-inset-bottom, 0px))
      - 16px
    )
  );
  overflow: hidden;
  margin: auto 0;
  animation: uc-live-modal-in 220ms ease-out;
}

@keyframes uc-live-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#page-live .uc-live-broadcast-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

/* Form primary path — room details + submit before optional stream tooling */
#page-live .uc-live-broadcast-form .uc-surface-input {
  font-size: 16px; /* iOS: avoid zoom-on-focus */
  border-radius: 12px;
  min-height: 48px;
}

#page-live .uc-live-broadcast-form textarea.uc-surface-input {
  min-height: 84px;
  resize: vertical;
}

#page-live .uc-live-broadcast-residency-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--uc-surface-muted);
  color: var(--uc-text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

#page-live .uc-live-broadcast-schedule-option {
  padding: 14px 14px;
  border: 1.5px solid var(--uc-surface-sunken);
  border-radius: 12px;
  background: var(--uc-surface-raised);
  min-height: 52px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

#page-live .uc-live-broadcast-schedule-option:has(.uc-live-broadcast-schedule-option__check:checked) {
  border-color: var(--uc-primary);
  background: var(--uc-surface-soft);
  box-shadow: 0 0 0 3px rgba(201, 20, 24, 0.1);
}

#page-live .uc-live-broadcast-schedule-option__check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #c91418;
  cursor: pointer;
  margin-top: 2px;
}

#page-live .uc-live-broadcast-schedule-field {
  margin-top: -4px;
  padding: 12px 14px 14px;
  border: 1.5px dashed var(--uc-danger-border);
  border-radius: 12px;
  background: var(--uc-surface-soft);
}

#page-live #live-broadcast-schedule-field .uc-surface-input {
  min-height: 48px;
  font-size: 16px;
}

#page-live .uc-live-broadcast-form__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -4px;
  padding: 10px 4px 2px;
  background: linear-gradient(180deg, var(--uc-veil-weak) 0%, var(--uc-surface) 28%);
}

#page-live #live-broadcast-submit-btn {
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.22);
  letter-spacing: 0.02em;
}

#page-live .uc-live-broadcast-after {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--uc-surface-sunken);
}

#page-live .uc-live-broadcast-after__label {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--uc-text-muted);
}

#page-live .uc-live-broadcast-details {
  background: var(--uc-surface-raised);
}

#page-live .uc-live-broadcast-details[open] {
  background: var(--uc-surface);
}

#page-live .uc-live-broadcast-camera-frame {
  aspect-ratio: 16 / 9;
  max-height: min(36vw, 200px);
}

@media (min-width: 768px) {
  #page-live #live-broadcast-modal.uc-scroll-modal-overlay {
    align-items: center;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  #page-live #live-broadcast-modal > .uc-live-broadcast-shell {
    max-height: min(90dvh, calc(100dvh - 48px));
    margin: auto;
  }

  #page-live .uc-live-broadcast-camera-frame {
    max-height: 220px;
  }

  #page-live .uc-live-broadcast-form__actions {
    position: static;
    padding: 4px 0 0;
    background: transparent;
  }
}

#page-live .uc-live-broadcast-details summary {
  list-style: none;
}

#page-live .uc-live-broadcast-details summary::-webkit-details-marker {
  display: none;
}

#page-live .uc-live-broadcast-details summary::after {
  content: "▾";
  float: right;
  color: var(--uc-text-muted);
  transition: transform 160ms ease;
}

#page-live .uc-live-broadcast-details[open] summary::after {
  transform: rotate(180deg);
}

#page-live .uc-live-broadcast-modal__body .uc-surface-btn {
  min-height: 44px;
}

/* Lobby rail stacks under the main column on tablet widths */
@media (min-width: 768px) and (max-width: 1023px) {
  #page-live .uc-live-lobby-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  #page-live .uc-live-lobby-grid__main {
    grid-column: 1 / -1;
  }
}

#page-live #live-featured-stream {
  border: 1px solid var(--uc-slate-300) !important;
  border-radius: 1rem !important;
  background: var(--uc-surface) !important;
}

#page-live .uc-live-placeholder-card,
#page-live #live-featured-stream {
  border-radius: 1rem !important;
  overflow: hidden;
}

#page-live .uc-live-placeholder-card > div,
#page-live #live-featured-stream > div {
  aspect-ratio: 16 / 9;
}

#page-live .uc-live-placeholder-card img,
#page-live #live-featured-stream img,
#page-live #live-featured-player-root,
#page-live #live-featured-player-root video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#page-live .uc-live-placeholder-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px var(--uc-scrim);
}

#page-live .uc-live-placeholder-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--uc-veil-weak);
  border-radius: 1rem;
}

#page-live .uc-live-placeholder-card p {
  text-shadow: 0 3px 14px var(--uc-scrim);
}

#page-live #live-room-preview-modal {
  backdrop-filter: blur(14px);
}

#page-live #live-room-preview-modal h3,
#page-live #live-room-preview-modal p,
#page-live #live-room-preview-modal span {
  text-wrap: balance;
}

#page-live #live-room-preview-modal [data-uc-action="live:enter-room-preview"] {
  box-shadow: 0 16px 32px var(--uc-shadow-ink-strong);
}

#page-live #live-room-preview-members,
#page-live #live-room-preview-sidebar-chat {
  background: linear-gradient(180deg, var(--uc-surface), var(--uc-surface-raised));
}

#page-live #live-room-preview-members > div,
#page-live #live-room-preview-sidebar-chat > div {
  box-shadow: inset 0 1px 0 var(--uc-shadow-ink-weak);
}

#page-live #live-room-preview-image {
  transform: scale(1.01);
}

#page-live #live-room-preview-modal .custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(185, 28, 28, 0.35);
}

#page-live #live-stream-room-modal {
  backdrop-filter: blur(16px);
}

#page-live #live-stream-room-modal > div {
  min-height: min(90vh, 840px);
}

/* Poster styles are unscoped — used on #page-live modal and #page-live-room player */
.uc-live-stream-room-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--uc-chrome);
}

.uc-live-stream-room-poster__media {
  position: absolute;
  inset: 0;
  background-image: var(--uc-live-room-poster);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.08);
  opacity: 0.72;
  transform: scale(1.02);
}

.uc-live-stream-room-poster__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(212, 160, 23, 0.14), transparent 28%),
    linear-gradient(180deg, var(--uc-scrim-weak), var(--uc-scrim-weak) 44%, var(--uc-scrim-strong)),
    linear-gradient(90deg, var(--uc-scrim-strong), var(--uc-scrim-weak) 58%, var(--uc-scrim));
}

.uc-live-stream-room-poster__copy {
  position: absolute;
  left: clamp(0.85rem, 3vw, 1.75rem);
  right: clamp(0.85rem, 3vw, 1.75rem);
  bottom: clamp(0.85rem, 3vw, 1.75rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: min(680px, calc(100% - 1.7rem));
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--uc-scrim-strong), rgba(5, 5, 5, 0.88));
  border: 1px solid var(--uc-veil-soft);
  box-shadow: 0 10px 28px var(--uc-scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.uc-live-stream-room-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: var(--uc-gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.uc-live-stream-room-title {
  color: var(--uc-text-on-primary);
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  max-width: 100%;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  overflow-wrap: anywhere;
}

.uc-live-stream-room-place {
  margin: 0;
  color: var(--uc-gold);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.uc-live-stream-room-topic,
.uc-live-stream-room-poster__copy p {
  color: rgba(255,255,255,0.86);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  max-width: 58ch;
}

/* Keep chat overlay clear of poster copy plate */
#page-live-room #live-stream-chat-overlay {
  bottom: auto;
  top: 3.25rem;
  max-height: 42%;
  overflow: hidden;
}

#page-live #live-featured-stream:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px var(--uc-wash-soft);
}

@media (max-width: 1023px) {
  #page-live #live-offline-card {
    min-height: 0;
    padding: 1.75rem 1.25rem !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIVE LOBBY — Hero + sidebar polish (UrbanChat-native redesign)
   ══════════════════════════════════════════════════════════════════════════════ */

/* Hero strip — red gradient + gold underline, mirrors section-header pattern */
#page-live .uc-live-hero {
  background: linear-gradient(120deg, var(--uc-primary-darker) 0%, var(--uc-primary) 45%, var(--uc-primary) 100%);
  border: 1px solid var(--uc-slate-300);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.22);
  position: relative;
}

#page-live .uc-live-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--uc-gold) 35%, var(--uc-gold) 65%, transparent);
}

#page-live .uc-live-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 22px 26px;
}

@media (min-width: 768px) {
  #page-live .uc-live-hero__inner {
    grid-template-columns: 1.4fr 1fr auto;
    gap: 28px;
  }
}

#page-live .uc-live-hero__brand .uc-link-gold {
  color: var(--uc-gold);
}

#page-live .uc-live-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#page-live .uc-live-hero__title {
  font-family: "Permanent Marker", "Anton", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1;
  color: var(--uc-text-on-primary);
  letter-spacing: -0.01em;
  text-shadow: 0 4px 12px var(--uc-shadow-ink-strong);
}

#page-live .uc-live-hero__sub {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  max-width: 480px;
}

#page-live .uc-live-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

#page-live .uc-live-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: stretch;
  padding: 4px 0;
  border-left: 1px solid rgba(250, 204, 21, 0.28);
}

#page-live .uc-live-hero__meta .uc-live-hero__stat {
  min-width: 72px;
  padding: 4px 14px;
}

#page-live .uc-live-hero__meta .uc-live-hero__stat-value {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  white-space: normal;
  max-width: 9.5rem;
  line-height: 1.15;
}

#page-live .uc-live-hero__stat {
  text-align: center;
  min-width: 64px;
  padding: 6px 12px;
  border-left: 1px solid var(--uc-accent-wash);
}

#page-live .uc-live-hero__stat:first-child,
#page-live .uc-live-hero__meta .uc-live-hero__stat:first-child {
  border-left: none;
}

#page-live .uc-live-hero__stat--status {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-live .uc-live-hero__mic {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  line-height: 1;
  background: var(--uc-gold);
  border: 3px solid var(--uc-border-strong);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--uc-border-strong);
  transform: rotate(-4deg);
}

#page-live .uc-live-hero__stat-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#page-live .uc-live-hero__stat-value {
  display: block;
  font-family: "Anton", "Permanent Marker", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--uc-text-on-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px var(--uc-shadow-ink-strong);
  white-space: nowrap;
}

#page-live .uc-live-hero__stat-label {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.9);
  text-align: center;
  width: 100%;
}

#page-live .uc-live-hero__signal-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

#page-live .uc-live-hero__signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--uc-gold);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7), 0 0 0 3px rgba(250, 204, 21, 0.18);
  animation: ucLiveHeroSignalPulse 2.4s ease-in-out infinite;
}

@keyframes ucLiveHeroSignalPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(250, 204, 21, 0.7), 0 0 0 3px rgba(250, 204, 21, 0.18); }
  50% { box-shadow: 0 0 22px rgba(250, 204, 21, 0.95), 0 0 0 6px rgba(250, 204, 21, 0.28); }
}

#page-live .uc-live-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  #page-live .uc-live-hero__cta {
    justify-content: flex-end;
  }
}

/* Override the legacy active-count chip rule so the value sits cleanly in the hero */
#page-live .uc-live-hero #live-active-count {
  background: transparent !important;
  border: none !important;
  color: var(--uc-text-on-primary) !important;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem) !important;
  font-family: "Anton", "Permanent Marker", system-ui, sans-serif !important;
  padding: 0 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px var(--uc-shadow-ink-strong);
  white-space: normal;
  line-height: 1.05;
  max-width: 11ch;
}

#page-live .uc-live-hero__stat--status .uc-live-hero__stat-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* Hero "Notify Me" — softer than primary Start Live, but still pop on the red field */
#page-live .uc-live-hero__notify {
  background: var(--uc-scrim-soft) !important;
  color: var(--uc-text-on-primary) !important;
  border: 1px solid var(--uc-accent-wash-strong) !important;
  backdrop-filter: blur(4px);
}

#page-live .uc-live-hero__notify:hover {
  background: var(--uc-scrim) !important;
  border-color: rgba(250, 204, 21, 0.75) !important;
}

#page-live .uc-live-hero__notify[aria-pressed="true"] {
  background: var(--uc-gold) !important;
  color: var(--uc-primary-ink) !important;
  border-color: var(--uc-gold) !important;
}

/* On Air section badge that flips between standby / live count */
#page-live .uc-live-room-count {
  color: rgba(250, 204, 21, 0.92);
  letter-spacing: 0.2em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Empty count still paints ::before as a meaningless signal dot — hide shell entirely. */
#page-live .uc-live-room-count:empty,
#page-live .uc-live-room-count[hidden] {
  display: none !important;
}

#page-live .uc-live-room-count::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.6);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

#page-live .uc-live-room-count.is-live {
  color: var(--uc-text-on-primary);
}
#page-live .uc-live-room-count.is-live::before {
  background: var(--uc-surface);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
  animation: ucLiveHeroSignalPulse 1.8s ease-in-out infinite;
}

/* Sidebar cards: tighten section-header so it doesn't dominate */
#page-live aside .uc-live-sidebar-card .section-header {
  padding: 10px 14px;
  font-size: 11px;
}

#page-live aside .uc-live-sidebar-card .section-header:hover {
  transform: none;
  animation: none;
}

/* Filter row aligns with section-header */
#page-live .uc-live-filter-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#page-live .uc-live-filter-row::-webkit-scrollbar { display: none; }

/* Streams grid override — the legacy 3-col rule still applies for >1280px */
#page-live #live-streams-grid {
  background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%) !important;
}

#page-live .uc-live-open-rooms-section.hidden,
#page-live .uc-live-active-lives.hidden {
  display: none !important;
}

#page-live .uc-live-scheduled-section .section-header {
  padding: 10px 14px;
}

#page-live .uc-live-scheduled-section .uc-live-scheduled-title {
  color: var(--uc-gold) !important;
}

#page-live .uc-live-scheduled-empty {
  background: linear-gradient(180deg, var(--uc-surface) 0%, var(--uc-surface-soft) 100%);
}

/* Onboarding banner — match the room page exactly */
#page-live .uc-live-onboarding-banner {
  background: var(--uc-surface-soft);
}

/* Mobile: center the mic / status block */
@media (max-width: 767px) {
  #page-live .uc-live-hero__stats {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  #page-live .uc-live-hero__stat--status {
    width: 100%;
    align-items: center;
  }
  #page-live .uc-live-hero__meta {
    border-left: none;
    justify-content: center;
    width: 100%;
  }
  #page-live .uc-live-hero__title {
    font-size: 1.5rem;
  }
  #page-live .uc-live-hero__cta {
    justify-content: center;
  }
}

#page-live .uc-live-active-lives .section-header > span:first-child,
#page-live .uc-live-active-lives__title {
  color: var(--uc-gold);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LIVE ROOM — Light Mode Rebuild
   ══════════════════════════════════════════════════════════════════════════════ */

/* Room page sits inside the normal site shell (header + nav visible) */
#page-live-room {
  background: var(--uc-surface-raised);
  font-family: inherit;
}

/* ── Responsive Room Layout ─────────────────────────────────────────────── */

#page-live-room .container {
  max-width: 1200px;
}

@media (max-width: 640px) {
  #page-live-room .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  #page-live-room .uc-room-header {
    border-radius: 0.5rem 0.5rem 0 0;
  }
  #page-live-room .rounded-b-xl {
    border-radius: 0 0 0.5rem 0.5rem !important;
  }
}

/* ── Guest Slot Polish (light mode cards) ────────────────────────────────── */

.uc-guest-slot-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uc-text-muted);
}

/* Smooth transitions for all interactive elements */
#page-live-room button,
#page-live-room input {
  -webkit-tap-highlight-color: transparent;
}

/* ── UrbanChat-native shell (mirrors #page-chat .main-card.uc-card-trippy) ── */

#page-live-room .uc-live-room-shell.main-card.uc-card-trippy {
  border: 1px solid var(--uc-surface-sunken);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px var(--uc-wash-soft);
}

/* Room header uses the canonical section-header red gradient w/ gold underline */
#page-live-room .uc-room-header.section-header {
  background: linear-gradient(90deg, var(--uc-primary) 0%, var(--uc-primary-darker) 55%, var(--uc-primary) 100%);
  border-bottom: 2px solid var(--uc-gold);
  color: var(--uc-text-on-primary);
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  font-size: 11px;
  position: relative;
}

#page-live-room .uc-room-header.section-header h1,
#page-live-room .uc-room-header.section-header .uc-link-gold {
  letter-spacing: 0.12em;
}

/* Disable the section-header hover scale since this header is a fixed strip, not a clickable card */
#page-live-room .uc-room-header.section-header:hover {
  transform: none;
  animation: none;
}

#page-live-room .uc-link-gold {
  color: var(--uc-gold);
}

/* Tab bar — clean, with gold underline on active tab (UrbanChat brand pattern) */
#page-live-room .uc-room-tab {
  color: var(--uc-text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

#page-live-room .uc-room-tab:hover {
  color: var(--uc-danger-text);
  background: var(--uc-primary-wash);
}

#page-live-room .uc-room-tab.is-active {
  color: var(--uc-primary-ink);
  border-bottom-color: var(--uc-gold);
  background: var(--uc-surface);
}

/* Ticker gets a subtle dark slab with gold accent text */
#page-live-room .uc-room-ticker {
  background: linear-gradient(90deg, var(--uc-chrome) 0%, var(--uc-chrome) 100%);
}

/* Room pulse footer — match section-header tone */
#page-live-room .uc-room-pulse-footer {
  background: linear-gradient(90deg, var(--uc-primary-darker) 0%, #4c1414 100%);
  border-top: 2px solid var(--uc-gold);
  padding: 12px 18px;
}

/* Pinned message keeps amber tone but with bolder uppercase typography */
#page-live-room #live-chat-pinned-message p {
  letter-spacing: 0.02em;
}

/* Tighten gifting bar / controls bar consistent rounding */
#page-live-room .uc-room-controls .uc-surface-btn--primary,
#page-live-room .uc-room-controls .uc-surface-btn--secondary {
  font-size: 10px;
  padding: 6px 12px;
}

/* Mic / Camera "on" state — green ring tint to signal you're live in the box */
#page-live-room .uc-room-control--on {
  background: var(--uc-success-surface) !important;
  border-color: var(--uc-success-border) !important;
  color: var(--uc-success-text) !important;
  box-shadow: 0 3px 8px var(--uc-shadow-ink-soft) !important;
}

#page-live-room .uc-room-control--on:hover {
  filter: brightness(1.04);
}

/* Right sidebar receives the same panel polish as #page-experts/#page-porch */
#page-live-room aside {
  background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
}

/* Guest tiles strip — subtle gold edge to tie into the brand */
#page-live-room #live-stream-guest-slots {
  scroll-padding: 8px;
}

/* ── Member List (JS-rendered) ─────────────────────────────────────────── */

.uc-live-member-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.uc-live-member-row:hover {
  background: var(--uc-surface-muted);
}
.uc-live-member-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.uc-live-member-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--uc-surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--uc-text-muted);
}
.uc-live-member-avatar--host {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
}
.uc-live-member-pip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: 2px solid var(--uc-surface-raised);
}
.uc-live-member-info {
  flex: 1;
  min-width: 0;
}
.uc-live-member-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--uc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-live-member-status {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uc-text-muted);
}
.uc-live-member-pull {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--uc-surface-muted);
  color: var(--uc-text-muted);
  border: none;
  cursor: not-allowed;
  transition: all 0.15s;
}
.uc-live-member-pull:not([disabled]) {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
  cursor: pointer;
}
.uc-live-member-pull:not([disabled]):hover {
  background: var(--uc-danger);
}

/* ── Chat Messages (JS-rendered) ───────────────────────────────────────── */

.uc-live-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  animation: fadeInUp 0.25s ease-out;
}
.uc-live-chat-msg--gift {
  background: #fef3c7;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.25rem 0;
}
.uc-live-chat-msg--host {
  border-left: 2px solid var(--uc-primary);
  padding-left: 0.5rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.uc-message-pulse {
  animation: msgPulse 0.6s ease-out;
}
@keyframes msgPulse {
  0% { background: transparent; }
  50% { background: var(--uc-primary-wash); }
  100% { background: transparent; }
}
.uc-live-chat-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--uc-surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--uc-text-muted);
  flex-shrink: 0;
}
.uc-live-chat-body {
  flex: 1;
  min-width: 0;
}
.uc-live-chat-user {
  font-size: 0.7rem;
  font-weight: 700;
}
.uc-live-chat-host-badge {
  display: inline-block;
  margin-left: 0.25rem;
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
}
.uc-live-chat-on-stage-badge {
  display: inline-block;
  margin-left: 0.25rem;
  background: var(--uc-success);
  color: var(--uc-text-on-primary);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
}
.uc-live-chat-text {
  font-size: 0.8rem;
  color: var(--uc-text-secondary);
  line-height: 1.4;
  word-break: break-word;
}
.uc-live-chat-text--gift {
  color: var(--uc-warning-text);
  font-weight: 600;
}

/* Link previews in chat */
.uc-live-chat-link-preview {
  display: block;
  margin-top: 0.375rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--uc-border);
  background: var(--uc-surface-raised);
  transition: border-color 0.15s;
}
.uc-live-chat-link-preview:hover {
  border-color: var(--uc-border);
}
.uc-live-chat-link-img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}
.uc-live-chat-link-content {
  padding: 0.5rem;
}
.uc-live-chat-link-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--uc-text);
  word-break: break-word;
}
.uc-live-chat-link-domain {
  font-size: 0.6rem;
  color: var(--uc-text-muted);
  margin-top: 0.125rem;
}

/* Poll cards in chat */
.uc-live-chat-poll-card {
  background: var(--uc-surface-soft) !important;
  border: 1px solid var(--uc-gold) !important;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.25rem;
  width: 100%;
}
.uc-live-chat-poll-card button {
  position: relative;
  overflow: hidden;
  background: var(--uc-surface);
  border: 1px solid var(--uc-border);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--uc-text-secondary);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.uc-live-chat-poll-card button:hover {
  background: var(--uc-surface-soft);
  border-color: var(--uc-gold);
}
.uc-live-chat-poll-card button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.uc-live-chat-poll-card .uc-poll-bar {
  position: absolute;
  inset: 0;
  background: #fef9c3;
  z-index: 0;
  border-radius: 0.5rem;
}
.uc-live-chat-poll-card button span {
  position: relative;
  z-index: 10;
}
.uc-live-chat-poll-card .uc-poll-footer {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--uc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Top Givers (JS-rendered) ────────────────────────────────────────────── */

.uc-live-top-giver-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.uc-live-top-giver-row:hover {
  background: var(--uc-surface-muted);
}
.uc-live-top-giver-rank {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--uc-surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--uc-text-muted);
  flex-shrink: 0;
}
.uc-live-top-giver-rank--first {
  background: var(--uc-gold);
  color: #78350f;
}
.uc-live-top-giver-info {
  flex: 1;
  min-width: 0;
}
.uc-live-top-giver-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--uc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-live-top-giver-bar-wrap {
  margin-top: 0.25rem;
  height: 0.25rem;
  background: var(--uc-surface-sunken);
  border-radius: 9999px;
  overflow: hidden;
}
.uc-live-top-giver-bar {
  height: 100%;
  background: var(--uc-warning);
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}
.uc-live-top-giver-pts {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--uc-text-muted);
  flex-shrink: 0;
}

/* ── Scrollbar Helpers ────────────────────────────────────────────────────── */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--uc-scrim-weak); border-radius: 2px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--uc-scrim-soft); }

/* ── Guest Slot Pulse ─────────────────────────────────────────────────────── */

@keyframes uc-guest-pulse {
  0%, 100% { border-color: var(--uc-veil-weak); }
  50% { border-color: rgba(212,160,23,0.3); }
}
.uc-guest-slot-pulse.uc-pulse-active {
  animation: uc-guest-pulse 3s ease-in-out infinite;
}

/* ── Ticker ───────────────────────────────────────────────────────────────── */

@keyframes uc-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.uc-ticker-animate {
  animation: uc-ticker-scroll 30s linear infinite;
}

/* ── Accent Swatches ──────────────────────────────────────────────────────── */

.uc-live-accent-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.uc-live-accent-swatch:hover { transform: scale(1.15); }
.uc-live-accent-swatch.is-selected { border-color: currentColor; box-shadow: 0 0 0 2px var(--uc-shadow-ink-soft); }
.uc-live-accent-swatch--gold { background: var(--uc-gold-dim); }
.uc-live-accent-swatch--brick { background: var(--uc-primary); }
.uc-live-accent-swatch--neon { background: #16A34A; }
.uc-live-accent-swatch--sky { background: #0EA5E9; }
.uc-live-accent-swatch--sunset { background: #F97316; }

/* ── Sparkline ────────────────────────────────────────────────────────────── */

.uc-live-sparkline-wrap {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 10px;
}
.uc-live-sparkline-bar {
  width: 2px;
  background: var(--uc-gold-dim);
  border-radius: 1px;
  transition: height 0.3s;
}

/* ── Field Focus Glow ─────────────────────────────────────────────────────── */

.uc-field-focus-momentum:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ── Chat Overlay on Stage ────────────────────────────────────────────────── */

.uc-overlay-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  max-width: 280px;
  animation: overlay-gift-entry 0.3s ease-out;
}
.uc-overlay-msg__name {
  font-size: 10px;
  font-weight: 800;
  color: var(--uc-gold-dim);
}
.uc-overlay-msg__text {
  font-size: 10px;
  font-weight: 600;
  color: color-mix(in srgb, var(--uc-text-on-primary) 85%, transparent);
  line-height: 1.3;
}

/* ── Chat Message Styling (inside light panels) ──────────────────────────── */

.uc-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 0;
}
.uc-chat-msg__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--uc-surface-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--uc-text-muted);
}
.uc-chat-msg__name {
  font-size: 11px;
  font-weight: 700;
  color: var(--uc-text-secondary);
}
.uc-chat-msg__text {
  font-size: 12px;
  color: var(--uc-text-muted);
  line-height: 1.4;
}
.uc-chat-msg__time {
  font-size: 9px;
  color: var(--uc-text-muted);
  margin-left: 4px;
}

/* ── Gift Card Styling ───────────────────────────────────────────────────── */

.uc-gift-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--uc-surface-raised);
  border: 1px solid var(--uc-border);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.uc-gift-btn:hover {
  background: var(--uc-surface-muted);
  border-color: var(--uc-border);
}
.uc-gift-btn__emoji { font-size: 16px; }
.uc-gift-btn__cost {
  font-size: 8px;
  font-weight: 700;
  color: var(--uc-text-muted);
  text-transform: uppercase;
}

.uc-live-pro-reaction-divider {
  width: 1px;
  height: 30px;
  margin: 0 4px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0), rgba(203, 213, 225, 0.9), rgba(203, 213, 225, 0));
  flex-shrink: 0;
}

.uc-live-pro-reaction-btn {
  min-width: 46px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: linear-gradient(180deg, var(--uc-surface-soft) 0%, #fff3d4 100%);
  color: #7c3e00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.uc-live-pro-reaction-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(202, 138, 4, 0.68);
  box-shadow: 0 5px 12px rgba(146, 64, 14, 0.18);
}

.uc-live-pro-reaction-btn.is-sent {
  transform: scale(0.92);
}

.uc-live-pro-reaction-btn.is-locked {
  background: linear-gradient(180deg, var(--uc-surface-raised) 0%, var(--uc-surface-muted) 100%);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--uc-text-muted);
  box-shadow: none;
}

.uc-live-pro-reaction-btn__emoji {
  font-size: 18px;
  line-height: 1;
}

.uc-live-pro-reaction-btn__tag {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uc-live-pro-reaction-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 11, 15, 0.78);
  box-shadow: 0 14px 32px var(--uc-shadow-ink-strong);
  animation: uc-live-pro-burst-pop 740ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.uc-live-pro-reaction-burst.is-fading {
  opacity: 0;
}

.uc-live-pro-reaction-burst__emoji {
  font-size: 28px;
  line-height: 1;
}

.uc-live-pro-reaction-burst__label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fef3c7;
}

.uc-live-pro-reaction-burst--fire { box-shadow: 0 0 28px rgba(239, 68, 68, 0.42); }
.uc-live-pro-reaction-burst--crown { box-shadow: 0 0 28px rgba(250, 204, 21, 0.42); }
.uc-live-pro-reaction-burst--diamond { box-shadow: 0 0 28px rgba(56, 189, 248, 0.42); }
.uc-live-pro-reaction-burst--rocket { box-shadow: 0 0 28px rgba(168, 85, 247, 0.42); }
.uc-live-pro-reaction-burst--vibe { box-shadow: 0 0 28px rgba(34, 197, 94, 0.42); }
.uc-live-pro-reaction-burst--clap { box-shadow: 0 0 28px rgba(251, 146, 60, 0.42); }

@keyframes uc-live-pro-burst-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.86);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -62%) scale(0.98);
  }
}

/* ── Surface Buttons (referenced in HTML) ─────────────────────────────────── */

.uc-surface-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}

.uc-surface-btn.hidden {
  display: none !important;
}
.uc-surface-btn--accent {
  background: var(--uc-gold-dim);
  color: var(--uc-text-on-gold);
  border-color: rgba(212, 160, 23, 0.5);
}
.uc-surface-btn--accent:hover {
  filter: brightness(1.1);
}
.uc-surface-btn--primary {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
}
.uc-surface-btn--primary:hover {
  background: var(--uc-danger);
}

/* ── Guest Request Flash ──────────────────────────────────────────────────── */

@keyframes uc-guest-request-flash-anim {
  0% { box-shadow: 0 0 0 rgba(212,160,23,0); }
  50% { box-shadow: 0 0 15px rgba(212,160,23,0.4); color: var(--uc-gold-dim); }
  100% { box-shadow: 0 0 0 rgba(212,160,23,0); }
}
.uc-guest-request-flash {
  animation: uc-guest-request-flash-anim 1s ease-in-out infinite;
}

/* ── Chat Overlay Animations ──────────────────────────────────────────────── */

@keyframes overlay-gift-entry {
  0% { transform: translateX(-100%) scale(0.8); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes overlay-gift-glow {
  from { box-shadow: 0 0 10px rgba(185, 28, 28, 0.25), 0 8px 32px rgba(15,23,42,0.25); }
  to { box-shadow: 0 0 25px rgba(185, 28, 28, 0.45), 0 8px 32px rgba(15,23,42,0.25); }
}

.uc-overlay-msg--fade-out {
  animation: overlay-fade-out 1s ease-in forwards;
}

@keyframes overlay-fade-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* Speaker Active Pulse - Highlights participation */
.uc-speaker-pulse {
  position: relative;
}

.uc-speaker-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--uc-success);
  border-radius: inherit;
  animation: uc-speaker-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

@keyframes uc-speaker-pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(1.1); opacity: 0; }
}

