/* NetDynamic (NetDynamic.Net) - Shirley live card under the donate button (home page).
   Uses the site's own .card look (white, same width and spacing as the other boxes); offline it is quiet. */
.ndlive { display:none; }
.ndlive.on { display:block; }
.ndlive-card { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; padding:0; border:0;
  background:none; color:var(--c-text, #1f2937); font:inherit; cursor:pointer; }
.ndlive-thumb { position:relative; width:56px; aspect-ratio:1; border-radius:var(--radius-sm, 8px); overflow:hidden; background:#111; flex:none; }
.ndlive-thumb video { width:100%; height:100%; object-fit:cover; display:block; }
.ndlive-dot { position:absolute; top:4px; left:4px; padding:1px 5px; border-radius:999px; background:#ef4444; color:#fff;
  font-size:9px; font-weight:800; letter-spacing:.05em; animation:ndlive-pulse 1.6s ease-in-out infinite; }
.ndlive-text { display:flex; flex-direction:column; gap:2px; line-height:1.3; text-align:center; text-wrap:balance; }
.ndlive-title { font-size:15px; }
.ndlive-sub { font-size:13px; color:var(--c-muted, #66748a); }
.ndlive-user { font-weight:700; color:#e11d48; }
.ndlive-copy { display:inline-flex; vertical-align:-4px; margin-left:4px; padding:3px; border:0; border-radius:6px; background:#e0f2fe; color:#0284c7; cursor:pointer; }
.ndlive-copy:hover { background:#bae6fd; }
.ndlive-tap { font-size:13px; font-weight:600; color:var(--c-blue, #5bc0de); }
.ndlive:not(.is-live) .ndlive-card { cursor:default; }
.ndlive:not(.is-live) .ndlive-dot { background:#94a3b8; animation:none; }
.ndlive:not(.is-live) .ndlive-tap { display:none; }
.ndlive:not(.is-live) .ndlive-thumb video { visibility:hidden; }
.ndlive.is-live { box-shadow:0 0 0 2px rgba(239,68,68,.35), var(--shadow-sm, 0 1px 3px rgba(40,80,160,.08)); }
.ndlive-modal { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.92); display:none; flex-direction:column;
  align-items:center; justify-content:center; gap:12px; padding:16px; }
.ndlive-modal.open { display:flex; }
.ndlive-modal video { width:auto; max-width:100%; max-height:78vh; aspect-ratio:9/16; background:#000; border-radius:12px; }
.ndlive-close { position:absolute; top:12px; right:12px; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.15);
  color:#fff; font-size:26px; line-height:44px; cursor:pointer; }
.ndlive-tt { padding:12px 18px; border-radius:10px; background:var(--c-teal, #4dcfca); color:#062a2a; font-weight:700; text-decoration:none; text-align:center; }
.ndlive-acct { color:#fff; font-size:15px; text-align:center; }
.ndlive-acct b { color:var(--c-yellow, #ffc058); }
@keyframes ndlive-pulse { 0%,100% { opacity:1; } 50% { opacity:.55; } }
@media (prefers-reduced-motion: reduce) { .ndlive-dot { animation:none; } }
/* "This is a preview" label over the big player: chat and gifts happen on TikTok. */
.ndlive-stage { position:relative; display:flex; justify-content:center; max-width:100%; }
.ndlive-banner { position:absolute; left:8px; right:8px; bottom:56px; padding:10px 12px; border-radius:10px; pointer-events:none;
  background:rgba(0,0,0,.62); color:#fff; font-size:14px; line-height:1.35; text-align:center; text-wrap:balance; }
.ndlive-banner b { display:inline-block; margin-right:6px; padding:1px 7px; border-radius:999px; background:#ef4444; font-size:11px; letter-spacing:.06em; }
.ndlive-modal .ndlive-tt { font-size:17px; padding:14px 22px; }
.ndlive-sound { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); padding:14px 20px; border:0; border-radius:999px;
  background:rgba(0,0,0,.7); color:#fff; font-size:17px; font-weight:700; cursor:pointer; }
.ndlive-sound[hidden] { display:none; }
/* Close button always on top of the video, easy to see on any picture. */
.ndlive-close { z-index:10; top:max(12px, env(safe-area-inset-top)); right:12px; background:#fff; color:#111;
  box-shadow:0 0 0 3px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.5); font-weight:700; }
.ndlive-stage { z-index:1; }
/* Admin mode: set her TikTok account right under the card. */
.ndlive-admin { display:flex; flex-direction:column; gap:8px; }
.ndlive-admin label { font-size:13px; color:var(--c-muted, #66748a); }
.ndlive-admin-row { display:flex; align-items:center; gap:8px; }
.ndlive-admin-row span { font-size:18px; color:var(--c-muted, #66748a); }
.ndlive-admin-row input { flex:1; min-width:0; font-size:16px; padding:10px 12px; border:1px solid var(--c-line, #e5ebf2); border-radius:10px; }
.ndlive-admin-row button { padding:10px 14px; border:0; border-radius:10px; background:var(--c-teal, #4dcfca); color:#062a2a; font-weight:700; font-size:15px; cursor:pointer; }
.ndlive-admin-row .ndlive-admin-stop { background:var(--c-line, #e5ebf2); color:var(--c-text, #1f2937); }
.ndlive-admin small { color:var(--c-muted, #66748a); font-size:12px; }
/* Straight-to-TikTok shortcut under the card: opens her live on TikTok, no video loads here. */
.ndlive-direct { display:block; margin-top:10px; padding:11px 16px; border-radius:10px; background:var(--c-teal, #4dcfca);
  color:#062a2a; font-weight:700; font-size:15px; text-align:center; text-decoration:none; }
.ndlive-direct[hidden] { display:none; }
/* "Saved" confirmation after the account is updated. */
.ndlive-saved { margin:0; padding:8px 12px; border-radius:10px; background:#dcfce7; color:#166534; font-weight:700; font-size:14px; }
/* Sound alert switch inside the card, under the text: grey = off, green = armed. */
.ndlive-alert { margin-top:6px; padding:8px 12px; border:1px solid #cbd5e1; border-radius:10px; background:var(--c-bg, #f6f8fb);
  color:var(--c-text, #1f2937); font:inherit; font-size:13px; font-weight:700; line-height:1.3; cursor:pointer; text-wrap:balance; }
.ndlive-alert[aria-pressed="true"] { background:#dcfce7; border-color:#86efac; color:#166534; }
.ndlive-alert { white-space:nowrap; }
.ndlive-alert small { display:block; margin-top:2px; font-size:11px; font-weight:500; opacity:.8; }
/* Big player keeps its 9:16 shape even when the video hasn't started (no thin column). */
.ndlive-modal video { --ndlive-h:min(78vh, calc((100vw - 32px) * 16 / 9)); height:var(--ndlive-h); width:calc(var(--ndlive-h) * 9 / 16);
  max-width:none; max-height:none; object-fit:contain; }
.ndlive-sound { white-space:nowrap; }
/* Sound alert is for waiting on her: hidden while she is live. */
.ndlive.is-live .ndlive-alert { display:none; }
/* TikTok buttons: the site's own soft blue gradient (like its headers/tiles), smaller than the red support button. */
.ndlive-direct, .ndlive-tt, .ndlive-modal .ndlive-tt { background:linear-gradient(135deg, var(--c-blue, #5bc0de), var(--c-blue-dark, #4a6fa5)); color:#fff;
  font-weight:600; font-size:13px; letter-spacing:.3px; padding:9px 14px; border-radius:var(--radius-sm, 8px);
  box-shadow:0 4px 12px rgba(74,111,165,.28); text-shadow:0 1px 0 rgba(0,0,0,.15); }
.ndlive-direct { margin-top:8px; }
.ndlive-modal .ndlive-tt { font-size:15px; padding:11px 18px; }
/* admin mode only (alertcount.js): people waiting with the sound alert on */
.ndlive { position:relative; }
.ndlive-waiting { position:absolute; top:4px; right:6px; z-index:2; padding:1px 7px; border-radius:999px; background:rgba(0,0,0,.55); color:#fff;
  font:700 13px/1.4 system-ui, sans-serif; pointer-events:none; }
.ndlive-waiting[hidden], .ndlive-waiting:empty { display:none; }
/* 2026-11-18 no video any more: the thumb is just the LIVE / OFF pill. */
.ndlive-thumb { width:auto; aspect-ratio:auto; background:none; overflow:visible; }
.ndlive-dot { position:static; font-size:11px; padding:2px 8px; }
