/* ============================================================
   VULU — Live Room (desktop). Full-screen takeover.
   Video stage (left) + live chat (right) + host/actions bar.
   ============================================================ */

.liveroom { position: absolute; inset: 0; z-index: 1600; background: var(--bg); display: flex; flex-direction: column; }  /* above modals (.aomodal/.glfs 1500), below .hub-fs (1700) */

/* top bar */
.lr-top { height: 56px; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.lr-back { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--border); color: var(--text); cursor: pointer; flex: 0 0 auto; }
.lr-back:hover { background: var(--fill-hover); }
.lr-back .ic { width: 19px; height: 19px; }
.lr-top h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.lr-top__spk { display: grid; place-items: center; color: var(--text-2); }
.lr-top__spk .ic { width: 18px; height: 18px; }
.lr-top .cat { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--fill); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lr-top .right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.lr-live { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 7px; }
.lr-live i { width: 5px; height: 5px; border-radius: 999px; background: #fff; }
.lr-view { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.lr-view i { width: 7px; height: 7px; border-radius: 999px; background: var(--red); }
.lr-top .lr-follow { height: 32px; padding: 0 15px; border-radius: 9px; background: var(--fill); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.lr-top .lr-follow:hover { background: var(--fill-hover); }
.lr-top .lr-follow.on { background: transparent; color: var(--text-2); }

/* body */
.lr-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 14px; }
.lr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ===== Discord-style call view ===== */
.lr-call { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; padding: 22px; }
.lr-grid { display: grid; gap: 12px; width: 100%; height: 100%; grid-auto-rows: 1fr; }
.lr-grid.n1 { grid-template-columns: 1fr; }
.lr-grid.n2 { grid-template-columns: 1fr 1fr; }
.lr-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.lr-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lr-grid.n5, .lr-grid.n6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.lr-grid.n7, .lr-grid.n8 { grid-template-columns: repeat(4, 1fr); }
.lr-grid.n7 .pcard.host, .lr-grid.n8 .pcard.host { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1180px) { .lr-grid.n5, .lr-grid.n6 { grid-template-columns: 1fr 1fr; } .lr-grid.n7, .lr-grid.n8 { grid-template-columns: repeat(3, 1fr); } }

.pcard { position: relative; border-radius: 14px; overflow: hidden; background: var(--raised); border: 1px solid var(--border); min-height: 0; display: grid; place-items: center; }
.pcard.host { grid-column: span 2; grid-row: span 2; }
.lr-grid.n2 .pcard.host, .lr-grid.n3 .pcard.host { grid-row: span 1; }
.pcard.speaking { box-shadow: inset 0 0 0 2px var(--green); }
.pcard.you { border-color: #3a4140; }
.pcard__center { display: grid; place-items: center; }
.pcard__art { position: absolute; inset: 0; }
.pcard__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), transparent 60%); }
.pcard__streamtag { position: absolute; top: 11px; left: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px; }
.pcard__streamtag .ic { width: 14px; height: 14px; }
.pcard__watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.pcard__watch:hover { background: rgba(0,0,0,0.72); }
.pcard__watch .ic { width: 15px; height: 15px; }
.pcard__hosttag { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 7px; }
.pcard__nm { position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 72px); display: inline-flex; align-items: center; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__nm em { color: rgba(255,255,255,0.6); font-style: normal; font-weight: 600; margin-left: 4px; }
.pcard__status { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.pcard__status .ps { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.pcard__status .ps.muted { background: rgba(255,68,88,0.18); color: var(--red); }
.pcard__status .ps.off { background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); color: rgba(255,255,255,0.75); }
.pcard__status .ps .ic { width: 15px; height: 15px; }

/* ===== bottom dock = two containers ===== */
.lr-dock { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lr-ctrls, .lr-extra { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.lr-dbtn { width: 48px; height: 48px; border-radius: 999px; background: var(--raised-2); border: 0; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .14s, color .14s; }
.lr-dbtn:hover { background: #232a29; }
.lr-dbtn .ic { width: 22px; height: 22px; }
.lr-dbtn.off { background: var(--raised-2); color: var(--muted); }
.lr-dbtn.on { background: #fff; color: #06100c; }
.lr-dbtn.leave { background: var(--red); color: #fff; }
.lr-dbtn.leave:hover { background: #ff5b6c; }

/* boost + profile views */
.lr-boost { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--raised-2); border: 1px solid transparent; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .14s, border-color .14s, color .14s; }
.lr-boost:hover { background: #232a29; }
.lr-boost .ic { width: 17px; height: 17px; color: var(--text-2); }
.lr-boost .n { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 800; }
.lr-boost.on { background: rgba(242,210,74,0.14); border-color: rgba(242,210,74,0.3); color: var(--gold); }
.lr-boost.on .ic, .lr-boost.on .n { color: var(--gold); }
.lr-views-wrap { position: relative; }
.lr-views { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px; border-radius: 12px; background: var(--raised-2); border: 0; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .14s; }
.lr-views:hover, .lr-views.on { background: #232a29; }
.lr-views .ic { width: 18px; height: 18px; color: var(--text-2); }
.lr-views .n { font-variant-numeric: tabular-nums; }

/* profile-views popover */
.lr-pop-scrim { position: fixed; inset: 0; z-index: 60; }
.lr-pop { position: absolute; bottom: calc(100% + 10px); right: 0; z-index: 61; width: 280px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.6); overflow: hidden; }
.lr-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 10px; border-bottom: 1px solid var(--divider); }
.lr-pop__head h4 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.lr-pop__head span { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.lr-pop__list { padding: 6px; max-height: 280px; overflow-y: auto; }
.lr-pop__row { display: flex; align-items: center; gap: 11px; padding: 8px 9px; border-radius: 10px; }
.lr-pop__row:hover { background: var(--raised-2); }
.lr-pop__row .m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lr-pop__row .nm { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-pop__row .when { font-size: 11.5px; color: var(--muted); }
.lr-pop__msg { width: 32px; height: 32px; border-radius: 9px; background: var(--fill); border: 1px solid var(--border); color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.lr-pop__msg:hover { background: var(--fill-hover); color: var(--text); }
.lr-pop__msg .ic { width: 16px; height: 16px; }

/* live chat column */
.lr-chat { width: 340px; flex: 0 0 auto; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.lr-chat__head { height: 50px; flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid var(--hair); }
.lr-chat__head .ic { width: 17px; height: 17px; color: var(--text-2); }
.lr-chat__head h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.lr-chat__head .cnt { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-chat__stream { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 9px; }
.lrmsg { font-size: 13.5px; line-height: 1.4; }
.lrmsg b { font-weight: 700; color: var(--text-2); margin-right: 6px; }
.lrmsg span { color: #e2e8e4; }
.lrmsg.me b { color: var(--text); }
.lr-giftmsg { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 11px; background: rgba(190,56,243,0.08); border: 1px solid rgba(190,56,243,0.2); font-size: 13px; white-space: nowrap; }
.lr-giftmsg > span:first-of-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lr-giftmsg .ic { width: 16px; height: 16px; color: var(--purple); flex: 0 0 auto; }
.lr-giftmsg b { font-weight: 700; color: var(--text); }
.lr-join-sys { font-size: 12px; color: var(--muted); padding: 1px 2px; }
.lr-join-sys b { color: var(--text-2); font-weight: 600; }

/* gift tray (slides up over chat composer) */
.lr-tray { flex: 0 0 auto; border-top: 1px solid var(--hair); padding: 12px; display: none; }
.lr-tray.open { display: block; }
.lr-tray__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lr-tray__head .t { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lr-tray__bal { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--text); }
.lr-tray__bal .ic { width: 14px; height: 14px; color: var(--purple); }
.lr-gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lr-giftopt { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px 8px; border-radius: 12px; background: var(--raised); border: 1px solid var(--border); cursor: pointer; transition: background .12s, border-color .12s; }
.lr-giftopt:hover { background: var(--raised-2); border-color: #313838; }
.lr-giftopt .emj { font-size: 22px; }
.lr-giftopt .cost { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lr-giftopt .cost .ic { width: 11px; height: 11px; color: var(--purple); }

/* chat composer */
.lr-chat__composer { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hair); }
.lr-chat__composer input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 13px; border-radius: 10px; background: var(--input-bg); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.lr-chat__composer input:focus { border-color: #3a4140; }
.lr-cgift, .lr-csend { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; border: 1px solid var(--border); }
.lr-cgift { background: var(--fill); color: var(--purple); }
.lr-cgift:hover { background: var(--fill-hover); }
.lr-cgift.on { background: rgba(190,56,243,0.14); border-color: rgba(190,56,243,0.3); }
.lr-csend { background: var(--raised-2); color: var(--text); border-color: var(--border); }
.lr-csend:hover { background: #222827; }
.lr-cgift .ic, .lr-csend .ic { width: 18px; height: 18px; }

/* float gift burst */
@keyframes lrburst { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 25% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-90px) scale(1); opacity: 0; } }
.lr-burst { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); font-size: 40px; z-index: 5; pointer-events: none; animation: lrburst 1.4s var(--ease) forwards; }
