/* Tela de uma live no celular (client/site/live/live.js). 1em = largura / 39 (desenho numa tela de 390 px). */
.lv { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; color: #fff;
  font-family: "TikTok Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-weight: 600; line-height: 1.25; -webkit-font-smoothing: antialiased; text-shadow: 0 0.05em 0.15em rgb(0 0 0 / .35); }
.lv * { box-sizing: border-box; }
.lv svg { display: block; fill: currentColor; }
.lv-vidro { background: rgb(0 0 0 / .28); -webkit-backdrop-filter: blur(0.6em); backdrop-filter: blur(0.6em); }
.lv-sombra-topo { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(rgb(0 0 0 / .45), transparent); }
.lv-sombra-base { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgb(0 0 0 / .5)); }

/* avatar: foto ou inicial na cor da pessoa */
.lv-av { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 1em; color: #fff; text-shadow: none;
  background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .35), transparent 55%), var(--c, #8b5cf6); }

/* barra de status */
.lv-status { position: absolute; top: 0; left: 0; right: 0; height: 5.2em; padding: 0.4em 2.5em 0 3.3em; display: flex; align-items: center; justify-content: space-between; }
.lv-hora { width: 5em; text-align: center; font-size: 1.6em; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-family: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
.lv-ilha { position: absolute; left: 50%; top: 1.1em; width: 12.4em; height: 3.6em; margin-left: -6.2em; border-radius: 2em; background: #000; }
.lv-status > span { display: flex; align-items: center; gap: 0.55em; }
.lv-status svg { height: 1.2em; width: auto; }
.lv-bat { position: relative; display: block; width: 2.55em; height: 1.25em; border: 0.13em solid rgb(255 255 255 / .45); border-radius: 0.4em; padding: 0.13em; }
.lv-bat i { display: block; height: 100%; width: 80%; border-radius: 0.2em; background: #fff; }
.lv-bat::after { content: ''; position: absolute; right: -0.38em; top: 0.33em; width: 0.18em; height: 0.4em; border-radius: 0 0.1em 0.1em 0; background: rgb(255 255 255 / .45); }

/* topo da live: anfitrião, top 2 doadores, espectadores */
.lv-topo { position: absolute; top: 5.6em; left: 1em; right: 1em; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.lv-host { display: flex; align-items: center; gap: 0.6em; padding: 0.3em 0.3em 0.3em 0.3em; border-radius: 3em; min-width: 0; }
.lv-host .lv-av { width: 3.4em; height: 3.4em; font-size: 1em; background: linear-gradient(135deg, #7c3aed, #ec4899); }
.lv-host div { display: flex; flex-direction: column; min-width: 0; }
.lv-canal { font-size: 1.3em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 8.5em; }
.lv-host small { display: flex; align-items: center; gap: 0.25em; font-size: 1.05em; font-weight: 500; opacity: 0.85; }
.lv-host small svg { height: 0.85em; }
.lv-host em { flex: none; font-style: normal; font-weight: 700; font-size: 1.3em; padding: 0.5em 0.9em; border-radius: 2em; background: #fe2c55; text-shadow: none; }
.lv-dir { display: flex; align-items: center; gap: 0.5em; }
.lv-top2 { display: flex; }
.lv-top2 > span { position: relative; margin-left: -0.6em; }
.lv-top2 .lv-av { width: 3.3em; height: 3.3em; border: 0.15em solid rgb(0 0 0 / .25); }
.lv-top2 b { position: absolute; left: 50%; bottom: -0.55em; transform: translateX(-50%); padding: 0.1em 0.45em; border-radius: 1em; font-size: 0.95em; font-weight: 800; background: #ffb21e; color: #fff; text-shadow: none; white-space: nowrap; }
.lv-top2 .lv-t2 b { background: #6b7280; }
.lv-esp { display: flex; align-items: center; gap: 0.35em; padding: 0.65em 0.9em; border-radius: 2em; }
.lv-esp svg { height: 1.15em; }
.lv-esp b { font-size: 1.25em; font-weight: 700; }
.lv-x { font-style: normal; font-size: 1.9em; font-weight: 400; margin-left: 0.15em; }

/* chips */
.lv-chips { position: absolute; top: 10.2em; left: 1em; right: 1em; display: flex; gap: 0.6em; }
.lv-chips span { display: flex; align-items: center; gap: 0.4em; padding: 0.55em 0.9em; border-radius: 2em; font-size: 1.15em; font-weight: 600; }
.lv-chips .lv-exp { margin-left: auto; }
.lv-exp i { width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9de2, #e6007e 70%); }

/* chat + faixas: um bloco preso no rodapé (o jogo pode subir com lift()) */
.lv-baixo { position: absolute; left: 0.9em; right: 6.5em; bottom: 6.4em; display: flex; flex-direction: column; gap: 0.8em; transition: transform 0.3s; }
.lv-faixas { display: flex; flex-direction: column; gap: 0.6em; }
.lv-faixa { position: relative; display: flex; align-items: center; animation: lv-entra 0.32s cubic-bezier(.2, .9, .3, 1.2); }
.lv-faixa.sai { animation: lv-sai 0.3s ease-in forwards; }
.lv-faixa-pill { display: flex; align-items: center; gap: 0.6em; padding: 0.3em 4.6em 0.3em 0.3em; border-radius: 3em; background: linear-gradient(90deg, rgb(0 0 0 / .5), rgb(0 0 0 / .15)); max-width: 21em; }
.lv-faixa-pill .lv-av { width: 3.4em; height: 3.4em; }
.lv-faixa-pill div { display: flex; flex-direction: column; min-width: 0; }
.lv-faixa-pill b { font-size: 1.25em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-faixa-pill small { font-size: 1.05em; font-weight: 500; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-faixa > img, .lv-gift-emo { width: 4.6em; height: 4.6em; object-fit: contain; margin-left: -4.2em; filter: drop-shadow(0 0.2em 0.4em rgb(0 0 0 / .4)); }
.lv-gift-emo { display: grid; place-items: center; font-size: 3em; width: 1.5em; height: 1.5em; margin-left: -1.4em; }
.lv-combo { margin-left: 0.3em; font-size: 2.3em; font-weight: 900; font-style: italic; color: #ffe14d; -webkit-text-stroke: 0.04em rgb(120 60 0 / .5); text-shadow: 0 0.06em 0.12em rgb(0 0 0 / .4); }
.lv-combo.pop { animation: lv-pop 0.3s ease-out; }
@keyframes lv-entra { from { opacity: 0; transform: translateX(-60%); } }
@keyframes lv-sai { to { opacity: 0; transform: translateX(-40%); } }
@keyframes lv-pop { 0% { transform: scale(1.9); } 60% { transform: scale(0.9); } }

.lv-chat { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75em; max-height: 21em; overflow: hidden; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(transparent, #000 4em); mask-image: linear-gradient(transparent, #000 4em); }
.lv-chat li { display: flex; gap: 0.7em; align-items: flex-start; animation: lv-msg 0.25s ease-out; }
.lv-chat li > div { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.lv-chat small { display: flex; align-items: center; gap: 0.45em; font-size: 1.1em; font-weight: 600; color: rgb(255 255 255 / .62); }
.lv-chat small em { display: inline-flex; align-items: center; gap: 0.2em; padding: 0.1em 0.4em; border-radius: 0.4em; font-style: normal; font-size: 0.9em; font-weight: 800; color: #fff; background: #5865f2; text-shadow: none; }
.lv-chat small em svg { height: 0.7em; }
.lv-chat span { font-size: 1.3em; font-weight: 600; overflow-wrap: anywhere; }
.lv-chat span img { display: inline-block; width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: -0.3em; margin: 0 0.1em; }
.lv-x1 { color: #ffd84d; margin-left: 0.15em; }
.lv-chat .lv-sis { align-items: center; }
.lv-chat .lv-sis .lv-av { width: 2em; height: 2em; font-size: 0.85em; opacity: 0.85; }
.lv-chat .lv-sis span { font-size: 1.15em; color: rgb(255 255 255 / .7); font-weight: 500; }
.lv-chat .lv-sis span b { font-weight: 600; color: rgb(255 255 255 / .62); }
@keyframes lv-msg { from { opacity: 0; transform: translateY(1em); } }

/* corações (curtidas) */
.lv-coracoes { position: absolute; right: 2.2em; bottom: 7em; width: 3em; height: 50%; }
.lv-coracoes i { position: absolute; bottom: 0; left: 0; width: 3em; animation: lv-cor 2.6s cubic-bezier(.3, .6, .4, 1) both; filter: drop-shadow(0 0.15em 0.3em rgb(0 0 0 / .3)); }
@keyframes lv-cor {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0); }
  10% { opacity: 1; transform: translate(0, -0.6em) scale(var(--s)) rotate(var(--r)); }
  45% { transform: translate(var(--x), -200%) scale(var(--s)) rotate(calc(var(--r) * -0.5)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * -0.5), -520%) scale(calc(var(--s) * 0.7)) rotate(var(--r)); }
}

/* rodapé: campo e botões */
.lv-base { position: absolute; left: 0.9em; right: 0.9em; bottom: 1.6em; display: flex; align-items: center; gap: 0.75em; }
.lv-campo { flex: 1; min-width: 0; padding: 0.95em 1.2em; border-radius: 3em; background: rgb(255 255 255 / .16); color: rgb(255 255 255 / .65); font-size: 1.3em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
.lv-bt { flex: none; width: 3.9em; height: 3.9em; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .3); font-style: normal; font-size: 1em; }
.lv-bt svg, .lv-bt img { width: 2.2em; height: 2.2em; object-fit: contain; }
.lv-bt-gift { font-size: 1.9em; width: 2.05em; height: 2.05em; }
