/* LIVE screen helpers (scoped)
   - Go LIVE overlay + fullscreen polish
   - Cache-safe kiosk look (does NOT touch .rt-ui styles)
*/

body.rtp-live-page{
  background:#000;
}

#rtp-live-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}

#rtp-live-overlay[hidden]{
  display:none !important;
}

.rtp-live-card{
  width:min(520px, 92vw);
  border-radius:18px;
  border:1px solid var(--rt-gold-a40);
  box-shadow:0 20px 60px rgba(0,0,0,.65);
  background:
    radial-gradient(120% 120% at 50% 20%, var(--rt-gold-a14), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,0));
  color:#fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding:18px;
}

.rtp-live-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  border:1px solid var(--rt-gold-a55);
  background:var(--rt-gold-a08);
  color:var(--rt-gold);
  font-weight:900;
  letter-spacing:.35px;
  font-size:11px;
  padding:6px 10px;
}

.rtp-live-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--rt-gold);
  box-shadow:0 0 0 6px var(--rt-gold-a18);
}

.rtp-live-card h2{
  margin:12px 0 8px;
  font-size:22px;
  line-height:1.15;
  letter-spacing:.2px;
  color:#fff;
}

.rtp-live-card p{
  margin:0 0 14px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.55;
}

.rtp-live-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.rtp-live-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:10px 14px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  cursor:pointer;
  user-select:none;
  border:1px solid transparent;
  transition: all .15s ease;
}

.rtp-live-btn-primary{
  background:var(--rt-gold);
  color:#000;
  box-shadow:0 12px 35px rgba(0,0,0,.45);
}

.rtp-live-btn-primary:hover{ filter:brightness(.92); }

.rtp-live-btn-outline{
  background:transparent;
  color:#fff;
  border:1px solid var(--rt-gold-a55);
}

.rtp-live-btn-outline:hover{ background:var(--rt-gold-a06); }

.rtp-live-hint{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--rt-gold-a28);
  background:var(--rt-gold-a06);
  color:rgba(255,255,255,.8);
  font-size:12px;
}

/* Small floating button to re-enter fullscreen */
#rtp-live-fab{
  position:fixed;
  z-index:999998;
  right:14px;
  bottom:14px;
  border-radius:999px;
  padding:10px 12px;
  background:rgba(15,15,18,.75);
  border:1px solid var(--rt-gold-a45);
  box-shadow:0 16px 50px rgba(0,0,0,.55);
  color:#fff;
  font: 800 12px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor:pointer;
}

#rtp-live-fab:hover{ background:var(--rt-gold-a10); }


/* Fail-safe status bar */
#rtp-live-statusbar{
  position:fixed;
  top:12px;
  left:12px;
  right:12px;
  z-index:999997;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(15,15,18,.78);
  border:1px solid var(--rt-gold-a22);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  color:rgba(255,255,255,.88);
  font:800 12px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  backdrop-filter: blur(6px);
}
#rtp-live-statusbar .rtp-live-status-left{ display:flex; align-items:center; gap:10px; }
#rtp-live-statusbar .rtp-live-status-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
#rtp-live-statusbar .rtp-live-status-dot{
  width:10px; height:10px; border-radius:999px;
  background:var(--rt-gold);
  box-shadow:0 0 0 6px var(--rt-gold-a14);
}
#rtp-live-statusbar[data-state="warn"]{ border-color:rgba(255,170,0,.35); }
#rtp-live-statusbar[data-state="warn"] .rtp-live-status-dot{ background:rgba(255,170,0,.95); box-shadow:0 0 0 6px rgba(255,170,0,.18); }
#rtp-live-statusbar[data-state="bad"]{ border-color:rgba(255,80,80,.45); }
#rtp-live-statusbar[data-state="bad"] .rtp-live-status-dot{ background:rgba(255,80,80,.95); box-shadow:0 0 0 6px rgba(255,80,80,.18); }
#rtp-live-statusbar .rtp-live-status-meta{ color:rgba(255,255,255,.70); font-weight:700; }
#rtp-live-statusbar .rtp-live-status-btn{
  border-radius:999px;
  padding:7px 10px;
  background:transparent;
  border:1px solid var(--rt-gold-a45);
  color:#fff;
  cursor:pointer;
  font-weight:900;
}
#rtp-live-statusbar .rtp-live-status-btn:hover{ background:var(--rt-gold-a10); }

@media (max-width: 520px){
  #rtp-live-statusbar{ left:10px; right:10px; top:10px; }
  #rtp-live-statusbar .rtp-live-status-meta{ display:none; }
}
/* Toast */
#rtp-live-toast{
  position:fixed;
  left:50%;
  bottom:70px;
  transform:translateX(-50%);
  z-index:999999;
  max-width:min(620px, 92vw);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--rt-gold-a28);
  background:rgba(15,15,18,.92);
  box-shadow:0 20px 60px rgba(0,0,0,.65);
  color:rgba(255,255,255,.85);
  font:800 12px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:none;
}

#rtp-live-toast[data-show="1"]{ display:block; }

@media (max-width: 520px){
  .rtp-live-card{ padding:16px; }
  .rtp-live-actions{ flex-direction:column; }
  .rtp-live-btn{ width:100%; }
}
