/* Rozgar Live room — dark stage, purple + gold, made for phones first (PC: stage left, chat right). */
.lv-root { position: fixed; inset: 0; z-index: 58; background: #07060c; color: #f6f3ea; }
.lv { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(120% 60% at 50% -10%, #2a1452 0%, #0b0814 45%, #07060c 100%); overflow: hidden; }
.lv .grow { flex: 1; min-width: 0; }
.lv-top { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 10px; background: rgba(10, 6, 20, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(168, 85, 247, .22); }
.lv-top b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-top span { display: block; font-size: 12px; color: #b9b2cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lv-ico { position: relative; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); font-size: 18px; cursor: pointer; }
.lv-ico.dot::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; animation: lvPop .6s ease; }

/* LIVE pill */
.lv-pulse { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #ff2d55, #ff6a3d); font-weight: 900; font-size: 13px; letter-spacing: .08em; box-shadow: 0 6px 24px rgba(255,45,85,.45); }
.lv-pulse i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: lvBlink 1.2s ease-in-out infinite; }
.lv-pulse.sm { padding: 4px 9px; font-size: 11px; flex: none; }
.lv-pulse.sm i { width: 7px; height: 7px; }
@keyframes lvBlink { 50% { opacity: .25; transform: scale(.7); } }
@keyframes lvPop { from { transform: scale(.4); } }

/* Lobby cards */
.lv-lobby { flex: 1; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 20px 16px calc(env(safe-area-inset-bottom, 0px) + 20px); }
.lv-card { width: 100%; max-width: 440px; padding: 26px 22px; border-radius: 26px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.lv-card h2 { margin: 14px 0 6px; font-size: 22px; line-height: 1.25; }
.lv-card p { color: #c9c3d8; margin: 6px 0 14px; line-height: 1.5; }
.lv-big { font-size: 54px; }
.lv-sub { font-size: 14px; }
.lv-tiny { font-size: 12px !important; color: #8f88a3 !important; margin: 12px 0 0 !important; line-height: 1.5; }
.lv-rules, .lv-steps { text-align: left; margin: 14px 0; padding: 14px 16px 14px 34px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); font-size: 13.5px; line-height: 1.7; color: #ddd7ea; }
.lv-rules { list-style: none; padding-left: 16px; }
.lv-agree { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 14px; font-size: 14px; color: #e8e3f3; cursor: pointer; }
.lv-agree input { width: 18px; height: 18px; accent-color: #f5c542; }
.lv-in { width: 100%; height: 48px; margin: 6px 0; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); color: #fff; font-size: 15px; outline: none; }
.lv-in:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.25); }
.lv-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 13px; color: #b9b2cc; }
.lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 52px; margin-top: 8px; border: 0; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); transition: transform .12s ease, filter .12s ease; }
.lv-btn:active { transform: scale(.97); }
.lv-btn:disabled { opacity: .6; }
.lv-btn.gold { color: #1a1205; background: linear-gradient(135deg, #ffe08a, #f5c542 45%, #d4920f); box-shadow: 0 10px 30px rgba(245,197,66,.35); }
.lv-btn.red { background: linear-gradient(135deg, #ff2d55, #e0213f); box-shadow: 0 10px 30px rgba(255,45,85,.3); }
.lv-btn.sm { height: 42px; font-size: 14px; border-radius: 13px; margin-top: 0; }
.lv-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #f5c542; animation: lvSpin .8s linear infinite; margin: 0 auto; }
@keyframes lvSpin { to { transform: rotate(360deg); } }

/* Room layout */
.lv-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-stagebox { flex: none; }
.lv-stage { position: relative; aspect-ratio: 16 / 9; max-height: 46vh; width: 100%; background: #000; overflow: hidden; }
.lv-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .3s; }
.lv-stage.has-v video { opacity: 1; }
.lv-stage.has-v .lv-idle { opacity: 0; pointer-events: none; }
.lv-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(70% 90% at 50% 40%, #3b1d73 0%, #120a24 70%); transition: opacity .3s; }
.lv-idle b { font-size: 16px; }
.lv-idle span { font-size: 12.5px; color: #c9b8f0; }
.lv-host { position: relative; width: 84px; height: 84px; }
.lv-host img { position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #f5c542; box-shadow: 0 0 30px rgba(245,197,66,.5); }
.lv-host i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(168,85,247,.7); animation: lvWave 2.4s ease-out infinite; }
.lv-host i:nth-of-type(2) { animation-delay: .8s; }
.lv-host i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes lvWave { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.lv-badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 10px; border-radius: 10px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }
.lv-vtools { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: flex; gap: 6px; }
.lv-chip { height: 32px; min-width: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.lv-chip[hidden] { display: none; }
.lv-conn { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(5,3,10,.72); font-size: 13px; font-weight: 700; }
.lv-conn[hidden] { display: none; }
.lv-stage:fullscreen { max-height: none; aspect-ratio: auto; }
.lv-fake-fs { position: fixed !important; inset: 0; z-index: 80; max-height: none !important; aspect-ratio: auto !important; }

/* Floating reactions */
.lv-float { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.lv-float i { position: absolute; bottom: -10px; font-size: 30px; font-style: normal; animation: lvUp 2.6s ease-out forwards; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
@keyframes lvUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-20px) scale(1.15); } 100% { transform: translateY(-260px) translateX(18px) scale(.9); opacity: 0; } }

/* Speakers */
.lv-speakers { display: flex; gap: 12px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); scrollbar-width: none; min-height: 84px; align-items: center; }
.lv-speakers::-webkit-scrollbar { display: none; }
.lv-none { margin: 0 auto; font-size: 13px; color: #8f88a3; }
.lv-sp { flex: none; width: 58px; text-align: center; }
.lv-sp span { display: block; margin-top: 4px; font-size: 11px; color: #d8d2e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-av { position: relative; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; padding: 2px; background: rgba(255,255,255,.12); transition: box-shadow .15s, background .15s; }
.lv-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lv-av em { position: absolute; right: -2px; bottom: -2px; font-style: normal; font-size: 14px; }
.lv-sp.own .lv-av { background: linear-gradient(135deg, #ffe08a, #d4920f); }
.lv-sp.talk .lv-av { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.35), 0 0 22px rgba(61,220,132,.6); }
.lv-sp.off { opacity: .6; }

/* Chat side */
.lv-side { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; -webkit-mask-image: linear-gradient(transparent, #000 24px); mask-image: linear-gradient(transparent, #000 24px); }
.lv-msg { display: flex; gap: 8px; align-items: flex-start; animation: lvIn .25s ease; }
.lv-msg img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.lv-msg p { margin: 0; font-size: 14px; line-height: 1.4; color: #ebe6f5; word-break: break-word; }
.lv-msg b { color: #c4a3ff; font-weight: 800; margin-right: 2px; }
.lv-msg.own b { color: #f5c542; }
.lv-msg.sys { align-self: center; padding: 6px 12px; border-radius: 12px; background: rgba(168,85,247,.16); border: 1px solid rgba(168,85,247,.28); font-size: 12.5px; color: #e2d4ff; text-align: center; }
@keyframes lvIn { from { opacity: 0; transform: translateY(6px); } }
.lv-reacts { flex: none; display: flex; justify-content: space-around; padding: 4px 8px; }
.lv-reacts button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; font-size: 22px; cursor: pointer; transition: transform .12s; }
.lv-reacts button:active { transform: scale(1.35); }
.lv-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px); background: rgba(10,6,20,.8); border-top: 1px solid rgba(255,255,255,.06); }
.lv-round { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); font-size: 20px; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; }
.lv-round[hidden] { display: none; }
.lv-round:active { transform: scale(.92); }
.lv-round.on { background: linear-gradient(135deg, #3ddc84, #1fa862); border-color: transparent; box-shadow: 0 0 18px rgba(61,220,132,.5); }
#lvHand.on { background: linear-gradient(135deg, #ffe08a, #d4920f); box-shadow: 0 0 18px rgba(245,197,66,.5); animation: lvWiggle 1s ease-in-out infinite; }
#lvShare.on { background: linear-gradient(135deg, #a855f7, #6d28d9); box-shadow: 0 0 18px rgba(168,85,247,.55); }
@keyframes lvWiggle { 50% { transform: rotate(-12deg); } }
.lv-say { flex: 1; min-width: 0; display: flex; align-items: center; height: 46px; border-radius: 23px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 0 4px 0 14px; }
.lv-say input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 15px; outline: none; }
.lv-say button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #6d28d9); color: #fff; font-size: 16px; cursor: pointer; }

/* Sheets (people / owner controls) on the dark theme */
.lv-sheet { z-index: 9000 !important; }
.lv-sheet .sheet { background: #120c1f !important; color: #f6f3ea !important; max-height: 82vh; overflow-y: auto; }
.lv-sheet h3 { margin: 4px 0 12px; }
.lv-sheet h4 { margin: 18px 0 8px; font-size: 14px; color: #c4a3ff; }
.lv-seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); }
.lv-seg button { flex: 1; height: 42px; border: 0; border-radius: 11px; background: transparent; color: #cfc8de; font-weight: 800; cursor: pointer; }
.lv-seg button.on { background: linear-gradient(135deg, #a855f7, #6d28d9); color: #fff; }
.lv-row2 { display: flex; gap: 8px; margin-top: 10px; }
.lv-plist { display: flex; flex-direction: column; gap: 4px; }
.lv-p { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.lv-p:nth-child(odd) { background: rgba(255,255,255,.03); }
.lv-p img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lv-p b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-p em.own { font-style: normal; font-size: 11px; font-weight: 800; color: #f5c542; }
.lv-mini { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-weight: 800; font-size: 12.5px; cursor: pointer; }
.lv-mini.ok { background: linear-gradient(135deg, #3ddc84, #1fa862); border: 0; color: #04210f; }
.lv-acts { display: flex; flex-direction: column; gap: 8px; }

/* Community Chat: the LIVE banner */
.lv-banner { display: flex; align-items: center; gap: 10px; margin: 8px 10px 0; padding: 10px 12px; border-radius: 16px; color: #fff !important; background: linear-gradient(135deg, #ff2d55, #a855f7); box-shadow: 0 10px 28px rgba(255,45,85,.35); animation: lvGlow 2s ease-in-out infinite; }
.lv-banner[hidden] { display: none; }
.lv-banner .grow { flex: 1; min-width: 0; }
.lv-banner b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-banner span { display: block; font-size: 12px; opacity: .9; }
.lv-banner em { font-style: normal; padding: 7px 12px; border-radius: 11px; background: #fff; color: #e0213f; font-weight: 900; font-size: 13px; }
@keyframes lvGlow { 50% { box-shadow: 0 10px 36px rgba(168,85,247,.55); } }
.lv-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: lvBlink 1.2s ease-in-out infinite; }

/* PC / tablet: stage left, chat right */
@media (min-width: 900px) {
  .lv-main { flex-direction: row; }
  .lv-stagebox { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px; gap: 12px; }
  .lv-stage { max-height: none; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); flex: none; }
  .lv-speakers { border: 0; border-radius: 16px; background: rgba(255,255,255,.04); }
  .lv-side { flex: none; width: 360px; border-left: 1px solid rgba(255,255,255,.07); background: rgba(8,5,16,.55); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .lv-stage { max-height: 62vh; }
  .lv-speakers { min-height: 64px; padding: 6px 12px; }
}
.lv-banner.idle { background: linear-gradient(135deg, #6d28d9, #a855f7); animation: none; box-shadow: 0 8px 22px rgba(109,40,217,.3); }
.lv-banner.idle .lv-dot { display: none; }
.lv-banner.idle em { color: #6d28d9; }
#toast { z-index: 9600; }

/* owner quick bar (Zoom style): mute all + everyone talks; tap a speaker to mute them */
.lv-ownbar{display:flex;gap:8px;padding:8px 10px}
.lv-ownbar button{flex:1;border:0;border-radius:999px;padding:10px 8px;font-weight:800;font-size:13px;color:#fff;background:rgba(255,255,255,.12)}
.lv-ownbar #lvAllMute{background:linear-gradient(135deg,#e11d48,#be123c)}
.lv-ownbar #lvModeT.on{background:linear-gradient(135deg,#16a34a,#059669)}
.lv-sp{cursor:pointer}

/* push-to-talk: the held mic glows; no text selection / callout while holding */
#lvMic{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#lvMic.on{transform:scale(1.12);box-shadow:0 0 0 6px rgba(34,197,94,.35)}

/* Telegram-style voice: big round mic, clear status line, glowing speakers */
#lvMic{width:62px;height:62px;font-size:26px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff;border:0;box-shadow:0 8px 22px -8px rgba(59,130,246,.9);transition:transform .15s ease,background .2s ease}
#lvMic.on{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 0 0 6px rgba(34,197,94,.28),0 8px 22px -8px rgba(34,197,94,.9);transform:scale(1.08)}
.lv-mictip{text-align:center;font-size:12px;font-weight:700;color:rgba(255,255,255,.75);padding:2px 10px 8px}
.lv-mictip.live{color:#4ade80}
.lv-sp.talk .lv-av{box-shadow:0 0 0 3px #22c55e,0 0 18px rgba(34,197,94,.7)}

/* Voice chat list — one clean row per person (photo · name · speaking / listening / muted) */
.lv-speakers{display:block;max-height:46vh;overflow-y:auto;padding:4px 8px}
.lv-vhead{font-size:12px;font-weight:800;color:rgba(255,255,255,.6);padding:6px 4px 8px;letter-spacing:.02em}
.lv-row{display:flex;align-items:center;gap:12px;padding:8px 6px;border-radius:14px;width:auto;flex-direction:row}
.lv-row .lv-av{width:44px;height:44px;flex:0 0 44px;border-radius:50%;overflow:hidden;transition:box-shadow .15s}
.lv-row .lv-av img{width:100%;height:100%;object-fit:cover}
.lv-who{flex:1;min-width:0;display:flex;flex-direction:column}
.lv-who b{font-size:15px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-who small{font-size:12.5px;color:rgba(255,255,255,.55)}
.lv-who small.st-talk{color:#4ade80}.lv-who small.st-hand{color:#fbbf24}.lv-who small.st-muted{color:rgba(255,255,255,.4)}
.lv-host{font-style:normal;font-size:10px;font-weight:900;color:#1d1203;background:#fbbf24;border-radius:6px;padding:1px 5px;margin-left:4px;vertical-align:2px}
.lv-mi{font-size:18px;opacity:.85}
.lv-row.talk .lv-av{box-shadow:0 0 0 3px #22c55e,0 0 16px rgba(34,197,94,.65)}
.lv-row.talk small{color:#4ade80}
