/* =====================================================================
   Bulle — LIVE (interface v2, v5-live.js)
   Téléphone : vidéo plein écran, chat et cœurs par-dessus.
   Ordinateur : vidéo à gauche, chat à droite.
   Retour arrière : retirer ce fichier et v5-live.js (l'ancienne interface revient).
   ===================================================================== */
.lv-ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.lv-ic svg { display: block; }
.mirror { transform: scaleX(-1); }

/* ---------- Boutons ronds sur la vidéo ---------- */
.lv-round, .lv-pbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16, 12, 28, .46); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .15s, transform .15s;
}
.lv-round:hover, .lv-pbtn:hover { background: rgba(16, 12, 28, .66); }
.lv-round:active, .lv-pbtn:active { transform: scale(.94); }
.lv-pbtn.off { background: #fff; color: #E5383B; }
.lv-round:focus-visible, .lv-pbtn:focus-visible, .lv-tool:focus-visible, .lv-go:focus-visible, .lv-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #6B4BFF; }

/* ---------- Bouton principal ---------- */
.lv-go {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #FF3D6E, #FF5E3A); color: #fff; font: 750 17px/1 var(--font-ui, system-ui); cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(255, 61, 110, .7);
}
.lv-go:disabled { opacity: .6; cursor: default; }
.lv-go-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); animation: lv-pulse 1.6s ease-in-out infinite; }
@keyframes lv-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

/* =================================================================
   LANCER UN LIVE
   ================================================================= */
