/* Velora live rooms. The room is always dark. Lists follow the site theme. */

/* ---------- Live list ---------- */
.lv-list { padding-top: 24px; }
.lv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.lv-head h1 { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.lv-where { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.lv-head .row { gap: 8px; }
.lv-go-btn { background: #C8312B; color: #fff; }
.lv-go-btn:hover { color: #fff; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: lvPulse 1.6s infinite; }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.lv-chips { margin-bottom: 20px; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lv-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #2A2723; isolation: isolate; color: #fff; }
.lv-card:hover { color: #fff; }
.lv-poster { position: absolute; inset: 0; background: #3A3631 center / cover no-repeat; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lv-card:hover .lv-poster { transform: scale(1.04); }
.lv-card::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10,9,8,.86), rgba(10,9,8,0)); z-index: 0; }
.lv-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.lv-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; color: #fff; background: rgba(15,14,12,.66); backdrop-filter: blur(6px); }
.lv-tag.red { background: #C8312B; }
.lv-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.3; }
.lv-cap b { font-size: 15px; }
.lv-cap small { opacity: .72; }
@media (max-width: 640px) {
  .lv-head h1 { font-size: 32px; }
  .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lv-card { border-radius: 16px; }
}

/* ---------- Room shell ---------- */
body.live-body { background: #0B0A09; overflow: hidden; }
body.live-body .top, body.live-body .appbar, body.live-body .tabbar, body.live-body .foot { display: none !important; }
body.live-body #main { padding: 0; }
.lv-room {
  --lv-glass: rgba(18,17,15,.52); --lv-line: rgba(255,255,255,.12); --lv-ink: #F4F1EA; --lv-muted: #B9B3A8; --lv-gold: #D9B784; --lv-red: #D23A32;
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 1fr; background: #0B0A09; color: var(--lv-ink); font-family: var(--sans);
}
.lv-stage { position: relative; overflow: hidden; min-height: 0; background: #0B0A09; }
.lv-bg { position: absolute; inset: -40px; background: #1A1815 center / cover no-repeat; filter: blur(28px) brightness(.45); transform: scale(1.1); }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.lv-video.mirror { transform: scaleX(-1); }
.lv-room:not(.has-video)[data-live="viewer"] .lv-video { opacity: 0; }

/* Overlay states */
.lv-state { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; padding: 24px; background: rgba(8,7,6,.38); }
.lv-state-in { max-width: 340px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lv-state-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--lv-line); color: var(--lv-gold); }
.lv-state h2 { font-size: 28px; line-height: 1.1; color: var(--lv-ink); }
.lv-state p { color: var(--lv-muted); font-size: 14px; }
.lv-state-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lv-room .btn { background: var(--lv-ink); color: #15130F; }
.lv-room .btn.btn-line { background: transparent; color: var(--lv-ink); border: 1px solid rgba(255,255,255,.35); }
.lv-room .btn.btn-ghost { background: rgba(255,255,255,.08); color: var(--lv-ink); }

/* Top bar */
.lv-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 28px; background: linear-gradient(to bottom, rgba(8,7,6,.62), rgba(8,7,6,0)); }
.lv-who { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 26px; background: var(--lv-glass); backdrop-filter: blur(10px); color: var(--lv-ink); min-width: 0; max-width: 56vw; }
.lv-who:hover { color: var(--lv-ink); }
.lv-who > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lv-who b { font-size: 13.5px; }
.lv-who small { font-size: 11.5px; color: var(--lv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-live { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--lv-red); color: #fff; padding: 5px 8px; border-radius: 7px; white-space: nowrap; }
.lv-count { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 5px 9px; border-radius: 7px; background: var(--lv-glass); backdrop-filter: blur(10px); }
.lv-count.gold { color: var(--lv-gold); }
.lv-setup-title { font-family: var(--serif); font-size: 22px; }
.lv-ic { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--lv-glass); backdrop-filter: blur(10px); color: var(--lv-ink); transition: transform .15s, background .2s; }
.lv-ic:hover { color: var(--lv-ink); background: rgba(30,28,25,.7); }
.lv-ic:active { transform: scale(.94); }
.lv-ic.lg { width: 48px; height: 48px; }
.lv-ic.on { color: var(--lv-gold); }
.lv-ic.off { background: rgba(210,58,50,.85); }
.grow { flex: 1; }
.lv-room [hidden], .lv-sheet [hidden] { display: none !important; }

/* Goal */
.lv-goal { position: absolute; z-index: 4; top: calc(70px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; max-width: 420px; padding: 10px 12px; border-radius: 14px; background: var(--lv-glass); backdrop-filter: blur(12px); font-size: 12.5px; }
.lv-goal .row { display: flex; justify-content: space-between; gap: 10px; }
.lv-goal span { color: var(--lv-muted); }
.lv-goal span b { color: var(--lv-ink); }
.lv-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); margin-top: 8px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C9A46B, #EBD3A6); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.lv-goal.done .lv-bar i { background: #8FD3A9; }

/* Private banner */
.lv-banner { position: absolute; z-index: 5; left: 12px; right: 12px; top: calc(136px + env(safe-area-inset-top, 0px)); max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 14px; border-radius: 14px; background: rgba(201,164,107,.92); color: #1A1610; font-size: 13px; }
.lv-banner span { display: inline-flex; align-items: center; gap: 6px; }
.lv-chip-btn { border: 0; height: 32px; padding: 0 12px; border-radius: 16px; background: #1A1610; color: #F4F1EA; font: 600 12.5px var(--sans); }

.lv-sound { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: rgba(244,241,234,.94); color: #15130F; font: 600 14px var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Right rail */
.lv-rail { position: absolute; z-index: 5; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.lv-rail form { margin: 0; }

/* Floating chat (phone) */
.lv-float { position: absolute; z-index: 4; left: 12px; right: 76px; bottom: calc(132px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 70%, transparent); mask-image: linear-gradient(to top, #000 70%, transparent); }
.lv-float .lv-msg { background: rgba(12,11,10,.5); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 12px; max-width: 100%; animation: lvIn .25s ease; }
@keyframes lvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lv-msg { font-size: 13.5px; line-height: 1.35; color: var(--lv-ink); word-wrap: break-word; }
.lv-msg b { font-weight: 600; color: var(--lv-muted); }
.lv-msg.model b { color: var(--lv-gold); }
.lv-msg.tip { color: #1A1610; }
.lv-float .lv-msg.tip, .lv-chat .lv-msg.tip { background: rgba(217,183,132,.94); color: #1A1610; }
.lv-msg.tip b { color: #1A1610; }
.lv-msg.system { color: var(--lv-muted); font-style: italic; font-size: 12.5px; }

/* Bottom dock */
.lv-dock { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 28px 12px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(8,7,6,.72), rgba(8,7,6,0)); }
.lv-coins { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.lv-coins::-webkit-scrollbar { display: none; }
.lv-coin { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 19px; border: 0; background: rgba(244,241,234,.94); color: #15130F; font: 600 13.5px var(--sans); transition: transform .12s; }
.lv-coin:active { transform: scale(.95); }
.lv-coin .ic { color: #9A7640; }
.lv-bal { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--lv-gold); padding: 0 4px; }
.lv-say { display: flex; gap: 8px; align-items: center; margin: 0; }
.lv-say input { flex: 1; min-width: 0; height: 46px; border-radius: 23px; border: 1px solid var(--lv-line); background: rgba(20,19,17,.6); color: var(--lv-ink); padding: 0 18px; font: 400 15px var(--sans); backdrop-filter: blur(10px); }
.lv-say input::placeholder { color: #9A948A; }
.lv-say input:focus { outline: none; border-color: rgba(217,183,132,.7); }
.lv-send { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--lv-ink); color: #15130F; }
.lv-priv-btn { align-self: flex-start; }

/* Side panel (desktop) */
.lv-side { display: none; flex-direction: column; min-height: 0; background: #141311; border-left: 1px solid rgba(255,255,255,.07); }
.lv-tabs { display: flex; gap: 4px; padding: 14px 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.lv-tabs button { flex: 1; height: 42px; border: 0; background: none; color: var(--lv-muted); font: 500 13.5px var(--sans); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lv-tabs button.on { color: var(--lv-ink); font-weight: 600; border-bottom-color: var(--lv-gold); }
.lv-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.lv-pane.on { display: block; }
.lv-chat { display: flex; flex-direction: column; gap: 8px; height: 100%; overflow-y: auto; }
.lv-chat .lv-msg { padding: 2px 0; }
.lv-chat .lv-msg.tip { padding: 7px 10px; border-radius: 10px; }
.lv-side .lv-say { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.lv-side .lv-say input { background: #1E1C19; backdrop-filter: none; }
.lv-fans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lv-fans li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.lv-fans li .n { width: 18px; color: var(--lv-muted); font-size: 12px; }
.lv-fans li b { flex: 1; font-weight: 500; }
.lv-fans li > span:last-child { color: var(--lv-gold); display: inline-flex; gap: 4px; align-items: center; }
.lv-empty { color: var(--lv-muted); font-size: 13.5px; padding: 16px 4px; border: 0 !important; }
.lv-note { color: var(--lv-muted); font-size: 12.5px; margin-bottom: 10px; }
.lv-menu { display: flex; flex-direction: column; gap: 8px; }
.lv-menu button { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #1E1C19; color: var(--lv-ink); font: 500 14px var(--sans); text-align: left; }
.lv-menu button:hover { border-color: rgba(217,183,132,.6); }
.lv-menu b { color: var(--lv-gold); display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }

/* Coin burst */
.lv-burst { position: absolute; z-index: 7; left: 50%; bottom: 34%; transform: translateX(-50%); font: 600 30px var(--serif); color: var(--lv-gold); text-shadow: 0 4px 22px rgba(0,0,0,.5); pointer-events: none; animation: lvBurst 1.8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes lvBurst { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }

/* Toast */
.lv-toast { position: fixed; z-index: 90; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 14px; background: #F4F1EA; color: #15130F; font: 500 14px var(--sans); box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: opacity .2s, transform .25s; }
.lv-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lv-toast a { font-weight: 700; text-decoration: underline; color: #15130F; }

/* Sheets inside the room keep the site theme */
.lv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-facts div { padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.lv-facts small { display: block; font-size: 11.5px; color: var(--muted); }
.lv-facts b { font-size: 15px; }
.lv-wait { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); }
.lv-wait.on { background: var(--ok-soft); color: var(--ok-ink); }
.lv-sheet .lv-menu button { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.lv-sheet .lv-menu b { color: var(--accent-ink); }

/* ---------- Model studio ---------- */
.lv-cam { position: absolute; z-index: 5; right: 12px; top: calc(70px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 10px; }
.lv-studio.is-setup .lv-float, .lv-studio.is-setup .lv-side { display: none !important; }
.lv-studio.is-setup .lv-cam { top: calc(70px + env(safe-area-inset-top, 0px)); }
.lv-model-dock { flex-direction: row; align-items: center; }
.lv-pill { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--lv-glass); backdrop-filter: blur(10px); color: var(--lv-ink); font: 600 13.5px var(--sans); }
.lv-pill[aria-pressed="true"] { background: rgba(217,183,132,.9); color: #1A1610; }
.lv-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--lv-red); color: #fff; font-size: 11.5px; font-weight: 700; }
.lv-end { height: 44px; padding: 0 20px; border-radius: 22px; border: 0; background: var(--lv-red); color: #fff; font: 700 14px var(--sans); }
.lv-studio.is-live .lv-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 76px; }
.lv-queue { display: flex; flex-direction: column; gap: 4px; }
.lv-req { display: flex; align-items: center; gap: 8px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.lv-side .lv-req { border-bottom-color: rgba(255,255,255,.07); }
.lv-req b { font-size: 14px; }
.lv-req small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.lv-side .lv-req small { color: var(--lv-muted); }
.lv-mem { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.lv-side .lv-mem { color: var(--lv-gold); }
.lv-side .btn-ghost { background: rgba(255,255,255,.08); color: var(--lv-ink); }

.lv-setup { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; max-height: 72%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -20px 50px rgba(0,0,0,.35); }
.lv-setup .sheet-grab { display: block; }
.lv-setup .hint { font-size: 12px; color: var(--muted); }
.lv-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lv-grid2[hidden], .lv-switch-row[hidden] { display: none; }
.lv-suffix { position: relative; display: block; }
.lv-suffix .input { padding-right: 58px; width: 100%; }
.lv-suffix em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.lv-switch-row { display: flex; align-items: center; justify-content: space-between; }
.lv-menu-edit summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; display: flex; justify-content: space-between; padding: 4px 0; }
.lv-menu-edit summary::-webkit-details-marker { display: none; }
.lv-menu-edit summary small { color: var(--muted); font-weight: 400; }
.lv-menu-edit [data-menu-rows] { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.lv-menu-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.lv-rules { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.lv-err { font-size: 13px; color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; }
.lv-golive { height: 56px; border-radius: 28px; border: 0; background: var(--lv-red); color: #fff; font: 700 16px var(--sans); letter-spacing: .01em; box-shadow: 0 10px 30px rgba(210,58,50,.35); }
.lv-golive:disabled { opacity: .7; }

.lv-studio.is-ended .lv-dock, .lv-studio.is-ended .lv-cam, .lv-studio.is-ended .lv-goal, .lv-studio.is-ended .lv-live, .lv-studio.is-ended .lv-count, .lv-studio.is-ended .lv-banner, .lv-studio.is-ended .lv-float { display: none !important; }

/* Phone and desktop switches */
.lv-only-desk { display: none !important; }

@media (min-width: 960px) {
  .lv-room { grid-template-columns: minmax(0, 1fr) 380px; }
  .lv-side { display: flex; }
  .lv-float { display: none; }
  .lv-only-phone { display: none !important; }
  .lv-only-desk { display: inline-flex !important; }
  .lv-video { object-fit: contain; }
  .lv-dock { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 20px 20px; }
  .lv-coins { flex: 1; }
  .lv-rail { bottom: 96px; right: 20px; }
  .lv-top { padding: 18px 20px 30px; }
  .lv-goal { left: 20px; top: 78px; }
  .lv-banner { left: 20px; top: 146px; }
  .lv-cam { right: 20px; top: 78px; }
  .lv-studio.is-setup { grid-template-columns: 1fr; }
  .lv-setup { left: auto; right: 24px; bottom: 24px; top: 24px; width: 420px; max-height: none; border-radius: 24px; padding: 22px; }
  .lv-setup .sheet-grab { display: none; }
  .lv-studio.is-setup .lv-cam { right: auto; left: 20px; top: auto; bottom: 24px; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-dot, .lv-burst, .lv-float .lv-msg { animation: none; }
}
