/* v12-offline.css — Offline Play styles for The Ninth Wonder of the World.
   Matches the site palette (gold #ffb703, coral #ff5d8f, sky #00a8e8,
   violet #8338ec, cream #fff6e5). Desktop AND phone. The offline chip
   sits under the sticky topnav so it never fights the fixed on-air bar
   at the bottom. The paused-live note is a plain, honest card — never
   styled to look like live content. */

/* ---- Offline indicator chip (hidden until we are offline) ---- */
#ew-offline-chip{
  position:fixed;top:64px;right:12px;z-index:70;
  display:none;align-items:center;gap:8px;max-width:min(92vw,430px);
  padding:10px 12px;border-radius:999px;
  background:#22202e;color:#fff6e5;
  border:2px solid #ffb703;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  font-size:13px;line-height:1.35;font-weight:600;
}
#ew-offline-chip.show{display:flex}
#ew-offline-chip .ew-offline-dot{
  flex:0 0 auto;width:11px;height:11px;border-radius:50%;
  background:#ff5d8f;box-shadow:0 0 10px #ff5d8f;
  animation:ewOfflineBlink 1.6s ease-in-out infinite;
}
@keyframes ewOfflineBlink{0%,100%{opacity:1}50%{opacity:.3}}
#ew-offline-chip .ew-offline-text{flex:1 1 auto}
#ew-offline-chip .ew-offline-retry{
  flex:0 0 auto;min-height:36px;padding:6px 12px;border-radius:999px;
  background:#ffb703;color:#22202e;border:0;font-weight:800;font-size:13px;
  cursor:pointer;
}
#ew-offline-chip .ew-offline-retry:disabled{opacity:.55;cursor:default}

/* ---- Paused-live note: replaces a live section while offline ---- */
.ew-offline-note{
  border:2px dashed #00a8e8;border-radius:12px;
  background:#fff;padding:14px;margin:10px 0;
  color:#5b5470;font-size:14px;line-height:1.55;
}
.ew-offline-note b{color:#22202e}

/* ---- Back-online toast ---- */
#ew-offline-toast{
  position:fixed;left:50%;bottom:110px;transform:translateX(-50%) translateY(8px);
  z-index:70;max-width:92vw;padding:10px 16px;border-radius:999px;
  background:#2ec4b6;color:#fff;font-weight:700;font-size:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
  opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;
  text-align:center;white-space:nowrap;
}
#ew-offline-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---- While offline, nothing may claim to be live ---- */
html.ew-offline .liveDot{
  background:#9aa3ad !important;box-shadow:none !important;
  animation:none !important;
}
html.ew-offline .live{color:#5b5470}

/* ---- Phone ---- */
@media (max-width:640px){
  #ew-offline-chip{
    top:58px;left:12px;right:12px;max-width:none;
    border-radius:14px;font-size:13px;
  }
  #ew-offline-toast{bottom:104px;white-space:normal}
}
