/* Live Agents Spectator — external stylesheet (the page's CSP is
   style-src 'self' <fonts>, no 'unsafe-inline', so this must not be
   injected as a JS <style> tag). */

.live-horses-btn {
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 77, 109, 0.4);
    background: rgba(255, 77, 109, 0.12);
    color: #ff8fa3;
    font-family: var(--font-display, inherit);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.live-horses-btn:hover { background: rgba(255, 77, 109, 0.22); transform: translateY(-1px); }

.lh-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lh-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 12, 0.75);
    backdrop-filter: blur(2px);
}
.lh-panel {
    position: relative;
    width: min(560px, 92vw);
    max-height: 86vh;
    background: #0e0e1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lh-header h3 {
    font-size: 14px;
    margin: 0;
    color: #f0f0f5;
    font-family: var(--font-display, inherit);
    letter-spacing: 0.5px;
}
.lh-close {
    background: none;
    border: none;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.lh-close:hover { color: #fff; }

.lh-body { padding: 14px 18px 18px; overflow-y: auto; }

.lh-list { display: flex; flex-direction: column; gap: 8px; }
.lh-empty { color: #888; font-size: 13px; line-height: 1.5; margin: 8px 0; }

.lh-match-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #e6e6ef;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.lh-match-row:hover { background: rgba(255, 255, 255, 0.07); }
.lh-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 6px rgba(255, 77, 109, 0.8);
    flex-shrink: 0;
}
.lh-state {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 1px;
    color: #8fb8ff;
    text-transform: uppercase;
}

.lh-board-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lh-seats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    width: 100%;
}
.lh-seat {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lh-seat-active {
    color: #0e0e1c;
    background: #ffd24d;
    border-color: #ffd24d;
    font-weight: 700;
}
.lh-canvas {
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lh-banner {
    display: none;
    font-size: 14px;
    font-weight: 700;
    color: #ffd24d;
    text-align: center;
}
.lh-back {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
}
.lh-back:hover { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 640px) {
    .live-horses-btn { font-size: 9px; padding: 3px 8px; }
}
