/* Geerho Live list page (live.html without ?id): the dark hero with the phone, the empty "Live now" state, section
   headers and the three "how it works" tiles (TJ 2026-11-20: "right now it looks boring and basic"). Loaded after
   hub.css; uses its tokens (--ink, --live-a, --live-b, --live-red, --ease) so light and dark mode both work. */

.lv-hero { position: relative; overflow: hidden; isolation: isolate; margin: 8px 0 34px; padding: clamp(28px, 5vw, 56px);
  border-radius: 28px; background: var(--ink); color: #f4f5fb; box-shadow: 0 30px 80px rgba(8, 10, 26, .28);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.lv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(45% 65% at 85% 25%, rgba(255, 59, 92, .38), transparent 70%),
  radial-gradient(45% 60% at 10% 0%, rgba(79, 99, 246, .5), transparent 70%),
  radial-gradient(60% 60% at 50% 130%, rgba(139, 92, 246, .4), transparent 70%); }
.lv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 80% at 30% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 30% 30%, #000 30%, transparent 78%); }
.lv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.lv-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live-red); flex: none; }
.lv-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live-red); animation: lv-ping 1.8s var(--ease) infinite; }
.lv-dot.idle { background: #8b90a8; }
.lv-dot.idle::after { display: none; }
@keyframes lv-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.lv-hero h1 { margin: 18px 0 14px; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -.045em; font-weight: 780; color: #fff; }
.lv-hero h1 span { background: linear-gradient(100deg, #ff6b86 0%, #c4a7ff 55%, #8a98ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-lead { margin: 0 0 26px; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6; color: #c3c8dc; }
.lv-hero .button-row { gap: 12px; }
.lv-hero .button { padding: 13px 22px; }
.lv-hero .button.primary { --accent: #ff3b5c; --accent-text: #fff; box-shadow: 0 10px 30px rgba(255, 59, 92, .35); }
.lv-hero .button.plain { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.lv-hero .button.plain:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.lv-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; font-size: .88rem; color: #b4b9cf; }
.lv-stats strong { display: block; font-size: 1.4rem; color: #fff; letter-spacing: -.02em; }

/* The phone: a drawn vertical show with a LIVE badge, chat bubbles and hearts floating up. Decorative only. */
.lv-phone { position: relative; justify-self: center; width: min(100%, 250px); aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2); animation: drift 9s ease-in-out infinite; }
.lv-screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden;
  background: radial-gradient(80% 50% at 50% 35%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(165deg, #7389ff 0%, #8b5cf6 50%, #ff3b5c 120%); }
.lv-screen .live-badge { position: absolute; top: 14px; left: 14px; }
.lv-viewers { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 6px; font-size: .74rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .35); }
.lv-host-face { position: absolute; top: 30%; left: 50%; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); border: 3px solid rgba(255, 255, 255, .85); display: grid; place-items: center; }
.lv-host-face svg { width: 44px; height: 44px; color: #fff; }
.lv-chat { position: absolute; left: 12px; right: 56px; bottom: 16px; display: grid; gap: 6px; }
.lv-chat span { justify-self: start; max-width: 100%; padding: 6px 10px; border-radius: 12px; font-size: .72rem; line-height: 1.25; color: #fff;
  background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; animation: lv-chat 9s var(--ease) infinite; }
.lv-chat span b { font-weight: 700; margin-right: 4px; }
.lv-chat span:nth-child(2) { animation-delay: 1.2s; }
.lv-chat span:nth-child(3) { animation-delay: 2.4s; }
@keyframes lv-chat { 0% { opacity: 0; transform: translateY(8px); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.lv-hearts { position: absolute; right: 10px; bottom: 16px; width: 40px; height: 60%; pointer-events: none; }
.lv-hearts i { position: absolute; bottom: 0; left: 10px; font-style: normal; font-size: 22px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  opacity: 0; animation: lv-heart 3.6s ease-in infinite; }
.lv-hearts i:nth-child(2) { animation-delay: .9s; left: 2px; color: #ffd1dc; }
.lv-hearts i:nth-child(3) { animation-delay: 1.8s; left: 16px; color: var(--live-red); }
.lv-hearts i:nth-child(4) { animation-delay: 2.7s; left: 6px; }
@keyframes lv-heart { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1.1); }
  100% { transform: translateY(-220px) translateX(-10px) scale(.9); opacity: 0; } }

/* Section headers */
.lv-section { margin: 0 0 34px; }
.lv-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.lv-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.lv-count { padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--rule); }
.lv-head .lv-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; flex: none;
  background: linear-gradient(150deg, var(--live-a), var(--live-b)); }
.lv-head .lv-icon.red { background: linear-gradient(150deg, #ff6b86, var(--live-red)); }
.lv-head .lv-icon svg { width: 18px; height: 18px; }
.live-page .live-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin: 0; }
.live-page .live-card-art { border-radius: 20px; box-shadow: var(--shadow); }
.live-page .live-upcoming-list { padding: 4px 18px; border-radius: 20px; }

/* Nobody's live */
.lv-empty { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 26px 28px;
  border-radius: 22px; background: var(--raised); border: 1px dashed color-mix(in srgb, var(--live-a) 45%, var(--rule)); box-shadow: var(--shadow); }
.lv-radar { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, var(--live-a), var(--live-b)); }
.lv-radar svg { width: 28px; height: 28px; }
.lv-radar::before, .lv-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--live-a);
  animation: lv-radar 2.6s var(--ease) infinite; }
.lv-radar::after { animation-delay: 1.3s; }
@keyframes lv-radar { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.lv-empty h3 { margin: 0 0 4px; font-size: 1.12rem; }
.lv-empty p { margin: 0; color: var(--muted); }
.lv-empty .button-row { margin-top: 12px; }

/* How it works */
.lv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 22px; }
.lv-feature { padding: 22px; border-radius: 22px; background: var(--raised); border: 1px solid var(--rule); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.lv-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.lv-feature .lv-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: #fff;
  background: linear-gradient(150deg, var(--live-a), var(--live-b)); }
.lv-feature .lv-icon.red { background: linear-gradient(150deg, #ff6b86, var(--live-red)); }
.lv-feature .lv-icon.violet { background: linear-gradient(150deg, #b197fc, #8b5cf6); }
.lv-feature .lv-icon svg { width: 22px; height: 22px; }
.lv-feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lv-feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.lv-fine { text-align: center; }

@media (max-width: 820px) {
  .lv-hero { grid-template-columns: 1fr; text-align: left; }
  .lv-phone { width: min(70%, 210px); }
  .lv-features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lv-hero { border-radius: 22px; padding: 26px 20px; margin-top: 0; }
  .lv-phone { display: none; }
  .lv-empty { grid-template-columns: 1fr; text-align: left; padding: 22px; }
  .live-page .live-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-phone, .lv-dot::after, .lv-radar::before, .lv-radar::after, .lv-hearts i, .lv-chat span { animation: none; }
  .lv-chat span { opacity: 1; }
  .lv-hearts { display: none; }
}

/* M422: PK battles (red vs blue) and the mode label */
.live-mode-chip { position: absolute; top: 8px; left: 56px; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); }
.live-mode-chip.pk { background: linear-gradient(90deg, #F5455E, #3D82FA); }
.live-pk-line { color: #F5455E; font-weight: 600; display: block; }
.live-pk .live-kicker { margin-bottom: 8px; }
.pk-bar { position: relative; display: flex; height: 22px; border-radius: 6px; overflow: visible; margin: 4px 0 22px; color: #fff; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.pk-bar .pk-red, .pk-bar .pk-blue { display: flex; align-items: center; transition: width .35s ease-out; }
.pk-bar .pk-red { background: linear-gradient(90deg, #F5455E, #d93c54); border-radius: 6px 0 0 6px; padding-left: 8px; }
.pk-bar .pk-blue { flex: 1; background: linear-gradient(90deg, #3572df, #3D82FA); border-radius: 0 6px 6px 0; justify-content: flex-end; padding-right: 8px; }
.pk-pill { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(15,20,61,.92); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.pk-sides { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.pk-side.blue { text-align: right; }
.pk-streak { font-style: italic; font-weight: 800; font-size: 11px; color: #fff; padding: 2px 8px; border-radius: 999px; }
.pk-side.red .pk-streak { background: #F5455E; }
.pk-side.blue .pk-streak { background: #3D82FA; }
.pk-result { font-style: italic; font-weight: 900; margin-left: 4px; }
.pk-result.win { color: #f5a623; }
.pk-result.lose { opacity: .7; }
.pk-supporters { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.pk-supporters small { opacity: .7; }
.pk-supporters small.pk-mvp { opacity: 1; font-weight: 900; font-style: italic; color: #FFD959; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 999px; }
.pk-face { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 4px; border-radius: 50%; background: #4f63f6; color: #fff; font-size: 12px; font-weight: 700; overflow: visible; }
.pk-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pk-face.red { box-shadow: 0 0 0 2px #F5455E; }
.pk-face.blue { box-shadow: 0 0 0 2px #3D82FA; }
.pk-face b { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; font-size: 9px; line-height: 13px; text-align: center; color: #fff; }
.pk-face.red b { background: #F5455E; }
.pk-face.blue b { background: #3D82FA; }

/* Gifts on the watch page (TJ 2026-11-22: "put the gift panel in geerho.com"), like the iPhone's LiveGiftViews:
   the Gift button above the heart, the "Send a Gift" panel (a sheet from the bottom on phones, a card on computers),
   small gifts as banners up the left side of the video and bigger ones in the middle. Light and dark use hub.css tokens. */
.live-stage-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.live-gift-button { display: grid; justify-items: center; gap: 3px; padding: 0; min-width: 56px; color: #fff; background: none; box-shadow: none;
  font-size: .74rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.live-gift-button[hidden] { display: none; }
.live-gift-circle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #ff4f9a, #ff9a3c); box-shadow: 0 6px 18px rgba(255, 79, 154, .45); }
.live-gift-circle .gift-svg { width: 24px; height: 24px; }
.live-gift-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 14px; }

dialog.gift-panel { width: min(520px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 22px;
  background: var(--raised); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
dialog.gift-panel::backdrop { background: rgba(0, 0, 0, .45); }
dialog.gift-panel:not([open]) { display: none; }
.gp-body { display: flex; flex-direction: column; gap: 10px; max-height: inherit; padding: 0 0 12px; overflow-y: auto; overscroll-behavior: contain; }
.gp-body > * { flex: none; }
.gp-pad { margin: 0; padding: 0 16px; }
.gp-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--raised); border-bottom: 1px solid var(--rule); }
.gp-head h2 { margin: 0; font-size: 1.05rem; }
.gp-head h2:focus { outline: none; }
.gp-close { justify-self: start; padding: 7px 12px; }
.gp-coins { justify-self: end; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface); border: 1px solid var(--rule); text-decoration: none; white-space: nowrap; }
.gp-coins:hover { color: var(--text); border-color: color-mix(in srgb, #ff9a3c 60%, var(--rule)); }
.gp-plus { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .8rem; color: #fff; background: #ff9a3c; }
.gp-coin { display: inline-block; width: .9em; height: .9em; border-radius: 50%; flex: none; vertical-align: -.1em;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f5a623 60%, #c97a00); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.gp-empty { color: var(--muted); font-size: .92rem; }
.gp-to { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
.gp-to::-webkit-scrollbar { display: none; }
.gp-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; text-align: left;
  color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); border: 1.5px solid transparent; box-shadow: none; font-weight: 500; }
.gp-chip.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); }
.gp-chip.red.on { background: rgba(245, 69, 94, .18); border-color: #F5455E; }
.gp-chip.blue.on { background: rgba(61, 130, 250, .18); border-color: #3D82FA; }
.gp-chip-face { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; font-weight: 700; color: #fff; background: var(--accent); }
.gp-chip.red .gp-chip-face { background: #F5455E; }
.gp-chip.blue .gp-chip-face { background: #3D82FA; }
.gp-chip-text { display: grid; line-height: 1.2; }
.gp-chip-text strong { font-size: .8rem; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-chip-text small { font-size: .7rem; color: var(--muted); }
.gp-chip.red small { color: #F5455E; font-weight: 700; }
.gp-chip.blue small { color: #3D82FA; font-weight: 700; }
.gp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; align-items: start; }
.gp-gift { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 8px 2px; border-radius: 12px; color: var(--text);
  background: transparent; border: 1.5px solid transparent; box-shadow: none; font-weight: 500; }
.gp-gift:hover { background: color-mix(in srgb, var(--text) 5%, transparent); filter: none; }
.gp-gift.on { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
  border-color: var(--accent); }
.gp-gift.locked > * { opacity: .45; }
.gp-art { width: 44px; height: 44px; object-fit: contain; }
.gp-art.emoji { display: grid; place-items: center; font-size: 34px; line-height: 1; }
.gp-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; font-weight: 600; }
.gp-price, .gp-lock { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-lock { font-weight: 700; font-size: .68rem; }
.gp-sponsor { display: grid; gap: 6px; }
.gp-sponsor p { margin: 0; }
.gp-sponsor select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--text); }
.gp-anon label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .94rem; cursor: pointer; }
.gp-anon p { margin: 4px 0 0; }
.gp-anon input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; width: 46px; height: 28px; margin: 0; flex: none;
  border-radius: 999px; background: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; transition: background-color .2s ease; }
.gp-anon input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.gp-anon input[type="checkbox"]:checked { background: #34c759; }
.gp-anon input[type="checkbox"]:checked::after { transform: translateX(18px); }
.gp-tests { display: grid; gap: 6px; }
.gp-tests p { margin: 0; }
.gp-tests-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gp-tests-row .plain.small { padding: 6px 12px; }
.gp-balance { font-variant-numeric: tabular-nums; }
.gp-problem { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--bad); font-size: .9rem; font-weight: 600; }
.gp-problem:empty { display: none; }
.gp-problem .button { padding: 7px 14px; }
.gp-bar { position: sticky; bottom: -12px; display: grid; gap: 8px; padding: 10px 16px 12px; margin-bottom: -12px;
  background: var(--raised); border-top: 1px solid var(--rule); }
.gp-bar-row { display: flex; align-items: center; gap: 8px; }
.gp-qty { display: flex; gap: 6px; }
.gp-qty button { padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; color: var(--text);
  background: color-mix(in srgb, var(--text) 9%, transparent); box-shadow: none; }
.gp-qty button.on { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.gp-send { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 11px 20px; border-radius: 999px; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, #ff4f9a, #ff9a3c); box-shadow: 0 8px 22px rgba(255, 79, 154, .35); }
.gp-send small { font-size: .78rem; opacity: .85; font-variant-numeric: tabular-nums; }
.gp-send:disabled { opacity: .45; cursor: default; box-shadow: none; transform: none; }
.gp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: gp-spin .8s linear infinite; align-self: center; }
@keyframes gp-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  dialog.gift-panel { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 86dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .gp-qty button { padding: 8px 10px; }
  .gp-send { padding: 11px 16px; }
}

/* Gifts playing on the video */
.gift-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gift-announce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gift-banners { position: absolute; z-index: 2; left: 10px; bottom: 34%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: calc(100% - 90px); }
.gift-banner { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 12px; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, rgba(255, 64, 150, .88), rgba(139, 92, 246, .6), transparent); animation: gb-in .35s var(--ease); }
.gb-text { display: grid; line-height: 1.15; min-width: 0; }
.gb-text strong { font-size: .78rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-text small { font-size: .7rem; opacity: .88; }
.gb-art { width: 34px; height: 34px; object-fit: contain; }
.gb-art.emoji { display: grid; place-items: center; font-size: 26px; line-height: 1; }
.gb-count { font-size: 1.3rem; font-weight: 900; font-style: italic; color: #ffe14d; text-shadow: 0 0 6px #ff8a00; font-variant-numeric: tabular-nums; }
.gb-count.bump { animation: gb-bump .3s var(--ease); }
@keyframes gb-in { from { transform: translateX(-110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gb-bump { 50% { transform: scale(1.35); } }
.gift-center { position: absolute; inset: 0; display: grid; place-items: center; }
.gift-big { position: absolute; inset: 0; display: grid; place-items: center; }
.gift-pop { display: grid; justify-items: center; gap: 10px; animation: gift-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.gb-hero { width: min(52%, 200px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 24px rgba(255, 214, 0, .55)); }
.gb-hero.emoji { width: auto; font-size: 110px; line-height: 1; display: block; }
.gift-big.legendary .gb-hero { width: min(70%, 280px); }
.gift-big.legendary .gb-hero.emoji { font-size: 160px; }
.gb-caption { display: grid; justify-items: center; text-align: center; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .65); max-width: 90%; }
.gb-caption strong { font-size: 1.05rem; }
.gb-caption span { font-size: .92rem; }
.gift-glow { position: absolute; inset: -20%; background: radial-gradient(circle, rgba(255, 214, 0, .5), rgba(255, 140, 0, .3) 35%, transparent 65%);
  animation: gift-glow 1s ease-out both; }
.gift-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.gift-burst span { position: absolute; left: 0; top: 0; font-size: var(--s, 30px); line-height: 1; transform: translate(-50%, -50%); animation: gift-burst 2.2s ease-out both; }
.gift-sponsor { align-self: start; margin-top: 18%; display: flex; align-items: center; gap: 10px; max-width: 86%; padding: 12px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(90deg, var(--live-a), var(--live-b)); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); animation: gift-drop .6s var(--ease) both; }
.gs-ad { padding: 2px 6px; border-radius: 4px; font-size: .68rem; font-weight: 900; color: #000; background: #fff; }
.gs-text { display: grid; line-height: 1.2; min-width: 0; }
.gs-text small { font-size: .7rem; opacity: .85; font-weight: 600; }
.gs-text strong { overflow: hidden; text-overflow: ellipsis; }
.gift-static { display: flex; align-items: center; gap: 10px; max-width: 86%; padding: 12px 16px; border-radius: 16px; color: #fff; font-weight: 700; background: rgba(0, 0, 0, .65); }
.gift-static .gb-art { width: 44px; height: 44px; }
@keyframes gift-pop { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gift-glow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes gift-burst { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); opacity: 0; } }
@keyframes gift-drop { from { transform: translateY(-160px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gift-banner, .gb-count.bump, .gift-pop, .gift-glow, .gift-burst span, .gift-sponsor, .gp-spin { animation: none; }
  .gift-burst { display: none; }
}

/* M456 (2026-11-23): AWS IVS shows. The next video loads under the old picture (no black screen) behind a centered
   "Switching to Guesting…" card; the small note says why Guesting stopped, or what a replay is missing. */
.live-video-incoming { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.live-switch-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 48px); padding: 12px 18px;
  border-radius: 14px; text-align: center; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .62); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); pointer-events: none; }
.live-switch-card[hidden] { display: none; }
/* M459: the host left for a PK battle: "<host> is in a PK battle" + Watch the battle, centred over the video. */
.live-moved-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: max-content; max-width: calc(100% - 48px);
  display: grid; gap: 10px; justify-items: center; padding: 16px 20px; border-radius: 16px; text-align: center; color: #fff;
  background: rgba(0, 0, 0, .7); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.live-moved-card[hidden] { display: none; }
.live-moved-page { text-align: center; }
.live-moved-page .live-moved-side { box-shadow: none; border: 0; background: none; }
.live-small-note { margin: 6px 0 0; max-width: 100%; padding: 4px 9px; border-radius: 8px; font-size: .76rem; line-height: 1.3; color: #fff; background: rgba(0, 0, 0, .45); width: fit-content; }
.live-small-note[hidden] { display: none; }

/* M473: PK battles in two rooms — the opponent's name on the score bar opens the switch-rooms card. */
.pk-side.pk-opponent { cursor: pointer; border-radius: 8px; }
.pk-side.pk-opponent:hover, .pk-side.pk-opponent:focus-visible { text-decoration: underline; outline: none; }
dialog.pk-room-dialog { box-sizing: border-box; width: min(360px, calc(100vw - 32px)); padding: 24px 20px 16px; border: 0; border-radius: 22px; background: var(--raised); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center; }
dialog.pk-room-dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog.pk-room-dialog:not([open]) { display: none; }
.pk-room-face { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  background: #3D82FA; color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 0 0 3px #3D82FA; }
dialog.pk-room-dialog h2 { margin: 12px 0 2px; font-size: 1.2rem; }
.pk-room-user { margin: 0; }
.pk-room-line { margin: 10px 0 16px; font-weight: 600; }
dialog.pk-room-dialog .button { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin: 8px 0 0; }
dialog.pk-room-dialog .pk-room-watch { background: #F5455E; color: #fff; border: 0; box-shadow: none; }
dialog.pk-room-dialog .pk-room-watch:hover { background: #d93c54; color: #fff; }
@media (max-width: 640px) {
  dialog.pk-room-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* M483: video gifts (VAP) fill the video, with the sender's name at the top */
.gift-vap-box { position: absolute; inset: 0; }
.gift-vap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .25s ease; }
.gift-vap.out { opacity: 0; }
.gift-vap-caption { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; max-width: 86%;
  padding: 8px 14px; border-radius: 14px; color: #fff; text-align: center; background: rgba(0, 0, 0, .45); animation: gift-drop .5s var(--ease, ease) both; }
@media (prefers-reduced-motion: reduce) { .gift-vap-caption { animation: none; } }

/* ---------------------------------------------------------------------------------------------------------------------
   b183 (TJ 2026-11-24: "the website and the app ui is different … tiktok website and their app … 90% similar"):
   the watch page looks like the iPhone's live screen (LiveOverlayViews.swift). Everything about the show is ON the video:
   host + @username + Follow, LIVE + viewers, ⋯ and ✕ at the top; title, replay icons, sponsor, PK score; chat pills,
   side buttons and "Say something…" at the bottom. Phones: the video fills the screen and the panel sits under it.
   Computers: a phone-shaped video in the middle and the chat / Q&A panel next to it (like TikTok's website).
   Scoped to .live-player so Go Live's studio (same class names) is unchanged.
   --------------------------------------------------------------------------------------------------------------------- */
.live-player { grid-template-columns: minmax(0, auto) minmax(320px, 400px); justify-content: center; gap: 28px; }
/* (A set width, not a % of the column: an auto-sized grid column around a % width collapses to nothing.) */
/* TJ 2026-11-24 ("make it look professional like tiktok"): the video as tall as the window allows (TikTok-style). */
.live-player .live-stage { width: max(360px, min(calc((100dvh - 124px) * 9 / 16), 540px, calc(100vw - 480px))); }
.live-player .live-overlay { padding: 10px 10px 12px; gap: 0; color: #fff; pointer-events: none; }
.live-player .live-overlay > * { pointer-events: none; }
.live-player .live-overlay :is(a, button, input, details, form, select, .live-chat, .live-pinned, .live-pk, .live-gate, .sp-chip, .notice) { pointer-events: auto; }
.live-player .live-overlay-head { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.live-player .live-overlay-head > * { max-width: 100%; }
.live-player .live-overlay-head > :empty, .live-player .live-info-extra:empty { display: none; }
.live-overlay-grow { flex: 1; min-height: 8px; }

/* Top bar */
.live-topbar { display: flex; align-items: center; gap: 6px; width: 100%; }
.live-top-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.live-top-right { display: flex; align-items: center; gap: 5px; flex: none; }
.live-top-host { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.live-top-host:hover { color: #fff; }
.live-top-face.avatar { width: 30px; height: 30px; flex: none; font-size: .85rem; border: 2px solid rgba(255, 255, 255, .85); }
.live-top-names { display: grid; min-width: 0; line-height: 1.15; }
.live-top-names strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-top-handle { font-size: .74rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-follow { flex: none; padding: 3px 7px; border-radius: 999px; font-size: .7rem; font-weight: 750; color: #fff; border: 0; box-shadow: none;
  background: linear-gradient(90deg, var(--live-a), var(--live-b)); }
.live-follow.on { background: rgba(255, 255, 255, .22); }
.live-follow[hidden] { display: none; }
.live-badge.replay { background: rgba(0, 0, 0, .4); }
.live-badge.replay::before { display: none; }
.live-player .live-chip { border-radius: 999px; background: rgba(0, 0, 0, .38); }
.live-player .live-topbar .live-chip { padding: 3px 6px; font-size: .74rem; }
.live-player .live-topbar .live-badge { padding: 2px 6px; font-size: .7rem; }
.live-close, .live-more > summary { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .38);
  font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; }
.live-close:hover { color: #fff; background: rgba(0, 0, 0, .55); }
.live-more > summary { padding: 0; font-size: .62rem; letter-spacing: .04em; }
.live-more .live-menu-list { top: calc(100% + 6px); min-width: 190px; z-index: 8; color: var(--text); }
.live-more .live-menu-list :is(button, a) { display: flex; width: 100%; justify-content: flex-start; padding: 9px 10px; border-radius: 8px; border: 0; box-shadow: none;
  background: none; color: var(--text); font: inherit; font-weight: 550; text-align: left; }
.live-more .live-menu-list :is(button, a):hover { background: var(--surface); }
.live-more .live-menu-list .bad-text { color: var(--bad); }
.live-menu-note { padding: 9px 10px; color: var(--muted); font-size: .9rem; }

/* Title, replay icons, notes */
.live-video-title { margin: 2px 0 0; font-size: .95rem; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-player .live-replay-stats { position: static; }
.live-player .live-sound { padding: 4px 10px; font-size: .76rem; }
.live-info-extra { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.live-info-extra .muted { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.live-info-extra .muted:empty { display: none; }
.live-info-extra .sc-also-button { padding: 4px 10px; font-size: .76rem; color: #fff; background: rgba(0, 0, 0, .38); border: 0; box-shadow: none; border-radius: 999px; }
.live-toast { justify-self: center; }
.live-toast .notice { margin: 4px 0 0; padding: 8px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: #fff; border: 0;
  background: rgba(0, 0, 0, .66); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* PK battle over the video (the app's PKScoreBar / PKBattleCard) */
.live-video-pk { width: 100%; }
.live-video-pk .live-pk { margin: 2px 0 0; padding: 8px 10px; border-radius: 14px; border: 0; box-shadow: none; color: #fff; background: rgba(0, 0, 0, .34); }
.live-video-pk .live-pk .live-kicker { color: #fff; opacity: .9; margin-bottom: 4px; font-size: .7rem; }
.live-video-pk .live-pk p { margin: 0; }
.live-video-pk .pk-bar { margin: 4px 0 20px; height: 20px; }
.live-video-pk .pk-sides { font-size: .8rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.live-video-pk .pk-supporters { margin-top: 6px; }
.live-video-pk .button-row { margin: 6px 0 0; }
.live-video-pk .button-row:not(:has(button:not([hidden]))) { display: none; }

/* Pinned message (phones: on the video, under the title) */
.live-pin-slot .live-pinned { margin: 0; padding: 8px 10px; border-radius: 14px; color: #fff; background: rgba(20, 22, 40, .5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .86rem; }
.live-pin-slot .live-pinned .plain { color: #fff; background: rgba(255, 255, 255, .18); border: 0; }

/* Bottom: chat pills (phones) and the side buttons */
.live-player .live-overlay-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.live-chat-slot { flex: 1; min-width: 0; }
.live-chat-slot .live-chat { height: auto; max-height: min(32dvh, 260px); padding: 30px 0 2px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  scrollbar-width: none; }   /* (no fading mask: it would also hide a message's ⋯ menu, which opens outside the list) */
.live-chat-slot .live-chat::-webkit-scrollbar { display: none; }
.live-chat-slot .live-msg { max-width: 100%; padding: 5px 8px; gap: 6px; border-radius: 12px; color: #fff; background: rgba(0, 0, 0, .3);
  font-size: .86rem; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.live-chat-slot .live-msg:hover { background: rgba(0, 0, 0, .4); }
.live-chat-slot .live-msg-face.avatar { width: 24px; height: 24px; font-size: .6rem; }
.live-chat-slot .live-msg-name { color: rgba(255, 255, 255, .82); }
.live-chat-slot .live-follow-note { background: color-mix(in srgb, var(--live-a) 42%, transparent); }
.live-chat-slot .live-menu > summary { color: #fff; }
/* A message's ⋯ menu would be cut off inside the scrolling chat: it opens near the bottom of the screen instead. */
.live-chat-slot .live-menu-list { position: fixed; left: 16px; right: 16px; top: auto; bottom: 90px; z-index: 30; color: var(--text); }
.live-player .live-stage-actions { gap: 14px; padding-bottom: 2px; }
.live-side-button { display: grid; justify-items: center; gap: 3px; padding: 0; min-width: 56px; color: #fff; background: none; border: 0; box-shadow: none;
  font-size: .72rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.live-side-circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; background: rgba(0, 0, 0, .38); }
.live-player .live-heart-button { padding: 0; min-width: 56px; gap: 2px; background: none; box-shadow: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.live-player .live-heart-button > span:first-child { font-size: 34px; }

/* "Say something…" (phones: a glass bar on the video) */
.live-input-slot { margin-top: 8px; }
.live-input-slot:empty { display: none; }
.live-input-slot .live-composer { margin: 0; align-items: center; }
.live-input-slot .live-composer input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 16px; }
.live-input-slot .live-composer input::placeholder { color: rgba(255, 255, 255, .75); }
.live-input-slot .live-composer button { flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 0; color: #fff;
  background: linear-gradient(135deg, var(--live-a), var(--live-b)); }
.live-input-slot .live-composer button::before { content: "➤"; font-size: 1rem; }
.live-input-slot > p { margin: 0; padding: 9px 14px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .4); }
.live-gate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-gate-text { flex: 1; min-width: 0; font-size: .88rem; }
.live-input-slot .live-gate { flex-wrap: nowrap; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .4); }
.live-input-slot .live-gate-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-input-slot .live-gate .button, .live-input-slot .live-gate button { flex: none; padding: 6px 12px; border-radius: 999px; font-size: .8rem; }
.live-pane .live-gate { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }

/* The panel (computers: next to the video, as tall as it) */
.live-player .live-side { align-content: start; }
.live-player .live-side-head .live-title { font-size: 1.25rem; }
.live-extra:empty { display: none; }
@media (min-width: 701px) {
  .live-player .live-side { max-height: calc(100dvh - 110px); overflow-y: auto; position: sticky; top: 84px; padding: 16px; border-radius: 20px;
    background: var(--raised); border: 1px solid var(--rule); box-shadow: var(--shadow); overscroll-behavior: contain; }
  .live-player .live-chat { height: min(48vh, 440px); }
}

/* Sign in without leaving the show */
dialog.live-sheet { box-sizing: border-box; width: min(400px, calc(100vw - 32px)); padding: 12px; border: 0; border-radius: 22px; background: var(--raised); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog.live-sheet::backdrop { background: rgba(0, 0, 0, .45); }
dialog.live-sheet:not([open]) { display: none; }
dialog.live-sheet .card { margin: 0; border: 0; box-shadow: none; }
.live-sheet-close { display: block; margin-left: auto; }

/* Phones: the video fills the screen, like the app; the panel sits under it. */
@media (max-width: 700px) {
  body.live-watching header.top, body.live-watching > footer, body.live-watching .live-nav, body.live-watching .to-top { display: none; }
  body.live-watching main#app { padding: 0; max-width: none; }
  .live-player { display: block; }
  .live-player .live-stage-wrap { display: block; }
  .live-player .live-stage { width: 100%; height: 100dvh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .live-player .live-video { object-fit: cover; }   /* fills the screen like the app (replays too) */
  .live-player .live-overlay { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .live-player .live-nav-arrow { top: 46%; width: 32px; height: 32px; font-size: 1.3rem; color: #fff; background: rgba(0, 0, 0, .3); border: 0; z-index: 4; }
  .live-player .live-side { padding: 18px 16px 28px; }
  .live-player .live-side-head .live-title { font-size: 1.1rem; }
  .live-player .live-chat { height: auto; max-height: 50vh; }
  .live-chat-slot .live-chat { max-height: min(30dvh, 240px); }
  dialog.live-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Gift pictures (TJ 2026-11-24: "most gift pictures are blank"): a fixed box with the icon fitted inside. */
.gift-art-box { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.gift-art-box > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.gp-art.gift-art-box { width: 48px; height: 48px; }
.gb-art.gift-art-box { width: 34px; height: 34px; }
.gb-hero.gift-art-box { height: auto; aspect-ratio: 1; }
.gift-static .gb-art.gift-art-box { width: 44px; height: 44px; }
.gift-pop { width: 100%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gp-art.gift-art-box { border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, .2) 58%, transparent 71%); }
}
:root[data-theme="dark"] .gp-art.gift-art-box { border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, .2) 58%, transparent 71%); }
/* M491: "Sent to Ben's room" over the video */
.gift-sent-note { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 40px); padding: 9px 16px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .9rem; text-align: center; background: rgba(0, 0, 0, .66); }
.gift-sent-note[hidden] { display: none; }
.gp-sent { margin: 0; font-weight: 600; }
.live-qa-head { font-size: 1.05rem; margin: 6px 0; }
.live-qa-head[hidden], .live-player .live-tabbar[hidden] { display: none; }

/* TJ 2026-11-24: colorful likes and confetti from a click (the apps' LikeStyle). */
.live-float-heart.live-float-like { color: initial; -webkit-text-fill-color: initial; background: none; filter: none; font-size: 40px; }
.live-float-heart.live-float-small { font-size: 28px; }
.live-confetti { position: absolute; width: 12px; height: 7px; border-radius: 2px; pointer-events: none; z-index: 3;
  animation: lv-confetti 1.1s ease-out forwards; }
@keyframes lv-confetti { from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-confetti { display: none; } }

/* TJ 2026-11-24 drew the show inside an iPhone frame on computers; TJ 2026-11-27 ("on website, lets scratch the iphone look,
   just make it big"): computers now get the full-window theater with themes (live-theater.css). Phones are unchanged. */
@media (min-width: 701px) {
  /* TJ 2026-11-25 ("i fear the text in chats would be unreadable"): text drawn on the video keeps a readable size. */
  .live-player .live-video-title { font-size: 1rem; }
  .live-player .live-top-names strong { font-size: .95rem; }
  .live-player .live-overlay .live-msg { font-size: .92rem; }
}

/* M499: real-time PK on the battle's IVS stage: this room's host LEFT (red), the opponent RIGHT (blue), in the band where the
   battle's two windows sit (0.28–0.70 of the height, as onOpponentWindow), over a black stage. Clicks go to the tap zone. */
.live-rt { position: absolute; inset: 0; background: #000; pointer-events: none; }
.live-rt[hidden] { display: none; }
.live-rt-band { position: absolute; left: 0; right: 0; top: 28%; height: 42%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.live-rt-video { width: 100%; height: 100%; object-fit: cover; background: #111; display: block; }
.live-rt-video.red { border-bottom: 3px solid #F5455E; box-sizing: border-box; }
.live-rt-video.blue { border-bottom: 3px solid #3D82FA; box-sizing: border-box; }

/* M508 (2026-11-25): connection quality. Three bars (green / amber / red) with "Weak connection" / "Poor connection";
   short notes over the video: the host's tip and "<Host> has a weak connection". */
.live-net { display: inline-flex; align-items: center; gap: 5px; }
.live-net[hidden] { display: none; }
.live-net-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.live-net-bars i { display: block; width: 3px; border-radius: 1px; background: rgba(255, 255, 255, .35); }
.live-net-bars i:nth-child(1) { height: 4px; } .live-net-bars i:nth-child(2) { height: 7px; } .live-net-bars i:nth-child(3) { height: 11px; }
.live-net-good .live-net-bars i { background: #34c759; }
.live-net-weak .live-net-bars i:nth-child(-n+2) { background: #ffb020; }
.live-net-poor .live-net-bars i:nth-child(1) { background: #ff453a; }
.live-net-label:empty { display: none; }
.live-net-note { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 5; width: max-content; max-width: calc(100% - 32px);
  padding: 7px 12px; border-radius: 12px; font-size: .84rem; font-weight: 600; text-align: center; color: #fff; background: rgba(0, 0, 0, .62); pointer-events: none; }
.live-net-note[hidden] { display: none; }
.live-net-mine { position: absolute; left: 12px; top: 18%; z-index: 5; pointer-events: none; }
.live-net-mine[hidden] { display: none; }
.live-net-note.live-net-opponent { left: 75%; top: auto; bottom: 30%; max-width: calc(50% - 16px); white-space: normal; }

/* TJ 2026-11-26: co-hosting from the website. On stage the guest sees everyone on the IVS stage in real time: the host big
   at the top left, guests in tiles (live-guest-ui.js places them like the recorded picture), over a dark backdrop. */
.live-guest { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #1d1440, #07060f 70%); pointer-events: none; }
.live-guest[hidden] { display: none; }
.live-guest-grid { position: absolute; inset: 0; }
.live-guest-tile { position: absolute; overflow: hidden; border-radius: 12px; background: #15132a; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.live-guest-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.live-guest-tile.has-video video { opacity: 1; }
.live-guest-tile.me video { transform: scaleX(-1); }
.live-guest-face { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--live-a), var(--live-b)); }
.live-guest-name { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 34px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5); }
.live-guest-mic { position: absolute; right: 6px; bottom: 6px; font-size: .8rem; }
.live-guest-mic[hidden] { display: none; }
.live-side-button.on .live-side-circle { background: linear-gradient(135deg, var(--live-a), var(--live-b)); }
.live-side-button[hidden] { display: none; }
.live-side-button:disabled { opacity: .55; }
.live-guest-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; width: min(340px, calc(100% - 32px));
  padding: 18px 20px; border-radius: 16px; text-align: center; color: #fff; background: rgba(10, 8, 24, .9); box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.live-guest-card[hidden] { display: none; }
.live-guest-card .button-row { justify-content: center; }
.live-guest-card .sign-in-card { color: var(--text); text-align: left; }
.live-sound[hidden] { display: none; }

/* M530 B: Live now previews. The show plays muted under the badges; the avatar shows until the first frame. */
.live-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease;
  pointer-events: none; background: transparent; }
.live-card-video.on { opacity: 1; }

/* M547: a replay's chat as it happened. New lines fade in (a seek redraws without it); the lines let clicks through to the
   video's controls, and on phones the chat and the heart sit above the controls bar. */
.live-msg-in { animation: lv-msg-in .35s var(--ease, ease-out); }
@keyframes lv-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.live-player .live-overlay .live-chat.replay-timed { pointer-events: none; }
.live-player .live-stage.replay .live-heart-button:disabled { opacity: 1; cursor: default; }
@media (max-width: 700px) { .live-player .live-stage.replay .live-overlay-bottom { margin-bottom: 48px; } }
@media (prefers-reduced-motion: reduce) { .live-msg-in { animation: none; } }

/* M559 (TJ 2026-11-29: "Apps hide their copy"): the cloud compositor's video already shows the host header (photo, LIVE,
   name), the viewers chip, the last chat lines and floating likes: ours aren't drawn over it (live.js setCopyInVideo).
   Follow, ⋯, Close, the chat box, the side buttons, a tap's confetti and the computer's Chat panel stay. */
.live-stage.copy-in-video .live-top-left .live-top-host,
.live-stage.copy-in-video .live-top-right .live-badge:not(.replay),
.live-stage.copy-in-video .live-top-right .live-viewers,
.live-stage.copy-in-video .live-chat-slot .live-chat,
.live-stage.copy-in-video .live-hearts .live-float-like { display: none !important; }
