/* ══════════════════════════════════════════════════════════════
   LIVE SPECTATOR — styles for js/live_spectator.js
   Kept as an external stylesheet (not injected inline) so it works
   under a strict CSP with no 'unsafe-inline' on style-src — the
   arena.nakedo.ai server block currently does allow it, but this
   shouldn't depend on that staying true.
   ══════════════════════════════════════════════════════════════ */

.live-open-btn {
    font-family: var(--font-display, monospace);
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    padding: 12px 24px; margin-top: 10px; width: 100%;
    border-radius: 10px; cursor: pointer;
    background: rgba(255, 51, 102, 0.08);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--danger, #FF3366);
    transition: background 0.2s ease;
}
.live-open-btn:hover { background: rgba(255, 51, 102, 0.16); }
.live-open-btn .live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--danger, #FF3366); margin-right: 8px;
    box-shadow: 0 0 8px var(--danger, #FF3366);
    animation: liveDotPulse 1.4s ease-in-out infinite;
}
@keyframes liveDotPulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.live-spectator-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(2, 2, 8, 0.88); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.live-spectator-overlay.hidden { display: none; }
.live-spectator-card {
    width: min(880px, 100%); max-height: 90vh; overflow-y: auto;
    background: var(--bg-surface, rgba(10,10,25,0.95));
    border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 16px;
    padding: 20px 24px;
}
.live-spectator-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.live-spectator-title {
    font-family: var(--font-display, monospace); font-size: 14px;
    letter-spacing: 3px; color: var(--danger, #FF3366);
}
.live-spectator-close {
    background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff;
    width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.live-spectator-empty {
    text-align: center; padding: 40px 10px; color: var(--text-dim, #8891A8);
    font-family: var(--font-display, monospace); font-size: 12px; letter-spacing: 1px;
}
.live-match-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; margin-bottom: 8px; border-radius: 10px; cursor: pointer;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.live-match-row:hover { border-color: var(--primary, #0055FF); background: rgba(0,85,255,0.06); }
.live-match-players { font-weight: 700; font-size: 14px; }
.live-match-players .vs { color: var(--text-dim, #8891A8); font-weight: 400; margin: 0 8px; }
.live-match-watch {
    font-family: var(--font-display, monospace); font-size: 10px; letter-spacing: 1px;
    color: var(--accent, #06FFA5);
}
.live-spectator-match { }
.live-spectator-match.hidden { display: none; }
.live-scoreboard {
    display: flex; justify-content: center; align-items: baseline; gap: 18px;
    font-family: var(--font-display, monospace); margin-bottom: 10px;
}
.live-scoreboard .name { font-size: 13px; letter-spacing: 1px; }
.live-scoreboard .score { font-size: 32px; font-weight: 900; }
.live-scoreboard .name.left, .live-scoreboard .score.left { color: var(--primary, #0055FF); }
.live-scoreboard .name.right, .live-scoreboard .score.right { color: var(--secondary, #8B5CF6); }
#live-spectator-canvas {
    display: block; width: 100%; max-width: 800px; aspect-ratio: 2 / 1;
    margin: 0 auto; background: #05050f; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.live-match-banner {
    text-align: center; font-family: var(--font-display, monospace);
    font-size: 13px; letter-spacing: 2px; color: var(--gold, #FFD93D);
    margin-top: 10px; min-height: 1.4em;
}
.live-back-btn {
    display: block; margin: 14px auto 0; padding: 8px 18px;
    background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff;
    border-radius: 8px; cursor: pointer; font-family: var(--font-display, monospace);
    font-size: 11px; letter-spacing: 1px;
}
