/* Canlı Yayın: a broadcast studio inside the app, laid out like a streaming site. The stage is the hero (16:9,
   near-black, a rim of light that turns red on air) with the player's controls over it; red means live, amber means
   backstage, violet is the stream's own accent (hype, polls); counters use tabular figures. Motion is transform/opacity
   only, and reduced-motion users get none of the effects. */
:root {
  --lv-air: #ff3b4e;
  --lv-air-soft: rgba(255, 59, 78, 0.16);
  --lv-backstage: #ffb547;
  --lv-backstage-soft: rgba(255, 181, 71, 0.14);
  --lv-accent: #8b5cf6;
  --lv-accent-2: #22d3ee;
  --lv-accent-soft: rgba(139, 92, 246, 0.16);
  --lv-stage: #07080c;
  --lv-rim: rgba(139, 92, 246, 0.14);
  --lv-glass: rgba(12, 14, 20, 0.62);
}

/* The page takes the middle and right columns: a wide stage, the chat beside it */
@media (min-width: 1101px) {
  body.live-mode .layout { grid-template-columns: 88px minmax(0, 1440px); }
  body.live-mode .aside { display: none; }
  body.live-mode .nav-item span, body.live-mode .sidebar .btn-primary span, body.live-mode .me-card .names { display: none; }
  body.live-mode .sidebar .btn-primary { width: 52px; height: 52px; padding: 0; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  body.live-mode .layout { grid-template-columns: 88px minmax(0, 1fr); }
}

.lv-num { font-variant-numeric: tabular-nums; }
.lv-hint { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }

/* ---------------------------------------------------------------- status */
.lv-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; line-height: 16px;
}
.lv-pill.live { background: var(--lv-air); color: #fff; box-shadow: 0 0 0 3px var(--lv-air-soft), 0 6px 18px -6px rgba(255, 59, 78, .9); }
.lv-pill.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lv-pulse 1.4s ease-in-out infinite; }
.lv-pill.backstage { background: var(--lv-backstage-soft); color: var(--lv-backstage); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .35); backdrop-filter: blur(8px); }
@keyframes lv-pulse { 50% { opacity: .25; transform: scale(.7); } }
.lv-viewers { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.lv-viewers svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- the studio */
.lv-studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 16px 18px 24px; align-items: start; }
.lv-main { min-width: 0; }

.lv-stage {
  position: relative; aspect-ratio: 16 / 9; isolation: isolate; overflow: hidden; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, #141826 0%, var(--lv-stage) 62%);
  box-shadow: 0 0 0 1px var(--border), 0 0 0 5px var(--lv-rim), 0 30px 70px -28px rgba(0, 0, 0, .9);
  transition: box-shadow .4s;
}
.lv-studio.on-air .lv-stage { box-shadow: 0 0 0 1px rgba(255, 59, 78, .55), 0 0 0 5px var(--lv-air-soft), 0 30px 70px -28px rgba(0, 0, 0, .9); }
.lv-stage:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; box-shadow: none; }
.lv-screen { position: absolute; inset: 0; }
.lv-screen.watch video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

