:root {
  --bg: #000; --panel: #121212; --panel2: #1e1e1e; --line: #2a2a2a;
  --text: #fff; --muted: #9a9a9a; --accent: #ff4d6d; --grad: linear-gradient(135deg, #8b5cf6, #ff7a1a);
  --like: #ff3b5c; --fav: #ffc107; --tab-h: 56px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0a0a0a; color: var(--text); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #555; }
svg { width: 1em; height: 1em; fill: currentColor; display: block; }
[hidden] { display: none !important; }

#app { position: relative; height: 100%; max-width: 480px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 520px) { #app { border-left: 1px solid #222; border-right: 1px solid #222; } }
#view { flex: 1; position: relative; overflow: hidden; }
.page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 20px; }

/* ---- tabbar ---- */
#tabbar { height: var(--tab-h); display: flex; align-items: center; justify-content: space-around; background: #000; border-top: 1px solid #1a1a1a; flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom); }
#tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #bbb; min-width: 56px; }
#tabbar a i svg { width: 24px; height: 24px; }
#tabbar a.active { color: #fff; font-weight: 600; }
#tabbar .plus b { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 9px; background: #fff; color: #000; font-size: 24px; font-weight: 700; box-shadow: -3px 0 0 #8b5cf6, 3px 0 0 #ff7a1a; }
.badge { position: absolute; top: -4px; right: 8px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 9px; padding: 0 4px; }
body.fullscreen #tabbar { display: none; }

/* ---- feed ---- */
.feed { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.stage { position: absolute; inset: 0; display: flex; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage.duet video { width: 50%; object-fit: cover; }
.tap { position: absolute; inset: 0; z-index: 1; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 70px; height: 70px; opacity: .55; pointer-events: none; }
.heart-pop { position: absolute; z-index: 5; width: 90px; height: 90px; color: var(--like); pointer-events: none; transform: translate(-50%, -50%) rotate(var(--r)); animation: pop .9s ease-out forwards; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(var(--r)); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(var(--r)); } 30% { transform: translate(-50%, -50%) scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: translate(-50%, -160%) scale(1.5) rotate(var(--r)); } }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; z-index: 1; }

