/* Lone Keem Studios - shared styles for community + info pages */
:root {
  --bg: #000000; --surface: #0e0b16; --surface-2: #151021;
  --border: rgba(160, 110, 255, 0.22); --purple: #8a2be2; --purple-light: #b57cff;
  --blue: #4da3ff; --text: #f4f1fa; --muted: #b3aac6; --danger: #ff5c7a;
  --radius: 18px; --header-h: 64px; --bottom-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: -20% -10% auto; height: 60vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 30%, rgba(138,43,226,.22), transparent 70%),
              radial-gradient(35% 45% at 75% 35%, rgba(77,163,255,.12), transparent 70%);
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--purple-light); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; line-height: 1.15; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-top: env(safe-area-inset-top);
}
.app-header .inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; min-height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.08rem; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a, .icon-btn {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 9px 13px;
  border-radius: 999px; transition: color .2s, background-color .2s; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.top-nav a:hover, .top-nav a.active, .icon-btn:hover { color: var(--text); background: rgba(138,43,226,.18); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #000; }
.signin-pill {
  text-decoration: none; color: #fff; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #6a3df0 60%, #3f7fe8); white-space: nowrap;
}

/* Layout */
.app-main { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; min-height: 70vh; }
.page-title { font-size: 1.6rem; margin: 6px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }

/* Cards & buttons */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); }
.pad { padding: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; color: #fff; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--purple), #6a3df0 60%, #3f7fe8); box-shadow: 0 8px 24px rgba(138,43,226,.3);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; box-shadow: none; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255,92,122,.12); color: #ffb3c1; border: 1px solid rgba(255,92,122,.4); box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--purple-light); cursor: pointer; padding: 0; font-weight: 500; }

/* Forms */
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], textarea {
  width: 100%; background: #07050c; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(138,43,226,.25); }
textarea { resize: vertical; min-height: 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); flex-shrink: 0; }
.form-error { color: #ffb3c1; font-size: .92rem; min-height: 1.2em; margin: 6px 0 0; }
.form-ok { color: #9fe3b5; font-size: .92rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.google-btn { background: #fff; color: #1f1f1f; box-shadow: none; }
.google-btn svg { width: 18px; height: 18px; }
.auth-card { max-width: 420px; margin: 10px auto; }
.auth-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; box-shadow: 0 0 40px rgba(138,43,226,.35); }

/* Avatars */
.avatar {
  --c: var(--purple); width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #fff; font-size: .95rem; text-decoration: none;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); border: 1px solid rgba(255,255,255,.15);
}
.avatar.studio { background: #000 url(../logo.png) center/cover; color: transparent; }
.avatar.sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.8rem; }
.badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #000; font-size: 10px; font-weight: 800; vertical-align: 1px; margin-left: 3px; }
.kemy-admin-name, .post-head .name.kemy-admin-name, .comment .cname.kemy-admin-name, .vname.kemy-admin-name, .lb-who b.kemy-admin-name, .profile-head h1.kemy-admin-name, .wby .name.kemy-admin-name, .p3-tag > span.kemy-admin-name, .p3-msg b.kemy-admin-name { color: #ff2d2d !important; }
.badge.owner-badge { background: #ff2d2d; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }

/* Posts */
.post { padding: 14px; margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .who { min-width: 0; line-height: 1.25; }
.post-head .name { font-weight: 600; color: var(--text); text-decoration: none; }
.post-head .handle { color: var(--muted); font-size: .86rem; }
.post-text { margin: 12px 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-media { margin-top: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.post-media video { width: 100%; max-height: 72vh; margin: 0 auto; }
.post-media .embed { position: relative; aspect-ratio: 16/9; }
.post-media .embed.tall { aspect-ratio: 9/16; max-height: 72vh; margin: 0 auto; }
.post-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-card { display: block; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--muted);
  padding: 8px 10px; border-radius: 999px; font-weight: 500; font-size: .92rem; min-height: 40px; text-decoration: none;
}
.act:hover { background: rgba(255,255,255,.06); color: var(--text); }
.act svg { width: 22px; height: 22px; }
.act.on { color: var(--text); }
.act.like.on svg { fill: #ffc83d; filter: drop-shadow(0 0 4px rgba(138,43,226,.95)) drop-shadow(0 0 9px rgba(181,123,255,.7)); }
.act.saved.on { color: var(--blue); }
.act.on svg { fill: currentColor; }
.menu-wrap { position: relative; margin-left: auto; }
.menu {
  position: absolute; right: 0; top: 100%; z-index: 20; min-width: 190px; padding: 6px; background: #120d1d;
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu button:hover { background: rgba(138,43,226,.18); }
.menu button.danger { color: #ffb3c1; }

/* Comments */
.comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.comment .body { flex: 1; min-width: 0; }
.comment .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.tabs a, .tabs button { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs .active { color: var(--text); border-bottom-color: var(--purple-light); }

/* Profile */
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h1 { font-size: 1.45rem; }
.stats { display: flex; gap: 18px; margin-top: 8px; }
.stats b { color: var(--text); }
.stats a { color: var(--muted); text-decoration: none; }
.bio { margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-row label { margin: 0; }
.color-row input { position: absolute; opacity: 0; }
.swatch { display: block; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.color-row input:checked + .swatch { border-color: #fff; box-shadow: 0 0 0 3px rgba(138,43,226,.5); }
.color-row input:focus-visible + .swatch { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Lists */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: var(--text); border-radius: 14px; }
.list-item:hover { background: rgba(255,255,255,.04); }
.list-item .meta { min-width: 0; flex: 1; }
.list-item .meta p { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item.unread { background: rgba(138,43,226,.10); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--header-h) - var(--bottom-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px); min-height: 360px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; background: #1b1428; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--purple), #5a3fe6); }
.bubble time { display: block; font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding-top: 10px; }
.chat-form input { flex: 1; }

/* Uploads notice */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px dashed var(--border); color: var(--muted); }
.notice svg { width: 24px; height: 24px; color: var(--purple-light); flex-shrink: 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { max-width: 440px; width: 100%; padding: 30px 24px 24px; text-align: center; position: relative; box-shadow: 0 20px 80px rgba(138,43,226,.35); }
.modal img.logo { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 16px; box-shadow: 0 0 50px rgba(138,43,226,.5); }
.modal h2 { font-size: 1.5rem; background: linear-gradient(90deg, #fff 10%, var(--purple-light) 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal:has(.age-honest) { border: 3px solid #ffd34d; box-shadow: 0 16px 50px rgba(88, 28, 135, .5); }
.age-honest { text-align: center; }
.age-honest-mark { font-size: 2.6rem; margin: 0 0 4px; line-height: 1; }
.modal .age-honest h2 { margin: 0 0 8px; font-size: 1.45rem; background: none; -webkit-text-fill-color: #ffd34d; color: #ffd34d; }
.modal .age-honest p { color: #f4ecff; font-size: 1.02rem; line-height: 1.45; margin: 0 0 18px; }
.bd-honest { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 211, 77, .14); border: 1px solid rgba(255, 211, 77, .7); color: #ffe7a3; font-weight: 700; font-size: .88rem; line-height: 1.35; }
.modal p { color: var(--muted); margin: 12px 0 22px; }
.modal .btns { display: grid; gap: 10px; }
.modal .close { position: absolute; top: 10px; right: 10px; }
/* Every modal fits the screen (iPhone portrait + landscape, PWA safe areas) and scrolls inside itself.
   .modal-split: a scrolling .modal-body plus a .modal-foot whose buttons always stay on screen (rules / birthday). */
.modal-backdrop { --m-pad-t: max(12px, env(safe-area-inset-top, 0px)); --m-pad-b: max(12px, env(safe-area-inset-bottom, 0px));
  padding: var(--m-pad-t) max(12px, env(safe-area-inset-right, 0px)) var(--m-pad-b) max(12px, env(safe-area-inset-left, 0px)); overscroll-behavior: contain; }
.modal { --m-max-h: calc(100vh - var(--m-pad-t, 12px) - var(--m-pad-b, 12px)); max-height: var(--m-max-h); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: manipulation; }
@supports (height: 100dvh) { .modal { --m-max-h: calc(100dvh - var(--m-pad-t, 12px) - var(--m-pad-b, 12px)); } }
.modal.modal-split { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.modal-split > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.modal-split .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: manipulation; padding: 26px 22px 6px; }
.modal-split .modal-foot { flex: none; padding: 12px 22px 18px; border-top: 1px solid var(--border); background: rgba(18, 10, 32, .96); }
.modal-split .modal-foot .form-error { margin: 0; }
.modal-split .modal-foot .form-error:empty { display: none; }
.modal-split .modal-body > p:last-child { margin-bottom: 10px; }
/* a toast that lands on top of a modal's buttons (short landscape screens) never eats the tap */
body:has(#modal-root .modal) .toast { pointer-events: none; }
@media (max-height: 520px) {
  .modal-split .modal-body { padding: 16px 20px 4px; }
  .modal-split .modal-foot { padding: 10px 20px 12px; grid-template-columns: 1fr 1fr; }
  .modal-split .modal-foot .form-error { grid-column: 1 / -1; }
  .modal-split .modal-foot .btn { padding-top: 10px; padding-bottom: 10px; }
}

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h) + 20px + env(safe-area-inset-bottom)); z-index: 320; background: #1b1428; border: 1px solid var(--border); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: .92rem; max-width: calc(100% - 32px); }

/* Banner */
.banner { padding: 12px 14px; border-radius: 14px; background: rgba(77,163,255,.08); border: 1px solid rgba(77,163,255,.25); font-size: .92rem; margin-bottom: 16px; }

/* Bottom nav (phones; also under the video feed on desktop) */
.bottom-nav { display: none; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bottom-h); color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 500; position: relative; }
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active svg { color: var(--purple-light); }
.bottom-nav a.post-btn svg { width: 42px; height: 30px; padding: 4px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), #3f7fe8); color: #fff !important; }
.bottom-nav .dot { top: 8px; right: calc(50% - 18px); }
@media (max-width: 430px) {
  .app-header .brand span { display: none; }
  .app-header .brand img { width: 32px; height: 32px; }
  .app-header .inner { gap: 4px; padding-left: 8px; padding-right: 6px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { padding: 6px; }
  .header-actions .mod-pill { padding: 0 4px; }
  .header-actions .mod-word { display: none; }
  .app-header .header-actions .wchip { padding: 3px 3px; gap: 2px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .top-nav { display: none; }
  .header-actions { margin-left: auto; }
  .app-main { padding-bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(5,3,10,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08); padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (max-width: 760px) {
  .top-nav { display: none; }
  .header-actions { margin-left: auto; }
  .brand span { font-size: 1rem; }
  .app-main { padding-bottom: calc(var(--bottom-h) + 30px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(5,3,10,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08); padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Feed toggle (For You / Posts) */
.feed-toggle { display: flex; justify-content: center; gap: 22px; margin: 0 0 16px; }
.feed-toggle a { position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 2px; }
.feed-toggle a.active { color: var(--text); }
.feed-toggle a.active::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--purple-light), var(--blue)); }
.feed-toggle.on-video { margin: 0; }
.feed-toggle.on-video a { color: rgba(255,255,255,.7); text-shadow: 0 1px 6px rgba(0,0,0,.7); font-size: 1.04rem; }
.feed-toggle.on-video a.active { color: #fff; }

/* ---------- Vertical video feed (For You) ---------- */
body.feed-mode { overflow: hidden; overscroll-behavior: none; }
body.feed-mode .app-header, body.feed-mode .site-footer { display: none; }
body.feed-mode .app-main { max-width: none; padding: 0; min-height: 0; }
.vhome { display: none; }
.vwrap {
  --col-w: 100vw; --rail-w: 64px;
  position: fixed; top: 0; left: 0; right: 0; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); z-index: 10; background: #000;
}
.vfeed {
  height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none;
}
.vfeed::-webkit-scrollbar { display: none; }
.vslide {
  position: relative; height: 100%; height: calc(100dvh - var(--bottom-h) - env(safe-area-inset-bottom));
  scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; isolation: isolate;
}
.vbg { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(60% 50% at 50% 40%, rgba(138,43,226,.35), #000 75%) center/cover; filter: blur(32px) brightness(.32) saturate(1.2); transform: scale(1.1); }
.vvideo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vslide.fit-cover .vvideo { object-fit: cover; }
.vgrad { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.25) 35%, rgba(0,0,0,.78)); }
.vslide::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.vstate { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transform: scale(.8); transition: opacity .18s, transform .18s; pointer-events: none; }
.vstate svg { width: 36px; height: 36px; margin-left: 4px; }
.vslide.paused .vstate { opacity: 1; transform: none; }
.vspin { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; }
.vslide.loading:not(.paused) .vspin { opacity: 1; }
.vprogress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); pointer-events: none; z-index: 2; }
.vprogress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--purple-light), var(--blue)); transition: transform .25s linear; }

.vtop { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top) + 12px) 12px 0; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.vtop > * { pointer-events: auto; }
.vmute {
  position: absolute; left: 12px; top: calc(env(safe-area-inset-top) + 8px); display: inline-flex; align-items: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; font-size: .82rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vmute svg { width: 20px; height: 20px; flex-shrink: 0; }
.vunmute-hint {
  position: absolute; top: calc(env(safe-area-inset-top) + 58px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.5); color: #fff;
  font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: vhint 2.4s ease-in-out infinite;
}
.vunmute-hint svg { width: 18px; height: 18px; }
@keyframes vhint { 50% { box-shadow: 0 0 0 4px rgba(138,43,226,.25); } }

.vmeta { position: absolute; z-index: 3; left: 14px; right: calc(var(--rail-w) + 14px); bottom: 18px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vcreator { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vcreator .avatar { width: 40px; height: 40px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.vname { color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfollow {
  flex-shrink: 0; border: 0; cursor: pointer; border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: .84rem; color: #fff; text-shadow: none;
  background: linear-gradient(135deg, var(--purple), #6a3df0 60%, #3f7fe8);
}
.vfollow.on { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); }
.vcaption { margin: 0; font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; overflow-wrap: anywhere; }
.vcaption.open { -webkit-line-clamp: unset; display: block; }
.vsub { margin: 6px 0 0; font-size: .82rem; color: rgba(255,255,255,.72); }

.vrail { position: absolute; z-index: 3; right: 6px; bottom: 22px; width: var(--rail-w); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vact {
  display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer;
  color: #fff; font-size: .76rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.7); -webkit-tap-highlight-color: transparent;
}
.vact svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: rgba(0,0,0,.32); filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transition: transform .15s; }
.vact:active svg { transform: scale(.88); }
.vact.on svg { fill: currentColor; }
.vact.like.on { color: #fff; }
.vact.like.on svg { fill: #ffc83d; filter: drop-shadow(0 0 5px rgba(138,43,226,.95)) drop-shadow(0 0 12px rgba(181,123,255,.75)); }
.vact.save.on { color: var(--blue); }
.vact.like.on span, .vact.save.on span { color: #fff; }
.vact.pop svg { animation: vpop .35s ease; }
@keyframes vpop { 40% { transform: scale(1.3); } }

/* YouTube / TikTok slides: poster card with a Watch button (embeds can't autoplay or swipe well) */
.vcard { position: absolute; inset: 70px 18px 150px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.vthumb { width: 100%; max-height: 60%; object-fit: cover; aspect-ratio: 16/9; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.vthumb-tt { display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #25f4ee33, #fe2c5533), #111; aspect-ratio: 9/12; max-width: 220px; }
.vwatch svg { width: 18px; height: 18px; }
.vsrc { margin: 0; color: rgba(255,255,255,.7); }
.vembed { position: absolute; inset: 64px 0 140px; display: grid; place-items: center; z-index: 2; }
.vembed-frame { position: relative; width: 100%; aspect-ratio: 16/9; }
.vembed-frame.tall { aspect-ratio: 9/16; height: 100%; width: auto; max-width: 100%; }
.vembed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; max-width: none; pointer-events: none; }
.vswipe { position: absolute; inset: 0; z-index: 3; touch-action: pan-y; }
.vslide.yt-on .vcard { z-index: 1; }
.vembed-close { position: absolute; top: -48px; left: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; }
.vembed-close svg { width: 18px; height: 18px; }

/* End card */
.vend { display: grid; place-items: center; background: radial-gradient(60% 45% at 50% 35%, rgba(138,43,226,.35), transparent 70%), radial-gradient(50% 40% at 60% 70%, rgba(77,163,255,.18), transparent 70%), #000; }
.vend-inner { text-align: center; padding: 24px; max-width: 360px; }
.vend-inner img { margin: 0 auto 16px; border-radius: 20px; box-shadow: 0 0 60px rgba(138,43,226,.5); }
.vend-inner h2 { font-size: 1.7rem; background: linear-gradient(90deg, #fff 10%, var(--purple-light) 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vend-inner p { color: var(--muted); margin: 10px 0 20px; }
.vend-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.vend .btn-block, .vfollow-studio { width: 100%; }

/* Comment bottom sheet */
.vsheet-root { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.vsheet-root:empty { display: none; }
.vsheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.vsheet {
  position: absolute; left: 0; right: 0; bottom: 0; height: min(68%, 560px); display: flex; flex-direction: column;
  background: #0f0b18; border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform .22s ease; box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
.vsheet-root.open { pointer-events: auto; }
.vsheet-root.open .vsheet-backdrop { opacity: 1; }
.vsheet-root.open .vsheet { transform: none; }
.vsheet-grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 8px auto 0; }
.vsheet header { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.vsheet header h2 { font-size: 1rem; }
.vsheet-list { flex: 1; overflow-y: auto; padding: 0 16px; overscroll-behavior: contain; }
.vsheet-list .comment:first-child { border-top: 0; }
.vsheet-form { margin: 0; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.vsheet .form-error { margin: 0 14px 6px; min-height: 0; }
.vsheet-signin { display: flex; align-items: center; gap: 8px; padding: 12px 14px calc(12px); border-top: 1px solid rgba(255,255,255,.07); }
.vsheet-signin p { margin: 0 auto 0 0; color: var(--muted); }
.vsheet-signin .btn { white-space: nowrap; flex-shrink: 0; }

/* Desktop: phone-width column on a dark backdrop, nav under the column */
@media (min-width: 761px) {
  body.feed-mode { background: radial-gradient(50% 60% at 50% 40%, rgba(138,43,226,.16), transparent 70%), #030207; }
  body.feed-mode .vwrap { --col-w: clamp(360px, calc((100dvh - var(--bottom-h)) * 0.5625), 500px); left: 50%; right: auto; width: var(--col-w); transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 120px rgba(138,43,226,.25); }
  body.feed-mode .vhome { display: flex; align-items: center; gap: 10px; position: fixed; top: 18px; left: 22px; z-index: 20; color: var(--text); text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
  body.feed-mode .vhome img { border-radius: 10px; }
  body.feed-mode .bottom-nav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 60;
    width: clamp(360px, calc((100dvh - var(--bottom-h)) * 0.5625), 500px); background: #07050c; border-top: 1px solid rgba(255,255,255,.08);
  }
}
@media (min-width: 761px) and (max-width: 1000px) { body.feed-mode .vhome span { display: none; } }

/* For You: photo slides, more menu, processing notice */
.vimage { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.vslide.fit-cover .vimage { object-fit: cover; }
.vfail { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(80%, 300px); text-align: center; pointer-events: none; }
.vfail p { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: .9rem; }
.vact.vmore svg { padding: 11px; }
.vmenu { height: auto; padding: 4px 10px calc(10px + env(safe-area-inset-bottom)); }
.vmenu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 14px 12px; border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--text); }
.vmenu button:hover { background: rgba(138,43,226,.18); }
.vmenu button.danger { color: #ffb3c1; }
.vmenu .vmenu-cancel { text-align: center; color: var(--muted); border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; margin-top: 4px; }
.vslide.vremoved { display: grid; place-items: center; }

/* Profile grid (Instagram / TikTok style) */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -16px; }
@media (min-width: 672px) { .pgrid { margin: 0; gap: 4px; border-radius: 14px; overflow: hidden; } }
.gtile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, #1b1230, #0b0814); display: block; color: #fff; text-decoration: none; }
.gtile img, .gtile video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .25s; }
.gtile:hover img, .gtile:hover video { transform: scale(1.04); }
.gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); pointer-events: none; }
.gtile.k-text { background: linear-gradient(150deg, rgba(138,43,226,.55), rgba(63,127,232,.35) 70%, #0b0814); }
.gtext { position: absolute; inset: 10px 10px 30px; font-size: .78rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gicon { position: absolute; top: 7px; right: 7px; z-index: 1; width: 18px; height: 18px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
.gicon svg { width: 100%; height: 100%; }
.gviews { position: absolute; left: 7px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.gviews svg { width: 15px; height: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }

/* Post tab: chooser */
.notice.soon { border-style: solid; border-color: rgba(77,163,255,.35); background: linear-gradient(135deg, rgba(138,43,226,.14), rgba(77,163,255,.08)); margin-bottom: 16px; font-size: .92rem; line-height: 1.45; }
.notice.soon b { display: block; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 1.02rem; margin-bottom: 2px; }
.notice.soon svg { color: var(--blue); }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 16px; min-height: 132px; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--border); color: var(--text);
  background: radial-gradient(120% 90% at 0% 0%, rgba(138,43,226,.28), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .15s, border-color .2s;
}
.create-opt:hover { border-color: var(--purple-light); transform: translateY(-1px); }
.create-opt:active { transform: scale(.98); }
.create-opt.wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.create-opt.wide .ci { grid-row: span 2; margin: 0; }
.create-opt .ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; background: linear-gradient(135deg, var(--purple), #3f7fe8); box-shadow: 0 8px 22px rgba(138,43,226,.35); }
.create-opt .ci svg { width: 26px; height: 26px; color: #fff; }
.create-opt b { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.create-opt small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.text-compose summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.text-compose summary::-webkit-details-marker { display: none; }
.text-compose summary b::after { content: " ›"; color: var(--purple-light); }
.text-compose[open] summary b::after { content: " ⌄"; }

/* Camera + preview overlay */
body.cam-open { overflow: hidden; }
.cam { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; overflow: hidden; display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.cam-view { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; background: radial-gradient(60% 50% at 50% 40%, rgba(138,43,226,.25), #000 75%); }
.cam-view.mirror { transform: scaleX(-1); }
.cam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.cam-camera::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.cam-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.cam.flash .cam-flash { animation: camflash .35s ease-out; }
@keyframes camflash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 12px) 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cam-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); flex-shrink: 0; }
.cam-btn svg { width: 22px; height: 22px; }
.cam-btn:disabled { opacity: .4; }
.cam-btn.pill { width: auto; padding: 0 16px 0 10px; border-radius: 999px; display: inline-flex; gap: 4px; font-weight: 600; font-size: .92rem; }
.cam-timer { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(0,0,0,.5); font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; animation: recblink 1s steps(2, start) infinite; }
@keyframes recblink { to { visibility: hidden; } }
.cam-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 16px calc(env(safe-area-inset-bottom) + 18px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cam-modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s; }
.cam-modes button { border: 0; background: none; color: rgba(255,255,255,.75); font-weight: 600; font-size: .9rem; padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.cam-modes button.on { background: #fff; color: #000; }
.cam.recording .cam-modes { opacity: 0; pointer-events: none; }
.cam-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 360px; }
.cam-lib { justify-self: start; width: 48px; height: 48px; border-radius: 12px; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .2s; }
.cam-lib svg { width: 24px; height: 24px; }
.cam.recording .cam-lib { opacity: 0; pointer-events: none; }
.cam-shutter { position: relative; width: 84px; height: 84px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; touch-action: none; -webkit-touch-callout: none; }
.cam-shutter .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cam-shutter .track { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 6; }
.cam-shutter .prog { fill: none; stroke: #ff3b5c; stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
.cam.recording .cam-shutter .prog { opacity: 1; }
.cam.recording .cam-shutter .track { stroke: rgba(255,255,255,.35); }
.cam-shutter .core { width: 64px; height: 64px; border-radius: 50%; background: #ff3b5c; transition: all .2s ease; box-shadow: 0 0 0 0 rgba(255,59,92,.4); }
.cam[data-mode=photo] .cam-shutter .core { background: #fff; }
.cam-shutter:active .core { transform: scale(.92); }
.cam.recording .cam-shutter .core { width: 30px; height: 30px; border-radius: 8px; }
.cam-side { justify-self: end; }
.cam-hint { margin: 0; font-size: .82rem; color: rgba(255,255,255,.8); text-shadow: 0 1px 4px rgba(0,0,0,.7); min-height: 1.2em; text-align: center; }
.cam-msg { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -55%); width: min(88%, 380px); text-align: center; padding: 26px 20px 20px; border-radius: 20px; background: rgba(15,11,24,.94); border: 1px solid var(--border); box-shadow: 0 20px 70px rgba(0,0,0,.6); user-select: text; }
.cam-msg svg { width: 44px; height: 44px; color: var(--purple-light); margin: 0 auto 10px; }
.cam-msg h2 { font-size: 1.25rem; }
.cam-msg p { color: var(--muted); font-size: .92rem; margin: 10px 0 18px; }
.cam-msg-btns { display: grid; gap: 10px; }
.cam.has-msg .cam-modes, .cam.has-msg .cam-controls, .cam.has-msg .cam-hint, .cam.has-msg [data-a=flip] { visibility: hidden; }
.vwrap[data-kind=image] .vmute, .vwrap[data-kind=image] .vunmute-hint, .vwrap[data-kind=end] .vunmute-hint { display: none; }

/* Preview */
.cam-preview { background: #000; }
.pv-media { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 40%, rgba(138,43,226,.25), #000 75%); }
.pv-el { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.pv-media.is-video .pv-el { cursor: pointer; }
.pv-sound { position: absolute; right: 12px; bottom: 32px; z-index: 2; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; border-radius: 999px; padding: 6px 13px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.pv-nopreview { text-align: center; padding: 24px; color: var(--muted); max-width: 300px; }
.pv-nopreview svg { width: 56px; height: 56px; margin: 0 auto 10px; color: var(--purple-light); }
.pv-chip { padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: .82rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-panel { position: relative; z-index: 5; flex-shrink: 0; max-height: 62%; overflow-y: auto; padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px); background: #0f0b18; border-top: 1px solid var(--border); border-radius: 20px 20px 0 0; margin-top: -18px; user-select: text; }
.pv-panel .notice.soon { margin-bottom: 12px; padding: 11px 12px; font-size: .84rem; }
.pv-panel .notice.soon b { font-size: .95rem; }
.pv-panel textarea { min-height: 64px; resize: none; }
.pv-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 6px 2px 0; }
.pv-row .check { margin: 0; font-size: .84rem; }
.pv-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 12px; }
.pv-progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--purple-light), var(--blue)); transition: transform .2s linear; }
.pv-status { margin: 6px 0 0; min-height: 1.2em; }
.pv-panel .form-error { margin: 2px 0 4px; min-height: 0; }
.pv-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 6px; }

/* Desktop: camera/preview in a phone-shaped column */
@media (min-width: 761px) {
  .cam { left: 50%; right: auto; width: min(460px, calc(100dvh * .5625)); transform: translateX(-50%); box-shadow: 0 0 0 100vmax rgba(3,2,7,.97), 0 30px 120px rgba(138,43,226,.3); }
}

/* ---------- Search ---------- */
.vsearch { position: absolute; right: 12px; top: calc(env(safe-area-inset-top) + 8px); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vsearch svg { width: 21px; height: 21px; }
.tag-link, .mention-link { color: var(--purple-light); font-weight: 600; text-decoration: none; }
.tag-link:hover, .mention-link:hover { text-decoration: underline; }
.vcaption .tag-link, .vcaption .mention-link { color: #fff; }
.search-launch { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #120d1d; border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: 1rem; transition: border-color .2s; }
.search-launch:hover { border-color: var(--purple-light); }
.search-launch svg { width: 20px; height: 20px; color: var(--purple-light); flex-shrink: 0; }
.ex-sec { margin-top: 20px; }
.ex-sec h2, .ssec h2 { font-size: 1.05rem; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(138,43,226,.14); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip span { color: var(--muted); font-weight: 500; font-size: .8rem; }
.chip:hover { background: rgba(138,43,226,.26); }
.people-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.people-row::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pcard > a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); min-width: 0; width: 100%; }
.pcard .avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; margin-bottom: 4px; }
.pcard b { font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .muted { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .btn { width: 100%; }
.spinner.sm { width: 20px; height: 20px; margin: 10px 0; border-width: 2px; }

body.search-mode .site-footer { display: none; }
@media (max-width: 760px) { body.search-mode .app-header { display: none; } body.search-mode .app-main { padding-top: 0; } }
.search-page { min-height: 60vh; }
.sbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; margin: 0 -16px; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px 6px; background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (min-width: 761px) { .sbar { top: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: 10px; } }
.sback { padding: 9px; }
.sinput { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 999px; background: #120d1d; border: 1px solid var(--border); }
.sinput:focus-within { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(138,43,226,.25); }
.sinput > svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.sinput input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sinput input[type=search]:focus { box-shadow: none; }
.sinput input[type=search]::-webkit-search-cancel-button { display: none; }
.sclear { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sclear svg { width: 14px; height: 14px; }
.stabs { position: sticky; top: calc(env(safe-area-inset-top) + 64px); z-index: 29; display: flex; gap: 2px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 10px; background: rgba(0,0,0,.92); border-bottom: 1px solid rgba(255,255,255,.08); scrollbar-width: none; }
@media (min-width: 761px) { .stabs { top: calc(var(--header-h) + 64px); } }
.stabs::-webkit-scrollbar { display: none; }
.stabs button { flex-shrink: 0; padding: 11px 12px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: .94rem; cursor: pointer; border-bottom: 2px solid transparent; }
.stabs button.active { color: var(--text); border-bottom-color: var(--purple-light); }
.ssec { margin: 6px 0 20px; }
.ssec .row h2 { margin: 0; }
.ssec .row { margin-bottom: 10px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; align-items: center; }
.recent a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--text); text-decoration: none; }
.recent a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent a svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.recent .rdel { padding: 8px; }
.recent .rdel svg { width: 16px; height: 16px; }
.suser { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.suser-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.suser-main .avatar { width: 50px; height: 50px; }
.suser .meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.suser .meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suser .nm { display: flex; align-items: center; gap: 2px; min-width: 0; }
.suser .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suser .nm .badge { flex-shrink: 0; }
.suser .btn { flex-shrink: 0; min-width: 92px; }
.stags { list-style: none; margin: 0; padding: 0; }
.stags a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--text); text-decoration: none; }
.stags a > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.hico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(138,43,226,.16); border: 1px solid var(--border); flex-shrink: 0; }
.hico svg { width: 20px; height: 20px; color: var(--purple-light); }
.hico.lg { width: 64px; height: 64px; }
.hico.lg svg { width: 28px; height: 28px; }
.shead { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.shead h2 { font-size: 1.4rem; }
.sgrid { margin-bottom: 4px; }
.sempty b { color: var(--text); }

/* Info pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--purple-light); }
.doc p, .doc li { color: #ddd6ea; }
.doc ul { padding-left: 22px; }
.doc ol { padding-left: 22px; }
.doc h3 { font-size: 1.02rem; margin: 20px 0 6px; color: #efe6ff; }
.site-footer { border-top: 1px solid rgba(255,255,255,.07); padding: 28px 16px 36px; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
.foot-links { display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px !important; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--purple-light); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }

/* ---------------------------------------------------------------- Profile photos */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.avatar.has-photo { background: #111; }
.avatar.story { width: 62px; height: 62px; font-size: 1.25rem; border: 3px solid var(--bg, #000); }
.av-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.av-pick { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple), #3f7fe8); border: 2px solid var(--surface, #0e0b16); }
.av-cam svg { width: 16px; height: 16px; }
.av-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; }
.av-sheet { width: 100%; max-width: 480px; background: var(--surface-2, #151021); border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 18px 16px calc(env(safe-area-inset-bottom) + 16px); display: grid; gap: 8px; }
.av-sheet h2 { font-size: 1.05rem; text-align: center; margin: 0 0 6px; }
.av-act { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.av-act:hover { border-color: var(--purple-light); }
.av-act svg { width: 22px; height: 22px; color: var(--purple-light); }
.av-act.danger, .av-act.danger svg { color: #ff8fa6; }
.av-crop-ov { background: #000; align-items: stretch; }
.av-crop { width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 16px); overflow-y: auto; }
.av-head { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.av-head b { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }
.av-stage { position: relative; width: min(calc(100vw - 32px), 420px); aspect-ratio: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #111; border-radius: 6px; cursor: grab; margin-top: 8px; }
.av-stage:active { cursor: grabbing; }
.av-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.av-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.85); pointer-events: none; }
.av-zoom { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.av-zoom svg { width: 22px; height: 22px; flex-shrink: 0; }
.av-zoom input { flex: 1; accent-color: var(--purple); height: 30px; }
.av-crop .notice { width: 100%; margin: 0; }
.av-crop .form-error:empty { display: none; }
.av-actions { width: 100%; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* ---------------------------------------------------------------- Stories: rings row */
.stories-slot:empty { display: none; }
.srow { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 4px 16px 6px; scroll-snap-type: x proximity; }
.srow::-webkit-scrollbar { display: none; }
.sbub { position: relative; flex: 0 0 74px; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 5px; scroll-snap-align: start; }
.sring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; border: 0; cursor: pointer; display: grid; place-items: center; background: transparent; }
.sring.unseen { background: conic-gradient(from 210deg, #b57cff, #8a2be2, #ff4fa3, #4da3ff, #b57cff); }
.sring.seen { background: rgba(255,255,255,.28); }
.sring.none { background: rgba(255,255,255,.08); }
.sring .avatar.story { width: 64px; height: 64px; }
.sring.none .avatar.story { border-color: transparent; width: 66px; height: 66px; }
.sadd { position: absolute; top: 46px; right: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; background: var(--blue, #4da3ff); border: 2.5px solid var(--bg, #000); }
.sadd svg { width: 13px; height: 13px; }
.sname { width: 100%; text-align: center; font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbub.sk .sring { animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .45; } }
.srow-empty { align-self: center; margin: 0 0 18px; max-width: 200px; line-height: 1.35; }
/* profile ring + story thumbnails */
.pav { border-radius: 50%; flex-shrink: 0; }
.pav.has-story { padding: 3px; cursor: pointer; background: conic-gradient(from 210deg, #b57cff, #8a2be2, #ff4fa3, #4da3ff, #b57cff); }
.pav.has-story.seen { background: rgba(255,255,255,.3); }
.pav.has-story .avatar { border: 3px solid var(--surface-2, #151021); }
.sthumbs-title { font-size: .95rem; margin: 14px 0 8px; }
.sthumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sthumb { position: relative; flex: 0 0 66px; height: 100px; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid var(--purple-light); background: #111; }
.sthumb.seen { border-color: rgba(255,255,255,.25); }
.sthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sthumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 4px; font-size: .68rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
/* For You: your avatar with + */
.vstory { position: absolute; left: 12px; top: calc(env(safe-area-inset-top) + 7px); width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.vstory .avatar { width: 38px; height: 38px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.45); font-size: .8rem; }
.vplus { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue, #4da3ff); border: 2px solid #000; font-weight: 800; font-size: 13px; line-height: 1; }
.vtop.has-story .vmute { left: 60px; }
/* create page + camera */
.story-opt .ci { background: conic-gradient(from 210deg, #b57cff, #8a2be2, #ff4fa3, #4da3ff, #b57cff) !important; }
.cam-story-chip { position: absolute; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 64px); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #8a2be2, #ff4fa3); }
.cam.recording .cam-story-chip { display: none; }
.story-cap { position: absolute; z-index: 3; left: 0; right: 0; top: 62%; width: fit-content; max-width: calc(100% - 40px); margin: 0 auto; padding: 8px 14px; border-radius: 14px; text-align: center; color: #fff; font-weight: 700; font-size: 1.12rem; line-height: 1.3; background: rgba(0,0,0,.58); overflow-wrap: anywhere; pointer-events: none; }
.pv-media { position: relative; }

/* ---------------------------------------------------------------- Stories: viewer */
body.story-open { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,var(--bgA, 1)); display: flex; justify-content: center; }
.sv.closing { animation: svout .16s ease-in forwards; }
@keyframes svfade { from { opacity: 0; } }
@keyframes svout { to { opacity: 0; } }
.sv-card { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .18s ease-out; }
.sv-card.in-next { animation: svinr .22s ease-out; }
.sv-card.in-prev { animation: svinl .22s ease-out; }
@keyframes svinr { from { transform: translateX(40%); opacity: .3; } }
@keyframes svinl { from { transform: translateX(-40%); opacity: .3; } }
@media (min-width: 761px) { .sv-card { height: calc(100dvh - 32px); margin-top: 16px; border-radius: 14px; } }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.sv-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.5), transparent 18%, transparent 78%, rgba(0,0,0,.55)); }
.sv-bars { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; display: flex; gap: 4px; }
.sv-bars span { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.35); }
.sv-bars i { display: block; height: 100%; background: #fff; transform-origin: left center; }
.sv-head { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 18px); left: 10px; right: 4px; display: flex; align-items: center; gap: 2px; }
.sv-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.sv-who b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-who span:not(.avatar):not(.badge) { color: rgba(255,255,255,.75); font-size: .85rem; white-space: nowrap; }
.sv-who .avatar { border: 1.5px solid rgba(255,255,255,.7); }
.sv-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0; background: none; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.sv-btn svg { width: 22px; height: 22px; }
.sv-btn.dark { filter: none; color: var(--text); }
.sv-paused { color: #fff; display: grid; place-items: center; width: 30px; }
.sv-paused svg { width: 18px; height: 18px; }
.sv.paused .sv-head, .sv.paused .sv-bars { opacity: .9; }
.sv-cap { top: 66%; }
.sv-foot { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 14px); display: flex; justify-content: center; }
.sv-reply { width: 100%; display: flex; align-items: center; gap: 6px; }
.sv-reply input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-size: 16px; }
.sv-reply input::placeholder { color: rgba(255,255,255,.75); }
.sv-reply input:focus { outline: none; border-color: #fff; background: rgba(0,0,0,.5); }
.sv-viewers, .sv-login { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; color: #fff; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: rgba(0,0,0,.45); text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sv-viewers svg { width: 20px; height: 20px; }
.sv-sheet-root > * { position: absolute; z-index: 8; }
.sv-sheet-bg { inset: 0; background: rgba(0,0,0,.45); }
.sv-sheet { left: 0; right: 0; bottom: 0; max-height: 62%; overflow-y: auto; padding: 14px 14px calc(env(safe-area-inset-bottom) + 14px); border-radius: 20px 20px 0 0; background: var(--surface-2, #151021); border-top: 1px solid var(--border); display: grid; gap: 6px; animation: svup .2s ease-out; user-select: text; touch-action: pan-y; }
@keyframes svup { from { transform: translateY(40%); opacity: .4; } }
.sv-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 4px; }
.sv-sheet-act { min-height: 50px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sv-sheet-act svg { width: 20px; height: 20px; }
.sv-sheet-act.danger { color: #ff8fa6; }
.sv-vlist .list-item { padding: 8px 4px; }

/* ---------------------------------------------------------------- views + stars */
.views { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.views svg.views-ic, .gviews svg.views-ic { color: inherit; }
.views-ic .ks { fill: #c9a6ff; }
.act.views { margin-left: auto; cursor: default; font-size: .9rem; }
.act.views:hover { background: none; color: var(--muted); }
.act.views svg { width: 20px; height: 20px; }
.vviews { display: inline-flex; vertical-align: -3px; gap: 3px; font-weight: 600; color: #fff; }
.vviews svg { width: 15px; height: 15px; }
.stats-2 { margin-top: 6px; gap: 16px; color: var(--muted); }
.stats-2 span { display: inline-flex; align-items: center; gap: 4px; }
.stats-2 svg { width: 15px; height: 15px; }
#plikes svg { color: #ffc83d; fill: #ffc83d; filter: drop-shadow(0 0 4px rgba(138,43,226,.9)); }
#pviews svg { color: #c9a6ff; }
/* Stars (UI name for likes): gold outline, solid gold with a studio-purple glow when starred */
svg.star-ic { color: #ffc83d; }
.act.like:not(.on) svg.star-ic, .vact.like:not(.on) svg.star-ic { filter: drop-shadow(0 0 3px rgba(138,43,226,.55)); }

/* ---------------------------------------------------------------- Lone Keem icon set (js/icons.js) */
.ki .ks, .ki .kf { stroke: none; fill: currentColor; }
.ki .ks { fill: #c9a6ff; }
/* Purple-gradient strokes on the app chrome and on card actions */
.icon-btn .ki, .act .ki, .bottom-nav a.active .ki { stroke: url(#lks-g); }
.icon-btn .ki .kf, .act .ki .kf, .bottom-nav a.active .ki .kf, .bottom-nav a.active .ki .ks { fill: url(#lks-g); }
.bottom-nav a.active .ki { filter: drop-shadow(0 0 6px rgba(138,43,226,.6)); }
.bottom-nav a:not(.active) .ki .ks { fill: currentColor; opacity: .75; }
/* Create button: purple gradient tile with one clipped (notched) corner, white plus + spark */
.bottom-nav a.post-btn svg.ki-create {
  width: 46px; height: 32px; padding: 4px; border-radius: 12px 4px 12px 12px; color: #fff !important; stroke: #fff;
  background: linear-gradient(135deg, #b57bff, #8a2be2 55%, #5b1aa8); box-shadow: 0 4px 14px rgba(138,43,226,.45), inset 0 1px 0 rgba(255,255,255,.25);
  filter: none;
}
.bottom-nav a.post-btn svg.ki-create .ks { fill: #fff; opacity: 1; }
.bottom-nav a.post-btn.active svg.ki-create { box-shadow: 0 0 0 2px rgba(201,166,255,.55), 0 4px 16px rgba(138,43,226,.6); }
/* On top of videos: white strokes for contrast, purple sparks */
.vact .ki { stroke: #fff; }
.vact .ki .ks { fill: #d9bfff; }
.vsearch .ki { stroke: #fff; }

/* ---------------------------------------------------------------- Live (js/live.js) */
.avatar.xs { width: 24px; height: 24px; font-size: .6rem; flex-shrink: 0; }
/* KL-style LIVE badge: purple gradient tag with notched corners and a pulsing gold star */
.live-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; color: #fff; font: 800 .74rem/1 "Space Grotesk", sans-serif; letter-spacing: .12em;
  background: linear-gradient(120deg, #c08cff, #8a2be2 55%, #5b1aa8);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  filter: drop-shadow(0 0 8px rgba(138,43,226,.75)); white-space: nowrap;
}
.live-badge.sm { font-size: .6rem; padding: 3px 7px 3px 5px; gap: 3px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.lb-star { display: inline-grid; width: 1.15em; height: 1.15em; animation: lbpulse 1.4s ease-in-out infinite; }
.lb-star svg { width: 100%; height: 100%; fill: #ffc83d; filter: drop-shadow(0 0 3px rgba(255,200,61,.9)); }
@keyframes lbpulse { 0%, 100% { transform: scale(.82) rotate(0); opacity: .85; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
/* Live ring: rotating studio-purple gradient */
@property --lr { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.live-ring, .sbub.is-live .sring, .pav.is-live { position: relative; border-radius: 50%; padding: 3px; background: conic-gradient(from var(--lr), #e0c4ff, #8a2be2, #4a12a0, #b57bff, #e0c4ff); animation: lrspin 2.4s linear infinite; }
@keyframes lrspin { to { --lr: 360deg; } }
.live-ring { display: inline-grid; flex-shrink: 0; }
.live-ring .avatar { border: 2px solid #0b0814; }
.sbub.is-live .sring { position: relative; }
.sbub.is-live .sring .live-badge { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); }
.pav.is-live { position: relative; }
.pav.is-live > .live-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); }
.live-now { margin: 4px 0 14px; display: grid; gap: 10px; }
.ln-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0; }
.live-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, rgba(138,43,226,.28), rgba(20,10,36,.9) 60%); border: 1px solid rgba(181,123,255,.35); box-shadow: 0 0 18px rgba(138,43,226,.25); }
.live-card .avatar { width: 46px; height: 46px; }
.lc-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lc-meta .small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lc-n { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.lc-n svg { width: 15px; height: 15px; }
.live-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(120deg, #b57bff, #8a2be2 60%, #5b1aa8); color: #fff; border: 0; }
.live-btn svg { width: 18px; height: 18px; stroke: #fff; }
.live-btn svg .kf { fill: #ffc83d; }
.create-opt.live-opt { border-color: rgba(181,123,255,.5); background: linear-gradient(120deg, rgba(138,43,226,.3), rgba(20,10,36,.6)); }
.create-opt.live-opt .ci svg .kf { fill: #ffc83d; }

body.live-mode { overflow: hidden; overscroll-behavior: none; }
body.live-mode .app-header, body.live-mode .site-footer, body.live-mode .bottom-nav { display: none !important; }
body.live-mode .app-main { max-width: none; padding: 0; min-height: 0; }
.lv { position: fixed; inset: 0; z-index: 30; background: #05030a; color: #fff; overflow: hidden; }
@media (min-width: 761px) { .lv { left: 50%; right: auto; width: min(100vw, calc(100dvh * .5625), 520px); transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(181,123,255,.25), 0 0 60px rgba(138,43,226,.3); } }
.lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lv-video.mirror { transform: scaleX(-1); }
.lv-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 18%, transparent 55%, rgba(8,3,18,.85)); }
.lv-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 12px 8px; }
.lv-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: #fff; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(10,4,22,.45); backdrop-filter: blur(6px); }
.lv-who > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lv-who b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-who .small { font-size: .72rem; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-count { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 10px 4px 10px 10px; background: rgba(10,4,22,.55); font-weight: 700; font-size: .82rem; }
.lv-count svg { width: 16px; height: 16px; }
.lv-x, .lv-end { min-width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10,4,22,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lv-x svg { width: 22px; height: 22px; }
.lv-end { border-radius: 12px 4px 12px 12px; padding: 0 14px; font-weight: 800; background: linear-gradient(120deg, #ff5d8f, #c2185b); }
.lv-follow { height: 34px; padding: 0 12px; border-radius: 999px; border: 0; font-weight: 700; color: #fff; background: linear-gradient(120deg, #b57bff, #8a2be2); cursor: pointer; }
.lv-follow.on { background: rgba(255,255,255,.18); }
.lv-x.lv-x { position: relative; }
.lv-setup .lv-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 4; }
.lv-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 12px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.lv-chat { max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 64px; mask-image: linear-gradient(transparent, #000 22%); scrollbar-width: none; }
.lv-msg { display: flex; align-items: flex-start; gap: 7px; animation: lvin .25s ease; }
.lv-msg p { margin: 0; padding: 5px 10px; border-radius: 4px 12px 12px 12px; background: rgba(10,4,22,.55); font-size: .86rem; line-height: 1.3; overflow-wrap: anywhere; }
.lv-msg b { color: #d4b3ff; margin-right: 2px; }
@keyframes lvin { from { opacity: 0; transform: translateY(6px); } }
.lv-row { display: flex; gap: 8px; align-items: center; }
.lv-form { flex: 1; display: flex; gap: 6px; align-items: center; padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(10,4,22,.6); border: 1px solid rgba(181,123,255,.35); }
.lv-form input:focus, .lv-form input:focus-visible { outline: none; box-shadow: none; border: 0; }
.lv-form input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; outline: none; }
.lv-form .safe-phrases, .safe-phrases { display: flex; flex-wrap: wrap; gap: 6px; max-height: 34vh; overflow: auto; }
.safe-phrases button { min-height: 36px; border: 0; border-radius: 999px; background: #fff; color: #2b1d55; font-weight: 800; padding: 0 12px; cursor: pointer; }
.lv-form:has(.safe-phrases) { border-radius: 16px; padding: 8px; }
.lv-send { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(120deg, #b57bff, #8a2be2); color: #fff; cursor: pointer; }
.lv-send svg { width: 20px; height: 20px; stroke: #fff; }
.lv-starbtn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(181,123,255,.5); background: rgba(10,4,22,.6); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lv-starbtn svg { width: 28px; height: 28px; fill: #ffc83d; filter: drop-shadow(0 0 5px rgba(138,43,226,.95)) drop-shadow(0 0 10px rgba(181,123,255,.7)); transition: transform .12s; }
.lv-starbtn:active svg { transform: scale(.82); }
.lv-tools { display: flex; gap: 10px; align-items: center; }
.lv-tool { width: 46px; height: 46px; border-radius: 14px 5px 14px 14px; border: 1px solid rgba(181,123,255,.35); background: rgba(10,4,22,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lv-tool svg { width: 22px; height: 22px; }
.lv-tool.off { background: #c2185b; border-color: transparent; }
.lv-starcount { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(10,4,22,.6); }
.lv-starcount svg { width: 20px; height: 20px; fill: #ffc83d; filter: drop-shadow(0 0 4px rgba(138,43,226,.95)); }
/* Floating stars: gold with a purple glow */
.lv-stars { position: absolute; z-index: 2; right: 14px; bottom: 90px; width: 70px; height: 55vh; pointer-events: none; }
.lstar { position: absolute; bottom: 0; left: 50%; width: var(--sz, 28px); height: var(--sz, 28px); margin-left: calc(var(--sz, 28px) / -2); animation: lstar 2.5s cubic-bezier(.2,.7,.4,1) forwards; }
.lstar svg { width: 100%; height: 100%; fill: #ffc83d; filter: drop-shadow(0 0 6px rgba(138,43,226,.95)) drop-shadow(0 0 14px rgba(181,123,255,.75)); }
@keyframes lstar { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; } 12% { opacity: 1; transform: translate(0, -20px) scale(1.1) rotate(0); }
  100% { transform: translate(var(--dx), -50vh) scale(.8) rotate(var(--rot)); opacity: 0; } }
.lv-wait { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 50% at 50% 45%, rgba(138,43,226,.35), transparent 70%), #07040e; }
.lv-wait-in { display: grid; justify-items: center; gap: 12px; max-width: 320px; }
.lv-wait-in p { margin: 0; color: #e6dcf5; line-height: 1.45; }
.lv-unmute { position: absolute; z-index: 4; top: 76px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(181,123,255,.5); background: rgba(10,4,22,.7); color: #fff; font-weight: 600; cursor: pointer; }
.lv-unmute svg { width: 18px; height: 18px; }
.lv-admin-end { position: absolute; z-index: 4; top: 72px; right: 12px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: #c2185b; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }
.lv-setup-panel { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 18px; border-radius: 22px 8px 22px 22px; background: rgba(12,6,26,.82); backdrop-filter: blur(10px); border: 1px solid rgba(181,123,255,.35); display: grid; gap: 10px; }
.lv-setup-panel h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.3rem; }
.lv-setup-panel h1 svg { width: 26px; height: 26px; stroke: url(#lks-g); }
.lv-setup-panel h1 svg .kf { fill: #ffc83d; }
.lv-setup-panel p { margin: 0; color: #d6cbe8; }
.lv-setup-panel input[type=text], .lv-setup-panel #lv-title { height: 46px; border-radius: 12px; border: 1px solid rgba(181,123,255,.35); background: rgba(0,0,0,.4); color: #fff; padding: 0 14px; font: inherit; font-size: 16px; }
.lv-setup-btns { display: flex; gap: 10px; }
.lv-setup-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; }
.lv-setup-btns .btn svg { width: 20px; height: 20px; }
.lv-start { flex: 1; background: linear-gradient(120deg, #c08cff, #8a2be2 55%, #5b1aa8); box-shadow: 0 0 20px rgba(138,43,226,.55); }
.lv-start svg { stroke: #fff; }
.lv-start svg .kf { fill: #ffc83d; }
.lv-summary { max-width: 440px; margin: 24px auto; }
.lv-sum-badge { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px 7px 20px 20px; display: grid; place-items: center; background: linear-gradient(120deg, #c08cff, #8a2be2 55%, #5b1aa8); box-shadow: 0 0 24px rgba(138,43,226,.55); }
.lv-sum-badge svg { width: 34px; height: 34px; stroke: #fff; }
.lv-sum-badge svg .kf { fill: #ffc83d; }
.lv-sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0 0 14px; }
.lv-sum-grid div { padding: 12px 6px; border-radius: 14px; background: rgba(138,43,226,.14); border: 1px solid rgba(181,123,255,.25); display: grid; gap: 2px; }
.lv-sum-grid b { font: 700 1.35rem "Space Grotesk", sans-serif; }
.lv-sum-grid span { color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .lb-star, .live-ring, .sbub.is-live .sring, .pav.is-live { animation: none; } }

/* ---------- Delete account ---------- */
.danger-zone { border-color: rgba(255,92,122,.35); }
.danger-zone .btn-danger { min-height: 44px; }
.btn-danger-solid { background: linear-gradient(120deg, #ff5c7a, #d6284f); color: #fff; border: 0; }
.btn-danger-solid:disabled { opacity: .45; cursor: not-allowed; }
.del-title { font-size: 1.2rem; margin: 0 0 6px; color: #ffb3c1; }
.del-list { margin: 6px 0 12px; padding-left: 18px; line-height: 1.5; color: rgba(255,255,255,.85); }
.site-notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; max-width: min(92vw, 420px);
  padding: 12px 18px; border-radius: 14px; background: #1a0f2e; color: #fff; border: 1px solid rgba(181,123,255,.5);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 500 .95rem Inter, system-ui, sans-serif; text-align: center; transition: opacity .5s; }
.site-notice.out { opacity: 0; }

/* ---------- Comment threads: replies + stars ---------- */
.cthread { border-top: 1px solid rgba(255,255,255,.06); padding: 2px 0 6px; }
.cthread:first-child { border-top: 0; }
.cthread > .comment { border-top: 0; }
.comment { align-items: flex-start; }
.comment .cname { font-weight: 600; color: var(--text); text-decoration: none; }
.comment .cacts { display: flex; gap: 14px; margin-top: 2px; }
.comment .cacts .link-btn { min-height: 32px; padding: 0; color: rgba(255,255,255,.62); font-weight: 600; }
.comment .cacts .link-btn:hover { color: #d9b8ff; }
.comment .cacts .cdel-btn { color: #ffb3c1; }
.comment.reply { padding: 8px 0 4px; border-top: 0; }
.comment.reply .avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
.creplies { margin-left: 44px; border-left: 2px solid rgba(138,43,226,.35); padding-left: 10px; }
.creplies-tog { margin: 0 0 4px 44px; min-height: 32px; font-weight: 600; color: #c9a2ff; display: inline-flex; align-items: center; gap: 8px; }
.creplies-tog::before { content: ''; width: 22px; height: 1px; background: rgba(181,123,255,.6); }
.cstar { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-width: 44px; min-height: 44px; margin: -4px -6px 0 0; padding: 4px; border: 0; background: none; color: #ffc83d; cursor: pointer; border-radius: 12px; }
.cstar svg { width: 19px; height: 19px; transition: transform .18s; filter: drop-shadow(0 0 3px rgba(138,43,226,.5)); }
.cstar.on svg { fill: #ffc83d; filter: drop-shadow(0 0 4px rgba(138,43,226,.95)) drop-shadow(0 0 9px rgba(181,123,255,.7)); }
.cstar.on svg, .cstar:active svg { transform: scale(1.12); }
.cstar .cn { font-size: .72rem; color: rgba(255,255,255,.7); line-height: 1.1; min-height: .8rem; }
.cstar:focus-visible { outline: 2px solid #b57bff; outline-offset: 1px; }
.comment.is-deleted .cdel { font-style: italic; font-size: .9rem; padding-top: 6px; }
.cdel-av { background: rgba(255,255,255,.08) !important; border: 1px dashed rgba(255,255,255,.2); }
.reply-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 6px 12px;
  border-radius: 12px; background: rgba(138,43,226,.14); border: 1px solid rgba(181,123,255,.3); font-size: .85rem; }
.reply-chip .link-btn { min-height: 32px; }
.vsheet .reply-chip { margin: 6px 12px 0; }
.reply-chip[hidden] { display: none; }

/* ---------- Go Live: mode choice + YouTube big lives ---------- */
.lv-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.lv-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px; text-align: left;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,4,22,.55); color: #fff; cursor: pointer; font: inherit; }
.lv-mode b { font-size: .9rem; }
.lv-mode span { font-size: .72rem; color: rgba(255,255,255,.7); line-height: 1.25; }
.lv-mode.on { border-color: #b57bff; background: linear-gradient(135deg, rgba(138,43,226,.45), rgba(80,20,140,.35)); box-shadow: 0 0 0 1px rgba(181,123,255,.5), 0 6px 20px rgba(138,43,226,.35); }
.lv-mode:focus-visible { outline: 2px solid #b57bff; outline-offset: 2px; }
.lv-setup.yt-mode { background: radial-gradient(120% 80% at 50% 0%, #3a1170 0%, #12051f 55%, #000 100%); }
.lv-setup.yt-mode .lv-video { display: none; }
.lv-setup-panel input#lv-yt { width: 100%; }
.lv-help { margin: 8px 0 4px; font-size: .82rem; color: rgba(255,255,255,.85); }
.lv-help summary { cursor: pointer; font-weight: 600; color: #d9b8ff; min-height: 32px; display: flex; align-items: center; }
.lv-help ol { margin: 6px 0; padding-left: 18px; line-height: 1.45; }
.lv-help li { margin-bottom: 4px; }
.lv-help a { color: #d9b8ff; }
.lv-ytlive { background: #000; }
.lv-ytbox { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.lv-ytbox iframe, .lv-ytbox #lv-ytplayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-ytposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.5); transform: scale(1.1); }
.lv-ytbox .spinner { position: relative; z-index: 1; }
.lv-ytlive .lv-shade { pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 18%, transparent 62%, rgba(0,0,0,.75) 100%); }
.lv-ytlive .lv-bottom, .lv-ytlive .lv-top { pointer-events: none; }
.lv-ytlive .lv-bottom > *, .lv-ytlive .lv-top > * { pointer-events: auto; }
.lv-ytlive .lv-chat { pointer-events: none; }
.lv-ytnote { position: absolute; left: 12px; right: 12px; top: 74px; z-index: 6; padding: 10px 14px; border-radius: 14px; font-size: .85rem;
  background: rgba(18,6,34,.88); border: 1px solid rgba(181,123,255,.45); color: #fff; }
.lv-ytnote a { color: #d9b8ff; font-weight: 600; }
.lv-hostnote { margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(10,4,22,.6); color: rgba(255,255,255,.8); width: fit-content; max-width: 100%; }
.lv-hostnote a { color: #d9b8ff; }
.lv-ytchat { width: fit-content; }

/* ---------- Tap to star: burst at the tap point ---------- */
.post-media, .vslide { position: relative; }
.post-media, .post-media video, .post-media img, .vslide, .vslide video, .lv, .lv-taplayer { touch-action: manipulation; }
.tapburst { position: absolute; z-index: 20; width: 0; height: 0; pointer-events: none; }
.tapburst .tb-star { position: absolute; left: calc(var(--ts) / -2); top: calc(var(--ts) / -2); width: var(--ts); height: var(--ts);
  fill: #ffc83d; stroke: #fff3c4; stroke-width: .5;
  filter: drop-shadow(0 0 8px rgba(138,43,226,.95)) drop-shadow(0 0 22px rgba(181,123,255,.8));
  animation: tb-star .9s cubic-bezier(.2,1.4,.4,1) forwards; }
.tapburst .tb-halo { position: absolute; left: calc(var(--ts) / -2); top: calc(var(--ts) / -2); width: var(--ts); height: var(--ts); border-radius: 50%;
  border: 3px solid rgba(181,123,255,.85); box-shadow: 0 0 18px rgba(138,43,226,.8), inset 0 0 12px rgba(138,43,226,.6);
  animation: tb-halo .7s ease-out forwards; }
.tapburst .tb-spark { position: absolute; left: calc(var(--ss) / -2); top: calc(var(--ss) / -2); width: var(--ss); height: var(--ss);
  fill: #ffd700; filter: drop-shadow(0 0 4px rgba(181,123,255,.95)); opacity: 0;
  animation: tb-spark .75s ease-out var(--sd) forwards; }
@keyframes tb-star {
  0% { transform: scale(0) rotate(calc(var(--tr) - 70deg)); opacity: 0; }
  35% { transform: scale(1.18) rotate(var(--tr)); opacity: 1; }
  60% { transform: scale(.96) rotate(var(--tr)); opacity: 1; }
  100% { transform: translateY(-46px) scale(.75) rotate(var(--tr)); opacity: 0; }
}
@keyframes tb-halo { 0% { transform: scale(.25); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; border-width: 1px; } }
@keyframes tb-spark {
  0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(1) rotate(90deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tapburst .tb-star { animation-duration: .6s; } .tapburst .tb-spark, .tapburst .tb-halo { display: none; }
}
/* Live: stars float up from where you tapped */
.lstar.at { bottom: auto; left: var(--x); top: var(--y); margin-left: calc(var(--sz, 28px) / -2); margin-top: calc(var(--sz, 28px) / -2); animation: lstar-at 2.2s cubic-bezier(.2,.7,.4,1) forwards; z-index: 7; pointer-events: none; }
@keyframes lstar-at {
  0% { transform: scale(.2) rotate(0); opacity: 0; }
  12% { transform: scale(1.25) rotate(var(--rot)); opacity: 1; }
  100% { transform: translate(var(--dx), -42vh) scale(.8) rotate(var(--rot)); opacity: 0; }
}
.lv-taplayer { position: absolute; inset: 0; z-index: 1; background: transparent; cursor: pointer; }
.lv-tapplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 0; color: #fff; font: 600 1rem Inter, sans-serif; background: linear-gradient(120deg, #b57bff, #8a2be2); box-shadow: 0 8px 30px rgba(138,43,226,.5); }
.lv-starpill { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(10,4,22,.55); color: #fff; font-size: .8rem; font-weight: 700; }
.lv-starpill svg { width: 15px; height: 15px; fill: #ffc83d; filter: drop-shadow(0 0 3px rgba(138,43,226,.9)); }
.lv-starbtn { position: relative; }
.lv-starbadge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(120deg, #b57bff, #8a2be2); color: #fff; font: 700 .68rem/1 Inter, sans-serif; box-shadow: 0 0 0 2px rgba(10,4,22,.9); pointer-events: none; }

/* Longer videos: scrub bar on For You slides, processing note on feed cards */
.vscrub { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 6px; display: flex; align-items: center; gap: 10px; }
.vscrub[hidden] { display: none; }
.vscrub input { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--purple-light); background: transparent; touch-action: none; cursor: pointer; }
.vscrub .vtime { flex: none; font: 600 .76rem/1 'Space Grotesk', Inter, sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.vslide.long .vprogress { display: none; }
.vslide.long .vmeta { bottom: 46px; }
.vslide.long .vrail { bottom: 50px; }
.post-media { position: relative; }
.media-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(84%, 320px); padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: .9rem; text-align: center; pointer-events: none; }
.media-note[hidden] { display: none; }

/* ---- Filter picker (camera + live) */
.fxp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; user-select: none; -webkit-user-select: none; }
.fxp-name { position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; padding: 7px 14px; border-radius: 999px; background: rgba(10,0,20,.62); color: #fff; font: 700 .95rem/1.2 'Space Grotesk', Inter, sans-serif; white-space: nowrap; transition: opacity .2s, transform .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fxp-name.on { opacity: 1; transform: translate(-50%, 0); }
.fxp-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fxp-tabs button { position: relative; border: 0; background: transparent; color: rgba(255,255,255,.75); font: 600 .8rem/1 Inter, sans-serif; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.fxp-tabs button.on { background: linear-gradient(135deg, #8a2be2, #5a17b0); color: #fff; }
.fxp-tabs button i { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #FFC83D; box-shadow: 0 0 6px #b57bff; }
.fxp-tabs button i[hidden] { display: none; }
.fxp-row { display: flex; gap: 12px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px calc(50% - 27px); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.fxp-row::-webkit-scrollbar { display: none; }
.fxi { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(20,4,40,.55); scroll-snap-align: center; display: grid; place-items: center; padding: 0; cursor: pointer; position: relative; transition: transform .18s, border-color .18s; }
.fxi.on { border-color: #FFC83D; transform: scale(1.12); box-shadow: 0 0 0 3px rgba(138,43,226,.55), 0 0 18px rgba(181,123,255,.6); }
.fxi.heavy::after { content: ''; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #ff9b3d; border: 1.5px solid #120024; }
.fxi-sw { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.fxi-ic { font-size: 1.45rem; line-height: 1; color: #fff; }
.fxi-kl { font: 800 1rem/1 'Space Grotesk', Inter, sans-serif; color: #FFD24A; }
.fxi-beauty { font-size: .8rem; letter-spacing: -1px; color: #FFC83D; }
.fxp-hint { margin: 0; font-size: .74rem; color: #ffc690; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.fxp-hint[hidden] { display: none; }
/* Live: picker panel */
.lv-fx { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); padding: 8px 0 4px; }
.lv-fx[hidden] { display: none; }
.lv-tool.on { background: linear-gradient(135deg, #8a2be2, #5a17b0); }
.lv-setup .lv-fx { position: static; padding: 0 0 6px; }
.lv-fxnote { font-size: .8rem; color: rgba(255,255,255,.75); margin: 6px 0 0; }

/* ---------- Snap camera (camera-first Create) ---------- */
.cam.snap .cam-top { justify-content: flex-start; }
.cam.snap .cam-top .cam-timer { position: absolute; left: 50%; transform: translateX(-50%); }
.cam-pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px 0 9px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 .85rem/1 Inter, sans-serif; background: rgba(0,0,0,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cam-pill svg { width: 18px; height: 18px; }
.cam-pill[data-a=live] { margin-left: auto; }
.cam-pill[data-a=live] svg { color: #ff4f7b; }
.cam-rail { position: absolute; z-index: 5; right: 10px; top: calc(env(safe-area-inset-top) + 66px); display: flex; flex-direction: column; gap: 6px; padding: 6px 4px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .2s; }
.cam-rbtn { width: 46px; border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: 2px; padding: 5px 0; cursor: pointer; border-radius: 16px; }
.cam-rbtn svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.cam-rbtn span { font: 600 .62rem/1 Inter, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.cam-rbtn.on { color: #FFC83D; }
.cam-rbtn.on svg { filter: drop-shadow(0 0 6px rgba(181,123,255,.9)); }
.cam.recording .cam-rail, .cam.recording .cam-pill, .cam.recording .cam-lib, .cam.recording .cam-lensbtn { opacity: 0; pointer-events: none; }
.cam-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cam-grid[hidden] { display: none; }
.cam-grid i { position: absolute; background: rgba(255,255,255,.35); }
.cam-grid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; } .cam-grid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.cam-grid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; } .cam-grid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.cam-screenflash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: #fff6e8; transition: opacity .15s; }
.cam-screenflash.on { opacity: .96; }
.cam-count { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; font: 800 6rem/1 'Space Grotesk', Inter, sans-serif; color: #fff; text-shadow: 0 0 30px rgba(138,43,226,.9), 0 4px 12px rgba(0,0,0,.6); pointer-events: none; }
.cam-count[hidden] { display: none; }
.cam-lensbtn { justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .2s; }
.cam-lensbtn svg { width: 26px; height: 26px; }
.cam-lensbtn[aria-expanded=true] { color: #FFC83D; }
/* lens circles sit in a row through the shutter; the shutter shows the current lens */
.cam.snap .cam-bottom { gap: 10px; }
.cam.snap .cam-controls { position: relative; z-index: 2; pointer-events: none; }
.cam.snap .cam-controls > * { pointer-events: auto; }
.cam.snap .cam-lenses { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 18px + 1.2em + 10px + 15px); z-index: 1; }
.cam.snap .cam-lenses[hidden] { display: none; }
.cam.snap .cam-lenses .fxp { flex-direction: column; }
.cam.snap .cam-lenses .fxp-tabs { margin-bottom: 30px; }
.cam.snap .cam-lenses .fxp-row { padding-top: 0; padding-bottom: 0; gap: 14px; padding-left: calc(50% - 27px); padding-right: calc(50% - 27px); }
.cam.snap .cam-lenses .fxi.on { border-color: transparent; box-shadow: none; transform: none; opacity: 0; }
.cam.snap .cam-lenses .fxp-hint { position: absolute; top: -22px; }
.cam.snap.lenses-open .cam-lib, .cam.snap.lenses-open .cam-lensbtn { opacity: 0; pointer-events: none; }
.cam.snap.lenses-open .cam-shutter .core { background: transparent; box-shadow: none; }
.cam.snap.lenses-open .cam-shutter .track { stroke: #fff; }
.cam.snap .cam-shutter .core { display: grid; place-items: center; overflow: hidden; }
.cam.snap.lenses-open .cam-shutter .core .fxi-sw { width: 100%; height: 100%; border-radius: 50%; }
.cam.snap.lenses-open .cam-shutter .core .fxi-ic { font-size: 1.9rem; }
.cam.snap:not(.lenses-open) .cam-shutter .core > * { display: none; }
.cam.snap:not(.lenses-open):not(.recording) .cam-shutter .core { background: transparent; box-shadow: inset 0 0 0 0 #fff; }
.cam.snap.recording .cam-shutter .core { background: #ff3b5c; width: 40px; height: 40px; border-radius: 12px; }
@media (max-width: 380px) { .cam-rail { right: 6px; } .cam-rbtn { width: 42px; } }

/* ---------- Snap editor ---------- */
.cam-edit { background: #000; }
.ed { position: absolute; inset: 0; }
.ed-stage { position: absolute; inset: 0; bottom: calc(env(safe-area-inset-bottom) + 70px); display: grid; place-items: center; overflow: hidden; }
.ed-media { position: relative; border-radius: 14px; overflow: hidden; background: #0a0612; }
.ed-src, .ed-fx { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; }
.ed-fx[hidden] { display: none; }
.ed-draw { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; touch-action: none; }
.ed[data-tool=draw] .ed-draw { pointer-events: auto; cursor: crosshair; }
.ed-layers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ed[data-tool=draw] .ed-layer { pointer-events: none; }
.ed-layer { position: absolute; pointer-events: auto; touch-action: none; cursor: grab; transform-origin: center; }
.ed-text { font: 800 1.8rem/1.15 'Space Grotesk', Inter, sans-serif; white-space: pre; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.ed-sticker { display: grid; place-items: center; line-height: 1; }
.ed-sticker img { width: 100%; height: 100%; }
.ed-caption { left: 0; right: 0; transform: translateY(-50%); padding: .5em 4%; background: rgba(0,0,0,.55); color: #fff; font: 600 .95rem/1.25 Inter, sans-serif; text-align: center; }
.ed-top { position: absolute; z-index: 6; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 12px) 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-chip { padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.45); font: 600 .8rem/1 Inter, sans-serif; }
.ed-sound { font-size: 1.1rem; }
.ed-rail { position: absolute; z-index: 6; right: 10px; top: calc(env(safe-area-inset-top) + 66px); display: flex; flex-direction: column; gap: 4px; }
.ed-rail button { width: 50px; border: 0; background: rgba(0,0,0,.35); color: #fff; display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 16px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ed-rail button svg { width: 22px; height: 22px; }
.ed-rail button span { font: 600 .6rem/1 Inter, sans-serif; }
.ed-rail button.on { background: linear-gradient(135deg, #8a2be2, #5a17b0); color: #fff; box-shadow: 0 0 12px rgba(181,123,255,.6); }
.ed[data-tool=typing] .ed-rail, .ed[data-tool=send] .ed-rail { display: none; }
.ed-bottom { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(env(safe-area-inset-bottom) + 12px); display: flex; gap: 10px; align-items: center; justify-content: space-between; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.ed-story { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 8px; border-radius: 999px; border: 0; color: #fff; font: 700 .9rem/1 Inter, sans-serif; background: rgba(255,255,255,.14); cursor: pointer; }
.ed-story-dot { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#8a2be2, #ff4fa3, #FFC83D, #8a2be2); box-shadow: inset 0 0 0 3px #1a1028; }
.ed-sendbtn { height: 46px; padding: 0 20px; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.ed-sendbtn svg { width: 18px; height: 18px; }
.ed-panel { position: absolute; z-index: 7; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 70px); padding: 10px 12px; }
.ed-panel[hidden] { display: none; }
.ed-pal { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ed-pal button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); cursor: pointer; padding: 0; }
.ed-pal button.on { transform: scale(1.2); border-color: #fff; box-shadow: 0 0 0 2px #8a2be2; }
.ed-drawbar { display: grid; gap: 10px; padding: 10px; border-radius: 18px; background: rgba(10,4,20,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); grid-template-columns: 1fr auto; align-items: center; }
.ed-drawbar .ed-pal { grid-column: 1 / -1; }
.ed-drawbar input[type=range] { width: 100%; accent-color: #b57bff; }
.ed[data-tool=typing] .ed-panel { inset: 0; bottom: 0; padding: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.ed-type { width: min(92%, 420px); display: grid; gap: 14px; justify-items: center; }
.ed-type textarea { width: 100%; background: transparent; border: 0; outline: none; resize: none; text-align: center; font: 800 1.9rem/1.2 'Space Grotesk', Inter, sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ed-type.cap textarea { font: 600 1.05rem/1.3 Inter, sans-serif; background: rgba(0,0,0,.55); padding: 10px; border-radius: 10px; }
.ed-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 42vh; overflow-y: auto; padding: 10px; border-radius: 18px; background: rgba(10,4,20,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ed-stickers button { aspect-ratio: 1; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 1.8rem; cursor: pointer; padding: 4px; }
.ed-stickers button img { width: 100%; height: 100%; }
.ed-looks { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px; scrollbar-width: none; }
.ed-looks button { flex: none; display: grid; gap: 4px; justify-items: center; border: 0; background: none; color: #fff; cursor: pointer; width: 58px; }
.ed-looks button span { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.ed-looks button.on span { border-color: #FFC83D; box-shadow: 0 0 0 3px rgba(138,43,226,.6); }
.ed-looks small { font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
.ed-trim { padding: 12px; border-radius: 18px; background: rgba(10,4,20,.8); }
.ed-trimrow { position: relative; height: 34px; }
.ed-trimrow input { position: absolute; inset: 0; width: 100%; pointer-events: none; background: none; accent-color: #FFC83D; -webkit-appearance: none; appearance: none; }
.ed-trimrow input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 32px; border-radius: 6px; background: #FFC83D; border: 2px solid #120024; }
.ed-trimrow input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 32px; border-radius: 6px; background: #FFC83D; }
.ed-trimrow::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5a17b0, #b57bff); }
.ed-trimlab { margin: 6px 0 0; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.ed-trash { position: absolute; z-index: 8; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; transition: transform .15s, background .15s; pointer-events: none; }
.ed-trash svg { width: 24px; height: 24px; }
.ed-trash.hot { transform: translateX(-50%) scale(1.25); background: #ff3b5c; }
.ed-trash[hidden] { display: none; }
.ed-busy { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(0,0,0,.7); text-align: center; }
.ed-busy[hidden] { display: none; }
.ed-bar { width: 220px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.ed-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8a2be2, #FFC83D); transform-origin: left; transform: scaleX(0); }
.ed[data-tool=send] .ed-panel { bottom: 0; padding: 0; }
.ed-send { max-height: 78vh; overflow-y: auto; padding: 14px 14px calc(env(safe-area-inset-bottom) + 14px); border-radius: 22px 22px 0 0; background: #0e0b16; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.ed-send-head { display: flex; align-items: center; justify-content: space-between; font: 700 1.1rem/1 'Space Grotesk', Inter, sans-serif; }
.ed-dest, .ed-friend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: #151021; color: #fff; text-align: left; cursor: pointer; }
.ed-dest span:last-child, .ed-friend span:last-child { display: grid; gap: 2px; }
.ed-dest small, .ed-friend small { color: rgba(255,255,255,.6); font-size: .78rem; }
.ed-dest-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8a2be2, #5a17b0); font-size: 1.1rem; }
.ed-send-sub { margin: 8px 0 0; font-weight: 700; }
.ed-send-sub small { font-weight: 400; color: rgba(255,255,255,.6); }
.ed-friends { display: grid; gap: 6px; }
.ed-friend input { width: 20px; height: 20px; accent-color: #8a2be2; order: 3; margin-left: auto; }
.ed-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 700; flex: none; }
.ed-av img { width: 100%; height: 100%; object-fit: cover; }
.ed-sendsnap { position: sticky; bottom: 0; }

/* ---------- View-once snaps in Messages ---------- */
.bubble.snapmsg { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; font: inherit; color: inherit; cursor: default; }
button.bubble.snapmsg { cursor: pointer; }
.snapmsg .snap-ic { width: 18px; height: 18px; border-radius: 4px; flex: none; background: #8a2be2; }
.snapmsg.new .snap-ic { box-shadow: 0 0 10px #b57bff; }
.snapmsg.opened .snap-ic { background: transparent; border: 2px solid #8a2be2; }
.snapmsg span:nth-child(2) { display: grid; gap: 2px; }
.snapmsg small { opacity: .75; font-size: .75rem; }
.snap-view { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; }
.snap-view img, .snap-view video { max-width: 100%; max-height: 100%; object-fit: contain; }
.snap-view-bar { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 10px; right: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.snap-view-bar span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.snap-view-x { position: absolute; top: calc(env(safe-area-inset-top) + 18px); right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.1rem; }
.snap-view-tip { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 14px); left: 0; right: 0; text-align: center; font-size: .78rem; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Bios ---------- */
.bio a { color: var(--purple-light); text-decoration: none; font-weight: 600; }
.add-bio { margin-top: 12px; }
.pweb { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--purple-light); text-decoration: none; overflow-wrap: anywhere; }
.pronouns { color: rgba(255,255,255,.75); }
.counter { font-variant-numeric: tabular-nums; }
.counter.warn { color: #FFC83D; }
.welcome-bio { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); text-align: left; }
.welcome-bio textarea { min-height: 72px; }
.chip-pin { background: linear-gradient(135deg, rgba(255,200,61,.18), rgba(138,43,226,.25)); border-color: rgba(255,200,61,.45); }

/* ---------- Community Movies + Songs ---------- */
.ex-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.ex-tabs a svg { width: 18px; height: 18px; }
.wsec-h { display: flex; align-items: center; gap: 8px; font: 700 1.25rem/1.2 'Space Grotesk', Inter, sans-serif; margin: 8px 0 6px; }
.wsec-h svg { width: 24px; height: 24px; color: var(--purple-light); }
.wintro { margin: 0; color: var(--muted); line-height: 1.5; }
.wintro.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .wintro.clamp { -webkit-line-clamp: unset; display: block; } .wmorebtn { display: none; } }
.wmorebtn { font-size: .85rem; padding: 0; margin: 2px 0 0; }
.wnew { margin: 12px 0 4px; }
.wpicks h3 { font-size: 1rem; margin: 18px 0 8px; color: #FFC83D; }
.wrow { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
@media (min-width: 760px) { .wrow { grid-auto-columns: 22%; } }
.wrow .wtile { scroll-snap-align: start; }
.wchips { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0 10px; scrollbar-width: none; padding-bottom: 2px; }
.wchips .chip { flex: none; cursor: pointer; font: inherit; font-size: .85rem; }
.wchips .chip.on { background: linear-gradient(135deg, #8a2be2, #5a17b0); color: #fff; border-color: transparent; }
.wsort { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.wsort button { border: 0; background: none; color: var(--muted); font: 600 .82rem/1 Inter, sans-serif; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.wsort button.on { background: #8a2be2; color: #fff; }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .wgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .wgrid { grid-template-columns: repeat(4, 1fr); } }
.wgrid > .empty, .wgrid > .spinner { grid-column: 1 / -1; }
.wtile { display: grid; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.wart { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: #150d24; border: 1px solid var(--border); }
.wtile.song .wart { aspect-ratio: 1; }
.wtile.wide .wart { aspect-ratio: 16 / 9; }
.wtile.wide.song .wart { aspect-ratio: 1; max-width: 320px; }
.wart img { width: 100%; height: 100%; object-fit: cover; }
.wart-t { padding: 12px; text-align: center; font: 800 1.1rem/1.15 'Space Grotesk', Inter, sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); overflow-wrap: anywhere; }
.blur18 .wart img { filter: blur(18px) brightness(.6); transform: scale(1.1); }
.blur18 .wart::after { content: '18+'; position: absolute; font: 800 1.4rem 'Space Grotesk', sans-serif; color: #fff; }
.wb-r { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); font: 700 .72rem/1.4 Inter, sans-serif; color: #fff; }
.wb-r.inline { position: static; }
.wb-pick { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #FFC83D, #ff9f1a); color: #1a0b00; font: 800 .7rem/1.5 Inter, sans-serif; }
.wsub .wb-pick { position: static; margin-left: 6px; }
.wmeta { display: grid; gap: 2px; min-width: 0; }
.wmeta b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmeta small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbadges { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.wb-ai { display: inline-block; padding: 1px 7px; border-radius: 999px; font: 700 .66rem/1.5 Inter, sans-serif; color: #e9d8ff; background: rgba(138,43,226,.35); border: 1px solid rgba(181,123,255,.5); }
.wb-e { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: #d8d8d8; color: #111; font: 800 .66rem/1 Inter, sans-serif; vertical-align: middle; }
.wstat { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: #FFC83D; font-size: .78rem; font-weight: 700; }
.wstat svg { width: 13px; height: 13px; filter: drop-shadow(0 0 4px rgba(181,123,255,.8)); }
.wtile-play { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8a2be2, #5a17b0); box-shadow: 0 4px 16px rgba(138,43,226,.6); cursor: pointer; }
.wtile-play svg { width: 20px; height: 20px; }
.wcard-body { display: grid; gap: 10px; }
.wcard-desc { margin: 0; color: var(--muted); font-size: .92rem; }
/* work page */
.wpage { overflow: hidden; padding: 0; }
.wplayer video, .wplayer .embed { width: 100%; display: block; background: #000; }
.wplayer video { max-height: 70vh; }
.wplayer .embed { aspect-ratio: 16 / 9; position: relative; }
.wplayer .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wfacade { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000 center / cover no-repeat; display: grid; place-items: center; cursor: pointer; }
.wplay { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(138,43,226,.9); color: #fff; box-shadow: 0 0 30px rgba(181,123,255,.8); }
.wplay svg { width: 32px; height: 32px; }
.wgate { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; background: #120a1e center / cover; position: relative; }
.wgate::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(24px) brightness(.5); -webkit-backdrop-filter: blur(24px) brightness(.5); }
.wgate > div { position: relative; padding: 16px; }
.wsong-top { padding: 22px 18px 6px; display: grid; justify-items: center; gap: 14px; background: radial-gradient(80% 70% at 50% 20%, rgba(138,43,226,.35), transparent 70%); }
.wcover { width: min(78vw, 320px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 20px 60px rgba(138,43,226,.45); }
.wcover img { width: 100%; height: 100%; object-fit: cover; }
.wsong-top .wplayer { width: 100%; }
.wviz { width: 100%; max-width: 520px; height: 70px; }
.wctl { width: 100%; max-width: 520px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.wpp { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8a2be2, #5a17b0); box-shadow: 0 0 22px rgba(181,123,255,.6); cursor: pointer; }
.wpp svg { width: 26px; height: 26px; }
.wseek { width: 100%; accent-color: #FFC83D; }
.wtime { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wbody { padding: 16px 18px 18px; }
.wtitle { font: 800 1.5rem/1.2 'Space Grotesk', Inter, sans-serif; margin: 0 0 6px; }
.wsub { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wby { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.wby .name { font-weight: 700; color: inherit; text-decoration: none; }
.wacts { display: flex; flex-wrap: wrap; gap: 8px; }
.wact { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: #fff; font: 600 .86rem/1 Inter, sans-serif; cursor: pointer; }
.wact svg { width: 18px; height: 18px; }
.wact.like.on { color: #FFC83D; border-color: rgba(255,200,61,.6); box-shadow: 0 0 14px rgba(181,123,255,.55); }
.wact.like.on svg { filter: drop-shadow(0 0 6px rgba(181,123,255,.9)); }
.wact.on { color: #FFC83D; }
.wact.danger { color: #ff6b81; }
.wdesc { margin: 14px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wlyr { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.wlyr summary { cursor: pointer; font-weight: 700; }
.wlyr pre { white-space: pre-wrap; font: .95rem/1.6 Inter, sans-serif; margin: 10px 0 0; }
.wmore { padding: 0 18px 18px; }
.wmore h2 { font-size: 1.05rem; margin: 4px 0 10px; }
/* compose */
.back-link { display: inline-block; margin-bottom: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.wform fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.wform legend { font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.wsrc { display: grid; gap: 8px; }
.wsrc label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.wsrc label:has(input:checked) { border-color: #b57bff; box-shadow: 0 0 0 1px #b57bff inset; }
.wsrc span { display: grid; gap: 2px; } .wsrc small { color: var(--muted); }
.wrate { display: flex; flex-wrap: wrap; gap: 8px; }
.wrate legend { width: 100%; }
.wrate label { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; }
.wrate label:has(input:checked) { background: rgba(138,43,226,.3); border-color: #b57bff; }
.wform select { width: 100%; }
.wlyrics summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.wrights { margin: 6px 0 14px; align-items: flex-start; }
.k-work .gicon svg { width: 18px; height: 18px; }
.work-opt .ci svg { width: 26px; height: 26px; }
/* mini player */
.mini-player { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(var(--bottom-h, 0px) + env(safe-area-inset-bottom) + 8px); display: grid; grid-template-columns: 44px 1fr auto auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 16px; background: rgba(20,10,36,.94); border: 1px solid rgba(181,123,255,.4); box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 18px rgba(138,43,226,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; max-width: 560px; margin: 0 auto; }
.mini-player[hidden] { display: none; }
.mp-art { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: block; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-meta { min-width: 0; display: grid; color: #fff; text-decoration: none; }
.mp-meta b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mp-btn svg { width: 22px; height: 22px; }
.mp-btn[data-a=pp] { background: linear-gradient(135deg, #8a2be2, #5a17b0); }
.mp-btn:disabled { opacity: .35; }
.mp-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.1); }
.mp-prog span { display: block; height: 100%; background: linear-gradient(90deg, #8a2be2, #FFC83D); transform-origin: left; transform: scaleX(0); }
body.has-mini main { padding-bottom: 84px; }
body.cam-open .mini-player { display: none; }
/* Report inside lives */
.lv-report { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.lv-report svg { width: 16px; height: 16px; }
.lv-msg { position: relative; }
.lv-rep { margin-left: auto; align-self: center; flex: none; border: 0; background: none; color: rgba(255,255,255,.55); padding: 4px; cursor: pointer; pointer-events: auto; }
.lv-rep:hover, .lv-rep:focus-visible { color: #ffd166; }
/* ---------- Kemy AI Movie Maker ---------- */
.mm { max-width: 860px; margin: 0 auto; }
.mm-form textarea, .mm-head input, .mm-fields textarea { width: 100%; }
.mm-styles { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 4px 0 14px; }
.mm-styles legend { font-weight: 600; margin-bottom: 6px; }
.mm-styles label { position: relative; }
.mm-styles input { position: absolute; opacity: 0; }
.mm-styles span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(160,110,255,.35); background: rgba(138,43,226,.08); cursor: pointer; }
.mm-styles input:checked + span { background: linear-gradient(135deg,#8a2be2,#b45cff); color: #fff; border-color: transparent; }
.mm-styles input:focus-visible + span { outline: 2px solid #ffd166; }
.mm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .mm-row { grid-template-columns: 1fr 1fr; } .mm-row .field:last-child { grid-column: 1 / -1; } }
.mm-note { margin: 10px 0; }
.mm-free { margin: 8px 0 0; text-align: center; }
.mm-collapsed > :not(#mm-go):not(.form-error) { display: none; }
.mm-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.mm-head input { flex: 1; min-width: 200px; font: 700 1.3rem "Space Grotesk", Inter, sans-serif; background: transparent; border: 0; border-bottom: 2px solid rgba(160,110,255,.4); color: inherit; padding: 4px 0; }
.mm-scenes { display: grid; gap: 12px; }
.mm-scene { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 10px; }
@media (max-width: 600px) { .mm-scene { grid-template-columns: 1fr; } }
.mm-art { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #150d24; display: grid; place-items: center; }
.mm-art img { width: 100%; height: 100%; object-fit: cover; }
.mm-wait { display: grid; place-items: center; gap: 8px; text-align: center; padding: 10px; }
.mm-num { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #ffd166; font-weight: 700; border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
.mm-ph { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.6); font-size: .7rem; border-radius: 6px; padding: 1px 6px; }
.mm-fields { display: grid; gap: 6px; align-content: start; }
.mm-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
#mm-add { margin: 10px 0; }
.mm-out canvas, .mm-video { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #000; display: block; }
.mm-video { margin-top: 12px; }
.mm-post { margin-top: 14px; border-top: 1px solid rgba(160,110,255,.2); padding-top: 12px; }
.wmm { margin-left: 6px; }
.mm select { width: 100%; background: #07050c; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; font-size: 16px; color: inherit; }
.mm .mm-head input[type=text] { background: transparent; border: 0; border-bottom: 2px solid rgba(160,110,255,.4); border-radius: 0; padding: 4px 0; font: 700 1.3rem "Space Grotesk", Inter, sans-serif; }
.mm-fields textarea { min-height: 64px; }

/* ---------- Rich comments: emoji / GIF / photo / Pal stickers ---------- */
.rc-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:6px 0 2px}
.rc-btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:32px;padding:0 8px;border-radius:10px;border:1px solid rgba(180,124,240,.28);background:rgba(138,85,220,.12);color:#e9ddff;font:700 13px Inter,system-ui;cursor:pointer}
.rc-btn:hover,.rc-btn:focus-visible{background:rgba(138,85,220,.28)}
.rc-gifbtn{font-family:'Space Grotesk',Inter,sans-serif;letter-spacing:.04em;font-size:12px}
.rc-att{flex-basis:100%;display:flex;align-items:center;gap:10px}
.rc-prev{position:relative;display:inline-block}
.rc-prev img,.rc-prev canvas{max-height:90px;max-width:140px;border-radius:10px;display:block;background:#140a24}
.rc-rm{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#2a1a45;color:#fff;font-size:11px;cursor:pointer}
.rc-up{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#cbb6f5}
.rc-attrib{font-size:11px;color:#a796c9;margin:6px 0 0;text-align:right}
.rc-media{display:block;margin:6px 0 2px;position:relative;width:max-content;max-width:100%}
.rc-media img{display:block;max-width:min(260px,100%);height:auto;max-height:240px;border-radius:12px;background:#140a24;object-fit:cover}
.rc-gif-tag{position:absolute;left:6px;bottom:6px;font:800 9px 'Space Grotesk',sans-serif;letter-spacing:.06em;background:rgba(0,0,0,.6);color:#fff;padding:2px 5px;border-radius:5px}
.rc-m-sticker canvas,.rc-sticker{width:96px;height:96px;display:block}
.rc-sheet-bg{position:fixed;inset:0;z-index:1200;background:rgba(5,0,15,.6);display:flex;align-items:flex-end;justify-content:center}
.rc-sheet{width:min(520px,100%);max-height:72vh;display:flex;flex-direction:column;background:#120a22;border:1px solid rgba(180,124,240,.25);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.5);padding-bottom:env(safe-area-inset-bottom)}
@media (min-width:700px){.rc-sheet-bg{align-items:center}.rc-sheet{border-radius:18px}}
.rc-sheet-h{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 6px;font-family:'Space Grotesk',sans-serif}
.rc-sheet-b{padding:4px 12px 12px;overflow:auto;display:flex;flex-direction:column;gap:8px;min-height:200px}
.rc-ebar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rc-esearch,.rc-gsearch{flex:1;min-width:150px;height:38px;border-radius:10px;border:1px solid rgba(180,124,240,.3);background:#1b1030;color:#fff;padding:0 12px;font:14px Inter,system-ui}
.rc-tones{display:flex;gap:2px}
.rc-tones button{border:0;background:none;font-size:18px;padding:3px;border-radius:8px;cursor:pointer;opacity:.6}
.rc-tones button[aria-checked=true]{opacity:1;background:rgba(138,85,220,.35)}
.rc-ecats{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid rgba(180,124,240,.18);padding-bottom:4px}
.rc-ecats button{border:0;background:none;font-size:20px;padding:4px 7px;border-radius:8px;cursor:pointer;opacity:.6}
.rc-ecats button[aria-selected=true]{opacity:1;background:rgba(138,85,220,.3)}
.rc-egrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:2px;overflow-y:auto;max-height:42vh}
.rc-e{border:0;background:none;font-size:26px;height:42px;border-radius:8px;cursor:pointer;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.rc-e:hover,.rc-e:focus-visible{background:rgba(138,85,220,.3)}
.rc-ggrid{columns:2 140px;column-gap:6px;overflow-y:auto;max-height:52vh}
.rc-g{display:block;width:100%;border:0;padding:0;margin:0 0 6px;background:#1b1030;border-radius:8px;overflow:hidden;cursor:pointer;break-inside:avoid}
.rc-g img{display:block;width:100%;height:auto}
.rc-pals{display:flex;gap:6px;flex-wrap:wrap}
.rc-sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.rc-s{display:flex;flex-direction:column;align-items:center;border:1px solid rgba(180,124,240,.2);background:#1b1030;border-radius:14px;padding:6px;color:#e9ddff;cursor:pointer}
.rc-s:hover,.rc-s:focus-visible{border-color:#b47cf0}
.rc-loading{display:grid;place-items:center;min-height:200px}
.lv-emoji{border:0;background:none;font-size:20px;padding:0 6px;cursor:pointer;flex:none}

/* ---------- Series & Episodes ---------- */
.sb-series{display:inline-block;font:800 10px 'Space Grotesk',sans-serif;letter-spacing:.08em;background:#8a2be2;color:#fff;padding:3px 7px;border-radius:6px}
.stile .sb-series{position:absolute;left:8px;top:8px}
.worig,.wseries{margin:14px 0}.worig h3,.wseries h3{display:flex;align-items:center;gap:10px}
.sbanner{position:relative;border-radius:20px;overflow:hidden;min-height:260px;display:flex;align-items:flex-end;margin:0 0 14px;background-size:cover;background-position:center}
.sbanner::before{content:'';position:absolute;inset:0;background:var(--bg) center/cover no-repeat;filter:saturate(1.1)}
.sbanner::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,3,15,.1) 0%,rgba(7,3,15,.55) 45%,#07030f 100%)}
.sbanner-in{position:relative;z-index:1;padding:18px;width:100%}
.sbanner h1{font:800 clamp(26px,6vw,40px)/1.05 'Space Grotesk',sans-serif;margin:8px 0 6px}
.ssub{margin:0 0 8px;color:#d9ccf5;font-size:14px}.sby{display:flex;align-items:center;gap:8px;font-size:14px;color:#cbb6f5;margin-bottom:12px}
.sacts{display:flex;flex-wrap:wrap;gap:8px}
.sdesc{color:#e7defa;line-height:1.5}.sseasons{display:flex;gap:6px;overflow-x:auto;margin:14px 0 8px}.sseason-h{font:700 18px 'Space Grotesk',sans-serif;margin:16px 0 8px}
.seps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.sep{display:flex;gap:12px;padding:8px;border-radius:14px;background:#120a22;border:1px solid rgba(180,124,240,.15);color:inherit;text-decoration:none}
.sep:hover,.sep:focus-visible{border-color:#b47cf0}.sep.cont{border-color:#ffd166;box-shadow:0 0 0 1px rgba(255,209,102,.35)}
.sep-th{position:relative;flex:none;width:clamp(120px,34vw,180px);aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#1b1030}
.sep-th img{width:100%;height:100%;object-fit:cover;display:block}
.sep-rt{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.75);color:#fff;font:700 11px Inter,sans-serif;padding:2px 5px;border-radius:5px}
.sep-pr{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.25)}.sep-pr span{display:block;height:100%;background:#ff3d7f}
.sep-m{display:flex;flex-direction:column;gap:3px;min-width:0}.sep-m b{font-size:15px}.sep-m small{color:#a796c9}.sep-d{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sep-cw{align-self:flex-start;font:800 10px Inter,sans-serif;letter-spacing:.05em;text-transform:uppercase;background:#ffd166;color:#1a0d00;padding:2px 6px;border-radius:5px}
.sep-done{align-self:flex-start;font-size:11px;color:#7fe0a8}
.sep-l{display:inline-block;font:800 12px 'Space Grotesk',sans-serif;background:rgba(138,85,220,.3);color:#e9ddff;padding:2px 7px;border-radius:6px;vertical-align:middle}
.sepbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;margin:0 0 10px;border-radius:12px;background:rgba(138,85,220,.14);border:1px solid rgba(180,124,240,.25)}
.sepbar-s{display:flex;align-items:center;gap:6px;color:#fff;text-decoration:none;min-width:0}.sepbar-s b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wplayer{position:relative}
.snext{position:absolute;inset:0;display:grid;place-items:center;background:rgba(7,3,15,.82);z-index:3;border-radius:inherit}
.snext-in{text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;padding:12px}.snext-in small{color:#cbb6f5}.snext-in b{font:700 20px 'Space Grotesk',sans-serif}
.snext-ring{width:56px;height:56px;border-radius:50%;border:3px solid #ffd166;display:grid;place-items:center;font:800 22px 'Space Grotesk',sans-serif}
.spick summary{cursor:pointer;font-weight:600}.spick-b{margin-top:8px}.spick-n{gap:10px}.spick-n .field{flex:1}
.sman h2{margin-top:0}.sman-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid rgba(180,124,240,.12)}.sman-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sman select{flex:1;min-width:0}.sman-foot{display:flex;justify-content:space-between;gap:8px;margin-top:14px;flex-wrap:wrap}
.mm-ser{margin-bottom:12px}.mm-ser textarea{width:100%;margin-top:6px}

/* ---------- Movie Maker: Animated mode ---------- */
.mm-modes label span{display:flex;flex-direction:column}.mm-modes small{font-weight:400;opacity:.75;font-size:11px}
.mm-h{font:700 16px 'Space Grotesk',sans-serif;margin:14px 0 8px}
.mm-cast{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.mm-char{display:flex;gap:10px;padding:10px}.mm-cimg{flex:none;width:120px;height:150px;border-radius:12px;background:repeating-conic-gradient(#1b1030 0 25%,#140a24 0 50%) 0 0/16px 16px;display:grid;place-items:center;overflow:hidden}
.mm-cprev{width:120px;height:150px;cursor:crosshair}.mm-cname{width:100%;font-weight:700}
.mm-pup,.mm-line{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:4px 0}.mm-pup select,.mm-line select{max-width:46%}.mm-px{flex:1;min-width:80px}.mm-ltext{flex:1;min-width:120px}
.mm-row2{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0}
.mm-sprev{width:100%;height:auto;display:block;border-radius:10px}

/* ---------- Feed tabs (For You / Following / Funny / News / Dance / Trending) + outside items ---------- */
.vtabs { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 54px); left: 0; right: 0; display: flex; gap: 6px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs a { flex: none; padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); backdrop-filter: blur(6px); text-decoration: none; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.vtabs a.active { background: #fff; color: #1a0a30; text-shadow: none; }
.vcard { inset: 104px 18px 150px; }
.vcat { white-space: nowrap; }
.vext-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .76rem; font-weight: 700; letter-spacing: .02em; margin-right: 8px; }
.vext .vname { color: #fff; font-weight: 700; }
.vext-ic { font-size: 1.5rem; line-height: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.35); }
.vnews { position: absolute; inset: 104px 18px 170px; display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 560px; margin: 0 auto; color: #fff; }
.vnews-img { width: 100%; max-height: 38vh; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.vnews-src { margin: 0; font-weight: 700; font-size: .9rem; opacity: .9; }
.vnews-title { margin: 0; font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.vnews-sum { margin: 0; opacity: .9; line-height: 1.45; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vnews-go { align-self: flex-start; }
.vslide[data-kind=news] .vbg { filter: blur(30px) brightness(.45); }
/* category picker on upload forms */
.catpick { border: 0; padding: 0; margin: 10px 0; }
.catpick legend { margin-bottom: 6px; }
.catpick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.catchip input { position: absolute; opacity: 0; pointer-events: none; }
.catchip span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .85rem; cursor: pointer; }
.catchip input:checked + span { background: linear-gradient(90deg, #8a2be2, #4da3ff); border-color: transparent; color: #fff; }
.catchip input:focus-visible + span { outline: 2px solid #c9a8ff; outline-offset: 2px; }
.vunmute-hint { top: calc(env(safe-area-inset-top) + 100px); }
.vwrap[data-kind=news] .vunmute-hint, .vwrap[data-kind=news] .vmute { display: none; }

/* Autoplay: long movies show a preview + "Watch full movie"; keep Pal pop-ups clear of mute/rail controls */
.vfull { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h, 0px) + 120px); display: inline-flex; gap: 6px; align-items: center; }
.vfull svg { width: 16px; height: 16px; }
body:has(.vwrap) .pal-pop { top: 24%; }
.vwrap[data-kind=youtube] .vunmute-hint { pointer-events: auto; }
/* the action rail sits on the right in the feed: Pal pop-ups peek from the left there */
body:has(.vwrap) .pal-pop.right { right: auto; left: 0; --from: -140px; }
body:has(.vwrap) .pal-pop.right .pal-pop-say { right: auto; left: 10px; }
/* ===== Typed text: always high-contrast. Dark boxes = light text, light boxes = #111 text (see .field-light) ===== */
:where(input:not([type]), input[type=number], input[type=tel]) { width: 100%; background: #07050c; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--text); }
:where(input, textarea, [contenteditable]) { -webkit-text-fill-color: currentColor; caret-color: currentColor; }
:where(input, textarea)::placeholder { color: #b9aed0; -webkit-text-fill-color: #b9aed0; opacity: 1; }
/* any light text box: black text, black caret, dark-gray placeholder */
.field-light, .field-light :is(input, textarea), .pal-talk-form input { color: #111 !important; -webkit-text-fill-color: #111 !important; caret-color: #111 !important; background-color: #fff !important; }
:is(.field-light, .pal-talk-form) :is(input, textarea)::placeholder, .field-light::placeholder { color: #55505f !important; -webkit-text-fill-color: #55505f !important; }
/* iOS/Chrome autofill paints a light yellow box: keep text dark there, or repaint dark fields dark */
:where(input, textarea):-webkit-autofill { -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #07050c inset; box-shadow: 0 0 0 1000px #07050c inset; transition: background-color 9999s; }
.field-light input:-webkit-autofill, .pal-talk-form input:-webkit-autofill { -webkit-text-fill-color: #111 !important; -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset; }
select option { color: #111; background: #fff; }
:is(input, textarea, select, [contenteditable]):focus-visible { outline: none; border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(138,43,226,.45); }
@media (forced-colors: active) { :is(input, textarea, select, [contenteditable]) { -webkit-text-fill-color: FieldText !important; caret-color: FieldText !important; } :is(input, textarea)::placeholder { -webkit-text-fill-color: GrayText !important; color: GrayText !important; } }
@media (prefers-contrast: more) { :is(input, textarea)::placeholder { color: #ddd6ea; -webkit-text-fill-color: #ddd6ea; } }
/* iOS zooms into any field under 16px */
@supports (-webkit-touch-callout: none) { html :is(input, textarea, select) { font-size: max(16px, 1em) !important; } }
body.kb-open .bottom-nav, body.kb-open .pal-pop { display: none !important; }
/* YouTube Shorts: full-height vertical card */
.vshort .vembed { inset: 0; }
.vshort .vembed-frame.tall { height: 100%; max-height: 100%; }
.vshort .vthumb { aspect-ratio: 9/16; object-fit: cover; max-height: 70vh; width: auto; }

/* ---------- Search groups, Music page, Your interests (js/search.js, js/music.js, js/interests.js) ---------- */
.yt-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 46%); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
@media (min-width: 720px) { .yt-row { grid-auto-columns: 240px; } }
.yt-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; scroll-snap-align: start; font: inherit; }
.yt-art { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.yt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; inset: auto 8px 8px auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.65); display: grid; place-items: center; font-size: 14px; }
.yt-meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.3; }
.yt-meta small { color: var(--muted); font-size: .76rem; }
.yt-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 12px; }
.yt-sheet { width: min(92vw, 760px); }
.yt-frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-frame.short { aspect-ratio: 9/16; max-height: 70vh; margin: 0 auto; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.scat { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scat a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.scat a:hover { background: var(--surface-2); }
.scat a > span:last-child { display: flex; flex-direction: column; }
.scat-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; }
.sblocked { line-height: 1.5; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ilist li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 10px; align-items: center; }
.ilist li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ibar span { display: block; height: 100%; background: linear-gradient(90deg, #8a2be2, var(--blue)); }
.mus-theme { margin: 6px 0 4px; }

/* Kemy theme: floating music button + first-run prompt */
.theme-fab { position: fixed; right: 14px; bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(181,123,255,.5); background: rgba(27,16,48,.92); color: #fff; font-size: 20px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.theme-fab[hidden] { display: none; }
.theme-fab.on { animation: themePulse 2.4s ease-in-out infinite; }
@keyframes themePulse { 50% { box-shadow: 0 0 0 6px rgba(138,43,226,.25), 0 6px 20px rgba(0,0,0,.45); } }
@media (prefers-reduced-motion: reduce) { .theme-fab.on { animation: none; } }
@media (min-width: 900px) { .theme-fab { bottom: 20px; right: 20px; } }
body.kb-open .theme-fab { display: none; }
.modal-backdrop ~ .theme-fab, body:has(.modal-backdrop #welcome-title) .theme-fab { z-index: 110; }
.theme-ask { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom)); z-index: 120; max-width: 420px; margin: 0 auto; background: #1b1030; border: 1px solid rgba(181,123,255,.45); border-radius: 18px; padding: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.55); display: grid; gap: 10px; }
.theme-ask p { margin: 0; display: grid; gap: 2px; } .theme-ask small { color: var(--muted); }
.theme-ask > div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) { .theme-ask { bottom: 20px; left: auto; right: 20px; } }
.theme-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.theme-seg label { margin: 0; position: relative; }
.theme-seg input { position: absolute; opacity: 0; }
.theme-seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; font-weight: 500; }
.theme-seg input:checked + span { background: linear-gradient(135deg, var(--purple), #6a3df0); color: #fff; border-color: transparent; }
.theme-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.mx-embed iframe { width: 100%; border: 0; border-radius: 12px; overflow: hidden; background: transparent; display: block; }
.mx-credit { font-size: 12px; opacity: .8; margin: 4px 0 8px; } .mx-credit a { color: inherit; text-decoration: underline; }
.apple-row { display: grid; gap: 8px; } .apple-item { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px; }
.apple-item img { width: 56px; height: 56px; border-radius: 8px; flex: none; } .apple-item .am { min-width: 0; flex: 1; } .apple-item b, .apple-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apple-item audio { width: 100%; height: 32px; margin-top: 4px; } .apple-item a.am-open { font-size: 12px; white-space: nowrap; }
/* Scoreboards */
.lb-page { padding-bottom: 120px; }
.lb-head { display: flex; justify-content: space-between; align-items: center; } .lb-head h1 { margin: 0; font-size: 1.4rem; }
.lb-games, .lb-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.lb-games a, .lb-tabs a { flex: none; padding: 7px 12px; border-radius: 999px; background: #241a38; color: #f3eefc; border: 1px solid rgba(255,255,255,.12); text-decoration: none; font-size: 13px; white-space: nowrap; }
.lb-games a.on, .lb-tabs a.on { background: #fff; color: #1b1428; border-color: #fff; font-weight: 700; }
.lb-how { color: #cfc4e6; margin: 6px 0 10px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 40px 1fr 44px auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #1f1631; color: #f3eefc; cursor: pointer; border: 1px solid rgba(255,255,255,.08); }
.lb-row:hover, .lb-row:focus-visible { border-color: #a855f7; outline: none; }
.lb-row.me { border-color: #a855f7; box-shadow: inset 0 0 0 1px #a855f7; }
.lb-rank-n { font: 800 16px 'Space Grotesk', Inter, sans-serif; text-align: center; color: #f3eefc; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.lb-medal { font-size: 18px; text-shadow: 0 0 8px rgba(255,211,77,.7); }
.lb-row.gold { background: linear-gradient(90deg, #ffe58a, #ffd34d); color: #241400; } .lb-row.gold .lb-medal { color: #b8860b; }
.lb-row.silver { background: linear-gradient(90deg, #f1f3f8, #cfd5e2); color: #1b1d26; } .lb-row.silver .lb-medal { color: #7b8394; }
.lb-row.bronze { background: linear-gradient(90deg, #f7c9a0, #d9935a); color: #2a1404; } .lb-row.bronze .lb-medal { color: #8a4b1c; }
.lb-row.gold *, .lb-row.silver *, .lb-row.bronze * { color: inherit; }
.lb-who { min-width: 0; } .lb-who b, .lb-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-who small { opacity: .75; }
.lb-pal { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.12); }
.lb-score { text-align: right; } .lb-score b { display: block; font-size: 16px; } .lb-score small { display: block; opacity: .75; font-size: 11px; white-space: nowrap; }
.lb-empty { color: #cfc4e6; padding: 14px; text-align: center; list-style: none; }
.lb-more { margin: 10px auto; display: block; }
.lb-me { position: sticky; bottom: calc(var(--bottom-h, 0px) + 8px + env(safe-area-inset-bottom)); margin-top: 12px; z-index: 5; padding: 6px; border-radius: 16px; background: rgba(17,12,28,.92); backdrop-filter: blur(6px); }
.lb-rank, .lb-rank-pill a { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #ffd34d; color: #241400; font-weight: 600; text-decoration: none; text-align: center; }
.lb-rank-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h, 0px) + 20px); z-index: 330; }
.g-scores { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(90deg, #ffe58a, #ffd34d); color: #241400; text-decoration: none; font-size: 24px; }
.g-scores b, .g-scores small { display: block; color: #241400; } .g-scores b { font-size: 16px; } .g-scores small { font-size: 12px; opacity: .8; }
/* readable selects everywhere (Settings playlist / graphics etc.) */
select { background: #120c24; color: #fff; -webkit-text-fill-color: #fff; border: 1px solid var(--border, #4a3a7a); border-radius: 12px; padding: 10px 12px; }
/* Full-screen games (Pal Park, Arcade, zombie game): no bottom nav/footer, controls above the iOS home indicator */
body.game-mode .bottom-nav, body.game-mode .site-footer { display: none !important; }
body.game-mode .app-main { padding-bottom: 0 !important; }
body.game-mode .toast { bottom: calc(110px + env(safe-area-inset-bottom)); }
body.game-mode .park { position: fixed; inset: 0; z-index: 90; max-width: none; margin: 0; display: flex; flex-direction: column; background: #0d0820; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
body.game-mode .park-top { padding: 8px 10px; } body.game-mode .park-view { flex: 1; min-height: 0; border-radius: 0; } body.game-mode .park-help { display: none; }
body.game-mode .park-joy { left: max(18px, env(safe-area-inset-left)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 16px); }
body.game-mode .park-btns { right: max(14px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 16px); }
body.game-mode .park-panel { bottom: calc(max(20px, env(safe-area-inset-bottom)) + 150px); }

/* ---------- Moderators (js/moderation.js) ---------- */
.badge.mod-badge { background: #1d9bf0; color: #fff; cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.p3-tag .mod-badge, .p3-bub .mod-badge, .p3-tag .owner-badge, .p3-bub .owner-badge { width: 14px; height: 14px; font-size: 9px; pointer-events: auto; }
.p3-bub .mod-badge { margin: 0 3px 0 0; }
.mod-pill { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, rgba(138,43,226,.85), rgba(77,163,255,.75)); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(138,43,226,.35); }
.mod-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; }
.mod-pill .mod-count { position: absolute; top: -6px; right: -6px; }
.mod-set-btn { background: linear-gradient(135deg, #8a2be2, #4da3ff); }
.mod-page .mod-tabs { flex-wrap: wrap; gap: 4px; }
.mod-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.mod-filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; backdrop-filter: blur(8px); }
.chip.on { background: linear-gradient(135deg, #8a2be2, #6a3df0); border-color: transparent; color: #fff; }
.chip small { opacity: .75; margin-left: 3px; }
.mod-select { background: rgba(30,16,60,.85); color: #f4f1fa; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 7px 10px; }
.mod-rep { margin-bottom: 12px; background: linear-gradient(160deg, rgba(138,43,226,.16), rgba(30,16,60,.55)); border: 1px solid rgba(190,150,255,.25); backdrop-filter: blur(10px); }
.mod-rep.st-resolved { opacity: .72; }
.mod-type { text-transform: uppercase; font-size: .72rem; color: #9fd0ff; }
.mod-st { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.st-open .mod-st { background: rgba(255,77,109,.25); color: #ffc2cf; }
.st-review .mod-st { background: rgba(255,200,60,.22); color: #ffe39a; }
.st-resolved .mod-st { background: rgba(43,182,115,.25); color: #b5f5d3; }
.mod-quote { margin: 10px 0 4px; padding: 8px 12px; border-left: 3px solid #b18cff; background: rgba(255,255,255,.06); border-radius: 0 10px 10px 0; white-space: pre-wrap; word-break: break-word; }
.mod-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mod-user .meta { min-width: 0; flex: 1; }
.mod-h2 { font-size: 1.1rem; margin: 18px 0 8px; }
.mod-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.mod-dur { display: flex; flex-wrap: wrap; gap: 6px; }
.mod-dur label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); cursor: pointer; }
.mod-susp { max-width: 520px; margin: 30px auto; background: linear-gradient(160deg, rgba(138,43,226,.3), rgba(30,16,60,.7)); backdrop-filter: blur(12px); }
.mod-av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #8a2be2, #4da3ff); font-size: 1.2rem; flex-shrink: 0; }
.bubble { position: relative; }
.bub-rep { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--muted); font-size: .7rem; cursor: pointer; opacity: .6; }
.bub-rep:hover, .bub-rep:focus { opacity: 1; color: #ff8aa0; }
#mod-fab { display: none; }
body.feed-mode #mod-fab { display: inline-flex; position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 64px); right: 12px; padding: 8px 10px; }
.app-header .mod-pill { white-space: nowrap; flex-shrink: 0; width: auto; height: 34px; padding: 0 10px; border-radius: 999px; }
/* ---------- Mod Hub ---------- */
.hub-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hub-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px 6px; position: sticky; top: 56px; z-index: 5; background: linear-gradient(180deg, rgba(14,8,28,.92), rgba(14,8,28,.6)); backdrop-filter: blur(10px); }
.hub-nav::-webkit-scrollbar { display: none; }
.hub-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 700; font-size: .86rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.hub-nav a.on { background: linear-gradient(135deg, #8a2be2, #4da3ff); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(138,43,226,.4); }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hub-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--text); background: linear-gradient(160deg, rgba(138,43,226,.28), rgba(30,16,60,.6)); border: 1px solid rgba(190,150,255,.28); backdrop-filter: blur(10px); }
.hub-tile .ic { font-size: 1.3rem; } .hub-tile b { font-size: 1.7rem; line-height: 1.1; } .hub-tile span:last-child { font-size: .8rem; color: var(--muted); }
.q-prev { display: flex; gap: 10px; align-items: flex-start; } .q-prev img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; flex-shrink: 0; } .q-prev > div { min-width: 0; flex: 1; }
.hub-urow { width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; } .hub-stats span { padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: .8rem; }
.hub-h3 { font-size: .95rem; margin: 14px 0 6px; } .hub-hist { margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.hub-done { opacity: .55; } .hub-done p { text-decoration: line-through; }
.hub-thread { min-height: 60vh; } .hub-thread .mod-tpl { padding: 0 4px; }
.mod-thread-row { display: flex; padding: 10px; background: linear-gradient(135deg, rgba(138,43,226,.25), rgba(77,163,255,.12)); border: 1px solid rgba(190,150,255,.3); }
.hub-body textarea, .hub-body input[type=search] { color: #f4f1fa; }
/* kind-words filter + AI helper label */
.kind-bad, .kind-bad:focus { border-color: #ff6b8a !important; box-shadow: 0 0 0 3px rgba(255,107,138,.3) !important; }
.kind-hint { margin: 6px 0 0; padding: 7px 11px; border-radius: 12px; font-size: .82rem; color: #fff; background: linear-gradient(135deg, rgba(138,43,226,.9), rgba(226,68,138,.85)); box-shadow: 0 4px 14px rgba(138,43,226,.35); width: 100%; flex-basis: 100%; }
.kind-hint mark { background: #ffe066; color: #2a0f3d; border-radius: 4px; padding: 0 3px; font-weight: 800; }
.ai-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: .68rem; font-weight: 800; vertical-align: 1px; color: #2a0f3d; background: #c9f2ff; white-space: nowrap; }

/* Pal Park quick access (home feed + Explore) */
.pk-quick{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:10px 14px;border-radius:18px;text-decoration:none;color:#0b1a10;background:linear-gradient(135deg,#eaffd9,#c9f1ff);border:1px solid #9bd77a;box-shadow:0 4px 14px rgba(60,140,80,.25)}
.pk-quick b{display:block;color:#0b1a10;font-size:1rem}.pk-quick small{display:block;color:#24412c;font-size:.8rem}
.pk-quick-ic{font-size:1.9rem;line-height:1}.pk-quick > span:nth-child(2){flex:1;min-width:0}
.pk-quick-go{flex:0 0 auto;padding:7px 14px;border-radius:999px;background:#2f8a3e;color:#fff;font-weight:800;font-size:.85rem}
.pk-promo{background:linear-gradient(135deg,rgba(95,174,60,.28),rgba(47,154,216,.22))!important;border:1px solid rgba(155,215,122,.6)!important}

/* App-wide autoplay (js/autoplay-all.js) */
.ap-host{position:relative}
.ap-sound{position:absolute;right:10px;bottom:10px;z-index:3;border:0;border-radius:999px;padding:8px 12px;background:rgba(0,0,0,.62);color:#fff;font:600 .85rem system-ui;cursor:pointer}
.ap-sound.on{padding:8px 10px}
.ap-tap{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;background:rgba(0,0,0,.35);color:#fff;cursor:pointer}
.ap-tap span{display:grid;place-items:center;width:78px;height:78px;border-radius:50%;background:rgba(0,0,0,.6);font-size:2rem}
.ap-tap small{font:700 1rem system-ui;text-shadow:0 1px 3px #000}
.vslide.yt-wait .vcard::after{content:'▶  Tap to play';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:18px 26px;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font:800 1.15rem system-ui;pointer-events:none}
.vdon .vend-inner h2 { margin: 6px 0; } /* full-height promo cards in the For You feed (e.g. The Sheriff) */
/* New-device sign-in alert (js/devices.js) */
.sec-banner { position: fixed; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 9000; max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: #2a1030; color: #fff; border: 1px solid #e2448a; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: .92rem; }
.sec-banner b { display: block; margin-bottom: 4px; }
.sec-notice { border-color: rgba(226,68,138,.5); background: rgba(226,68,138,.08); }
.sec-notice b { display: block; margin-bottom: 6px; }
.sec-dev { display: flex; align-items: center; gap: 10px; }
.sec-dev .meta { flex: 1; min-width: 0; }

/* For You loading skeleton */
.feed-skel{height:calc(100dvh - 120px);padding:14px;display:flex;flex-direction:column;gap:12px}
.feed-skel .sk-card{flex:1;border-radius:18px}
.feed-skel .sk-line{height:14px;width:70%;border-radius:8px}.feed-skel .sk-line.short{width:40%}
.feed-skel>div{background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.14),rgba(255,255,255,.06));background-size:200% 100%;animation:skel 1.2s linear infinite}
@keyframes skel{to{background-position:-200% 0}}
.sec-this { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(77,163,255,.18); color: #9cc9ff; margin-left: 4px; white-space: nowrap; }

/* Optional push (js/push.js). High contrast on the dark card, 44px+ targets, one column on a phone. */
.push-card h2 { font-size: 1.05rem; }
.push-lead { margin: 6px 0 8px; }
.push-card .btn-block { margin-top: 12px; }
.push-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--border); }
.push-row span { flex: 1; min-width: 0; }
.push-row b { display: block; color: var(--text); }
.push-row small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.push-row input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 48px; height: 28px; margin: 0; flex-shrink: 0; cursor: pointer;
  background: #3a3350; border: 2px solid #d4c8ef; border-radius: 999px; position: relative;
}
.push-row input[type=checkbox]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .15s ease;
}
.push-row input[type=checkbox]:checked { background: #7c3aed; border-color: #e9d5ff; }
.push-row input[type=checkbox]:checked::after { transform: translateX(20px); }
.push-row input[type=checkbox]:focus { outline: none; box-shadow: none; }
.push-row input[type=checkbox]:focus-visible { outline: 2px solid #9cc9ff; outline-offset: 3px; box-shadow: 0 0 0 3px rgba(156,201,255,.45); }
.push-note { margin-top: 8px; }
.chime-h { margin: 14px 0 0; font-size: 1rem; color: var(--text); }
.chime-note { margin: 4px 0 8px; }
.chime-list { display: grid; gap: 2px; max-height: 280px; overflow: auto; }
.chime-opt { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.chime-opt label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px; color: #f4f1fa; font-weight: 700; }
.chime-opt input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: #ffd34d; }
.chime-opt label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chime-default {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: #ffd34d; color: #241400; font-style: normal; font-size: .72rem; font-weight: 800;
  vertical-align: 1px;
}
.chime-opt .btn { min-height: 44px; padding: 8px 14px; }
.push-nudge, .push-banner {
  position: fixed; left: 12px; right: 12px; z-index: 70; max-width: 420px; margin: 0 auto;
  background: #1a1030; color: #f4f1fa; border: 2px solid #c4b5fd; border-radius: 18px; padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.push-nudge { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 12px); }
.push-banner { top: calc(env(safe-area-inset-top, 0px) + 12px); display: flex; align-items: center; gap: 8px; }
.push-nudge b, .push-banner b { display: block; font-size: 1.05rem; }
.push-nudge p, .push-banner p { margin: 4px 0 10px; color: #f4f1fa; }
.push-banner p { margin: 0; flex: 1; }
.push-nudge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.push-nudge-row .btn { min-height: 44px; }
#push-admin input, #push-admin textarea { width: 100%; margin: 4px 0 8px; }
#push-admin label { display: block; margin-top: 6px; font-weight: 600; }

/* What's New */
.wn-hub {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px;
  text-decoration: none; color: #f4f1fa; background: linear-gradient(90deg, #2a1848, #5b21b6);
  border: 2px solid #ffd34d; border-radius: 16px;
}
.wn-hub > span:first-child { font-size: 1.6rem; line-height: 1; }
.wn-hub > span:nth-child(2) { flex: 1; min-width: 0; }
.wn-hub b { display: block; color: #ffd34d; font-size: 1.05rem; }
.wn-hub small { display: block; color: #f4f1fa; font-size: .85rem; }
.wn-dot { width: 12px; height: 12px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 0 2px #2a1848; flex: none; }
.wn-page { max-width: 640px; margin: 0 auto; }
.wn-lead { margin: 6px 0 0; color: #f4f1fa; }
.wn-credit { margin: 4px 0 14px; }
.wn-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wn-tab {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 2px solid #c4b5fd; background: #1a1030; color: #f4f1fa;
  font-weight: 700; font-size: .95rem;
}
.wn-tab[aria-selected="true"] { background: #ffd34d; color: #241400; border-color: #ffd34d; }
.wn-list { display: grid; gap: 12px; }
.wn-card {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  background: #1a1030; color: #f4f1fa; border: 2px solid #c4b5fd; border-radius: 18px; padding: 14px;
}
.wn-emoji { font-size: 1.8rem; line-height: 1.2; text-align: center; }
.wn-card .wn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.wn-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; line-height: 1.3; }
.wn-tag-new { background: #ffd34d; color: #241400; }
.wn-tag-fix { background: #1d4ed8; color: #fff; }
.wn-tag-soon { background: #e9d5ff; color: #2a1848; }
.wn-date { margin: 0; color: #ffd34d; font-weight: 700; font-size: .85rem; }
.wn-card h2 { font-size: 1.12rem; margin: 2px 0 0; color: #fff; }
.wn-card p { margin: 6px 0 0; color: #f4f1fa; }
.wn-img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 12px; margin-top: 10px; border: 2px solid #ffd34d; }
.wn-card .wn-play { margin-top: 12px; background: #ffd34d; color: #241400; box-shadow: none; }
.wn-card .wn-play:hover { background: #ffe58a; color: #241400; }
.wn-form { margin-top: 16px; }
.wn-form input, .wn-form textarea, .wn-form select { width: 100%; margin: 4px 0 10px; background: #07050c; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--text); }
.wn-form .wn-ping { margin: 4px 0 12px; color: var(--text); }
.wn-form h2 { font-size: 1.05rem; margin-bottom: 6px; }

/* ===== 📱 No "blue screen" on taps (iPhone + Android): no tap flash, no accidental selection / long-press callout /
   image drag, no blue outline after a tap. Typing + selecting still work in inputs, textareas and contenteditable;
   keyboard users still get a visible (purple) focus ring. ===== */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable], [contenteditable] *, .selectable, .selectable * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, canvas, video, svg { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
canvas, button, a, [role="button"], .btn, .card, label, summary, .ps-tile, .pal-float, .pal-pop, .pal-live { touch-action: manipulation; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #9a6aff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(154,106,255,.25); }
input:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 2px solid #9a6aff; outline-offset: 0; }
::selection { background: rgba(154,106,255,.35); }

/* New Members (admin) */
.nm-card { display: block; margin: 0 0 14px; text-decoration: none; color: inherit; border: 2px solid #8a2be2; background: linear-gradient(135deg, rgba(138,43,226,.28), rgba(255,211,77,.12)); }
.nm-card-row { display: flex; align-items: center; gap: 12px; }
.nm-card-row > span:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nm-card b { font-size: 1.15rem; }
.nm-badge { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: #ffd34d; color: #241400; font-weight: 800; font-size: .85rem; }
.nm { max-width: 640px; margin: 0 auto; }
.nm-back { display: inline-block; margin-bottom: 8px; color: #e9d5ff; font-weight: 700; text-decoration: none; min-height: 44px; line-height: 44px; }
.nm-lead { margin-top: 0; }
.nm-total { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.nm-total b { font-size: 2.75rem; line-height: 1; color: #ffd34d; font-weight: 800; }
.nm-total span { color: #e9d5ff; font-weight: 700; }
.nm-total .nm-delta { display: inline-block; min-width: 1.5em; margin-left: 4px; font-size: 1.4rem; font-weight: 800; color: transparent; opacity: 0; }
.nm-total .nm-delta.show { animation: nm-pop 1.3s ease; }
.nm-total .nm-delta.up { color: #3ddc84; }
.nm-total .nm-delta.down { color: #ff5c6a; }
@keyframes nm-pop {
  0% { opacity: 0; transform: translateY(8px); }
  15% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}
.nm-count-note { margin: 0 0 10px; }
.nm-verified { margin: 0 0 8px; }
.nm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.nm-tabs button { min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(160,110,255,.5); background: transparent; color: #e9d5ff; font: inherit; font-weight: 700; cursor: pointer; }
.nm-tabs button[aria-selected="true"] { background: #8a2be2; color: #fff; border-color: #ffd34d; }
.nm-tabs b { color: #ffd34d; margin-left: 4px; }
.nm-list-title { margin: 0 0 4px; font-size: 1.05rem; color: #fff; }
.nm-list-title.nm-list-left { color: #ff8d8d; }
.nm-line { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.nm-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.nm-row.nm-inactive { background: rgba(255, 159, 67, .16); border: 1px solid rgba(255, 159, 67, .55); border-radius: 12px; padding: 6px 8px; margin: 6px 0; }
.nm-row.nm-inactive .nm-name b,
.nm-row.nm-inactive .nm-when { color: #ffbf7a; }
.nm-inactive .nm-tag { background: #ff9f43; color: #2a1400; }
.nm-row.nm-left { background: rgba(255, 70, 84, .18); border: 1px solid rgba(255, 90, 100, .7); border-radius: 12px; padding: 6px 8px; margin: 6px 0; }
.nm-row.nm-left .nm-name b,
.nm-row.nm-left .nm-when,
.nm-row.nm-left .nm-handle { color: #ff8d8d; }
.nm-left .nm-tag { background: #ff4d5a; color: #fff; }
.nm-push { margin: 8px 0 12px; color: var(--text); }
.nm-search { display: block; font-weight: 700; margin-top: 4px; }
#nm-q { width: 100%; margin: 4px 0 8px; background: #07050c; border: 1px solid #8a2be2; border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--text); }
.nm-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(160,110,255,.22); }
.nm-meta { min-width: 0; flex: 1; display: grid; }
.nm-when, .nm-how { display: block; }
.nm-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nm-name b { font-size: 1.02rem; }
.nm-new { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #ffd34d; color: #241400; font-size: .72rem; font-weight: 800; }
.nm-handle { color: #e9d5ff; font-weight: 700; text-decoration: none; }
.nm-when, .nm-how, .nm-email { margin: 2px 0; color: #d9d0ea; font-size: .92rem; }
.nm-email { color: #ffd34d; font-weight: 700; word-break: break-all; }
.nm-mail { margin: 4px 0 0 56px; min-height: 44px; align-self: flex-start; }
.nm-row { flex-direction: column; align-items: stretch; gap: 2px; }
.nm-open { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin: 0; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 44px; border-radius: 12px; }
.nm-open:focus-visible { outline: 2px solid #ffd34d; outline-offset: 2px; }
.nm-go { margin-left: auto; color: #ffd34d; font-size: 1.5rem; line-height: 1; align-self: center; }
button.nm-back { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.nm-card-detail { border: 2px solid #8a2be2; border-radius: 18px; padding: 14px; background: linear-gradient(160deg, rgba(138,43,226,.22), rgba(255,211,77,.08)); }
.nm-detail-head { display: flex; gap: 12px; align-items: center; }
.nm-detail-head h1 { margin: 0; font-size: 1.35rem; }
.nm-detail-head .avatar { width: 64px; height: 64px; font-size: 1.35rem; }
.nm-pal { margin: 4px 0 0; color: #ffd34d; font-weight: 700; }
.nm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.nm-stat { background: rgba(36, 16, 64, .55); border: 1px solid rgba(255, 211, 77, .4); border-radius: 14px; padding: 10px 12px; min-height: 44px; }
.nm-stat b { display: block; color: #ffd34d; font-size: 1.15rem; }
.nm-stat span { color: #e9d5ff; font-size: .8rem; }
.nm-h2 { margin: 14px 0 4px; font-size: 1rem; color: #fff; }
.nm-block { margin: 0; color: #f3e9ff; }
.nm-note { color: #d9d0ea; font-size: .88rem; }
.nm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nm-acts .btn { min-height: 44px; }
.nm-card-detail .nm-mail { margin-left: 0; }
.nm-ban { margin: 8px 0 0; color: #ffd34d; font-weight: 700; }
#nm-end { height: 1px; }

.bottom-nav a { font-size: .66rem; }

/* Kemy Sounds picker + credit line */
.ks-box { margin: 8px 0 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: rgba(138,43,226,.08); }
.ks-title { margin: 0 0 8px; font-weight: 700; }
.ks-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.ks-tabs button { flex: 0 0 auto; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); }
.ks-tabs button[aria-selected="true"] { background: var(--purple); border-color: transparent; color: #fff; }
.ks-find { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ks-find input, .ks-find select { width: 100%; min-height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #120c1c; color: var(--text); padding: 6px 10px; }
.ks-sec { margin: 6px 0; font-size: .82rem; color: var(--muted); }
.ks-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ks-row { display: flex; gap: 8px; align-items: center; }
.ks-prev { flex: 1; display: flex; gap: 8px; align-items: center; min-height: 44px; text-align: left; border: 0; background: rgba(255,255,255,.04); border-radius: 12px; padding: 6px 8px; }
.ks-row.picked .ks-prev { outline: 2px solid var(--purple-light); }
.ks-meta { display: flex; flex-direction: column; line-height: 1.2; }
.ks-meta small { color: var(--muted); }
.ks-use { min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: transparent; }
.ks-row.picked .ks-use { background: var(--purple); border-color: transparent; color: #fff; }
.ks-sl { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: .85rem; }
.ks-sl input { flex: 1; }
.ks-status { margin: 4px 0; }
.ks-credits-link { font-size: .85rem; }
.ks-credit { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.vmeta .ks-credit { color: #fff; text-shadow: 0 1px 2px #000; }
.ks-page h2, .ks-page h3 { margin: 12px 0 6px; }
.ks-credits { margin: 0; padding-left: 18px; }
.ks-credits li { margin: 0 0 8px; }

/* The Sheriff of Lone Keem entry cards (js/sheriff-card.js); the series page CSS is in css/sheriff.css */
.sh-orig { display: inline-block; font: 800 10.5px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #ffd9a0; }
.sh-badge { display: inline-block; font: 800 10.5px Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; background: #2bb673; color: #04210f; padding: 1px 6px; border-radius: 5px; margin-right: 4px; vertical-align: 1px; }
.sh-feat { position: relative; display: block; min-height: 190px; margin: 0 0 12px; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: #1a0f08 var(--bg) center 22% / cover no-repeat; border: 1px solid rgba(255,190,110,.28); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.sh-feat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,5,2,.92) 0%, rgba(10,5,2,.45) 48%, transparent 75%); }
.sh-feat-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; }
.sh-feat-in b { font: 700 1.35rem/1.15 'Space Grotesk', sans-serif; color: #ffe2a8; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.sh-feat-in small { color: #efe6ff; }
.sh-feat-cta { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--purple); font-weight: 700; font-size: .9rem; }
.sh-feat:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 2px; }
.vsh-in { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vend-inner img.vsh-art { width: min(46vw, 210px, 30vh); height: auto; aspect-ratio: 540/868; object-fit: cover; margin: 0 auto 6px; border-radius: 16px; box-shadow: 0 0 50px rgba(200,116,31,.45); }
.vsh-t { font: 700 1.5rem/1.15 'Space Grotesk', sans-serif; color: #ffe2a8; }
.vsh-in small { color: var(--muted); margin-bottom: 10px; }
.vsh-skip { margin-top: 4px; }
@media (orientation: landscape) and (max-height: 500px) { .vend-inner img.vsh-art { display: none; } }
/* The Sheriff of Lone Keem on the studio profile + as a For You feed video */
.sh-studio { margin: 14px 0 16px; }
.sh-studio-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.sh-studio-h h2 { margin: 0; font-size: 1.1rem; }
.sh-eprow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sh-epc { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: inherit; }
.sh-epc-art { position: relative; display: block; aspect-ratio: 540 / 868; border-radius: 12px; overflow: hidden; background: #1a0f08; border: 1px solid rgba(255,190,110,.22); }
.sh-epc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-epc-dur { position: absolute; right: 6px; bottom: 8px; font: 700 11px Inter, sans-serif; background: rgba(0,0,0,.7); color: #fff; padding: 1px 6px; border-radius: 6px; }
.sh-epc-ok { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #2bb673; color: #04210f; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.sh-epc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.sh-epc-bar span { display: block; height: 100%; background: var(--purple-light, #b77bff); }
.sh-epc small { margin-top: 4px; color: #ffd9a0; font-weight: 700; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; }
.sh-epc b { font-size: .86rem; line-height: 1.2; }
.sh-epc:focus-visible { outline: 3px solid var(--purple-light); outline-offset: 2px; border-radius: 12px; }
@media (orientation: landscape) and (max-height: 500px) { .sh-eprow { grid-template-columns: repeat(3, minmax(0, 150px)); } .sh-studio .sh-feat { min-height: 150px; } }
.sh-gtile .sh-gt { position: absolute; z-index: 1; left: 6px; bottom: 6px; font: 800 11px Inter, sans-serif; color: #ffe2a8; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.vsh-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.vsh-epn { font: 800 10.5px Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.18); color: #fff; padding: 2px 7px; border-radius: 6px; }
.vsh-cta { margin-top: 8px; pointer-events: auto; }
.vsh-ep a.vact { text-decoration: none; color: #fff; }
@media (orientation: landscape) and (max-height: 500px) { .vsh-ep .vsh-tags { margin-bottom: 2px; } .vsh-ep .vcaption { display: none; } .vsh-ep .vsh-cta { margin-top: 4px; } .vsh-ep .vrail > a[href$='/1'], .vsh-ep .vrail > a[href$='/sheriff'], .vsh-ep .vrail > .save { display: none; } .vsh-ep .vrail { gap: 6px; } .vsh-ep .vact svg { width: 40px; height: 40px; padding: 8px; } }

/* Creator age limits (13+ / 17+): badge, blurred tiles, "I'm 13+" cover (js/agegate.js) */
.age-badge { display: inline-block; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.25); font: 800 .72rem/1.4 Inter, sans-serif; color: #fff; letter-spacing: .02em; }
.age-badge.tile { position: absolute; top: 6px; left: 6px; z-index: 2; }
.age-badge.inline { margin-left: 6px; vertical-align: middle; }
.age-badge.lg { font-size: 1.1rem; padding: 4px 12px; border-radius: 10px; }
.age-line { margin: 4px 0 6px; }
.age-line .age-badge.inline { margin-left: 0; }
.gtile.age-blur img, .gtile.age-blur video { filter: blur(16px) brightness(.55); transform: scale(1.15); }
.age-cover { position: relative; min-height: 220px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #1b1230, #0b0814); margin: 8px 0; text-align: center; color: #fff; }
.age-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.45); transform: scale(1.2); }
.age-cover-in { position: relative; padding: 18px; display: grid; gap: 8px; justify-items: center; }
.age-cover-in p { margin: 0; }
.vage .age-cover { position: absolute; inset: 0; margin: 0; border-radius: 0; background: transparent; }
.vage .age-cover > img { display: none; }
.age-gate { text-align: center; }
.age-big { font: 800 2.2rem 'Space Grotesk', sans-serif; }
.age-btns { justify-content: center; gap: 8px; flex-wrap: wrap; }
.agepick-note { margin: 6px 0 0; }