.lv-start {
  position: fixed; inset: 0; z-index: 960; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 8, 20, .62); opacity: 0; transition: opacity .2s;
}
.lv-start.in { opacity: 1; }
.lv-start.out { opacity: 0; }
.lv-start-box {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); width: min(980px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
  background: var(--panneau, #fff); color: var(--texte, #14111f); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.lv-prev { position: relative; background: #0d0b16; min-height: 520px; overflow: hidden; }
.lv-prev-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-prev-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255, 255, 255, .75); font: 600 14px var(--font-ui, system-ui); }
.lv-prev-off[hidden], .lv-prev-err[hidden], .lv-count[hidden] { display: none; }
.lv-prev-av, .lv-audio .avatar { width: 96px !important; height: 96px !important; font-size: 36px; }
.lv-prev-err {
  position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: #14111f; font: 600 14.5px/1.45 var(--font-ui, system-ui); text-align: center; z-index: 2;
}
.lv-start-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 14px; color: #fff; z-index: 3;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent); font: 700 16px var(--font-ui, system-ui); }
.lv-start-top strong { text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.lv-ptools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 14px; z-index: 3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5)); }
.lv-meter { width: 64px; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.lv-meter i { display: block; height: 100%; width: 100%; background: #3EE08F; transform-origin: left; transform: scaleX(0); transition: transform .08s linear; }
.lv-meter.off i { background: transparent; }
.lv-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 4; background: rgba(0, 0, 0, .35);
  color: #fff; font: 800 120px/1 var(--font-ui, system-ui); text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.lv-count.tick { animation: lv-tick .8s ease-out; }
@keyframes lv-tick { from { transform: scale(1.5); opacity: 0; } 30% { opacity: 1; } to { transform: scale(.9); } }

.lv-form { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; overflow-y: auto; }
.lv-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.lv-steps li { display: flex; align-items: center; gap: 10px; font: 550 14px/1.3 var(--font-ui, system-ui); color: var(--texte-2, #4a4560); }
.lv-steps b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft, #EEE9FF); color: var(--accent-ink, #5B3BE8); font: 800 12.5px var(--font-ui, system-ui); }
.lv-title-in {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--hairline, #e4e1ee); background: var(--surface, #faf9fd);
  color: inherit; font: 650 17px var(--font-ui, system-ui); box-sizing: border-box;
}
.lv-title-in:focus { outline: none; border-color: #6B4BFF; box-shadow: 0 0 0 4px rgba(107, 75, 255, .16); }
.lv-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-idea { border: 1px solid var(--hairline, #e4e1ee); background: transparent; color: var(--texte-2, #4a4560); border-radius: 999px; padding: 7px 11px; font: 600 13px var(--font-ui, system-ui); cursor: pointer; }
.lv-idea:hover { background: var(--surface-hover, #f3f1fa); }
.lv-label { margin: 6px 0 0; font: 700 14px var(--font-ui, system-ui); }
.lv-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--hairline, #e4e1ee); background: transparent; color: var(--texte, #14111f); font: 650 15px var(--font-ui, system-ui); }
.lv-seg button[aria-checked="true"] { border-color: #6B4BFF; background: var(--accent-soft, #EEE9FF); color: var(--accent-ink, #5B3BE8); }
.lv-seg button.locked { color: var(--texte-3, #8a85a0); border-style: dashed; }
.lv-aud-hint { margin: 0; font: 500 13.5px/1.45 var(--font-ui, system-ui); color: var(--texte-2, #4a4560); }
.lv-form-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FEECEC; color: #B42318; font: 600 14px/1.4 var(--font-ui, system-ui); }
.lv-form-err[hidden] { display: none; }
.lv-rules { margin: 0; font: 500 12.5px/1.45 var(--font-ui, system-ui); color: var(--texte-3, #8a85a0); text-align: center; }

/* =================================================================
   DANS LE LIVE
   ================================================================= */
.lv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; min-height: 0; background: #0d0b16; color: #fff; }
#main[data-view="live"] { padding: 0 !important; overflow: hidden; }
.lv-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0d0b16; }
.lv-cam, .lv-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lv-cam video, .lv-screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lv-screen:empty { display: none; }
/* Partage d'écran : l'écran en grand, la caméra en vignette (coin et taille choisis par l'hôte) */
.lv-stage.has-screen .lv-cam { inset: auto 16px 16px auto; width: 22%; min-width: 140px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; z-index: 2; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: width .2s ease; }
.lv-stage.has-screen[data-campos="tl"] .lv-cam { inset: 76px auto auto 16px; }
.lv-stage.has-screen[data-campos="tr"] .lv-cam { inset: 76px 16px auto auto; }
.lv-stage.has-screen[data-campos="bl"] .lv-cam { inset: auto auto 16px 16px; }
.lv-stage.has-screen[data-camsize="s"] .lv-cam { width: 15%; min-width: 120px; }
.lv-stage.has-screen[data-camsize="l"] .lv-cam { width: 32%; }
/* L'hôte a ses commandes en bas au centre : la vignette du bas remonte au-dessus */
.lv.is-host .lv-stage.has-screen:not([data-campos="tl"]):not([data-campos="tr"]) .lv-cam { bottom: 104px; }
.lv-stage.has-screen .lv-cam video { object-fit: cover; }
.lv-stage.has-screen .lv-cam:empty { display: none; }
.lv-audio { display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255, 255, 255, .8); font: 650 14px var(--font-ui, system-ui); }
.lv-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, .5), transparent 18%, transparent 62%, rgba(0, 0, 0, .55)); }
.lv-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 14px 0;
  padding-top: max(14px, var(--sat, 0px)); }
.lv-who { flex: 1; min-width: 0; overflow: hidden; }
.lv-round[hidden] { display: none; }
.lv-host { display: flex; align-items: center; gap: 10px; max-width: 100%; border: 0; background: rgba(16, 12, 28, .42); color: #fff; border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: left; }
.lv-host .avatar { width: 36px !important; height: 36px !important; flex: none; }
.lv-host span { display: flex; flex-direction: column; min-width: 0; }
.lv-host b { font: 750 14px/1.2 var(--font-ui, system-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-host small { font: 500 12.5px/1.25 var(--font-ui, system-ui); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.lv-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.lv-net { display: inline-flex; align-items: center; gap: 5px; background: #FFB020; color: #1b1300; border-radius: 8px; padding: 5px 8px; font: 750 12px/1 var(--font-ui, system-ui); }
.lv-net[hidden] { display: none; }
.lv-retry { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: #14111f; font: 750 14px var(--font-ui, system-ui); cursor: pointer; }
/* Sans chat (réglage spectateur, ordinateur) : la vidéo prend toute la largeur */
.lv.no-chat { grid-template-columns: minmax(0, 1fr); }
.lv.no-chat .lv-chat { display: none; }
.lv:fullscreen { height: 100vh; }
.lv:-webkit-full-screen { height: 100vh; }
.lv-pill { display: inline-flex; align-items: center; gap: 6px; background: #F0283C; border-radius: 8px; padding: 5px 8px; font: 800 12px/1 var(--font-ui, system-ui); letter-spacing: .06em; }
.lv-pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lv-blink 1.4s infinite; }
@keyframes lv-blink { 50% { opacity: .35; } }
.lv-clock, .lv-viewers, .lv-hcount { display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 12, 28, .46); border-radius: 8px; padding: 5px 8px;
  font: 700 12.5px/1 var(--font-ui, system-ui); font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lv-hcount { color: #FF8AB3; }
.lv-hcount b { color: #fff; }
.lv-hcount[hidden], .lv-end[hidden], .lv-side[hidden], .lv-sound[hidden], .lv-status[hidden], .lv-heartbtn[hidden], .lv-compose[hidden] { display: none; }
.lv-end { border: 0; border-radius: 999px; padding: 0 16px; height: 36px; background: #F0283C; color: #fff; font: 750 14px var(--font-ui, system-ui); cursor: pointer; }
.lv-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100% - 40px));
  padding: 12px 16px; border-radius: 14px; background: rgba(16, 12, 28, .72); font: 600 14.5px/1.4 var(--font-ui, system-ui); text-align: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lv-spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: lv-rot .8s linear infinite; }
@keyframes lv-rot { to { transform: rotate(360deg); } }
.lv-sound { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); z-index: 6; border: 0; border-radius: 999px; padding: 12px 18px; background: #fff; color: #14111f;
  font: 700 14.5px var(--font-ui, system-ui); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); cursor: pointer; }

/* Commandes de l'hôte */
.lv-side { position: absolute; z-index: 5; display: flex; gap: 10px; left: 50%; bottom: 18px; transform: translateX(-50%); }
.lv-tool { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 10px 8px 8px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgba(16, 12, 28, .5); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lv-tool small { font: 650 11.5px/1.1 var(--font-ui, system-ui); }
.lv-tool.off { background: rgba(255, 255, 255, .92); color: #14111f; }
.lv-tool.off .lv-ic { color: #E5383B; }
.lv-tool:disabled { opacity: .6; }

/* Cœurs qui montent */
.lv-hearts { position: absolute; right: 18px; bottom: 90px; width: 60px; height: 60%; pointer-events: none; z-index: 4; }
.lv-fly { position: absolute; bottom: 0; left: 50%; margin-left: -14px; animation: lv-fly var(--d, 2.6s) ease-out forwards; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.lv-fly.mine { animation-name: lv-fly-big; }
@keyframes lv-fly { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 12% { opacity: 1; transform: translate(0, -20px) scale(1); }
  50% { transform: translate(var(--x), -45vh) scale(1); } 100% { transform: translate(calc(var(--x) * -1), -80vh) scale(.8); opacity: 0; } }
@keyframes lv-fly-big { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 12% { opacity: 1; transform: translate(0, -24px) scale(1.25); }
  100% { transform: translate(var(--x), -80vh) scale(.9); opacity: 0; } }

/* Chat (colonne à droite sur ordinateur) */
.lv-chat { display: flex; flex-direction: column; min-height: 0; background: var(--panneau, #fff); color: var(--texte, #14111f); border-left: 1px solid var(--hairline, #e4e1ee); }
.lv-chat-h { padding: 16px 16px 10px; font: 750 15px var(--font-ui, system-ui); border-bottom: 1px solid var(--hairline, #e4e1ee); }
.lv-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.lv-msg { display: flex; gap: 8px; align-items: flex-start; border-radius: 12px; padding: 3px 4px; }
.lv-msg.can-mod { cursor: pointer; }
.lv-msg.can-mod:hover { background: var(--surface-hover, #f3f1fa); }
.lv-msg-av { flex: none; border: 0; padding: 0; background: none; cursor: pointer; }
.lv-msg-av .avatar { width: 28px !important; height: 28px !important; font-size: 12px; }
.lv-msg p { margin: 3px 0 0; font: 500 14px/1.38 var(--font-ui, system-ui); overflow-wrap: anywhere; }
.lv-msg b { font-weight: 750; }
.lv-hosttag { display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 6px; background: #F0283C; color: #fff; font: 750 10.5px/1.5 var(--font-ui, system-ui); vertical-align: 1px; }
.lv-hello { margin: auto 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft, #EEE9FF); color: var(--accent-ink, #5B3BE8); font: 600 13.5px/1.4 var(--font-ui, system-ui); }
.lv-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, var(--sab, 0px)); border-top: 1px solid var(--hairline, #e4e1ee); }
.lv-input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1.5px solid var(--hairline, #e4e1ee); background: var(--surface, #faf9fd); color: inherit; padding: 0 16px; font: 500 16px var(--font-ui, system-ui); }
.lv-input:focus { outline: none; border-color: #6B4BFF; }
.lv-send, .lv-heartbtn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lv-send { background: #6B4BFF; color: #fff; }
.lv-heartbtn { background: #FFE4EE; color: #FF3D7F; transition: transform .12s; }
.lv-heartbtn:active { transform: scale(.86); }

/* Fin du live */
.lv-over { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 8, 20, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lv-over-card { width: min(380px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lv-over-e { font-size: 44px; }
.lv-over h2 { margin: 0; font: 750 21px/1.3 var(--font-ui, system-ui); color: #fff; }
.lv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.lv-stats span { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.lv-stats b { font: 800 20px/1.1 var(--font-ui, system-ui); font-variant-numeric: tabular-nums; }
.lv-stats small { font: 550 12px/1.25 var(--font-ui, system-ui); opacity: .8; }
.lv.is-ended .lv-chat .lv-compose { display: none; }

/* Rangée « En direct » dans Discussions */
.lv-slot[hidden] { display: none; }
.lv-strip { margin: 4px 0 10px; }
.lv-strip-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font: 750 15px var(--font-ui, system-ui); }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: #F0283C; animation: lv-blink 1.4s infinite; }
.lv-strip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.lv-strip-row::-webkit-scrollbar { display: none; }
.lv-chip { flex: none; display: flex; align-items: center; gap: 10px; max-width: 240px; padding: 8px 14px 8px 8px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1.5px solid rgba(240, 40, 60, .35); background: var(--panneau, #fff); color: var(--texte, #14111f); }
.lv-chip:hover { background: var(--surface-hover, #f3f1fa); }
.lv-chip-av { position: relative; flex: none; }
.lv-chip-av .avatar { width: 44px !important; height: 44px !important; box-shadow: 0 0 0 2px var(--panneau, #fff), 0 0 0 4px #F0283C; border-radius: 50%; }
.lv-chip-tag { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: #F0283C; color: #fff; border-radius: 5px; padding: 1px 4px; font: 800 9px/1.3 var(--font-ui, system-ui); letter-spacing: .05em; }
.lv-chip-t { display: flex; flex-direction: column; min-width: 0; }
.lv-chip-t b { font: 700 14px/1.2 var(--font-ui, system-ui); }
.lv-chip-t small { font: 500 12.5px/1.3 var(--font-ui, system-ui); color: var(--texte-2, #4a4560); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =================================================================
   TÉLÉPHONE
   ================================================================= */
@media (max-width: 760px) {
  /* Lancer : aperçu plein écran, réglages dans une feuille en bas */
  .lv-start { align-items: stretch; background: #0d0b16; }
  .lv-start-box { display: flex; flex-direction: column; width: 100%; max-height: none; height: 100%; border-radius: 0; background: #0d0b16; }
  .lv-prev { flex: 1; min-height: 0; }
  .lv-start-top { padding-top: max(14px, var(--sat, 0px)); }
  .lv-form { flex: none; max-height: 62%; border-radius: 24px 24px 0 0; margin-top: -22px; position: relative; z-index: 5; background: var(--panneau, #fff);
    padding: 18px 16px; padding-bottom: max(16px, var(--sab, 0px)); gap: 10px; }
  .lv-steps { display: none; }
  .lv-ptools { bottom: 22px; }
  .lv-rules { display: none; }

  /* Live : plein écran au-dessus de la barre d'onglets */
  html.lv-open { overflow: hidden; }
  html.lv-open .lv { position: fixed; inset: 0; z-index: 950; display: block; height: auto; }
  .lv-stage { position: absolute; inset: 0; }
  .lv-cam video { object-fit: cover; }
  .lv-cam video.is-land { object-fit: contain; }
  .lv-stage.has-screen .lv-cam { inset: auto 12px 210px auto; width: 34%; min-width: 0; aspect-ratio: 3 / 4; }
  .lv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 8px; column-gap: 6px;
    padding: 10px 10px 0; padding-top: max(10px, var(--sat, 0px)); }
  .lv-who { grid-column: 1; grid-row: 1; min-width: 0; }
  .lv-top-r { grid-column: 2; grid-row: 1; gap: 6px; }
  .lv-meta { grid-column: 1 / -1; grid-row: 2; gap: 6px; flex-wrap: wrap; }
  .lv-host small { display: block; }
  .lv-full { display: none !important; }
  .lv-stage.has-screen[data-campos="tl"] .lv-cam, .lv-stage.has-screen[data-campos="tr"] .lv-cam { top: calc(104px + var(--sat, 0px)); bottom: auto; }
  .lv-stage.has-screen[data-camsize="s"] .lv-cam { width: 26%; }
  .lv-stage.has-screen[data-camsize="l"] .lv-cam { width: 44%; }
  .lv-round { width: 40px; height: 40px; }
  .lv-end { height: 34px; padding: 0 12px; }

  /* Chat transparent par-dessus la vidéo */
  .lv-chat { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: none; border: 0; color: #fff; pointer-events: none; }
  .lv-chat-h { display: none; }
  .lv-msgs { max-height: 34vh; padding: 0 76px 6px 12px; pointer-events: auto;
    -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
  .lv.typing .lv-msgs { max-height: 22vh; }
  .lv-msg p { text-shadow: 0 1px 3px rgba(0, 0, 0, .65); font-size: 14.5px; }
  .lv-msg.can-mod:hover { background: rgba(255, 255, 255, .08); }
  .lv-hello { background: rgba(16, 12, 28, .5); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .lv-compose { border: 0; pointer-events: auto; padding: 8px 12px; padding-bottom: max(12px, var(--sab, 0px)); }
  .lv-input { background: rgba(16, 12, 28, .45); border-color: rgba(255, 255, 255, .28); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .lv-input::placeholder { color: rgba(255, 255, 255, .75); }
  .lv-heartbtn { background: rgba(255, 61, 127, .92); color: #fff; width: 48px; height: 48px; }
  .lv-hearts { bottom: 74px; right: 8px; }
  /* Hôte : commandes en colonne à droite, au-dessus du chat */
  .lv-side { left: auto; right: 10px; bottom: auto; top: 50%; transform: translateY(-62%); flex-direction: column; gap: 8px; }
  .lv-tool { min-width: 0; width: 60px; padding: 9px 4px 7px; border-radius: 16px; }
  .lv-tool small { font-size: 10.5px; }
  .lv.is-host .lv-msgs { padding-right: 80px; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .lv-form { max-height: 70%; }
  .lv-ideas { display: none; }
}

/* =================================================================
   Thème sombre : la feuille de lancement suit le thème de Bulle via les variables ;
   rien d'autre à faire. Mouvement réduit :
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  .lv-go-dot, .lv-pill i, .lv-dot, .lv-spin { animation: none; }
  .lv-count.tick { animation: none; }
}

/* =================================================================
   RÉGLAGES DU LIVE (caméra, micro, qualité, position de la caméra)
   ================================================================= */
.lv-set { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 8, 20, .5); opacity: 0; transition: opacity .16s; }
.lv-start .lv-set { position: fixed; z-index: 970; }
.lv-set.in { opacity: 1; }
.lv-set.out { opacity: 0; }
.lv-set-card { width: min(460px, 100%); max-height: min(640px, calc(100% - 32px)); overflow-y: auto; border-radius: 22px; padding: 6px 18px 18px;
  background: var(--panneau, #fff); color: var(--texte, #14111f); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); box-sizing: border-box; }
.lv-set-h { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 12px 0 8px; background: inherit; font: 750 17px var(--font-ui, system-ui); z-index: 1; }
.lv-set-h strong { flex: 1; }
.lv-set-x { width: 36px; height: 36px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--surface, #f3f1fa); color: inherit; }
.lv-set-g { margin: 14px 0 4px; font: 750 12px var(--font-ui, system-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3, #8a85a0); }
.lv-set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hairline, #ece9f4); }
.lv-set-row:last-child { border-bottom: 0; }
.lv-set-l { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font: 650 14.5px/1.3 var(--font-ui, system-ui); }
.lv-set-l small { font: 500 12.5px/1.35 var(--font-ui, system-ui); color: var(--texte-3, #8a85a0); }
.lv-set-sel { flex: none; width: 52%; max-width: 230px; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--hairline, #e4e1ee);
  background: var(--surface, #faf9fd); color: inherit; font: 600 14px var(--font-ui, system-ui); text-overflow: ellipsis; }
.lv-set-seg { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface, #f3f1fa); }
.lv-set-seg button { border: 0; border-radius: 9px; padding: 8px 10px; background: transparent; color: var(--texte-2, #4a4560); font: 650 13px var(--font-ui, system-ui); cursor: pointer; white-space: nowrap; }
.lv-set-seg button[aria-checked="true"] { background: var(--panneau, #fff); color: var(--accent-ink, #5B3BE8); box-shadow: 0 1px 4px rgba(20, 10, 60, .15); }
.lv-set-sw { flex: none; position: relative; width: 48px; height: 28px; border: 0; border-radius: 999px; background: var(--hairline, #d9d5e6); cursor: pointer; transition: background .15s; }
.lv-set-sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.lv-set-sw[aria-checked="true"] { background: var(--violet, #6B4BFF); }
.lv-set-sw[aria-checked="true"] i { transform: translateX(20px); }
.lv-set-range { flex: none; width: 52%; max-width: 230px; accent-color: var(--violet, #6B4BFF); }
/* Choix du coin : un mini écran avec 4 coins cliquables */
.lv-set-pos { flex: none; position: relative; width: 112px; height: 66px; border-radius: 10px; background: var(--surface, #f3f1fa); border: 1.5px solid var(--hairline, #e4e1ee); }
.lv-set-pos button { position: absolute; width: 34px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: var(--hairline, #d9d5e6); cursor: pointer; }
.lv-set-pos button[data-v="tl"] { top: 6px; left: 6px; }
.lv-set-pos button[data-v="tr"] { top: 6px; right: 6px; }
.lv-set-pos button[data-v="bl"] { bottom: 6px; left: 6px; }
.lv-set-pos button[data-v="br"] { bottom: 6px; right: 6px; }
.lv-set-pos button[aria-checked="true"] { background: var(--violet, #6B4BFF); box-shadow: 0 2px 8px -2px var(--violet, #6B4BFF); }
.lv-set-sw:focus-visible, .lv-set-seg button:focus-visible, .lv-set-pos button:focus-visible, .lv-set-x:focus-visible, .lv-set-sel:focus-visible, .lv-retry:focus-visible { outline: 3px solid var(--violet, #6B4BFF); outline-offset: 2px; }
@media (max-width: 760px) {
  .lv-set { align-items: flex-end; padding: 0; }
  .lv-set-card { width: 100%; max-height: 82%; border-radius: 22px 22px 0 0; padding-bottom: max(18px, var(--sab, 0px)); }
  .lv-set-row { flex-wrap: wrap; }
  .lv-set-sel, .lv-set-range { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .lv-set, .lv-set-sw, .lv-set-sw i { transition: none; } }
