/* Vesper shared media player (R4) */
.vmedia{display:inline-flex;align-items:center;gap:8px;width:min(240px,100%);height:42px;padding:0 10px;box-sizing:border-box;background:#111215;border:1px solid rgba(237,235,230,.12);border-radius:10px;color:#EDEBE6;vertical-align:middle}
.vmedia audio,.vmedia video{display:none!important}
.vmedia__play{flex:0 0 28px;width:28px;height:28px;border-radius:50%;border:0;background:#F10000;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.vmedia__play svg{width:12px;height:12px;display:block;fill:currentColor}
.vmedia__rail{position:relative;flex:1 1 auto;height:4px;border-radius:999px;background:rgba(237,235,230,.18);cursor:pointer;touch-action:none}
.vmedia__fill{position:absolute;inset:0 auto 0 0;width:0;background:#F10000;border-radius:999px}
.vmedia__knob{position:absolute;top:50%;left:0;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#fff;transform:translateY(-50%);opacity:0;transition:opacity .15s ease}
.vmedia:hover .vmedia__knob,.vmedia.is-scrubbing .vmedia__knob,.vmedia:focus-within .vmedia__knob{opacity:1}
.vmedia__time{flex:0 0 auto;font:500 10px/1 ui-monospace,SFMono-Regular,monospace;color:rgba(237,235,230,.62);font-variant-numeric:tabular-nums;white-space:nowrap}
/* video variant */
.vmedia--video{display:block;width:min(360px,100%);height:auto;padding:0;background:#000;border-radius:10px;overflow:hidden}
.vmedia--video .vmedia__poster{position:relative;aspect-ratio:16/9;background:#000}
.vmedia--video .vmedia__poster video{display:block!important;width:100%;height:100%;object-fit:contain;background:#000}
.vmedia--video .vmedia__bar{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#111215;border-top:1px solid rgba(237,235,230,.12)}
.vmedia--video .vmedia__rail{height:4px}
/* tight bubble */
.vchat__bubble:has(.vmedia), .vfor-msg__bubble:has(.vmedia){width:fit-content;max-width:100%}
.vchat__bubble:has(.vmedia) .vmedia{margin:2px 0}

/* Modal shell shared with the poll panel. Duplicated from chat.css on purpose:
   forums enqueue media.css but not chat.css, and the poll panel must still be
   a centred dialog there instead of an unstyled block. */
.vchat__modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}
.vchat__modal-back{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.vchat__modal-card{position:relative;width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#121418;border:1px solid rgba(237,235,230,.12);border-radius:14px;padding:16px;color:#EDEBE6;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.vchat__modal-act{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.vchat__modal-btn{appearance:none;border:1px solid rgba(237,235,230,.16);background:#1A1D22;color:#EDEBE6;border-radius:10px;padding:9px 14px;font:600 12px/1 Oswald,"Arial Narrow",sans-serif;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.vchat__modal-btn.is-red{background:#F10000;border-color:#F10000;color:#fff}
.vchat__modal-btn.is-ghost{background:transparent}

/* ============================ POLL PANEL ============================
   The composer's screenshot-8 poll design, reused by the forum and chat
   poll buttons: black card, red-bordered option fields, ADD OPTION, an
   optional close date and the hint line. No browser prompt ever. */
.vpollp { background:#0C0D0F; border:1px solid rgba(237,235,230,.14); border-radius:4px; padding:18px 16px 14px; width:min(440px,100%); }
.vpollp__title { margin:0 0 14px; font:700 15px/1 "Oswald","Arial Narrow",sans-serif; letter-spacing:.14em; text-transform:uppercase; color:#EDEBE6; }
.vpollp__lbl { display:block; margin:0 0 6px; font:500 10.5px/1 "Oswald","Arial Narrow",sans-serif; letter-spacing:.14em; text-transform:uppercase; color:rgba(237,235,230,.6); }
.vpollp__lbl--close { margin-top:16px; }
.vpollp__inp { display:block; width:100%; box-sizing:border-box; height:40px; padding:0 12px; background:#0C0D0F; border:1px solid #F10000; border-radius:3px; color:#EDEBE6; font:400 13.5px/1.2 "Oswald","Arial Narrow",sans-serif; letter-spacing:.02em; }
.vpollp__inp::placeholder { color:rgba(237,235,230,.42); }
.vpollp__inp:focus { outline:none; border-color:#fff; box-shadow:0 0 0 1px rgba(241,0,0,.45); }
.vpollp__q { border-color:rgba(237,235,230,.55); margin-bottom:12px; }
.vpollp__opts { display:flex; flex-direction:column; gap:8px; }
.vpollp__date { border-color:rgba(237,235,230,.55); color-scheme:dark; }
.vpollp__add { appearance:none; -webkit-appearance:none; border:0; background:transparent; padding:10px 0 0; color:#F10000; font:600 10.5px/1 "Oswald","Arial Narrow",sans-serif; letter-spacing:.16em; text-transform:uppercase; cursor:pointer; }
.vpollp__add:hover { color:#fff; }
.vpollp__hint { margin:14px 0 0; font-size:11px; line-height:1.45; color:rgba(237,235,230,.45); }
.vpollp__err { margin:10px 0 0; font-size:11.5px; line-height:1.4; color:#ff6b6b; }
.vpollp__err[hidden] { display:none; }
.vpollp .vchat__modal-act { margin-top:16px; }
@media (max-width:420px) {
  .vpollp { padding:16px 13px 12px; }
  .vpollp__inp { height:38px; font-size:13px; }
}