.rail { position: absolute; right: 8px; bottom: 90px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail .act { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.rail .act svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); transition: transform .15s; }
.rail .act:active svg { transform: scale(.85); }
.rail .act.on.like svg { color: var(--like); animation: bump .35s; }
.rail .act.on.fav svg { color: var(--fav); animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.3); } }
.av-wrap { position: relative; margin-bottom: 8px; }
.av-wrap img, .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #333; display: block; }
.follow-plus { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; line-height: 20px; display: grid; place-items: center; }
.follow-plus.done { background: #fff; color: var(--accent); }
.disc { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(#444 30%, #111 32%, #222 60%, #111 62%); display: grid; place-items: center; animation: spin 5s linear infinite; }
.disc img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.slide.paused .disc { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.info { position: absolute; left: 12px; right: 76px; bottom: 16px; z-index: 3; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.info .uname { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 4px; }
.info .date { color: #ddd; font-size: 13px; font-weight: 400; }
.cap { margin: 6px 0 8px; word-wrap: break-word; max-height: 3.9em; overflow: hidden; cursor: pointer; }
.cap.open { max-height: 40vh; overflow-y: auto; }
.cap a, .rich a { font-weight: 700; }
.music { display: flex; align-items: center; gap: 6px; font-size: 14px; overflow: hidden; white-space: nowrap; }
.music .ticker { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.music .ticker span { display: inline-block; padding-left: 0; animation: tick 9s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.duet-tag { display: inline-block; font-size: 12px; background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 6px; margin-bottom: 4px; }
.seek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; padding: 0; border: 0; border-radius: 0; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.2); cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.seek::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; }
.seek:hover, .seek:active { height: 8px; }
.slide.clear .rail, .slide.clear .info, .slide.clear .shade { display: none; }
.speed-tag { position: absolute; top: 60px; left: 12px; z-index: 3; background: rgba(0,0,0,.5); border-radius: 4px; padding: 2px 8px; font-size: 13px; }

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; height: 54px; display: flex; align-items: center; justify-content: center; gap: 22px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.topbar .tab { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.65); position: relative; padding: 6px 0; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.topbar .tab.active { color: #fff; }
.topbar .tab.active::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 2px; background: #fff; }
.topbar .ic { position: absolute; top: 14px; font-size: 26px; }
.topbar .ic.right { right: 14px; } .topbar .ic.left { left: 14px; }
.mute-btn { position: absolute; top: 62px; right: 12px; z-index: 10; background: rgba(0,0,0,.45); border-radius: 20px; padding: 7px 12px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.mute-btn svg { width: 18px; height: 18px; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 12px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: #444; }
.empty h3 { color: #fff; margin: 0; }

/* ---- algemene knoppen / lijsten ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
.btn.grey { background: #2f2f2f; }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid #1a1a1a; }
.head h2 { flex: 1; text-align: center; font-size: 17px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head .ic { font-size: 24px; width: 32px; display: grid; place-items: center; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.row .av { width: 52px; height: 52px; border: 0; flex-shrink: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t2 { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 3px; background: #222; flex-shrink: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.segs { display: flex; border-bottom: 1px solid #1a1a1a; position: sticky; top: 52px; background: var(--bg); z-index: 4; }
.segs button { flex: 1; padding: 12px 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; display: flex; justify-content: center; }
.segs button.active { color: #fff; border-color: #fff; }
.segs button svg { width: 20px; height: 20px; }
.chips { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.chip { flex-shrink: 0; padding: 6px 14px; border-radius: 16px; background: var(--panel2); font-size: 14px; }
.chip.active { background: #fff; color: #000; }
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #20d5ec; color: #fff; font-size: 10px; }

/* ---- grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cell { position: relative; aspect-ratio: 3/4; background: #1a1a1a; overflow: hidden; cursor: pointer; }
.cell img, .cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell .views { position: absolute; left: 6px; bottom: 5px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 3px; text-shadow: 0 1px 2px #000; }
.cell .views svg { width: 14px; height: 14px; }
.cell .pin { position: absolute; left: 5px; top: 5px; background: var(--accent); font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 3px; }
.cell .lock { position: absolute; right: 5px; top: 5px; font-size: 14px; }
.grid-empty { padding: 60px 30px; text-align: center; color: var(--muted); }

/* ---- profiel ---- */
.profile-top { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 10px; gap: 10px; text-align: center; }
.profile-top .big-av { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #333; }
.profile-top .handle { font-weight: 700; font-size: 17px; display: flex; gap: 5px; align-items: center; }
.stats { display: flex; gap: 0; }
.stats a { display: flex; flex-direction: column; align-items: center; min-width: 88px; font-size: 13px; color: var(--muted); }
.stats b { color: #fff; font-size: 17px; }
.stats a + a { border-left: 1px solid #333; }
.pbtns { display: flex; gap: 6px; }
.pbtns .btn { padding: 10px 26px; }
.bio { white-space: pre-wrap; font-size: 14px; max-width: 320px; }

/* ---- sheets ---- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.4); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 480px; max-height: 80%; background: var(--panel); border-radius: 14px 14px 0 0; display: flex; flex-direction: column; animation: up .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
.sheet.tall { height: 72%; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .sh-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px; font-weight: 700; font-size: 14px; }
.sheet .sh-head .x { position: absolute; right: 14px; font-size: 22px; }
.sheet .sh-body { overflow-y: auto; flex: 1; }
.sheet .sh-foot { border-top: 1px solid var(--line); padding: 8px 12px; }

.comment { display: flex; gap: 10px; padding: 8px 16px; }
.comment .av { width: 34px; height: 34px; border: 0; }
.comment.reply { padding-left: 60px; }
.comment.reply .av { width: 24px; height: 24px; }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.comment .who em { font-style: normal; color: var(--accent); font-size: 12px; }
.comment .txt { margin: 2px 0 4px; word-wrap: break-word; }
.comment .meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.comment .meta .creator-like { color: var(--muted); display: flex; gap: 4px; align-items: center; }
.comment .clike { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 12px; }
.comment .clike svg { width: 18px; height: 18px; }
.comment .clike.on { color: var(--like); }
.more-replies { padding: 2px 16px 8px 60px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cinput { display: flex; gap: 8px; align-items: center; }
.cinput input { border-radius: 20px; background: var(--panel2); border: 0; }
.cinput .send { color: var(--accent); font-weight: 700; padding: 0 6px; }
.emoji-bar { display: flex; justify-content: space-around; font-size: 22px; padding: 4px 0 8px; }
.reply-to { font-size: 12px; color: var(--muted); padding: 0 4px 6px; display: flex; justify-content: space-between; }

.share-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 16px 14px; scrollbar-width: none; }
.share-row .it { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex-shrink: 0; font-size: 11px; text-align: center; color: #ccc; }
.share-row .it .circ { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #2a2a2a; font-size: 24px; overflow: hidden; }
.share-row .it .circ img { width: 100%; height: 100%; object-fit: cover; }
.share-row .it.sent .circ { outline: 2px solid var(--accent); }
.share-sep { height: 1px; background: var(--line); margin: 0 16px; }
.speed-pick { display: flex; gap: 8px; padding: 6px 16px 14px; }
.speed-pick button { flex: 1; padding: 8px 0; border-radius: 6px; background: #2a2a2a; font-weight: 600; }
.speed-pick button.active { background: #fff; color: #000; }

/* ---- login ---- */
.auth { padding: 20px 24px 30px; display: flex; flex-direction: column; gap: 12px; }
.auth h3 { margin: 0; text-align: center; font-size: 22px; }
.auth p { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth .err { color: var(--accent); font-size: 14px; text-align: center; min-height: 18px; }
.auth .switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth .switch button { color: var(--accent); font-weight: 600; }
.logo-big { display: flex; justify-content: center; }
.logo-big img { width: 64px; height: 64px; }

/* ---- upload / camera ---- */
.cam { position: absolute; inset: 0; background: #000; }
.cam-stage { position: absolute; inset: 0; display: flex; }
.cam-stage video { width: 100%; height: 100%; object-fit: cover; }
.cam-stage.duet video { width: 50%; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.cam-top .ic { font-size: 28px; }
.sound-pill { background: rgba(0,0,0,.45); border-radius: 16px; padding: 6px 12px; font-size: 13px; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cam-side { position: absolute; right: 10px; top: 70px; z-index: 3; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cam-side button { display: flex; flex-direction: column; align-items: center; font-size: 11px; gap: 3px; text-shadow: 0 1px 2px #000; }
.cam-side svg { width: 28px; height: 28px; }
.cam-side button.on { color: #ffd54a; }
.cam-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 10px 0 20px; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.durs { display: flex; justify-content: center; gap: 18px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.durs button { color: rgba(255,255,255,.6); }
.durs button.active { color: #fff; }
.cam-ctrl { display: flex; align-items: center; justify-content: space-around; }
.rec { width: 78px; height: 78px; border-radius: 50%; border: 5px solid rgba(255,255,255,.5); display: grid; place-items: center; position: relative; }
.rec::after { content: ""; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); transition: all .2s; }
.rec.on::after { width: 28px; height: 28px; border-radius: 6px; }
.gal, .done-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; width: 60px; }
.gal .box { width: 38px; height: 38px; border-radius: 8px; border: 2px solid #fff; display: grid; place-items: center; background: var(--grad); }
.done-btn .box { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.rec-progress { position: absolute; top: 0; left: 0; height: 5px; z-index: 4; background: var(--accent); transition: width .1s linear; }
.rec-track { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: rgba(255,255,255,.2); z-index: 4; }
.countdown { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; font-size: 120px; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.6); pointer-events: none; }
.filters { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.filters button { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.filters .sw { width: 48px; height: 48px; border-radius: 8px; background: url(/logo.svg) center/cover; border: 2px solid transparent; }
.filters button.active .sw { border-color: #fff; }
.cam-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; color: var(--muted); }

.edit { padding: 0 0 30px; }
.edit .preview-wrap { display: flex; gap: 14px; padding: 16px; }
.edit .preview-wrap textarea { flex: 1; height: 150px; resize: none; background: transparent; border: 0; padding: 0; }
.edit .pv { width: 110px; height: 150px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #111; position: relative; }
.edit .pv video { width: 100%; height: 100%; object-fit: cover; }
.edit .quick { display: flex; gap: 8px; padding: 0 16px 12px; flex-wrap: wrap; }
.edit .quick button { background: var(--panel2); padding: 6px 12px; border-radius: 4px; font-size: 13px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid #1a1a1a; }
.opt > label:not(.switch-t) { flex: 1; }
.opt select, .opt input[type=text] { width: auto; max-width: 55%; }
.switch-t { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch-t input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-t span { position: absolute; inset: 0; background: #444; border-radius: 13px; transition: .2s; }
.switch-t span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch-t input:checked + span { background: #22c55e; }
.switch-t input:checked + span::after { transform: translateX(18px); }
.post-bar { display: flex; gap: 10px; padding: 16px; }
.post-bar .btn { flex: 1; padding: 13px; }
.progress { height: 4px; background: #333; border-radius: 2px; margin: 0 16px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* ---- zoeken ---- */
.search-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.search-bar input { border-radius: 6px; background: var(--panel2); border: 0; padding-left: 36px; }
.search-bar .sw { position: relative; flex: 1; }
.search-bar .sw svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.search-bar .go { color: var(--accent); font-weight: 700; }
.sec-title { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-weight: 700; }
.sec-title small { color: var(--muted); font-weight: 400; }
.tag-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.hrow { display: flex; gap: 3px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.hrow .cell { width: 110px; flex-shrink: 0; }
.big-head { display: flex; gap: 16px; padding: 16px; align-items: center; }
.big-head .ph { width: 96px; height: 96px; border-radius: 6px; background: #222; display: grid; place-items: center; font-size: 48px; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.big-head .ph img { width: 100%; height: 100%; object-fit: cover; }
.big-head h1 { margin: 0 0 4px; font-size: 22px; word-break: break-word; }
.big-head p { margin: 0; color: var(--muted); font-size: 14px; }
.float-btn { position: sticky; bottom: 16px; display: flex; justify-content: center; margin-top: 16px; }
.float-btn .btn { border-radius: 30px; padding: 12px 30px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }

/* ---- chat ---- */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av { width: 30px; height: 30px; border: 0; }
.bubble { background: var(--panel2); padding: 9px 13px; border-radius: 16px; word-wrap: break-word; white-space: pre-wrap; }
.msg.me .bubble { background: #4f46e5; }
.bubble .vcard { display: block; width: 150px; border-radius: 8px; overflow: hidden; margin: -3px -6px 4px; }
.bubble .vcard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #111; }
.msg-time { text-align: center; font-size: 11px; color: var(--muted); margin: 8px 0; }
.typing { font-size: 12px; color: var(--muted); padding: 0 16px 4px; height: 18px; }
.chat-in { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid #1a1a1a; }
.chat-in input { border-radius: 20px; border: 0; }

#toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); z-index: 200; background: rgba(40,40,40,.95); padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90%; text-align: center; }
#toast.show { opacity: 1; }
.spinner { width: 32px; height: 32px; border: 3px solid #333; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }

/* ---- LIVE ---- */
.live-ic { font-size: 13px !important; font-weight: 800; border: 2px solid #fff; border-radius: 6px; padding: 1px 5px; top: 16px !important; }
.live-tag { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: linear-gradient(90deg, #ff3b5c, #ff7a1a); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; letter-spacing: .5px; }
.is-live { position: relative; display: block; }
.is-live img { border-color: #ff3b5c !important; box-shadow: 0 0 0 2px #ff3b5c; animation: livepulse 1.4s infinite; }
.is-live.big .live-tag { font-size: 12px; bottom: -4px; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 5px rgba(255,59,92,.35); } }

.lv { position: absolute; inset: 0; background: #000; overflow: hidden; }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lv-video.mirror { transform: scaleX(-1); }
.lv-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 20%, transparent 55%, rgba(0,0,0,.6)); pointer-events: none; }
.lv-tap { position: absolute; inset: 60px 0 180px; z-index: 1; }
.lv-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 10px; }
.lv-host { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.4); border-radius: 22px; padding: 3px 4px 3px 3px; margin-right: auto; max-width: 55%; }
.lv-host img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lv-host b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.lv-host small { font-size: 11px; color: #ddd; }
.lv-follow { padding: 5px 10px !important; font-size: 12px !important; border-radius: 16px !important; }
.lv-pill { background: rgba(0,0,0,.4); border-radius: 14px; padding: 4px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; display: flex; gap: 5px; align-items: center; }
.lv-x { font-size: 26px; }
.lv-title { position: absolute; top: 58px; left: 12px; right: 12px; z-index: 3; font-size: 13px; color: #eee; text-shadow: 0 1px 2px #000; }
.lv-chat { position: absolute; left: 10px; right: 90px; bottom: 70px; z-index: 3; max-height: 38%; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; mask-image: linear-gradient(transparent, #000 25%); scrollbar-width: none; }
.lv-msg { font-size: 14px; background: rgba(0,0,0,.3); border-radius: 14px; padding: 5px 10px; align-self: flex-start; text-shadow: 0 1px 2px rgba(0,0,0,.5); animation: fade .3s; }
.lv-msg img { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 4px; object-fit: cover; }
.lv-msg b { color: #ddd; font-weight: 600; }
.lv-msg.host b::after { content: " · Maker"; color: #ff7a1a; }
.lv-msg.sys { color: #ccc; font-size: 13px; }
.lv-msg.gift { background: rgba(255,122,26,.35); }
.lv-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); }
.lv-in { flex: 1; border-radius: 22px; background: rgba(255,255,255,.18); border: 0; }
.lv-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.lv-btn svg { width: 22px; height: 22px; }
.lv-btn.heart { color: #ff3b5c; }
.lv-btn.end { width: auto; padding: 0 16px; border-radius: 22px; background: #ff3b5c; font-size: 15px; font-weight: 700; }
.lv-hearts { position: absolute; right: 18px; bottom: 70px; width: 40px; height: 300px; z-index: 2; pointer-events: none; }
.lv-fh { position: absolute; bottom: 0; left: 5px; width: 32px; height: 32px; animation: floatup 2.2s ease-out forwards; }
@keyframes floatup { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 10% { opacity: 1; transform: translate(0, -20px) scale(1.1); } 100% { opacity: 0; transform: translate(var(--x), -280px) scale(.8); } }
.lv-gift { position: absolute; left: 10px; top: 90px; z-index: 5; display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, rgba(139,92,246,.85), rgba(255,122,26,.6)); border-radius: 26px; padding: 4px 16px 4px 4px; animation: slidein .4s ease-out; }
.lv-gift img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.lv-gift b { display: block; font-size: 13px; } .lv-gift small { font-size: 12px; }
.lv-gift .emo { font-size: 38px; animation: bump .6s 2; }
@keyframes slidein { from { transform: translateX(-120%); } }
.lv-center { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; background: rgba(0,0,0,.55); }
.lv-center h2 { margin: 0; }
.lv-stats { display: flex; gap: 22px; } .lv-stats div { display: flex; flex-direction: column; font-size: 12px; color: #ccc; } .lv-stats b { font-size: 22px; color: #fff; }
.lv-setup { position: absolute; left: 16px; right: 16px; bottom: 30px; z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.lv-setup-card { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.5); border-radius: 12px; padding: 10px; }
.lv-setup-card img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.lv-setup-card input { background: transparent; border: 0; font-size: 16px; font-weight: 600; }
.lv-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 16px 24px; }
.lv-gifts button { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #222; border-radius: 12px; padding: 12px 0; font-size: 13px; }
.lv-gifts span { font-size: 36px; }
.lv-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.lv-list .grid-empty { grid-column: 1 / -1; }
.lv-card { position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #222 center/cover; }
.lv-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.8)); }
.lv-card .live-tag { left: 8px; top: 8px; bottom: auto; transform: none; }
.lv-card-v { position: absolute; right: 8px; top: 8px; font-size: 12px; background: rgba(0,0,0,.5); border-radius: 8px; padding: 1px 6px; }
.lv-card-b { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.lv-card-b b { display: block; } .lv-card-b small { color: #ddd; font-size: 12px; }

/* Aanmeld-melding over privacy/moderatie (toegevoegd voor hosting binnen ZekerFlex) */
.auth .fineprint { font-size: 12px; line-height: 1.5; color: var(--muted, #9a9aad); margin: 10px 2px 0; }
.auth .linkbtn { background: none; border: 0; padding: 0; color: #ff7a1a; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth p + p { margin-top: 10px; }
