/* ══════════════════════════════════════════════════════════════════════════
   radio-live.css — O que a RadioX mostra na tela do jogador.

   Princípio: NADA aqui pode atrapalhar o jogo. Os cartazes do topo não
   recebem clique (pointer-events:none), ninguém escurece a tela e a enquete
   usa o mesmo canto flutuante das votações (encostada no ranking).
   ══════════════════════════════════════════════════════════════════════════ */

/* Coluna do topo: placar do evento + avisos + resultado de enquete. */
#pxrl-stack {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 59;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: min(560px, 94vw);
    pointer-events: none;
}

/* ── Aviso ao vivo ─────────────────────────────────────────────────────── */
.pxrl-note {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 90, 90, 0.42);
    background: linear-gradient(180deg, rgba(24, 14, 20, 0.95), rgba(12, 9, 16, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color: #f4e9ef;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    animation: pxrlIn 0.22s ease-out;
}
.pxrl-note i { flex: 0 0 auto; font-size: 12px; color: #ff6a7a; }
.pxrl-note-text { min-width: 0; font-weight: 700; }
.pxrl-note-by { flex: 0 0 auto; font-size: 11px; color: #a9b4cc; font-weight: 600; }
.pxrl-note.pxrl-info { border-color: rgba(90, 170, 255, 0.42); }
.pxrl-note.pxrl-info i { color: #7fd0ff; }
.pxrl-note.pxrl-warn { border-color: rgba(255, 190, 80, 0.45); }
.pxrl-note.pxrl-warn i { color: #ffcf6a; }
.pxrl-note.pxrl-prize { border-color: rgba(120, 235, 160, 0.45); }
.pxrl-note.pxrl-prize i { color: #6ff0a5; }
.pxrl-note.is-out, .pxrl-result.is-out { animation: pxrlOut 0.38s ease-in forwards; }

@keyframes pxrlIn  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pxrlOut { to { opacity: 0; transform: translateY(-10px); } }

/* ── Placar do evento (A Última Célula) ────────────────────────────────── */
.pxrl-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.95), rgba(8, 12, 22, 0.96));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #eaf6ff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    animation: pxrlIn 0.22s ease-out;
}
.pxrl-event i { color: #7fd0ff; font-size: 12px; }
.pxrl-event b { font-weight: 800; letter-spacing: 0.2px; }
.pxrl-event span { color: #a9bcd6; }
.pxrl-event em { font-style: normal; color: #ffd68a; font-weight: 700; }
.pxrl-ev-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #fff !important;
    padding: 1px 8px;
    border-radius: 7px;
    background: rgba(0, 212, 255, 0.16);
}
.pxrl-ev-alive { font-weight: 700; }
.pxrl-ev-me { font-size: 11px; font-weight: 700; }
.pxrl-ev-me.on  { color: #6ff0a5 !important; }
.pxrl-ev-me.off { color: #ff8fa3 !important; }
.pxrl-event.is-warmup { border-color: rgba(255, 190, 80, 0.45); }
.pxrl-event.is-warmup i { color: #ffcf6a; }
.pxrl-event.is-winner {
    border-color: rgba(255, 209, 102, 0.6);
    background: linear-gradient(180deg, rgba(40, 30, 10, 0.96), rgba(16, 12, 8, 0.96));
}
.pxrl-event.is-winner i { color: #ffd166; }

/* ── Enquete / Quiz (card flutuante, encostado no ranking) ─────────────── */
.pxrl-poll { width: 262px; }
.pxrl-poll .px-float-body { padding: 10px 12px 12px; }
.pxrl-poll-q { font-size: 13px; font-weight: 800; color: #eaf2ff; line-height: 1.35; }
.pxrl-poll-prize {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffd68a;
}
.pxrl-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pxrl-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(150, 175, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #dfe7f5;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.14s ease;
}
.pxrl-opt:hover:not(:disabled) { border-color: rgba(0, 212, 255, 0.5); background: rgba(0, 212, 255, 0.1); color: #fff; }
.pxrl-opt:disabled { opacity: 0.55; cursor: default; }
.pxrl-opt.chosen { border-color: rgba(111, 240, 165, 0.6); background: rgba(111, 240, 165, 0.14); opacity: 1; }
.pxrl-opt-key {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.16);
    color: #7fd0ff;
    font-size: 11px;
}
.pxrl-opt-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pxrl-poll-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 9px;
    font-size: 11px; color: #8496b3; font-weight: 600;
}
.pxrl-poll-time { font-variant-numeric: tabular-nums; color: #7fd0ff; font-weight: 800; }

/* ── Resultado da enquete (no topo, junto com os avisos) ───────────────── */
.pxrl-result {
    width: min(340px, 92vw);
    padding: 10px 13px;
    border-radius: 13px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: linear-gradient(180deg, rgba(13, 20, 34, 0.96), rgba(9, 14, 26, 0.96));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    color: #eaf2ff;
    font-family: 'Ubuntu', sans-serif;
    animation: pxrlIn 0.22s ease-out;
}
.pxrl-result-head { font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.pxrl-result-head i { color: #7fd0ff; margin-right: 5px; }
.pxrl-res-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; margin-bottom: 5px; }
.pxrl-res-lbl { flex: 0 0 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c3d0e6; }
.pxrl-res-bar { flex: 1 1 auto; height: 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.pxrl-res-bar span { display: block; height: 100%; border-radius: 5px; background: rgba(0, 212, 255, 0.65); }
.pxrl-res-pct { flex: 0 0 34px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.pxrl-res-row.is-correct .pxrl-res-bar span { background: #6ff0a5; }
.pxrl-res-row.is-correct .pxrl-res-lbl { color: #6ff0a5; font-weight: 800; }
.pxrl-res-row.is-top .pxrl-res-bar span { background: #ffd166; }
.pxrl-result-foot { margin-top: 7px; font-size: 11px; color: #8496b3; font-weight: 600; }

/* ── Sorteio ───────────────────────────────────────────────────────────── */
.pxrl-raffle {
    position: fixed;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    pointer-events: none;
    min-width: 260px;
    padding: 16px 26px;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 209, 102, 0.45);
    background: linear-gradient(180deg, rgba(30, 22, 8, 0.95), rgba(12, 10, 16, 0.95));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Ubuntu', sans-serif;
    animation: pxrlIn 0.24s ease-out;
}
.pxrl-raffle-lead { font-size: 12px; font-weight: 700; color: #ffd166; letter-spacing: 0.6px; text-transform: uppercase; }
.pxrl-raffle-name {
    margin: 8px 0 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 0 18px rgba(255, 209, 102, 0.4);
}
.pxrl-raffle-prize { font-size: 12.5px; color: #ffe6a8; font-weight: 700; }
.pxrl-raffle.is-done .pxrl-raffle-name { animation: pxrlPop 0.4s ease-out; color: #ffd166; }
.pxrl-raffle.is-out { animation: pxrlOut 0.38s ease-in forwards; }
@keyframes pxrlPop { from { transform: scale(0.82); } to { transform: scale(1); } }

/* ── Prêmio recebido (canto inferior direito, acima do minimapa) ───────── */
.pxrl-prize {
    position: fixed;
    right: 16px;
    bottom: 210px;
    z-index: 60;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(111, 240, 165, 0.45);
    background: linear-gradient(180deg, rgba(10, 30, 22, 0.95), rgba(8, 14, 18, 0.96));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    color: #eafff3;
    font-family: 'Ubuntu', sans-serif;
    animation: pxrlIn 0.24s ease-out;
}
.pxrl-prize i { color: #6ff0a5; font-size: 15px; }
.pxrl-prize b { font-size: 15px; font-weight: 800; }
.pxrl-prize span { font-size: 11.5px; color: #b7d5c7; }
.pxrl-prize em { font-style: normal; font-size: 11px; color: #85a396; }
.pxrl-prize.is-out { animation: pxrlOut 0.45s ease-in forwards; }

/* ── "+250 🪙" subindo do contador de moedas ───────────────────────────── */
.pxrl-gain {
    position: fixed;
    z-index: 61;
    pointer-events: none;
    transform: translate(-50%, -100%);
    font-family: 'Ubuntu', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffd166;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.6), 0 2px 6px rgba(0, 0, 0, 0.8);
    animation: pxrlGain 1.6s ease-out forwards;
}
@keyframes pxrlGain {
    0%   { opacity: 0; transform: translate(-50%, -80%) scale(0.7); }
    18%  { opacity: 1; transform: translate(-50%, -110%) scale(1.12); }
    32%  { transform: translate(-50%, -110%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -220%) scale(1); }
}

/* ── Resposta do locutor ao pedido de música ───────────────────────────── */
.pxrl-reqst {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 60;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(380px, 92vw);
    padding: 10px 16px;
    border-radius: 13px;
    border: 1px solid rgba(150, 175, 255, 0.2);
    background: linear-gradient(180deg, rgba(13, 20, 34, 0.96), rgba(9, 14, 26, 0.96));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    color: #eaf2ff;
    font-family: 'Ubuntu', sans-serif;
    animation: pxrlIn 0.22s ease-out;
}
.pxrl-reqst i { font-size: 14px; }
.pxrl-reqst div { display: flex; flex-direction: column; min-width: 0; }
.pxrl-reqst b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxrl-reqst span { font-size: 11.5px; color: #8496b3; }
.pxrl-reqst.is-ok { border-color: rgba(111, 240, 165, 0.45); }
.pxrl-reqst.is-ok i { color: #6ff0a5; }
.pxrl-reqst.is-no { border-color: rgba(255, 120, 140, 0.4); }
.pxrl-reqst.is-no i { color: #ff9aad; }
.pxrl-reqst.is-out { animation: pxrlOut 0.38s ease-in forwards; }

/* ── Pedido de música ──────────────────────────────────────────────────── */
.pxrl-req { width: 262px; }
.pxrl-req .px-float-body { padding: 10px 12px 12px; }
.pxrl-req-hint { font-size: 11.5px; color: #8496b3; margin-bottom: 8px; }
.pxrl-req-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border-radius: 9px;
    border: 1px solid rgba(150, 175, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: #eaf2ff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    outline: none;
}
.pxrl-req-input:focus { border-color: rgba(0, 212, 255, 0.55); }
.pxrl-req-send {
    width: 100%;
    margin-top: 8px;
    padding: 9px;
    border-radius: 9px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.14);
    color: #cdefff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}
.pxrl-req-send:hover { background: rgba(0, 212, 255, 0.24); color: #fff; }

/* ── Telas pequenas ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    #pxrl-stack { top: 6px; gap: 5px; width: 96vw; }
    .pxrl-note { font-size: 11.5px; padding: 7px 11px; }
    .pxrl-note-by { display: none; }
    .pxrl-event { font-size: 11px; gap: 7px; padding: 6px 11px; flex-wrap: wrap; justify-content: center; }
    .pxrl-event em { display: none; }
    .pxrl-raffle-name { font-size: 21px; }
    .pxrl-prize { bottom: 150px; right: 10px; }
}