/* the host's layout previewed on the stage (js/live/layout-renderer.js draws inside): the viewers' picture, its shape */
.lv-preview { position: absolute; inset: 0; display: grid; place-items: center; }
.lv-preview-pic { position: relative; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.lv-preview[data-orientation="portrait"] .lv-preview-pic { aspect-ratio: 9 / 16; }
/* the player's bar lets the host reach the pictures under it; only its buttons take the pointer */
.lv-stage[data-mode="preview"] .lv-chrome { pointer-events: none; }
.lv-stage[data-mode="preview"] .lv-chrome :is(button, input, .lv-menu) { pointer-events: auto; }

/* the host arranging the preview (js/live/layout-editor.js) */
.lve .lvl-tile { cursor: grab; touch-action: none; user-select: none; outline: none; }
.lve .lvl-tile:focus-visible, .lve .lvl-tile.lve-selected { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px rgba(255, 255, 255, .25); }
.lve .lvl-tile.lve-dragging { z-index: 50; opacity: .85; cursor: grabbing; transition: none; }
.lve .lvl-tile.lve-target { box-shadow: 0 0 0 3px var(--lv-accent-2, #22d3ee); }
.lve-h { display: none; position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 4px; background: #fff;
  box-shadow: 0 0 0 2px var(--primary); }
.lve.lve-free .lvl-tile:is(:hover, .lve-selected, :focus-visible) .lve-h { display: block; }
.lve-h[data-h="nw"] { left: 4px; top: 4px; cursor: nwse-resize; }
.lve-h[data-h="ne"] { right: 4px; top: 4px; cursor: nesw-resize; }
.lve-h[data-h="sw"] { left: 4px; bottom: 4px; cursor: nesw-resize; }
.lve-h[data-h="se"] { right: 4px; bottom: 4px; cursor: nwse-resize; }
.lve-guides { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.lve-guide { position: absolute; background: #ff3bd4; }
.lve-guide.x { top: 0; bottom: 0; width: 1px; }
.lve-guide.y { left: 0; right: 0; height: 1px; }
@media (pointer: coarse) { .lve-h { width: 22px; height: 22px; } }

/* the people on camera: a bento grid, the host larger when the count is odd */
.lv-screen.room { display: grid; gap: 6px; padding: 6px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.lv-screen.room[data-n="2"] { grid-template-columns: 1fr 1fr; }
.lv-screen.room[data-n="3"], .lv-screen.room[data-n="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lv-screen.room[data-n="5"], .lv-screen.room[data-n="6"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.lv-screen.room[data-n="3"] .lv-tile:first-child, .lv-screen.room[data-n="5"] .lv-tile:first-child { grid-row: span 2; }
/* a shared screen takes the stage; the cameras line up beside it */
.lv-screen.room[data-focus] { grid-template-columns: minmax(0, 1fr) 21%; grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); }
.lv-screen.room[data-focus] .lv-tile { grid-row: auto; grid-column: 2; }
.lv-screen.room[data-focus] .lv-tile.lv-share { grid-column: 1; grid-row: 1 / -1; }
.lv-screen.room[data-focus] .lv-tile .avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.lv-tile { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; background: #121520; transition: box-shadow .2s; }
.lv-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.lv-tile.has-video video { opacity: 1; }
.lv-tile.mirror video { transform: scaleX(-1); }
.lv-tile.lv-share { background: #000; }
.lv-tile.lv-share video { object-fit: contain; }
.lv-tile-off { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, #1d2230, #10131b); }
.lv-tile.has-video .lv-tile-off { visibility: hidden; }
.lv-tile.speaking { box-shadow: inset 0 0 0 2px var(--lv-accent-2), 0 0 28px rgba(34, 211, 238, .3); }
.lv-tile-name {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px;
  background: var(--lv-glass); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600;
}
.lv-tile-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tile-name > svg { width: 14px; height: 14px; flex: none; color: var(--lv-accent-2); }
.lv-host-tag { font-size: 9px; letter-spacing: 1px; background: var(--lv-air); color: #fff; padding: 1px 5px; border-radius: 4px; }
.lv-mic { display: contents; }
.lv-mic svg { width: 14px; height: 14px; color: #ff7875; flex: none; }

.lv-overlay {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px;
  text-align: center; color: var(--text-2); background: rgba(8, 10, 14, .55);
}
.lv-overlay[hidden] { display: none; }
.lv-overlay p { margin: 0; font-weight: 600; }
.lv-overlay .spinner { margin: 0; }
.lv-overlay.corner { inset: 14px auto auto 50%; transform: translateX(-50%); background: none; }
.lv-unmute {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: #fff; color: #0b0d12; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .12s;
}
.lv-unmute:hover { transform: translateY(-1px); }
.lv-unmute svg { width: 18px; height: 18px; }

/* backstage, as viewers see it */
.lv-poster {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center;
  background: radial-gradient(55% 60% at 50% 38%, rgba(255, 181, 71, .10), transparent 70%);
}
.lv-poster-ring { position: relative; padding: 5px; border-radius: 50%; }
.lv-poster-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--lv-backstage), transparent 35%, transparent 65%, var(--lv-backstage));
  animation: spin 5s linear infinite; z-index: -1;
}
.lv-poster-ring .avatar { box-shadow: 0 0 0 4px var(--lv-stage); }
.lv-poster-kicker { margin: 12px 0 0; color: var(--lv-backstage); font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.lv-poster h2 { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.4px; }
.lv-poster-sub { margin: 0 0 8px; color: var(--muted); }

/* the badges over the stage: live, time, viewers */
.lv-hud { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; display: flex; pointer-events: none; }
.lv-hud-badges { display: flex; align-items: center; gap: 8px; }
.lv-hud-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; line-height: 16px;
  background: var(--lv-glass); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 700;
}
.lv-hud-chip svg { width: 14px; height: 14px; }
.lv-likes svg { color: var(--lv-air); }

/* the player's controls: a glass bar along the bottom, shown while the pointer moves */
.lv-chrome {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 34px 12px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.lv-chrome[hidden] { display: none; }
.lv-stage.awake .lv-chrome, .lv-stage:focus-within .lv-chrome, .lv-stage.behind .lv-chrome { opacity: 1; transform: none; }
.lv-chrome-side { display: flex; align-items: center; gap: 4px; }
.lv-ctl {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; justify-content: center;
  border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.lv-ctl:hover { background: rgba(255, 255, 255, .14); }
.lv-ctl svg { width: 20px; height: 20px; }
.lv-ctl[hidden], .lv-live-btn[hidden] { display: none; }
.lv-volume {
  width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; cursor: pointer;
  appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(to right, #fff var(--fill, 100%), rgba(255, 255, 255, .3) var(--fill, 100%));
}
.lv-volume::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.lv-volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.lv-chrome-side:hover .lv-volume, .lv-volume:focus { width: 84px; opacity: 1; margin-right: 6px; }
.lv-live-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 1px;
}
.lv-live-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--lv-air); }
.lv-stage.behind .lv-live-btn { background: rgba(255, 255, 255, .9); color: #0b0d12; }
.lv-stage.behind .lv-live-btn i { background: #8a8f9c; }
.lv-stage.behind .lv-live-btn::after { content: "'A DÖN"; }
.lv-menu {
  position: absolute; right: 12px; bottom: 56px; min-width: 200px; padding: 6px; border-radius: 12px;
  background: rgba(16, 18, 26, .94); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .6);
}
.lv-menu[hidden] { display: none; }
.lv-menu-title { margin: 4px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.lv-menu button {
  display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: #fff; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.lv-menu button:hover { background: rgba(255, 255, 255, .08); }
.lv-menu button[aria-checked="true"] { color: var(--lv-accent-2); }
.lv-menu button[aria-checked="true"]::before { content: "✓"; }
.lv-menu small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.lv-menu sup { font-size: 9px; font-weight: 800; color: var(--lv-air); }

/* emoji floating up the right edge of the stage */
.lv-floats { position: absolute; right: 18px; bottom: 56px; width: 120px; height: 70%; z-index: 3; pointer-events: none; }
.lv-float {
  position: absolute; bottom: 0; font-size: 30px; opacity: 0; will-change: transform, opacity;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
  animation: lv-rise 2.8s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes lv-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  12% { opacity: 1; transform: translate(calc(var(--dx) * .2), -36px) scale(1.15) rotate(calc(var(--rot) * .3)); }
  70% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), -280px) scale(.9) rotate(var(--rot)); }
}

/* ---------------------------------------------------------------- hype: many of one emoji at once */
.lv-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.lv-fx-pop {
  position: absolute; left: 50%; top: 50%; font-size: 150px; line-height: 1; opacity: 0;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .6)); animation: lv-pop 1.6s cubic-bezier(.2, .9, .3, 1.2) forwards;
}
@keyframes lv-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-20deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(6deg); }
  45% { transform: translate(-50%, -50%) scale(.95) rotate(-3deg); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1.4); }
}
.lv-fx-rain {
  position: absolute; bottom: -60px; opacity: 0; will-change: transform, opacity;
  animation: lv-rain 2.4s ease-out forwards;
}
@keyframes lv-rain {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sway), -115cqh) rotate(25deg) scale(1.1); }
}
.lv-stage { container-type: size; }
.lv-fx-confetti {
  position: absolute; left: 50%; top: 45%; width: 8px; height: 14px; border-radius: 2px; opacity: 0;
  animation: lv-confetti 2.2s cubic-bezier(.15, .8, .3, 1) forwards;
}
@keyframes lv-confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 160px)) rotate(var(--rot)); }
}
.lv-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0;
  box-shadow: inset 0 0 90px 10px var(--hype, transparent);
}
.lv-stage.hype-love { --hype: rgba(255, 64, 129, .75); }
.lv-stage.hype-laugh, .lv-stage.hype-clap { --hype: rgba(255, 200, 60, .7); }
.lv-stage.hype-fire { --hype: rgba(255, 110, 20, .85); }
.lv-stage.hype-wow { --hype: rgba(34, 211, 238, .7); }
.lv-stage.hype-party { --hype: rgba(139, 92, 246, .8); }
.lv-stage[class*="hype-"]::after { animation: lv-glow 3.2s ease-out forwards; }
@keyframes lv-glow { 0% { opacity: 0; } 12% { opacity: 1; } 60% { opacity: .8; } 100% { opacity: 0; } }
.lv-stage.hype-fire::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(255, 90, 0, .55), rgba(255, 170, 0, .15) 55%, transparent);
  animation: lv-glow 3.2s ease-out forwards;
}
.lv-hype-banner {
  position: absolute; top: 14px; left: 50%; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 10px; border-radius: 999px; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, var(--lv-accent), #d946ef); box-shadow: 0 12px 34px -8px rgba(139, 92, 246, .9);
  animation: lv-banner 3.2s cubic-bezier(.2, .9, .3, 1.1) forwards;
}
.lv-hype-banner[hidden] { display: none; }
.lv-hype-banner.love { background: linear-gradient(90deg, #ff4d8d, #ff7a59); box-shadow: 0 12px 34px -8px rgba(255, 77, 141, .9); }
.lv-hype-banner.fire { background: linear-gradient(90deg, #ff5a1f, #ffb547); box-shadow: 0 12px 34px -8px rgba(255, 90, 31, .9); }
.lv-hype-banner.laugh, .lv-hype-banner.clap { background: linear-gradient(90deg, #f59e0b, #facc15); color: #1a1300; }
.lv-hype-banner.wow { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.lv-hype-banner b { font-size: 14px; font-weight: 900; letter-spacing: 1.6px; }
.lv-hype-emoji { font-size: 26px; line-height: 1; }
.lv-hype-count { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
@keyframes lv-banner {
  0% { opacity: 0; transform: translate(-50%, -30px) scale(.7); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  20% { transform: translate(-50%, 0) scale(1); }
  85% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(.96); }
}

/* ---------------------------------------------------------------- the dock: controls and reactions */
.lv-dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* the host's layout panel under the dock */
.lv-layout { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.lv-layout-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lv-layout-head b { display: inline-flex; align-items: center; gap: 6px; }
.lv-layout-head svg { width: 16px; height: 16px; }
.lv-layout .lv-seg { flex-wrap: wrap; }
.lv-layout-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.lv-layout-modes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-layout-modes .btn svg { width: 15px; height: 15px; }
.lv-layout-row { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 4px; border-radius: 10px; background: var(--bg); cursor: grab; }
.lv-layout-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.lv-layout-row.dragging { opacity: .45; }
.lv-layout-row.drop { box-shadow: inset 0 0 0 2px var(--primary); }
.lv-layout-grip { display: inline-flex; color: var(--text-muted, #8a8f9c); padding: 0 2px; }
.lv-layout-grip svg { width: 16px; height: 16px; }
.lv-layout-row.off .lv-layout-name { opacity: .5; text-decoration: line-through; }
.lv-layout-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lv-layout-row .icon-btn[aria-pressed="true"] { color: var(--lv-accent-2); }
.lv-layout-row .icon-btn:disabled { opacity: .3; cursor: default; }
.lv-layout-row .icon-btn svg { width: 18px; height: 18px; }
.lv-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-dock-group {
  display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.lv-round {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; flex: none;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); transition: background .15s, transform .1s, color .15s;
}
.lv-dock-group .lv-round { border-color: transparent; }
.lv-round:hover { background: var(--surface-hover); }
.lv-round:active { transform: scale(.94); }
.lv-round.off { background: var(--danger-soft); border-color: rgba(245, 34, 45, .35); color: #ff7875; }
.lv-round.sharing { background: var(--lv-accent); color: #fff; box-shadow: 0 0 0 4px var(--lv-accent-soft); }
.lv-round svg { width: 20px; height: 20px; }
.lv-golive { background: var(--lv-air); color: #fff; padding: 12px 22px; font-weight: 800; box-shadow: 0 10px 30px -10px rgba(255, 59, 78, .85); }
.lv-golive:hover:not(:disabled) { background: #ff5566; }
.lv-golive:active:not(:disabled) { transform: scale(.97); }
.lv-golive i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lv-pulse 1.4s ease-in-out infinite; }
.lv-end { background: transparent; color: #ff7875; box-shadow: inset 0 0 0 1px rgba(245, 34, 45, .45); }
.lv-end:hover { background: var(--danger-soft); }
.lv-join {
  background: linear-gradient(90deg, var(--lv-accent), #6366f1); color: #fff; font-weight: 800; padding: 11px 18px;
  box-shadow: 0 10px 28px -12px rgba(139, 92, 246, .95);
}
.lv-join:hover:not(:disabled) { filter: brightness(1.1); }
.lv-join svg { width: 18px; height: 18px; }
.lv-ask { font-size: 14px; font-weight: 600; color: var(--text-2); }
.lv-ask.muted { font-size: 13px; font-weight: 500; color: var(--muted); }

.lv-react-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.lv-react { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.lv-react button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; cursor: pointer;
  transition: transform .12s, background .12s;
}
.lv-react button:hover { background: var(--surface-hover); transform: translateY(-2px) scale(1.12); }
.lv-react button.tapped { animation: lv-tap .35s ease-out; }
@keyframes lv-tap { 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
.lv-hype-meter { height: 4px; margin: 0 18px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.lv-hype-meter i {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--level, 0));
  background: linear-gradient(90deg, var(--lv-accent-2), var(--lv-accent), #ff3b8b); transition: transform .4s ease-out;
}

/* ---------------------------------------------------------------- under the dock: the stream's info */
.lv-info { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.lv-back { flex: none; }
.lv-info-avatar { position: relative; flex: none; padding: 3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--border-strong); }
.lv-info-avatar.live { box-shadow: 0 0 0 2px var(--lv-air); }
.lv-info-avatar b {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 0 5px; border-radius: 4px;
  background: var(--lv-air); color: #fff; font-size: 9px; letter-spacing: .8px; line-height: 14px;
}
.lv-info-main { flex: 1; min-width: 0; }
.lv-info-main h1 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.2px; overflow-wrap: anywhere; }
.lv-info-main p { margin: 2px 0 6px; font-size: 14px; color: var(--text-2); }
.lv-info-main .handle { color: var(--muted); font-size: 13px; }
.lv-info-main .lv-info-desc {
  margin: 0 0 8px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.lv-info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600;
}
.lv-tag svg { width: 13px; height: 13px; }
.lv-tag.backstage { background: var(--lv-backstage-soft); color: var(--lv-backstage); }
.lv-tag.publish { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.lv-tag-btn { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: filter var(--lv-fast, 0.15s) ease; }
.lv-tag-btn:hover { filter: brightness(1.2); }
.lv-tag-btn:focus-visible { outline: 2px solid var(--lv-accent); outline-offset: 2px; }
.lv-info-stats { flex: none; display: flex; gap: 18px; }
.lv-stat { display: flex; flex-direction: column; align-items: flex-end; }
.lv-big { font-size: 22px; font-weight: 800; color: var(--lv-air); line-height: 1.1; }
.lv-studio:not(.on-air) .lv-big { color: var(--text); }
.lv-small { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- the side: chat and people */
.lv-side {
  position: sticky; top: 16px; height: calc(100vh - 32px); min-height: 460px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.lv-tabs { display: flex; border-bottom: 1px solid var(--border); flex: none; }
.lv-tabs button {
  position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
}
.lv-tabs button:hover { color: var(--text-2); }
.lv-tabs button.active { color: var(--text); }
.lv-tabs button.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--lv-accent); }
.lv-badge { font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 999px; background: var(--lv-air); color: #fff; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lv-accent); }
.lv-badge[hidden], .lv-dot[hidden] { display: none; }
.lv-pane { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lv-pane[hidden] { display: none; }
.lv-pane[data-pane="people"] { overflow-y: auto; }

.lv-chat-list { flex: 1; overflow-y: auto; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lv-chat-welcome {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--lv-accent-soft); color: var(--text-2); font-size: 13px;
}
.lv-chat-welcome svg { width: 18px; height: 18px; flex: none; color: var(--lv-accent); }
.lv-chat-welcome p { margin: 0; }
.lv-chat-empty { margin: auto 0; text-align: center; color: var(--muted); font-size: 14px; }
.lv-chat-empty[hidden] { display: none; }
.lv-msg { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 8px; }
.lv-msg:hover { background: rgba(255, 255, 255, .03); }
.lv-msg .avatar.sm { width: 26px; height: 26px; font-size: 11px; border: 0; flex: none; }
.lv-msg-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.lv-msg-who { margin-right: 6px; }
.lv-msg-who b { font-weight: 700; }
.lv-msg-text { color: var(--text-2); }
.lv-msg.host { background: rgba(255, 59, 78, .07); }
.lv-role {
  display: inline-block; margin-right: 5px; vertical-align: 1px; padding: 0 5px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #fff; background: var(--surface-hover); line-height: 15px;
}
.lv-role.host { background: var(--lv-air); }
.lv-role.guest { background: var(--lv-accent); }
.lv-msg-del { opacity: 0; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.lv-msg:hover .lv-msg-del, .lv-msg-del:focus-visible { opacity: 1; }
.lv-msg-del:hover { color: #ff7875; }
.lv-chat-more {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 2; padding: 6px 14px; border: 0; border-radius: 999px;
  background: var(--lv-accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.lv-chat-more[hidden] { display: none; }
.lv-chat-note { margin: 0; padding: 0 12px 6px; font-size: 12px; color: var(--muted); }
.lv-emoji-row { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 10px; border-top: 1px solid var(--border); }
.lv-emoji-row[hidden] { display: none; }
.lv-emoji-row button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 19px; cursor: pointer; }
.lv-emoji-row button:hover { background: var(--surface-hover); transform: scale(1.1); }
.lv-chat-form { display: flex; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--border); flex: none; }
.lv-chat-input { position: relative; flex: 1; min-width: 0; }
.lv-chat-input .input { width: 100%; padding: 9px 40px 9px 14px; border-radius: 999px; font-size: 14px; }
.lv-chat-input .input:disabled { opacity: .55; }
.lv-chat-input .lv-chat-tool { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.lv-chat-tool {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.lv-chat-tool:hover { background: var(--surface-hover); color: var(--text); }
.lv-chat-tool svg { width: 19px; height: 19px; }

/* the host's poll, pinned over the chat */
.lv-poll-slot:empty { display: none; }
.lv-poll-slot { padding: 10px 10px 0; flex: none; }
.lv-poll {
  padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(139, 92, 246, .2), rgba(34, 211, 238, .08));
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .4);
}
.lv-poll.fresh { animation: lv-poll-in .35s cubic-bezier(.2, .9, .3, 1.2); }
.lv-poll.over { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
@keyframes lv-poll-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.lv-poll header { display: flex; align-items: center; gap: 8px; }
.lv-poll-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #c4b5fd; }
.lv-poll.over .lv-poll-kicker { color: var(--muted); }
.lv-poll-kicker svg { width: 14px; height: 14px; }
.lv-poll-clock { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-2); }
.lv-poll-x { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.lv-poll-x:hover { background: var(--surface-hover); }
.lv-poll-x svg { width: 14px; height: 14px; }
.lv-poll h4 { margin: 6px 0 10px; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.lv-poll-answers { display: grid; gap: 6px; }
.lv-poll-opt {
  padding: 9px 12px; border: 0; border-radius: 10px; text-align: left; cursor: pointer; font: inherit; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .15s, transform .1s;
}
.lv-poll-opt:hover:not(:disabled) { background: rgba(139, 92, 246, .28); }
.lv-poll-opt:active:not(:disabled) { transform: scale(.98); }
.lv-poll-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px;
  overflow: hidden; background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600;
}
.lv-poll-bar::before {
  content: ""; position: absolute; inset: 0; z-index: 0; width: var(--pct); border-radius: inherit;
  background: rgba(139, 92, 246, .35); transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.lv-poll-bar.mine::before { background: rgba(34, 211, 238, .35); }
.lv-poll-bar.win::before { background: linear-gradient(90deg, rgba(139, 92, 246, .6), rgba(217, 70, 239, .5)); }
.lv-poll-bar > * { position: relative; z-index: 1; }
.lv-poll-bar em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.lv-poll-bar.win b::after { content: " 🏆"; }
.lv-poll footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); min-height: 30px; }

.lv-people section { padding: 14px 14px 4px; }
.lv-people section + section { border-top: 1px solid var(--border); }
.lv-people h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.lv-people > .lv-hint { padding: 0 14px; }
.lv-count { font-variant-numeric: tabular-nums; color: var(--text-2); }
.lv-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lv-person .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-person .grow b, .lv-person .handle { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-person .handle { font-size: 12px; }
.lv-person-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.lv-person-acts .icon-btn { width: 32px; height: 32px; color: var(--text-2); }
.lv-person-acts .icon-btn svg { width: 18px; height: 18px; }
.lv-invite { display: grid; gap: 6px; padding: 14px; border-top: 1px solid var(--border); }
.lv-invite label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.lv-invite-row { display: flex; gap: 8px; }
.lv-invite-row .input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 14px; }
.lv-invite .lv-hint { margin: 0; }

/* ---------------------------------------------------------------- the camera and microphone check */
.modal.lv-check-modal { width: min(820px, calc(100% - 32px)); }
.lv-check-lead { margin: 0; color: var(--muted); font-size: 14px; }
.lv-check { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lv-check-preview {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: radial-gradient(70% 70% at 50% 40%, #1d2230, #0c0e14);
  box-shadow: inset 0 0 0 1px var(--border);
}
.lv-check-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.lv-check-off { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 6px; color: var(--muted); }
.lv-check-off svg { width: 34px; height: 34px; }
.lv-check-off p { margin: 0; font-weight: 600; }
.lv-check-preview.cam-off video { display: none; }
.lv-check-preview.cam-off .lv-check-off { display: grid; }
.lv-check-toggles { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 10px; }
.lv-check-toggles .lv-round { background: var(--lv-glass); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .15); }
.lv-check-toggles .lv-round.off { background: rgba(245, 34, 45, .75); color: #fff; }
.lv-meter { position: absolute; left: 12px; top: 12px; display: flex; align-items: flex-end; gap: 3px; height: 22px; padding: 4px 6px; border-radius: 8px; background: var(--lv-glass); }
.lv-meter i { width: 4px; height: 40%; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: background .08s, height .08s; }
.lv-meter i:nth-child(3n + 2) { height: 70%; }
.lv-meter i:nth-child(3n) { height: 100%; }
.lv-meter i.on { background: #4ade80; }
.lv-meter i.on:nth-child(n + 10) { background: #facc15; }
.lv-meter i.on:nth-child(n + 13) { background: #f87171; }
.lv-check-form { display: grid; gap: 12px; }
.lv-field { display: grid; gap: 6px; }
.lv-field > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.lv-field > span svg { width: 15px; height: 15px; }
.lv-field select.input { padding: 8px 10px; font-size: 14px; }
.lv-quality { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lv-quality button {
  display: grid; gap: 1px; padding: 8px 6px; border: 0; border-radius: 10px; cursor: pointer; text-align: center;
  background: var(--surface-2); color: var(--text-2); font: inherit; box-shadow: inset 0 0 0 1px var(--border);
}
.lv-quality button b { font-size: 14px; }
.lv-quality button small { font-size: 10px; color: var(--muted); }
.lv-quality button.active { background: var(--lv-accent-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--lv-accent); }
.lv-check-noise { padding: 0; }
.lv-check-tone { justify-self: start; }
.lv-check-tone svg { width: 16px; height: 16px; }
.lv-check-error { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--danger-soft); color: #ff9c9c; font-size: 13px; }
.lv-check-error[hidden] { display: none; }
.lv-check-go { margin-top: 2px; }

/* the poll dialog */
.lv-poll-rows { display: grid; gap: 8px; }
.lv-poll-row { display: flex; align-items: center; gap: 6px; }
.lv-poll-row .input { flex: 1; min-width: 0; }
.lv-poll-row .icon-btn[hidden] { display: none; }
.lv-poll-add { justify-self: start; }
.lv-poll-add[hidden] { display: none; }

/* ---------------------------------------------------------------- #/live: the open streams */
.lv-list .grow { flex: 1; }
.lv-list-body { display: grid; gap: 16px; padding: 16px; }
.lv-card {
  display: grid; overflow: hidden; color: inherit; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lv-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .75); }
.lv-card.featured { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.lv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lv-cards:empty { display: none; }
.lv-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; gap: 4px; padding: 30px 12px 12px;
  background: radial-gradient(120% 90% at 50% 0%, #1a1f2c, var(--lv-stage));
}
.lv-thumb[data-n="2"], .lv-thumb[data-n="3"], .lv-thumb[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.lv-thumb[data-n="5"], .lv-thumb[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.lv-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-thumb-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; }
.lv-thumb-top .lv-viewers { padding: 2px 8px; border-radius: 6px; background: rgba(10, 12, 18, .6); color: #fff; }
.lv-thumb-stats { display: inline-flex; gap: 6px; }
.lv-card-meta { min-width: 0; padding: 12px 14px 14px; }
.lv-card.featured .lv-card-meta { display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; }
.lv-card-meta h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.lv-card.featured .lv-card-meta h3 { font-size: 24px; letter-spacing: -.3px; }
.lv-card-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.lv-empty-mark { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--lv-air-soft); color: var(--lv-air); }
.lv-empty-mark svg { width: 30px; height: 30px; }
.lv-empty p { margin: 0 0 18px; }

.lv-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lv-seg button {
  min-width: 40px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2);
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.lv-seg button:hover { background: var(--surface-hover); }
.lv-seg button.active { background: var(--primary); color: #fff; }
.modal .lv-hint { margin: 0; }
.lv-optional { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }

/* the create dialog's cover: a drop-zone style picker, the picture itself once uploaded */
.lv-cover-field { display: flex; align-items: flex-start; gap: 8px; }
.lv-cover-field .btn[hidden] { display: none; }  /* .btn's display would show it */
.lv-cover-pick {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center; height: 130px;
  overflow: hidden; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.lv-cover-pick:hover { border-color: var(--primary); }
.lv-cover-pick:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.lv-cover-pick.has { border-style: solid; }
.lv-cover-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lv-cover-view { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; text-align: center; color: var(--muted); font-size: 12px; }
.lv-cover-view svg { width: 22px; height: 22px; }
.lv-cover-view b { color: var(--text); font-size: 14px; }
.lv-cover-pick.has .lv-cover-view { width: 100%; height: 100%; padding: 0; }
.lv-cover-view img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- the host's replays */
.lv-replay-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lv-rec-list { display: grid; gap: 8px; }
.lv-rec {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.lv-rec:hover { border-color: var(--lv-accent); transform: translateY(-1px); }
.lv-rec-mark { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--lv-accent-soft); color: var(--lv-accent); }
.lv-rec-mark svg { width: 18px; height: 18px; }
.lv-rec-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-rec-main b { overflow-wrap: anywhere; }
.lv-rec-main small { color: var(--muted); }
.lv-replay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.lv-replay-main { position: relative; display: grid; gap: 10px; }
.lv-replay-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--lv-stage); }
.lv-replay-reactions { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.lv-replay-react { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.lv-replay-chat { display: flex; flex-direction: column; height: min(70vh, 560px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lv-replay-chat h3 { margin: 0; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid var(--border); }
.lv-replay-at { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
@media (max-width: 900px) {
  .lv-replay { grid-template-columns: 1fr; }
  .lv-replay-chat { height: 360px; }
}

/* ---------------------------------------------------------------- a stream's audience numbers (stats.js) */
.lv-stats { display: grid; gap: 16px; min-width: 0; margin-top: 6px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lv-stats h3 { margin: 0; font-size: 15px; }
.lv-stats .lv-hint { margin: 0; color: var(--muted); }
.lv-stat-tiles { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.lv-stat-tile { display: grid; gap: 3px; }
.lv-stat-tile span { color: var(--text-2); font-size: 13px; }
.lv-stat-tile b { font-size: 34px; font-weight: 800; line-height: 1.05; }
.lv-stat-tile small { color: var(--muted); font-size: 12px; }
.lv-chart-box { display: grid; gap: 8px; min-width: 0; margin: 0; }
.lv-chart-box figcaption { font-size: 13px; font-weight: 600; color: var(--text-2); }
.lv-chart-box figcaption small { margin-left: 4px; font-weight: 400; color: var(--muted); }
.lv-chart { position: relative; height: 220px; touch-action: pan-y; }
.lv-chart svg { display: block; width: 100%; height: 100%; border-radius: 4px; }
.lv-chart-grid { stroke: var(--border); stroke-width: 1; }
.lv-chart-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lv-chart-line { fill: none; stroke: var(--lv-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-chart-point { fill: var(--lv-accent); stroke: var(--surface); stroke-width: 2; }
.lv-chart-peak { fill: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-chart-cross { stroke: var(--border-strong); stroke-width: 1; }
.lv-chart-tip {
  position: absolute; z-index: 1; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--text-2); font-size: 12px; white-space: nowrap; pointer-events: none;
  transform: translate(12px, -50%);
}
.lv-chart-tip.flip { transform: translate(calc(-100% - 12px), -50%); }
.lv-chart-tip b { color: var(--text); font-size: 14px; }
.lv-stats-table summary { width: fit-content; color: var(--text-2); font-size: 13px; cursor: pointer; }
.lv-stats-table-scroll { max-height: 240px; margin-top: 8px; overflow-y: auto; }
.lv-stats-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lv-stats-table th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 500; text-align: left; }
.lv-stats-table th, .lv-stats-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); }
.lv-stats-table th:last-child, .lv-stats-table td:last-child { text-align: right; }

/* ---------------------------------------------------------------- no motion for those who asked */
@media (prefers-reduced-motion: reduce) {
  .lv-pill.live i, .lv-golive i, .lv-poster-ring::before { animation: none; }
  .lv-hype-banner { animation: none; transform: translateX(-50%); }
  .lv-react button.tapped, .lv-poll { animation: none; }
}

/* ---------------------------------------------------------------- smaller screens: one column */
@media (max-width: 1100px) {
  .lv-studio { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .lv-side { position: static; height: 540px; }
}
@media (max-width: 900px) {
  .lv-card.featured { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .lv-check { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.live-mode .mobile-fab { display: none !important; }  /* it would sit on the chat's send button */
  .lv-studio { gap: 12px; padding: 0 0 16px; }
  .lv-stage { border-radius: 0; }
  .lv-stage .lv-chrome { opacity: 1; transform: none; }  /* no hover on touch screens */
  .lv-dock { padding: 0 12px; }
  .lv-react-wrap { width: 100%; }
  .lv-react { justify-content: space-between; }
  .lv-info { margin: 4px 12px 0; padding: 12px; gap: 10px; }
  .lv-info .avatar.lg { width: 44px; height: 44px; }
  .lv-info-main h1 { font-size: 16px; }
  .lv-big { font-size: 18px; }
  .lv-info-stats { gap: 12px; }
  .lv-side { margin: 0 12px; height: 480px; }
  .lv-fx-pop { font-size: 96px; }
  .lv-screen.room[data-n="5"], .lv-screen.room[data-n="6"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .lv-screen.room[data-n="5"] .lv-tile:first-child { grid-row: auto; grid-column: span 2; }
  .lv-screen.room[data-focus] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); grid-auto-flow: column; }
  .lv-screen.room[data-focus] .lv-tile { grid-column: auto; grid-row: 2; }
  .lv-screen.room[data-focus] .lv-tile.lv-share { grid-column: 1 / -1; grid-row: 1; }
}
