/* ==========================================================
   DOUMA — Design System v1 (theo DOUMA THIẾT KẾ TỔNG.jpg)
   Colors: #FF2D55 · #FF6A00 · #FFFFFF · #1A1A1A · #2A2A2A
   Font: SF Pro Display (fallback hệ thống) · Icon: outline
   ========================================================== */
:root {
  --pink: #FF2D55;
  --orange: #FF6A00;
  --white: #FFFFFF;
  --s1: #1A1A1A;
  --s2: #2A2A2A;
  --bg: #000000;
  --grad: linear-gradient(135deg, #FF2D55 20%, #FF6A00 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,45,85,.22), rgba(255,106,0,.22));
  --muted: rgba(255,255,255,.55);
  --muted2: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.08);
  --violet: #8B5CF6;
  --violet2: #6D28D9;
  --green: #30D158;
  --red: #FF453A;
  --ease: cubic-bezier(.22,1,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #060606;
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; border: 0; outline: 0; background: none; color: var(--white); }
::placeholder { color: var(--muted2); }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- Stage (desktop) ---------- */
.stage {
  height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 56px;
  background:
    radial-gradient(560px 400px at 12% 8%, rgba(255,45,85,.10), transparent 60%),
    radial-gradient(600px 460px at 88% 92%, rgba(255,106,0,.08), transparent 60%),
    #060606;
}
.side { width: 292px; flex: none; display: flex; flex-direction: column; gap: 22px; }
.side-logo { display: flex; align-items: center; gap: 13px; }
.side-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.side-tag { color: var(--white); font-size: 13.5px; letter-spacing: .04em; opacity: .9; }
.side-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted2); }
.feat { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.feat-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--s1); display: grid; place-items: center; color: var(--pink); flex: none; }
.swatches { display: flex; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); }
.jump { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.jump button {
  background: var(--s1); border: 1px solid transparent; border-radius: 9px;
  color: rgba(255,255,255,.78); font-size: 11.5px; font-weight: 600;
  padding: 8px 6px; text-align: left; transition: all .18s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jump button:hover { border-color: rgba(255,45,85,.55); color: #fff; transform: translateY(-1px); }
.side-note { font-size: 11.5px; color: var(--muted2); line-height: 1.5; }

/* ---------- Phone frame ---------- */
.phone-wrap { position: relative; flex: none; }
.phone-glow {
  position: absolute; inset: -34px; border-radius: 80px; filter: blur(46px); opacity: .5;
  background: linear-gradient(160deg, rgba(255,45,85,.35), transparent 45%, rgba(255,106,0,.28));
}
.phone {
  position: relative; width: 393px; height: 852px; border-radius: 58px;
  background: #0b0b0c; padding: 9px;
  box-shadow: 0 0 0 2px #232326, 0 0 0 5px #0a0a0b, 0 34px 90px rgba(0,0,0,.75);
}
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 49px;
  background: var(--bg); overflow: hidden;
}
.island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 34px; border-radius: 20px; background: #000; z-index: 60;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.homebar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.9); z-index: 60;
  pointer-events: none; mix-blend-mode: screen;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px 0 36px; pointer-events: none;
  font-size: 15px; font-weight: 600;
}
.statusbar .sb-r { display: flex; align-items: center; gap: 6px; }

@media (max-width: 980px) { .side { display: none; } .stage { gap: 0; } }
@media (max-width: 500px), (max-height: 900px) and (max-width: 980px) {
  .phone { width: 100vw; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .phone-glow { display: none; }
}

/* ---------- App layers ---------- */
.view { position: absolute; inset: 0; background: var(--bg); }
.push {
  position: absolute; inset: 0; background: var(--bg); z-index: 30;
  animation: pushIn .34s var(--ease);
}
@keyframes pushIn { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { position: absolute; inset: 0; background: var(--bg); z-index: 34; animation: modalIn .34s var(--ease); }
@keyframes modalIn { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }

.pagehead {
  display: flex; align-items: center; height: 48px; margin-top: 52px; padding: 0 8px; position: relative; z-index: 5;
}
.pagehead .ph-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 16.5px; font-weight: 700; white-space: nowrap; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 12px; transition: background .15s; }
.iconbtn:active { background: rgba(255,255,255,.08); }
.spacer { flex: 1; }
.pagebody { position: absolute; top: 100px; bottom: 0; left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 40px; }
.pagebody.flush { padding: 0; }

/* ---------- Bottom nav ---------- */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  height: 78px; padding: 8px 10px 22px;
  display: flex; align-items: center;
  background: rgba(0,0,0,.86); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.nav.overfeed { background: linear-gradient(transparent, rgba(0,0,0,.72) 42%); border-top-color: transparent; backdrop-filter: none; }
.nav-it { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3.5px; color: var(--muted); position: relative; }
.nav-it.on { color: #fff; }
.nav-it span { font-size: 10px; font-weight: 600; letter-spacing: .01em; }
.nav-create { overflow: visible; }
.nav-lens {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; transform: translateY(-10px);
  background: radial-gradient(circle,rgba(17,8,26,.96) 38%,rgba(77,12,91,.86) 61%,rgba(0,0,0,.95) 72%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14),0 0 9px #ff167d,0 0 22px rgba(159,31,255,.72),inset 0 0 15px rgba(255,30,150,.34);
  transition: transform .18s var(--ease),filter .18s ease;
}
.nav-lens::before,.nav-lens::after,.nav-lens-orbit {
  content:""; position:absolute; border-radius:50%; pointer-events:none;
}
.nav-lens::before { inset:3px; border:2px solid #ff2e93; border-left-color:#783cff; border-bottom-color:#00d5ff; box-shadow:0 0 8px #ff2e93; }
.nav-lens::after { inset:-4px; border:1px solid rgba(134,44,255,.58); box-shadow:0 0 12px rgba(0,213,255,.38); }
.nav-lens-orbit { inset:8px; border:1px solid rgba(255,255,255,.15); }
.nav-lens img { position:relative; z-index:2; filter:drop-shadow(0 0 7px rgba(255,31,148,.72)); }
.nav-create:active .nav-lens { transform:translateY(-10px) scale(.91); filter:brightness(1.18); }
.nav-lens::before { animation: commandSpin 9s linear infinite; }
.nav-lens::after { animation: commandSpinReverse 14s linear infinite,commandPulse 2.8s ease-in-out infinite; }
.nav-lens-orbit { animation: commandPulse 2.2s ease-in-out infinite alternate; }
@keyframes commandSpin { to { transform:rotate(360deg); } }
@keyframes commandSpinReverse { to { transform:rotate(-360deg); } }
@keyframes commandPulse { 0%,100% { opacity:.42; box-shadow:0 0 7px rgba(255,35,160,.48); } 50% { opacity:1; box-shadow:0 0 18px #ff2e93,0 0 30px rgba(0,213,255,.66); } }
.nav-badge {
  position: absolute; top: -3px; right: 50%; margin-right: -21px;
  min-width: 17px; height: 17px; border-radius: 9px; background: var(--pink);
  color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px;
  box-shadow: 0 0 0 2.5px #000;
}

/* ---------- Feed ---------- */
.feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; }
.feed-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.media-status { position:absolute; inset:0; z-index:18; display:grid; place-items:center; gap:12px; align-content:center; padding:24px; text-align:center; color:#fff; background:radial-gradient(circle at 50% 48%,rgba(0,0,0,.36),rgba(0,0,0,.08) 42%,rgba(0,0,0,.34)); pointer-events:auto; }
.media-status b { padding:9px 14px; border-radius:999px; background:rgba(0,0,0,.58); box-shadow:0 8px 28px rgba(0,0,0,.28); font-size:13px; }
.feed-tabs {
  position: absolute; top: 58px; left: 42px; right: 42px; z-index: 20;
  display: flex; justify-content: center; align-items: center; gap: 16px;
}
.feed-logo {
  position: absolute; top: 60px; left: 13px; z-index: 21;
  display: flex; align-items: center; gap: 6px;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.55));
}
.feed-tab { color: rgba(255,255,255,.62); font-size: 15.5px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); position: relative; padding: 4px 2px; }
.feed-tab.on { color: #fff; font-weight: 700; }
.feed-live-show{display:flex;align-items:center;gap:5px;color:#fff;font-weight:800;white-space:nowrap}.feed-live-show i{width:7px;height:7px;border-radius:50%;background:#ff2d55;box-shadow:0 0 10px #ff2d55}
.feed-tab.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -4px;
  width: 22px; height: 3px; border-radius: 2px; background: #fff;
}
.feed-search { position: absolute; right: 6px; top: -6px; }
.feed-live-dot { position: absolute; left: 14px; top: -2px; }

.scene { position: absolute; inset: 0; overflow: hidden; }
.scene-zoom { position: absolute; inset: -4%; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.08) translateY(-1.6%); } }
.paused .scene-zoom, .paused .bokeh i, .paused .disc-spin { animation-play-state: paused; }
.vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.42)); }
.feed-fadeb { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.feed-fadet { position: absolute; left: 0; right: 0; top: 0; height: 130px; background: linear-gradient(rgba(0,0,0,.5), transparent); }

.bokeh i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; animation: floatB linear infinite; }
@keyframes floatB { from { transform: translateY(14vh) scale(.8); opacity: 0; } 12% { opacity: .55; } 88% { opacity: .4; } to { transform: translateY(-86vh) scale(1.15); opacity: 0; } }

.sil { position: absolute; left: 0; right: 0; bottom: 0; }
.sun { position: absolute; border-radius: 50%; }
.wave { position: absolute; left: -60%; width: 220%; height: 34px; opacity: .5; animation: waveX 9s linear infinite; }
@keyframes waveX { from { transform: translateX(0); } to { transform: translateX(18%); } }
.beam { position: absolute; width: 220px; height: 460px; top: -80px; filter: blur(26px); opacity: .5; transform-origin: top center; animation: beamSwing 7s ease-in-out infinite alternate; }
@keyframes beamSwing { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
.steam { position: absolute; width: 5px; height: 42px; border-radius: 4px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.4)); filter: blur(3px); animation: steamUp 3.4s ease-in infinite; }
@keyframes steamUp { from { transform: translateY(16px); opacity: 0; } 30% { opacity: .6; } to { transform: translateY(-60px); opacity: 0; } }
.scene-emoji { position: absolute; filter: drop-shadow(0 14px 34px rgba(0,0,0,.45)); animation: bob 3.6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-14px) rotate(3deg); } }

.rail { position: absolute; right: 9px; bottom: 176px; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 19px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4.5px; color: #fff; filter: drop-shadow(0 2px 7px rgba(0,0,0,.55)); }
.rail-btn b { font-size: 12px; font-weight: 600; }
.rail-btn .ric { transition: transform .18s var(--ease); }
.rail-btn:active .ric { transform: scale(1.24); }
.rail-btn.liked { color: var(--pink); }
.rail-btn.savedc { color: #FACC15; }
.rail-av { position: relative; width: 47px; height: 47px; margin-bottom: 4px; }
.rail-av .avatar { width: 47px; height: 47px; border: 1.6px solid #fff; }
.rail-plus {
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  width: 19px; height: 19px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; color: #fff;
  transition: all .25s var(--ease);
}
.rail-plus.done { background: #fff; color: var(--pink); transform: translateX(-50%) rotate(360deg); }
.disc { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#333, #111 28%, #3a3a3a 52%, #101010 78%, #333); display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.2); }
.disc-spin { animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.disc-core { width: 17px; height: 17px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }

.meta { position: absolute; left: 15px; right: 82px; bottom: 104px; z-index: 20; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.meta-src { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); padding: 3.5px 8px; border-radius: 7px; margin-bottom: 9px; }
.meta-src .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }
.meta-name { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.meta-cap { font-size: 13.8px; line-height: 1.45; color: rgba(255,255,255,.94); }
.meta-cap .tags { color: rgba(255,255,255,.85); font-weight: 600; }
.meta-music { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12.8px; width: fit-content; max-width: 100%; }
.marq { overflow: hidden; max-width: 190px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq div { display: inline-flex; gap: 34px; white-space: nowrap; animation: marq 8s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

.vprogress { position: absolute; left: 10px; right: 10px; bottom: 82px; height: 2.6px; border-radius: 2px; background: rgba(255,255,255,.22); z-index: 21; overflow: hidden; }
.vprogress i { position: absolute; inset: 0; transform-origin: left; background: var(--grad); border-radius: 2px; }

.heart-burst { position: absolute; z-index: 45; pointer-events: none; color: var(--pink); animation: burst .9s var(--ease) forwards; filter: drop-shadow(0 6px 22px rgba(255,45,85,.6)); }
@keyframes burst { 0% { transform: scale(0) rotate(-14deg); opacity: 0; } 18% { transform: scale(1.25) rotate(6deg); opacity: 1; } 45% { transform: scale(1); } 100% { transform: scale(1) translateY(-90px); opacity: 0; } }
.pauseglyph { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); z-index: 40; color: rgba(255,255,255,.85); filter: drop-shadow(0 4px 18px rgba(0,0,0,.5)); animation: popIn .2s var(--ease); pointer-events: none; }
@keyframes popIn { from { transform: translate(-50%,-50%) scale(.6); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }

.live-chip { position: absolute; top: 60px; left: 14px; z-index: 22; display: flex; align-items: center; gap: 7px; }
.live-badge { background: var(--grad); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; }
.live-eq { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 12px; }
.live-eq i { width: 2.5px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.live-eq i:nth-child(2) { animation-delay: .18s; } .live-eq i:nth-child(3) { animation-delay: .36s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 12px; } }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; position: relative; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar em { font-style: normal; letter-spacing: .01em; }
.av-ring { position: relative; border-radius: 50%; padding: 2.5px; background: var(--grad); }
.av-ring .avatar { border: 2.5px solid #000; }
.av-logo { background: #111 !important; border: 1px solid var(--s2); }

/* ---------- Sheets & toast ---------- */
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 46; animation: fade .22s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 48;
  background: #141414; border-radius: 18px 18px 0 0;
  animation: sheetUp .34s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: 0 -12px 50px rgba(0,0,0,.5);
}
@keyframes sheetUp { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 38px; height: 4.5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 9px auto 2px; flex: none; }
.sheet-title { position: relative; text-align: center; font-size: 14.5px; font-weight: 700; padding: 10px 0 12px; flex: none; }
.sheet-x { position: absolute; right: 10px; top: 1px; }
.toast {
  position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
  background: rgba(28,28,30,.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 70; white-space: nowrap; animation: toastIn .3s var(--ease);
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
@keyframes toastIn { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }

/* ---------- Comments ---------- */
.cmt-list { flex: 1; overflow-y: auto; padding: 2px 16px 12px; }
.cmt { display: flex; gap: 11px; padding: 9px 0; }
.cmt.reply { margin-left: 42px; padding-top: 3px; }
.cmt-meta button { color: inherit; font: inherit; }
.cmt-name { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cmt-author { color: var(--pink); background: rgba(255,45,85,.14); font-size: 10px; font-weight: 700; padding: 1.5px 6px; border-radius: 5px; }
.cmt-text { font-size: 14px; line-height: 1.4; margin-top: 2.5px; }
.cmt-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted2); margin-top: 5px; font-weight: 600; }
.cmt-like { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted2); font-size: 11.5px; padding-top: 4px; }
.cmt-like.on { color: var(--pink); }
.cmt-more { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 0 10px 47px; display: flex; align-items: center; gap: 8px; }
.cmt-more::before { content: ""; width: 26px; height: 1px; background: rgba(255,255,255,.25); }
.cmt-inputrow { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cmt-input { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--s1); border-radius: 999px; padding: 0 7px 0 15px; height: 42px; }
.cmt-input input { flex: 1; font-size: 14px; }
.send-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; transition: all .2s; }
.send-btn:disabled { background: var(--s2); color: var(--muted2); }

/* ---------- Search ---------- */
.searchbar { display: flex; align-items: center; gap: 9px; flex: 1; background: var(--s1); border-radius: 11px; height: 41px; padding: 0 12px; color: var(--muted); }
.searchbar input { flex: 1; font-size: 14.5px; color: #fff; }
.tabsrow { display: flex; gap: 4px; padding: 12px 4px 0; overflow-x: auto; }
.tabsrow button { padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--muted); position: relative; white-space: nowrap; }
.tabsrow button.on { color: #fff; font-weight: 700; }
.tabsrow button.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 2.5px; border-radius: 2px; background: var(--pink); }
.sec-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
.sug { display: flex; align-items: center; gap: 12px; padding: 10.5px 0; font-size: 14.5px; }
.sug .sug-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,45,85,.13); color: var(--pink); display: grid; place-items: center; flex: none; }
.sug .go { margin-left: auto; color: var(--muted2); }
.tagchips { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tagchip { display: flex; align-items: center; gap: 10px; background: var(--s1); border-radius: 12px; padding: 10px 11px; text-align: left; }
.tagchip .hash { width: 31px; height: 31px; border-radius: 9px; background: var(--s2); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.tagchip b { font-size: 13px; display: block; }
.tagchip span { font-size: 11px; color: var(--muted); }
.kb { flex: none; background: #161618; padding: 7px 3px calc(10px + 0px); border-top: 1px solid rgba(255,255,255,.05); }
.kb-row { display: flex; justify-content: center; gap: 5.5px; margin-bottom: 7px; }
.kb-k { min-width: 32px; height: 42px; border-radius: 6px; background: #3a3a3c; color: #fff; font-size: 16.5px; box-shadow: 0 1px 0 rgba(0,0,0,.45); display: grid; place-items: center; padding: 0 6px; }
.kb-k.mod { background: #232325; font-size: 13px; font-weight: 600; }
.kb-k.space { flex: 1; max-width: 186px; font-size: 13.5px; }
.kb-k.go { background: var(--pink); min-width: 74px; font-size: 14.5px; font-weight: 700; }
.kb-k:active { filter: brightness(1.35); }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
.rcard { position: relative; border-radius: 13px; overflow: hidden; aspect-ratio: 3/4.4; background: var(--s1); text-align: left; }
.rcard .rc-meta { position: absolute; left: 9px; right: 9px; bottom: 8px; z-index: 3; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.rcard .rc-cap { font-size: 12px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .rc-user { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.8); margin-top: 4px; }
.rcard .views { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* ---------- Profile ---------- */
.prof-top { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.prof-name { font-size: 17.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.prof-handle { font-size: 13px; color: var(--muted); margin-top: 3px; }
.stats { display: flex; align-items: center; width: 100%; margin-top: 17px; }
.stat { flex: 1 1 0; min-width: 0; text-align: center; }
.stat b { font-size: 17px; font-weight: 800; display: block; }
.stat span { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.stat-div { width: 1px; height: 26px; background: var(--line); }
.prof-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn-ghost { background: var(--s2); border-radius: 9px; height: 41px; padding: 0 34px; font-size: 14.5px; font-weight: 700; display: grid; place-items: center; }
.btn-sq { width: 41px; height: 41px; border-radius: 9px; background: var(--s2); display: grid; place-items: center; }
.bio { text-align: center; font-size: 13px; line-height: 1.55; margin-top: 15px; color: rgba(255,255,255,.88); }
.bio .dim2 { color: var(--muted); }
.gridtabs { display: flex; margin-top: 17px; border-bottom: 1px solid var(--line); }
.gridtabs button { flex: 1; display: grid; place-items: center; padding: 10px 0; color: var(--muted2); position: relative; }
.gridtabs button.on { color: #fff; }
.gridtabs button.on::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 44px; height: 2px; background: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px 0 90px; }
.vtile { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--s1); }
.vtile .views { position: absolute; left: 6px; bottom: 5px; display: flex; align-items: center; gap: 3.5px; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.8); z-index: 2; }
.vtile .pin { position: absolute; top: 5px; left: 5px; background: var(--grad); font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; z-index: 2; }

/* ---------- Rows / list items ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; width: 100%; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.row .r-sub { font-size: 12.5px; color: var(--muted); margin-top: 2.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
.chev { color: var(--muted2); flex: none; }
.btn-pill { background: var(--pink); color: #fff; font-size: 12.5px; font-weight: 700; height: 31px; padding: 0 14px; border-radius: 8px; display: grid; place-items: center; flex: none; transition: all .2s; }
.btn-pill.off { background: var(--s2); color: rgba(255,255,255,.8); }
.btn-pill.orange { background: var(--orange); }

/* ---------- Inbox ---------- */
.inbox-short { display: flex; justify-content: space-around; padding: 14px 6px 6px; }
.short { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 72px; }
.short .short-ic { width: 53px; height: 53px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(255,45,85,.28); transition: transform .16s var(--ease); }
.short:active .short-ic { transform: scale(.9); }
.short span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Upload ---------- */
.up-toprow { display: flex; gap: 13px; padding: 8px 0 2px; }
.up-desc { flex: 1; font-size: 14.5px; line-height: 1.5; min-height: 118px; resize: none; padding-top: 4px; }
.up-cover { position: relative; width: 102px; height: 136px; border-radius: 11px; overflow: hidden; flex: none; background: var(--s1); }
.up-cover span { position: absolute; left: 5px; right: 5px; bottom: 5px; text-align: center; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 4.5px 0; border-radius: 7px; z-index: 2; }
.chiprow { display: flex; gap: 8px; padding: 10px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--s1); height: 33px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; text-align: left; }
.opt .o-lab { font-size: 14.5px; font-weight: 500; flex: 1; }
.opt .o-val { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.upload-cta { position: absolute; left: 16px; right: 16px; bottom: 26px; }
.btn-primary {
  width: 100%; height: 49px; border-radius: 13px; background: var(--grad);
  font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .01em;
  box-shadow: 0 8px 26px rgba(255,45,85,.38);
  display: grid; place-items: center;
  transition: transform .16s var(--ease);
}
.btn-primary:active { transform: scale(.97); }

/* toggle iOS */
.tgl { width: 46px; height: 28px; border-radius: 15px; background: var(--s2); position: relative; transition: background .22s; flex: none; }
.tgl::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tgl.on { background: var(--pink); }
.tgl.on::after { transform: translateX(18px); }

/* publish overlay */
.pub { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; animation: fade .25s; }
.pub-bar { width: 210px; height: 5px; border-radius: 3px; background: var(--s2); overflow: hidden; }
.pub-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .3s var(--ease); }
.pub-step { font-size: 13.5px; color: var(--muted); min-height: 18px; }
.pub-ok { width: 74px; height: 74px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; animation: popScale .5s var(--ease); box-shadow: 0 14px 44px rgba(255,45,85,.45); }
@keyframes popScale { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Live ---------- */
.live-top { position: absolute; top: 58px; left: 12px; right: 12px; z-index: 26; display: flex; align-items: center; gap: 8px; }
.glass { background: rgba(0,0,0,.38); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); }
.live-host { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 5px 4px 4px; }
.live-host b { font-size: 12.5px; display: block; white-space: nowrap; }
.live-host span { font-size: 10.5px; color: rgba(255,255,255,.72); display: block; white-space: nowrap; }
.btn-follow-sm { background: var(--pink); border-radius: 999px; height: 28px; padding: 0 13px; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.live-viewers { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.live-avs { display: flex; }
.live-avs .avatar { width: 26px; height: 26px; font-size: 10px; border: 1.5px solid #000; margin-left: -7px; }
.live-cnt { border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; display: flex; gap: 4px; align-items: center; }
.live-badges { position: absolute; top: 106px; left: 12px; z-index: 25; display: flex; gap: 7px; }
.live-badges .bdg { border-radius: 999px; padding: 5.5px 11px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.live-chat { position: absolute; left: 12px; right: 96px; bottom: 92px; z-index: 25; display: flex; flex-direction: column; gap: 7px; -webkit-mask-image: linear-gradient(transparent, #000 16%); mask-image: linear-gradient(transparent, #000 16%); }
.chatline { border-radius: 13px; padding: 7px 11px; font-size: 12.8px; line-height: 1.4; width: fit-content; max-width: 100%; animation: chatIn .3s var(--ease); }
@keyframes chatIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.chatline b { font-weight: 700; margin-right: 5px; }
.chatline.join { color: #FFD9E2; }
.chatline.join b { color: #fff; }
.live-bottom { position: absolute; left: 12px; right: 12px; bottom: 24px; z-index: 26; display: flex; align-items: center; gap: 7px; }
.live-input { flex: 1; min-width: 0; height: 40px; border-radius: 999px; display: flex; align-items: center; padding: 0 13px; }
.live-input input { flex: 1; min-width: 0; font-size: 13px; }
.live-act { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fly-heart { position: absolute; right: 26px; bottom: 150px; z-index: 24; font-size: 26px; animation: flyup 2.6s ease-in forwards; pointer-events: none; }
@keyframes flyup {
  0% { transform: translate(0,0) scale(.5); opacity: 0; }
  10% { opacity: 1; transform: scale(1); }
  100% { transform: translate(var(--dx, -30px), -330px) scale(1.15) rotate(var(--rot, -14deg)); opacity: 0; }
}
.gift-fly { position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); z-index: 30; font-size: 56px; animation: giftFly 1.6s var(--ease) forwards; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(255,45,85,.5)); }
@keyframes giftFly { 0% { transform: translate(-50%, 60px) scale(.4); opacity: 0; } 25% { transform: translate(-50%, 0) scale(1.25); opacity: 1; } 60% { transform: translate(-50%, -30px) scale(1); } 100% { transform: translate(-50%, -160px) scale(.8); opacity: 0; } }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 4px 16px 14px; }
.gift { background: var(--s1); border: 1px solid transparent; border-radius: 13px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all .16s; }
.gift:active { border-color: var(--pink); transform: scale(.95); }
.gift b { font-size: 11.5px; font-weight: 600; }
.gift span { font-size: 11px; color: var(--orange); font-weight: 700; display: flex; align-items: center; gap: 3px; }
.coinbar { display: flex; align-items: center; gap: 8px; padding: 4px 18px 20px; font-size: 13px; color: var(--muted); }
.coinbar b { color: #fff; }

/* ==========================================================
   GIFT SYSTEM v2 — FX layer + Gift panel
   ========================================================== */

/* ---------- FX layer ---------- */
.gfx-layer { position: absolute; inset: 0; z-index: 32; pointer-events: none; overflow: hidden; }
.gfx { position: absolute; inset: 0; }

.gfx-veil { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 62%, transparent 22%, rgba(0,0,0,.62) 100%); animation: gfxVeil var(--hold, 2600ms) var(--ease) forwards; }
@keyframes gfxVeil { 0% { opacity: 0; } 18% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }

.gfx-rays { position: absolute; left: 50%; top: 52%; width: 460px; height: 460px; margin: -230px 0 0 -230px;
  background: conic-gradient(from 0deg, transparent 0 6deg, var(--g1) 6deg 8deg, transparent 8deg 22deg);
  opacity: .34; filter: blur(.3px); animation: gfxSpin 7s linear infinite, gfxRayIn var(--hold, 2600ms) var(--ease) forwards; }
@keyframes gfxSpin { to { transform: rotate(360deg); } }
@keyframes gfxRayIn { 0% { opacity: 0; transform: scale(.5); } 20% { opacity: .34; } 76% { opacity: .28; } 100% { opacity: 0; transform: scale(1.25); } }

.gfx-ripple { position: absolute; left: 50%; top: 54%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  border: 2px solid var(--ring); box-shadow: 0 0 44px var(--glow) inset, 0 0 30px var(--glow);
  animation: gfxRipple 1.5s var(--ease) forwards; }
@keyframes gfxRipple { 0% { transform: scale(.2); opacity: 0; } 22% { opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }

.gfx-core { position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%); display: grid; place-items: center; }
.gfx-emoji { font-size: 74px; line-height: 1; filter: drop-shadow(0 12px 34px var(--glow)); animation: gfxPop 1.5s var(--ease) forwards; }
@keyframes gfxPop { 0% { transform: translateY(70px) scale(.35); opacity: 0; } 24% { transform: translateY(0) scale(1.22); opacity: 1; } 60% { transform: scale(1); } 100% { transform: translateY(-40px) scale(.94); opacity: 0; } }

.gfx-halo { position: absolute; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, transparent 54%, var(--g1) 66%, transparent 74%); opacity: .8;
  animation: gfxSpin 3.6s linear infinite, gfxFade var(--hold, 2600ms) forwards; }
.gfx-spokes { position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--g2) 0 3deg, transparent 3deg 30deg); opacity: .5;
  animation: gfxSpinR 5s linear infinite, gfxFade var(--hold, 2600ms) forwards; }
@keyframes gfxSpinR { to { transform: rotate(-360deg); } }
@keyframes gfxFade { 0%,70% { opacity: .6; } 100% { opacity: 0; } }

/* sweep: xe/moto lướt ngang */
.gfx-vehicle { position: absolute; top: 52%; left: 0; display: flex; align-items: center; animation: gfxSweep 2.2s cubic-bezier(.3,.05,.25,1) forwards; }
.gfx-vehicle .gfx-emoji { font-size: 66px; animation: none; }
.gfx-trail { width: 160px; height: 12px; border-radius: 99px; margin-right: -14px;
  background: linear-gradient(90deg, transparent, var(--g1), var(--g2)); filter: blur(5px); opacity: .85; }
@keyframes gfxSweep { 0% { transform: translateX(-46%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(112vw); opacity: 0; } }

/* particle */
.gfx-p { position: absolute; left: 50%; top: 54%; width: 9px; height: 9px; border-radius: 2px;
  animation: gfxPart 1.35s var(--ease) forwards; }
@keyframes gfxPart {
  0% { transform: translate(-50%,-50%) scale(0) rotate(0); opacity: 0; }
  16% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s)) rotate(var(--rot)); opacity: 0; }
}

/* rain */
.gfx-drop { position: absolute; top: -8%; font-size: 30px; animation: gfxRain 2.4s linear forwards; will-change: transform; }
@keyframes gfxRain {
  0% { transform: translate(0,0) scale(var(--s)) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--sway), 118%) scale(var(--s)) rotate(var(--rot)); opacity: 0; }
}

/* banner người tặng */
.gfx-banner { position: absolute; left: 12px; top: 148px; display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 7px; border-radius: 999px; max-width: calc(100% - 24px);
  background: linear-gradient(100deg, color-mix(in srgb, var(--g1) 88%, #000), color-mix(in srgb, var(--g2) 70%, #000));
  box-shadow: 0 10px 30px var(--glow); animation: gfxBanner var(--hold, 2600ms) var(--ease) forwards; }
.gfx-bavatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: rgba(0,0,0,.32); flex: none; }
.gfx-btext { display: flex; flex-direction: column; min-width: 0; }
.gfx-btext b { font-size: 12.5px; font-weight: 800; }
.gfx-btext em { font-size: 11px; font-style: normal; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfx-bcoin { font-size: 11.5px; font-weight: 800; background: rgba(0,0,0,.28); border-radius: 999px; padding: 3px 8px; flex: none; }
@keyframes gfxBanner {
  0% { transform: translateX(-118%); opacity: 0; }
  14% { transform: none; opacity: 1; }
  82% { transform: none; opacity: 1; }
  100% { transform: translateX(-118%); opacity: 0; }
}

/* nhãn combo lớn */
.gfx-combo { position: absolute; right: 22px; top: 46%; text-align: right; animation: gfxCombo 1.3s var(--ease) forwards; }
.gfx-combo b { display: block; font-size: 54px; font-weight: 900; font-style: italic; letter-spacing: -.02em;
  color: var(--hue); text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 30px var(--hue); }
.gfx-combo em { font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .1em; color: var(--hue); }
@keyframes gfxCombo { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 26% { transform: scale(1.18) rotate(-3deg); opacity: 1; } 55% { transform: scale(1) rotate(-3deg); } 100% { transform: scale(.96); opacity: 0; } }

/* rung màn theo tier lớn */
.gfx-t-legend .gfx-veil, .gfx-t-myth .gfx-veil { animation-name: gfxVeil, gfxShake; animation-duration: var(--hold, 2600ms), .42s; animation-iteration-count: 1, 3; }
@keyframes gfxShake { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-5px,3px); } 50% { transform: translate(4px,-3px); } 75% { transform: translate(-3px,-2px); } }
.gfx-t-myth .gfx-emoji { font-size: 96px; }
.gfx-screen .gfx-emoji { font-size: 104px; }

/* ---------- Gift panel ---------- */
.gpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 78%;
  display: flex; flex-direction: column; background: #101010; border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -18px 50px rgba(0,0,0,.6);
  animation: sheetUp .32s var(--ease); overflow: hidden; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.gpanel-head { display: flex; align-items: center; gap: 10px; padding: 2px 12px 10px 18px; }
.gpanel-head > b { font-size: 15.5px; font-weight: 800; flex: none; }
.gpanel-x { margin-left: auto; flex: none; }

.gtop { display: flex; gap: 6px; overflow: hidden; }
.gtop-row { display: flex; align-items: center; gap: 4px; background: var(--s1); border-radius: 999px; padding: 3px 8px 3px 4px; }
.gtop-row b { font-size: 11px; font-weight: 800; color: var(--orange); }
.gtop-rank { font-size: 9.5px; font-weight: 900; font-style: normal; width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center; color: #000; background: rgba(255,255,255,.5); }
.gtop-rank.r1 { background: linear-gradient(135deg,#FFD700,#FFA500); }
.gtop-rank.r2 { background: linear-gradient(135deg,#E5E7EB,#9CA3AF); }
.gtop-rank.r3 { background: linear-gradient(135deg,#F0A87A,#C2703C); }

.gtabs { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; }
.gtab { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--s1);
  border-radius: 999px; padding: 7px 14px; transition: all .18s var(--ease); border: 1px solid transparent; }
.gtab.on { color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(255,45,85,.34); }

.gscroll { flex: 1; min-height: 0; overflow-y: auto; }
.gift-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 2px 14px 6px; }

.gcard { position: relative; background: var(--s1); border: 1.5px solid transparent; border-radius: 15px;
  padding: 12px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .16s var(--ease), border-color .16s, background .16s; overflow: hidden; }
.gcard::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
  background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 24%, transparent), transparent 62%); }
.gcard.sel { border-color: var(--ring); background: #171717; transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--glow); }
.gcard.sel::after { opacity: 1; }
.gcard:active { transform: scale(.95); }
.gcard-art { position: relative; display: grid; place-items: center; width: 42px; height: 42px; }
.gcard-halo { position: absolute; inset: -6px; border-radius: 50%; opacity: .45;
  background: radial-gradient(circle, var(--g1) 0%, transparent 68%); }
.gcard-art em { font-size: 27px; font-style: normal; position: relative; }
.gcard.sel .gcard-art em { animation: gcardBob 1.5s var(--ease) infinite; }
@keyframes gcardBob { 0%,100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-4px) rotate(-6deg); } }
.gcard-name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.25; position: relative; }
.gcard-coin { font-size: 10.5px; font-weight: 800; color: var(--orange); position: relative; }
.gcard-new { position: absolute; top: 5px; left: 5px; font-size: 8px; font-weight: 900; letter-spacing: .06em;
  background: var(--grad); border-radius: 4px; padding: 1.5px 4px; z-index: 2; }
.gcard-tier { position: absolute; top: 5px; right: 5px; font-size: 7.5px; font-weight: 800; letter-spacing: .04em;
  border-radius: 4px; padding: 1.5px 4px; z-index: 2; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.gcard-tier.tier-epic { background: rgba(139,92,246,.34); color: #DDD6FE; }
.gcard-tier.tier-legend { background: rgba(255,106,0,.34); color: #FED7AA; }
.gcard-tier.tier-myth { background: rgba(255,45,85,.38); color: #FECDD3; }
.gcard-check { position: absolute; bottom: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); z-index: 2; }

.gpanel-note { padding: 4px 18px 12px; font-size: 11.5px; color: var(--muted); }

.gpanel-foot { display: flex; align-items: center; gap: 9px; padding: 9px 14px 18px;
  border-top: 1px solid var(--line); background: #0C0C0C; }
.gbal { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: none;
  background: var(--s1); border-radius: 13px; padding: 8px 12px; position: relative; }
.gbal span { font-size: 9.5px; color: var(--muted2); font-weight: 700; letter-spacing: .04em; }
.gbal b { font-size: 13px; font-weight: 800; }
.gbal-add { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; font-size: 13px; font-weight: 800; font-style: normal; }

.gsend { position: relative; flex: 1; min-width: 0; height: 48px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; gap: 8px; font-weight: 800;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 8px 24px rgba(255,45,85,.3);
  transition: transform .12s var(--ease), filter .2s; overflow: hidden; }
.gsend:active { transform: scale(.97); }
.gsend.off { background: var(--s2); box-shadow: none; color: var(--muted); }
.gsend.hot { animation: gsendPulse .5s var(--ease) infinite alternate; }
@keyframes gsendPulse { from { filter: brightness(1); } to { filter: brightness(1.22); } }
.gsend-lb { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.gsend-coin { font-size: 12px; background: rgba(0,0,0,.24); border-radius: 999px; padding: 3px 9px; }
.gsend-combo { position: absolute; right: 10px; top: 3px; font-size: 15px; font-weight: 900; font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,.6); }

.gpanel-rank { position: absolute; left: 0; right: 0; top: -34px; text-align: center; font-size: 12px;
  font-weight: 900; letter-spacing: .12em; color: var(--rk); text-shadow: 0 0 18px var(--rk);
  animation: rankIn .3s var(--ease); }
@keyframes rankIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- combo dock (nút giữ tặng nổi trên sân khấu) ---------- */
.combo-dock { position: absolute; right: 14px; bottom: 210px; z-index: 34; display: flex; flex-direction: column;
  align-items: center; gap: 5px; animation: rankIn .24s var(--ease); }
.combo-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.combo-btn:active { transform: scale(.94); }
.combo-ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); }
.cr-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 3; }
.cr-fg { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .12s linear; }
.combo-e { font-size: 25px; line-height: 1; }
.combo-n { position: absolute; bottom: -2px; right: -4px; font-size: 12px; font-weight: 900; font-style: italic;
  background: #000; border-radius: 999px; padding: 1px 6px; color: var(--hue); }
.combo-hint { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--hue);
  background: rgba(0,0,0,.5); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }

@media (max-width: 480px) {
  .gift-grid2 { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .gcard-art em { font-size: 25px; }
  .gfx-emoji { font-size: 62px; }
  .gfx-combo b { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gfx-rays, .gfx-halo, .gfx-spokes, .gcard.sel .gcard-art em, .gsend.hot { animation: none !important; }
  .gfx-p, .gfx-drop { display: none; }
  .gfx-emoji { animation-duration: .6s; }
  .gfx-t-legend .gfx-veil, .gfx-t-myth .gfx-veil { animation-name: gfxVeil; }
}

/* ---------- Music ---------- */
.banner { position: relative; height: 118px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #FF6A00 0%, #FF2D55 58%, #C21648 100%); padding: 17px 18px; margin-top: 6px; }
.banner .b-tag { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: rgba(255,255,255,.85); }
.banner h3 { font-size: 21px; font-weight: 800; margin-top: 5px; letter-spacing: -.01em; }
.banner .b-deco { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); }
.banner .b-note { position: absolute; right: 18px; bottom: 10px; font-size: 44px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); animation: bob 3s ease-in-out infinite alternate; }
.trk { display: flex; align-items: center; gap: 12px; padding: 9.5px 0; width: 100%; text-align: left; }
.trk .rank { width: 18px; font-size: 15px; font-weight: 800; color: var(--muted2); text-align: center; flex: none; }
.trk.playing .rank { color: var(--pink); }
.trk-cover { position: relative; width: 49px; height: 49px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; }
.trk-main { flex: 1; min-width: 0; }
.trk-main b { font-size: 14.5px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-main span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.trk-main i { font-style: normal; font-size: 11.5px; color: var(--muted2); display: block; margin-top: 2px; }
.eqbars { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 13px; margin-right: 4px; }
.eqbars i { width: 3px; border-radius: 2px; background: var(--pink); animation: eq .9s ease-in-out infinite; }
.eqbars i:nth-child(2) { animation-delay: .15s; } .eqbars i:nth-child(3) { animation-delay: .3s; }
.miniplayer { position: absolute; left: 12px; right: 12px; bottom: 92px; z-index: 40; border-radius: 15px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; background: rgba(24,24,26,.96); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: sheetUp .3s var(--ease); }
.miniplayer .mp-main { flex: 1; min-width: 0; }
.miniplayer b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer span { font-size: 11.5px; color: var(--muted); }
.btn-use { background: var(--grad); border-radius: 9px; height: 34px; padding: 0 13px; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; flex: none; }

/* ---------- Settings / generic pages ---------- */
.set-h { font-size: 12.5px; font-weight: 700; color: var(--muted2); margin: 20px 0 4px; letter-spacing: .02em; }
.set-row { display: flex; align-items: center; gap: 13px; min-height: 51px; width: 100%; text-align: left; }
.set-row .s-ic { color: rgba(255,255,255,.85); width: 24px; display: grid; place-items: center; flex: none; }
.set-row .s-lab { flex: 1; font-size: 14.5px; font-weight: 500; }
.set-row .s-val { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ---------- Wallet ---------- */
.wallet-card { background: linear-gradient(150deg, #1E1E1F, #151516); border: 1px solid var(--line); border-radius: 17px; padding: 17px; margin-top: 8px; position: relative; overflow: hidden; }
.wallet-card::after { content: ""; position: absolute; right: -46px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: var(--grad-soft); filter: blur(8px); }
.wallet-card .w-lab { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wallet-card .w-amt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.wallet-row { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 2; }
.btn-sm { background: var(--pink); border-radius: 9px; height: 37px; padding: 0 16px; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,45,85,.3); }
.wshorts { display: flex; justify-content: space-between; padding: 16px 6px 2px; }
.wshort { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 74px; }
.wshort .ws-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--s1); display: grid; place-items: center; color: var(--pink); }
.wshort span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tx { display: flex; align-items: center; gap: 12px; padding: 10.5px 0; }
.tx .tx-ic { width: 41px; height: 41px; border-radius: 50%; background: var(--s1); display: grid; place-items: center; font-size: 17px; flex: none; }
.tx b { font-size: 14px; font-weight: 600; display: block; }
.tx span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.tx .amt { margin-left: auto; font-size: 14px; font-weight: 700; }
.amt.plus { color: var(--green); } .amt.minus { color: var(--red); }

/* ---------- Creator / Analytics ---------- */
.ov-card { background: var(--s1); border-radius: 16px; padding: 16px 8px; display: flex; margin-top: 8px; }
.ov { flex: 1; text-align: center; }
.ov b { font-size: 19.5px; font-weight: 800; display: block; letter-spacing: -.01em; }
.ov span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.tool-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--s2); color: var(--pink); display: grid; place-items: center; flex: none; }

.chart-card { background: var(--s1); border-radius: 16px; padding: 16px; margin-top: 10px; }
.chart-lab { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.chart-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.chart-delta { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.chart { position: relative; height: 150px; margin-top: 16px; }
.gridline { position: absolute; left: 26px; right: 0; height: 1px; background: rgba(255,255,255,.06); }
.gridline span { position: absolute; left: -26px; top: -5px; font-size: 9.5px; color: var(--muted2); }
.bars { position: absolute; left: 30px; right: 0; top: 0; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4px; }
.barcol { position: relative; width: 24px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #A78BFA, var(--violet) 45%, var(--violet2)); transform-origin: bottom; animation: barUp .7s var(--ease) backwards; }
.barcol span { position: absolute; bottom: -17px; font-size: 9.5px; color: var(--muted2); font-weight: 600; }
.barcol.hot .bar { background: var(--grad); box-shadow: 0 4px 18px rgba(255,45,85,.35); }
@keyframes barUp { from { transform: scaleY(0); } }
.bartip { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: #2C2C2E; border: 1px solid rgba(255,255,255,.12); font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 7px; white-space: nowrap; z-index: 3; animation: popIn2 .18s var(--ease); }
@keyframes popIn2 { from { transform: translate(-50%, 4px); opacity: 0; } }
.src-row { margin-top: 13px; }
.src-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.src-top span { color: rgba(255,255,255,.85); }
.track { height: 6.5px; border-radius: 4px; background: var(--s2); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 4px; animation: growW 1s var(--ease) backwards; }
@keyframes growW { from { width: 0 !important; } }
.seg { display: inline-flex; background: var(--s1); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 7px; }
.seg button.on { background: var(--s2); color: #fff; }

/* ---------- Share sheet ---------- */
.sh-row { display: flex; gap: 15px; padding: 8px 18px 14px; overflow-x: auto; }
.sh-row.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; overflow: visible; }
.sh-row.grid .sh-it { width: auto; }
.sh-it { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 60px; flex: none; }
.sh-it span { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sh-row.grid .sh-it span { white-space: normal; text-align: center; line-height: 1.25; }
.sh-circle { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.sh-it:disabled { opacity: .55; cursor: wait; }
.share-error { margin: 4px 18px 10px; padding: 10px 12px; border-radius: 10px; color: #fff; background: rgba(255,69,58,.18); border: 1px solid rgba(255,69,58,.55); font-size: 12px; line-height: 1.4; }
.share-error:focus { outline: 2px solid #fff; outline-offset: 2px; }
.share-link { margin-top: 6px; color: var(--muted); word-break: break-all; user-select: all; }
.sh-cancel { margin: 4px 16px calc(16px + env(safe-area-inset-bottom)); height: 47px; border-radius: 13px; background: var(--s1); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.hr { height: 1px; background: var(--line); margin: 2px 18px 10px; }

/* ---------- Onboarding / Splash ---------- */
.splash { position: absolute; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.splash .sp-logo { width:min(54.6vw,231px); display:grid; place-items:center; animation:splashIn 1s var(--ease); filter:drop-shadow(0 0 20px rgba(255,31,139,.22)); }
.splash .sp-logo img { width:100%; height:auto; object-fit:contain; image-rendering:auto; }
@keyframes splashIn { 0% { transform: scale(.55); opacity: 0; } 55% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.splash .sp-tag { position: absolute; bottom: 74px; font-size: 13px; letter-spacing: .06em; color: var(--muted); animation: fade 1.2s; }
.splash.out { animation: splashOut .45s var(--ease) forwards; }
@keyframes splashOut { to { opacity: 0; transform: scale(1.06); } }

.onb { position: absolute; inset: 0; z-index: 80; background: #000; overflow: hidden; display: flex; flex-direction: column; }
.onb-art { position: absolute; inset: 0; }
.trail { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; animation: trailFloat 9s ease-in-out infinite alternate; }
@keyframes trailFloat { from { transform: translate(0,0) rotate(0); } to { transform: translate(-30px, -40px) rotate(24deg); } }
.trail-line { position: absolute; height: 300px; width: 300px; border-radius: 50%; border: 3px solid transparent; border-top-color: rgba(255,106,0,.7); border-right-color: rgba(255,45,85,.55); filter: blur(2.5px); animation: spin 11s linear infinite; }
.onb-body { position: relative; z-index: 3; margin-top: auto; padding: 0 30px 54px; background: linear-gradient(transparent, rgba(0,0,0,.72) 34%); padding-top: 130px; }
.onb h1 { font-size: 27px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.onb h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onb p { font-size: 14px; color: var(--muted); margin-top: 11px; line-height: 1.55; }
.dots { display: flex; gap: 6px; margin: 26px 0 18px; }
.dots i { width: 6.5px; height: 6.5px; border-radius: 4px; background: rgba(255,255,255,.25); transition: all .3s var(--ease); }
.dots i.on { width: 20px; background: var(--pink); }
.btn-onb { width: 100%; height: 51px; border-radius: 999px; background: var(--grad); font-size: 15.5px; font-weight: 800; color: #fff; box-shadow: 0 10px 30px rgba(255,45,85,.4); display: grid; place-items: center; transition: transform .15s var(--ease); }
.btn-onb:active { transform: scale(.97); }

/* ---------- Detail overlay back ---------- */
.det-back { position: absolute; top: 58px; left: 8px; z-index: 26; }

/* ---------- Notifications tabs pills ---------- */
.pills { display: flex; gap: 8px; padding: 8px 0 4px; overflow-x: auto; }
.pills button { background: var(--s1); color: var(--muted); font-size: 13px; font-weight: 600; height: 33px; padding: 0 14px; border-radius: 999px; white-space: nowrap; }
.pills button.on { background: var(--s2); color: #fff; font-weight: 700; }
.notif-thumb { width: 39px; height: 51px; border-radius: 7px; overflow: hidden; flex: none; position: relative; }

/* ---------- Auth (token 13 ký tự) ---------- */
.auth-body { position: relative; z-index: 3; margin-top: auto; padding: 0 28px 50px; background: linear-gradient(transparent, rgba(0,0,0,.78) 30%); padding-top: 120px; }
.auth-input {
  width: 100%; margin-top: 18px; background: var(--s1); border: 1px solid var(--line);
  border-radius: 13px; height: 49px; padding: 0 16px; font-size: 14.5px;
}
.auth-input:focus { border-color: rgba(255,45,85,.6); }
.token-input { letter-spacing: .14em; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.auth-err { color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.auth-alt { width: 100%; text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.auth-alt b { color: var(--pink); }
.token-box {
  width: 100%; margin-top: 18px; border-radius: 16px; padding: 18px 14px;
  background: var(--grad-soft); border: 1.5px dashed rgba(255,106,0,.6);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: transform .15s var(--ease);
}
.token-box:active { transform: scale(.97); }
.token-chars { font-size: 24px; font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.token-copy { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.auth-check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-check.on { color: #fff; }
.auth-cb { width: 21px; height: 21px; border-radius: 7px; border: 1.5px solid var(--muted2); display: grid; place-items: center; color: #fff; flex: none; }
.auth-check.on .auth-cb { background: var(--grad); border-color: transparent; }

/* ---------- Chat 1-1 ---------- */
.chat-body { position: absolute; top: 100px; bottom: 74px; left: 0; right: 0; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 7px; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; width: fit-content; animation: chatIn .25s var(--ease); word-break: break-word; }
.msg.mine { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 5px; }
.msg.theirs { align-self: flex-start; background: var(--s2); border-bottom-left-radius: 5px; }
.msg-time { font-size: 10px; color: var(--muted2); text-align: center; margin: 6px 0 2px; }
.chat-inputrow { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 9px; align-items: center; padding: 10px 14px 24px; background: rgba(0,0,0,.88); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.chat-empty { text-align: center; color: var(--muted2); font-size: 12.5px; padding: 30px 20px; line-height: 1.6; }

/* video thật trong feed */
.feed-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.up-file {
  width: 102px; height: 136px; border-radius: 11px; border: 1.5px dashed rgba(255,255,255,.28);
  background: var(--s1); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px; font-weight: 600; flex: none; text-align: center; padding: 6px;
}
.up-file.has { border-style: solid; border-color: rgba(255,45,85,.55); color: #fff; }

/* about */
.about { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 0 20px; }
.about .ver { font-size: 12px; color: var(--muted2); }

/* ================= 💥 DOUMA MAX ================= */
.rail-btn.dbtn { position: relative; }
.rail-btn .ric.dsize {
  transition: transform .16s cubic-bezier(.34, 1.72, .64, 1);
  transform-origin: center;
  display: inline-flex;
  will-change: transform;
}
.rail-btn.charging .ric.dsize { filter: drop-shadow(0 0 14px rgba(255, 45, 85, .85)) drop-shadow(0 0 30px rgba(255, 106, 0, .5)); }
.rail-btn.dshaking .ric.dsize { animation: dshake .085s linear infinite; }
@keyframes dshake {
  0%   { rotate: 0deg;    translate: 0 0; }
  25%  { rotate: -7deg;   translate: -2px 1px; }
  50%  { rotate: 5deg;    translate: 2px -1px; }
  75%  { rotate: -5deg;   translate: -1px -2px; }
  100% { rotate: 7deg;    translate: 1px 2px; }
}
.maxpill {
  display: inline-block; margin-top: 3px;
  font-size: 8.5px; font-weight: 900; letter-spacing: .05em;
  padding: 2.5px 7px; border-radius: 99px; color: #fff;
  background: linear-gradient(135deg, #FF2D55, #FF6A00);
  box-shadow: 0 2px 10px rgba(255, 45, 85, .5);
  white-space: nowrap;
}
.maxgrad {
  background: linear-gradient(135deg, #FF2D55, #FF6A00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* màn hình rung chuyển khi nổ */
.feed-item.boomshake { animation: boomshake .55s cubic-bezier(.36, .07, .19, .97); }
@keyframes boomshake {
  10% { transform: translate(-7px, 4px) rotate(-.6deg); }
  20% { transform: translate(8px, -5px) rotate(.7deg); }
  35% { transform: translate(-9px, 3px) rotate(-.8deg); }
  50% { transform: translate(7px, 5px) rotate(.5deg); }
  65% { transform: translate(-5px, -4px) rotate(-.4deg); }
  80% { transform: translate(3px, 2px); }
  100% { transform: translate(0, 0); }
}
/* vụ nổ */
.dmax-blast { position: absolute; inset: 0; z-index: 32; pointer-events: none; overflow: hidden; }
.dmax-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 86% 55%, rgba(255, 106, 0, .62), rgba(255, 45, 85, .30) 38%, transparent 72%);
  animation: dflash .6s ease-out forwards;
}
@keyframes dflash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.dmax-origin { position: absolute; right: 36px; bottom: 46%; width: 0; height: 0; }
.dmax-p {
  position: absolute; left: 0; top: 0; opacity: 0;
  animation: dfly 1.15s cubic-bezier(.15, .85, .35, 1) forwards;
  filter: drop-shadow(0 2px 10px rgba(255, 45, 85, .55));
}
@keyframes dfly {
  0%   { transform: translate(0, 0) scale(.35) rotate(0deg); opacity: 1; }
  65%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.18) rotate(var(--rot)); opacity: 0; }
}
.dmax-ring {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px;
  border: 3px solid rgba(255, 45, 85, .9); border-radius: 50%;
  animation: dring .75s cubic-bezier(.16, .84, .44, 1) forwards;
}
.dmax-ring.r2 { border-color: rgba(255, 106, 0, .7); animation-delay: .1s; animation-duration: .9s; }
@keyframes dring {
  0% { transform: scale(.4); opacity: 1; }
  100% { transform: scale(16); opacity: 0; border-width: 1px; }
}
.dmax-label {
  position: absolute; left: 50%; top: 34%; transform: translateX(-50%) scale(.3);
  font-size: 34px; font-weight: 900; font-style: italic; line-height: 1.02;
  text-align: center; letter-spacing: .01em; white-space: nowrap;
  background: linear-gradient(135deg, #FF2D55, #FF6A00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 45, 85, .65));
  animation: dlabel 1.4s cubic-bezier(.18, 1.5, .38, 1) forwards; opacity: 0;
}
@keyframes dlabel {
  0%   { transform: translateX(-50%) scale(.25) rotate(-6deg); opacity: 0; }
  16%  { transform: translateX(-50%) scale(1.28) rotate(2deg); opacity: 1; }
  34%  { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
  72%  { transform: translateX(-50%) scale(1.02) translateY(-6px); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.05) translateY(-26px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dmax-p, .dmax-ring, .dmax-flash, .dmax-label { animation-duration: .3s; }
  .feed-item.boomshake, .rail-btn.dshaking .ric.dsize { animation: none; }
}
/* DOUMA MAX v3 — server-wide progressive spectacle */
.global-max{position:fixed;z-index:9999;left:50%;top:13%;transform:translateX(-50%);width:min(91vw,520px);padding:22px;text-align:center;border-radius:28px;background:radial-gradient(circle at 50% 20%,rgba(255,106,0,.42),rgba(80,0,42,.94) 55%,rgba(0,0,0,.96));border:2px solid #ff6a00;box-shadow:0 0 34px #ff2d55,0 0 100px rgba(255,106,0,.5);animation:gmEnter .55s cubic-bezier(.2,1.4,.4,1),gmPulse 1s ease-in-out infinite alternate;color:#fff;cursor:pointer}.global-max strong{display:block;font-size:38px;line-height:1;background:linear-gradient(90deg,#fff,#ffb000,#ff2d55);-webkit-background-clip:text;color:transparent;letter-spacing:-2px}.gm-kicker{font-size:11px;font-weight:900;letter-spacing:3px;color:#ffb29a}.gm-line{font-size:17px;margin:14px 0 8px}.gm-flex{font-size:12px;padding:9px;border-radius:12px;background:rgba(255,255,255,.09)}.global-max small{display:block;margin-top:9px;color:#ffd3c8}.global-max.tier-2,.global-max.tier-6{filter:hue-rotate(18deg)}.global-max.tier-3,.global-max.tier-7{box-shadow:0 0 44px #b400ff,0 0 130px #ff2d55}.global-max.tier-4,.global-max.tier-8{border-color:#fff;box-shadow:0 0 52px #fff,0 0 160px #ff6a00}.dmax-blast.tier-3,.dmax-blast.tier-7{filter:hue-rotate(25deg) saturate(1.45)}.dmax-blast.tier-4,.dmax-blast.tier-8{filter:brightness(1.35) saturate(1.65)}@keyframes gmEnter{from{opacity:0;transform:translate(-50%,-60px) scale(.45) rotate(-4deg)}}@keyframes gmPulse{to{transform:translateX(-50%) scale(1.025)}}@media(max-width:480px){.global-max{top:9%;padding:17px}.global-max strong{font-size:31px}.gm-line{font-size:14px}}
/* v3.1 hidden-threshold charge + cinematic MAX */
.rail-btn .ric.dsize{transition:transform .11s cubic-bezier(.2,1.75,.35,1),filter .12s;z-index:2}.rail-btn.charging::before{content:"";position:absolute;inset:8px;border-radius:50%;background:radial-gradient(circle,rgba(255,106,0,.38),rgba(255,45,85,.18) 45%,transparent 72%);animation:chargeAura .42s ease-in-out infinite alternate;pointer-events:none}.rail-btn.critical .ric.dsize{filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 24px #ff2d55) drop-shadow(0 0 52px #ff6a00)}.rail-btn.critical::after{content:"";position:absolute;width:74px;height:74px;border:2px solid rgba(255,255,255,.8);border-radius:50%;animation:criticalRing .38s linear infinite;pointer-events:none}@keyframes chargeAura{to{transform:scale(1.55);opacity:.45}}@keyframes criticalRing{to{transform:scale(1.55);opacity:0}}.rail-btn.dshaking .ric.dsize{animation:dshakeHard .055s linear infinite}@keyframes dshakeHard{0%{rotate:-10deg;translate:-4px 1px}25%{rotate:9deg;translate:4px -3px}50%{rotate:-7deg;translate:-3px 4px}75%{rotate:11deg;translate:5px 2px}100%{rotate:-10deg;translate:-4px 1px}}.feed-item.boomshake{animation:boomquake 1.15s cubic-bezier(.36,.07,.19,.97)}@keyframes boomquake{5%{transform:translate(-14px,9px) rotate(-1.5deg)}12%{transform:translate(16px,-11px) rotate(1.7deg)}22%{transform:translate(-18px,7px) rotate(-1.8deg)}34%{transform:translate(15px,12px) rotate(1.2deg)}48%{transform:translate(-11px,-9px) rotate(-1deg)}65%{transform:translate(8px,6px)}82%{transform:translate(-4px,-3px)}100%{transform:none}}.dmax-flash{background:radial-gradient(circle at 82% 55%,#fff 0,rgba(255,184,80,.95) 8%,rgba(255,45,85,.72) 28%,rgba(113,0,255,.38) 52%,transparent 78%);animation:dflash 1.25s ease-out forwards}.dmax-ring{border-width:7px;box-shadow:0 0 30px #ff2d55,0 0 70px #ff6a00}.dmax-ring.r2{border-width:5px}.dmax-p{animation-duration:1.75s}.dmax-label{font-size:52px;filter:drop-shadow(0 0 8px #fff) drop-shadow(0 8px 38px #ff2d55);animation-duration:2.35s}.global-max.ticker{display:flex;align-items:center;gap:16px;top:calc(env(safe-area-inset-top) + 8px);width:min(96vw,760px);min-height:58px;padding:10px 16px;border-radius:18px;text-align:left;overflow:hidden;white-space:nowrap}.gm-live{flex:0 0 auto;font-size:11px;font-weight:1000;letter-spacing:1px;color:#fff;text-shadow:0 0 12px #fff}.gm-track{display:inline-block;min-width:max-content;font-size:14px;animation:gmMarquee 11s linear infinite}.gm-track u{color:#ffd0c6;font-weight:900;text-underline-offset:3px}.global-max.ticker:hover .gm-track{animation-play-state:paused}@keyframes gmMarquee{0%{transform:translateX(10%)}100%{transform:translateX(-72%)}}@media(max-width:480px){.global-max.ticker{top:8px;min-height:52px;padding:8px 12px;gap:12px}.gm-live{font-size:9px}.gm-track{font-size:12px;animation-duration:9s}.dmax-label{font-size:44px}}
/* v3.2 — every empty-screen tap charges MAX; energetic local impact */
.screen-douma{width:88px;height:88px;display:grid;place-items:center;animation:screenDouma 1.55s cubic-bezier(.2,.66,.24,1) forwards!important;transform-origin:center;overflow:visible}.screen-douma>svg{position:relative;z-index:3;filter:drop-shadow(0 0 7px #fff) drop-shadow(0 0 22px #ff2d55) drop-shadow(0 0 42px #ff6a00)}.tap-wave{position:absolute;inset:21px;border:3px solid rgba(255,255,255,.95);border-radius:50%;animation:tapWave .72s ease-out forwards;box-shadow:0 0 18px #ff2d55}.tap-wave.w2{border-color:#ff6a00;animation-delay:.08s}.screen-douma i{position:absolute;left:42px;top:42px;width:5px;height:20px;border-radius:9px;background:linear-gradient(#fff,#ff6a00);transform:rotate(calc(var(--i)*60deg)) translateY(-30px);transform-origin:2px 30px;animation:tapSpark .72s ease-out forwards}.rail-btn.charging .ric.dsize{transition:transform .08s cubic-bezier(.15,1.8,.3,1)}@keyframes screenDouma{0%{opacity:0;transform:scale(.08) rotate(var(--tap-rot))}12%{opacity:.82;transform:scale(.22) rotate(calc(var(--tap-rot) * -.72))}30%{opacity:1;transform:scale(.46) rotate(calc(var(--tap-rot) * .58))}50%{opacity:1;transform:scale(.76) rotate(calc(var(--tap-rot) * -.42))}68%{opacity:1;transform:scale(1.04) rotate(calc(var(--tap-rot) * .28))}80%{opacity:.96;transform:scale(1.2) rotate(0deg)}91%{opacity:.68;transform:translate(12px,-24px) scale(.94) rotate(calc(var(--tap-rot) * -.35))}100%{opacity:0;transform:translate(28px,-66px) scale(.42) rotate(var(--tap-rot))}}@keyframes tapWave{from{opacity:1;transform:scale(.2)}to{opacity:0;transform:scale(3.5);border-width:1px}}@keyframes tapSpark{0%{opacity:1;scale:.3}100%{opacity:0;scale:1.5;translate:0 -24px}}@media(prefers-reduced-motion:reduce){.screen-douma,.tap-wave,.screen-douma i{animation-duration:.25s!important}}
/* v3.3 — fixed D uses the same clean sonic language as screen taps */
.rail-btn.dbtn .fixed-wave{position:absolute;left:50%;top:25px;width:30px;height:30px;margin:-15px;border:3px solid rgba(255,255,255,.95);border-radius:50%;opacity:0;pointer-events:none;z-index:1}.rail-btn.dbtn.charging .fixed-wave{animation:fixedWave .64s ease-out infinite}.rail-btn.dbtn .fw2{border-color:#ff6a00;animation-delay:.12s!important}.fixed-sparks{position:absolute;left:50%;top:25px;width:0;height:0;pointer-events:none;z-index:1}.fixed-sparks i{position:absolute;left:-2px;top:-17px;width:4px;height:15px;border-radius:8px;background:linear-gradient(#fff,#ff6a00);transform:rotate(calc(var(--i)*60deg)) translateY(-18px);transform-origin:2px 18px;opacity:0}.rail-btn.dbtn.charging .fixed-sparks i{animation:fixedSpark .58s ease-out infinite;animation-delay:calc(var(--i)*.025s)}.rail-btn.dbtn.critical .fixed-wave{border-width:4px;filter:drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px #ff2d55)}@keyframes fixedWave{0%{opacity:.95;transform:scale(.28)}100%{opacity:0;transform:scale(2.65);border-width:1px}}@keyframes fixedSpark{0%{opacity:1;scale:.4}100%{opacity:0;scale:1.4;translate:0 -14px}}
/* v3.3 — bright FOMO MAX party card */
.global-max.max-party{display:grid;grid-template-columns:58px 1fr auto;grid-template-rows:auto 20px;gap:8px 12px;top:calc(env(safe-area-inset-top) + 8px);width:min(96vw,760px);padding:12px 14px 0;text-align:left;overflow:hidden;border-radius:22px;background:linear-gradient(115deg,rgba(255,255,255,.98),rgba(255,226,207,.96) 36%,rgba(255,86,67,.96) 76%,rgba(255,45,85,.98));color:#21050b;border:2px solid #fff;box-shadow:0 7px 34px rgba(255,45,85,.62),0 0 0 3px rgba(255,106,0,.22);white-space:normal;animation:gmEnter .5s cubic-bezier(.15,1.45,.35,1),partyGlow .68s ease-in-out infinite alternate}.gm-burst{grid-row:1;position:relative;width:58px;height:58px;display:grid;place-items:center;filter:drop-shadow(0 4px 10px rgba(255,45,85,.4))}.gm-orbit{position:absolute;inset:8px;border:2px solid #ff2d55;border-radius:50%;animation:partyOrbit 1.1s linear infinite}.gm-orbit.o2{inset:2px;border-style:dashed;border-color:#ff6a00;animation-direction:reverse;animation-duration:1.7s}.gm-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.max-party .gm-live{font-size:9.5px;color:#a4122b;letter-spacing:1.1px;text-shadow:none}.gm-head{font-size:16px;line-height:1.12;color:#25050a}.gm-head b{color:#e80045}.gm-caption{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6c2630}.gm-challenge{font-size:11px;font-weight:900;color:#d5162e}.gm-cta{align-self:center;min-width:105px;padding:9px 11px;border-radius:14px;background:#171015;color:#fff;text-align:center;font-size:9px;line-height:1.15;box-shadow:0 4px 16px rgba(0,0,0,.25);animation:ctaBounce .75s ease-in-out infinite alternate}.gm-cta b{font-size:12px;color:#ffb38a}.gm-marquee{grid-column:1/-1;display:block;white-space:nowrap;min-width:max-content;font-size:9px;font-weight:900;letter-spacing:.5px;color:#fff;background:rgba(39,0,8,.78);margin:0 -14px;padding:4px 0;animation:partyMarquee 9s linear infinite}.global-max.max-party:hover .gm-marquee{animation-play-state:paused}@keyframes partyGlow{to{box-shadow:0 9px 44px rgba(255,45,85,.78),0 0 0 5px rgba(255,184,0,.24)}}@keyframes partyOrbit{to{transform:rotate(360deg) scale(1.08)}}@keyframes ctaBounce{to{transform:scale(1.06);background:#000}}@keyframes partyMarquee{from{transform:translateX(60%)}to{transform:translateX(-100%)}}@media(max-width:480px){.global-max.max-party{grid-template-columns:46px 1fr 84px;padding:9px 10px 0;gap:6px 8px}.gm-burst{width:46px;height:46px}.gm-burst svg{width:44px;height:44px}.gm-head{font-size:13px}.gm-caption,.gm-challenge{font-size:9.5px}.gm-cta{min-width:78px;padding:7px 6px;font-size:8px}.gm-cta b{font-size:10px}.gm-marquee{margin:0 -10px}}
/* v3.5 compact MAX ribbon — never covers navigation */
.global-max.max-party{display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-template-rows:48px;align-items:center;gap:8px;top:calc(env(safe-area-inset-top) + 50px);width:min(calc(100vw - 22px),580px);height:48px;min-height:48px;padding:0 9px;border-radius:15px;overflow:hidden;background:linear-gradient(105deg,rgba(255,255,255,.97),rgba(255,232,218,.97) 48%,rgba(255,94,71,.96));box-shadow:0 5px 22px rgba(255,45,85,.48),0 0 0 1px rgba(255,255,255,.9);white-space:normal}.max-party .gm-burst{grid-row:auto;width:36px;height:36px}.max-party .gm-burst svg{width:34px;height:34px}.max-party .gm-orbit{inset:4px}.max-party .gm-copy{gap:1px;overflow:hidden}.max-party .gm-head{font-size:12px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.max-party .gm-caption{font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#74162a}.max-party .gm-cta{min-width:auto;padding:7px 8px;border-radius:10px;font-size:9px;font-weight:1000;white-space:nowrap}.max-party .gm-live,.max-party .gm-challenge,.max-party .gm-marquee{display:none!important}.swipe-hint{position:fixed;z-index:90;left:50%;top:50%;transform:translate(-50%,-50%);padding:13px 18px;border-radius:18px;background:rgba(10,7,9,.84);border:1px solid rgba(255,255,255,.3);box-shadow:0 0 35px rgba(255,45,85,.5);backdrop-filter:blur(14px);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none;animation:swipePop 1.2s ease forwards}.swipe-hint b{font-size:10px;letter-spacing:1px}.swipe-hint span{font-size:18px;font-weight:900;background:linear-gradient(90deg,#ff2d55,#ff6a00);-webkit-background-clip:text;color:transparent}@keyframes swipePop{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}18%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}72%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) translateX(var(--swipe,0))}}.swipe-hint.left{--swipe:-45px}.swipe-hint.right{--swipe:45px}@media(max-width:480px){.global-max.max-party{top:calc(env(safe-area-inset-top) + 47px);grid-template-columns:34px minmax(0,1fr) 68px;width:calc(100vw - 18px);height:46px;min-height:46px;padding:0 7px;gap:6px}.max-party .gm-burst{width:32px;height:32px}.max-party .gm-burst svg{width:30px;height:30px}.max-party .gm-head{font-size:10.5px}.max-party .gm-caption{font-size:7.5px}.max-party .gm-cta{font-size:8px;padding:6px 5px}}
.cmt-state,.cmt-disabled{text-align:center;color:var(--muted2);font-size:13px;padding:30px 12px;line-height:1.6}.cmt-state button{font-weight:700;color:var(--accent)}.cmt-disabled{border-top:1px solid var(--line)}.reply-chip{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted2);padding:0 8px 5px}.reply-chip button{font-size:20px;line-height:16px;padding:0 4px}
.notif-row{transition:background .15s}.notif-unread{background:rgba(255,45,126,.09);box-shadow:inset 3px 0 var(--pink)}.notif-unread:after{content:'';width:7px;height:7px;border-radius:50%;background:var(--pink)}.notif-state{text-align:center;color:var(--muted2);padding:46px 16px;display:grid;gap:14px;justify-items:center}.notif-more{display:block;margin:18px auto 40px}
/* 4.0.1: deliberate DOUMA charge curve and alternating tap wobble */
.rail-btn .ric.dsize{transition:transform .34s cubic-bezier(.16,.72,.2,1),filter .25s ease;will-change:transform}
.rail-btn.charging .ric.dsize{transition-duration:.42s}
.language-row select{background:var(--s2);color:#fff;border:1px solid var(--line);border-radius:9px;padding:7px 9px;font:inherit;max-width:130px}
@media(prefers-reduced-motion:reduce){.rail-btn .ric.dsize{transition:none!important}.rail-btn.dshaking .ric.dsize{animation:none!important}}

/* ---------- DOUMA LIVE integration ---------- */
.create-sheet{z-index:58;padding-bottom:calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(26,26,26,.98),rgba(8,8,9,.98));}
.create-option{width:calc(100% - 32px);margin:9px 16px 0;min-height:72px;border-radius:18px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:13px;padding:12px;text-align:left;transition:transform .16s var(--ease),border-color .16s,background .16s;}
.create-option:active{transform:scale(.98);background:rgba(255,255,255,.1)}.create-option:focus-visible{outline:2px solid #fff;outline-offset:2px}.create-option span:last-child{display:grid;gap:4px}.create-option b{font-size:15px}.create-option em{font-style:normal;font-size:12px;color:var(--muted);line-height:1.35}.create-ic{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;flex:none;background:var(--s2)}.create-ic.upload{color:#fff;background:linear-gradient(135deg,#2f2f34,#17171a)}.create-ic.live{background:var(--grad);box-shadow:0 8px 22px rgba(255,45,85,.34)}.create-ic.watch{background:rgba(255,45,85,.16);border:1px solid rgba(255,45,85,.35)}.create-option.live{border-color:rgba(255,106,0,.35);background:linear-gradient(135deg,rgba(255,45,85,.17),rgba(255,106,0,.11))}.create-cancel{height:47px;width:calc(100% - 32px);margin:12px 16px 0;border-radius:15px;background:var(--s1);font-weight:800;color:var(--muted)}
.livehub{background:#000;overflow:hidden}.livehub-head{position:absolute;left:12px;right:12px;top:52px;z-index:8;height:50px;border-radius:18px;padding:5px 6px;display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.46);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(16px)}.livehub-head b{display:flex;align-items:center;gap:7px;font-size:17px;letter-spacing:.03em}.livehub-head b i,.live-pill i,.live-start i{width:8px;height:8px;border-radius:50%;background:#ff2d55;box-shadow:0 0 12px #ff2d55;display:inline-block}.livehub-search{margin-left:auto;height:38px;min-width:0;flex:1;max-width:210px;border-radius:14px;background:rgba(255,255,255,.1);display:flex;align-items:center;gap:6px;padding:0 10px;color:var(--muted)}.livehub-search input{width:100%;font-size:13px}.livehub-rail{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory}.live-room{position:relative;width:100%;height:100%;min-height:100%;display:block;scroll-snap-align:start;overflow:hidden;text-align:inherit}.live-room-shade,.live-setup-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.08) 42%,rgba(0,0,0,.78))}.live-room-top{position:absolute;top:114px;left:16px;right:16px;display:flex;align-items:center;gap:8px;z-index:2}.live-pill,.live-room-badge,.live-room-view{height:27px;border-radius:99px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:900;background:rgba(0,0,0,.48);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px)}.live-pill{background:linear-gradient(135deg,#ff2d55,#ff6a00);border:0}.live-room-view{margin-left:auto}.live-room-center{position:absolute;left:20px;right:20px;top:43%;transform:translateY(-50%);z-index:2;display:grid;justify-items:center;text-align:center;gap:8px}.live-room-center b{font-size:25px;line-height:1.08;text-shadow:0 3px 20px #000}.live-room-center>span:last-child{color:rgba(255,255,255,.82);font-weight:700}.live-room-wave{position:absolute;margin-top:51px;display:flex;gap:4px}.live-room-wave i{width:4px;border-radius:8px;background:#fff;animation:liveWave .7s ease-in-out infinite alternate}.live-room-wave i:nth-child(2){animation-delay:.1s}.live-room-wave i:nth-child(3){animation-delay:.2s}.live-room-wave i:nth-child(4){animation-delay:.3s}@keyframes liveWave{from{height:8px;opacity:.5}to{height:20px;opacity:1}}.live-room-foot{position:absolute;left:16px;right:16px;bottom:88px;z-index:3;min-height:58px;border-radius:18px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;background:rgba(0,0,0,.46);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(16px)}.live-room-foot span,.live-room-foot strong{display:flex;align-items:center;gap:7px;font-size:13px}.live-room-empty{height:100%;display:grid;place-content:center;justify-items:center;gap:9px;color:var(--muted);text-align:center}.livehub-dots{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:grid;gap:6px;z-index:4}.livehub-dots i{width:5px;height:5px;border-radius:99px;background:rgba(255,255,255,.38)}.livehub-dots i.on{height:18px;background:#fff}.livehub-go{position:absolute;left:50%;bottom:25px;transform:translateX(-50%);z-index:5;height:48px;padding:0 20px;border-radius:999px;background:var(--grad);box-shadow:0 10px 28px rgba(255,45,85,.42);display:flex;align-items:center;gap:8px;font-weight:900}.live-setup{background:#060606;overflow:auto}.live-setup-preview{position:relative;margin:8px 16px 14px;height:280px;border-radius:28px;overflow:hidden;background:#111}.live-setup-preview-copy{position:absolute;left:16px;right:16px;bottom:16px;display:grid;gap:7px}.live-setup-preview-copy b{font-size:22px}.live-setup-preview-copy span:last-child{color:var(--muted);font-weight:700}.live-setup-body{padding:0 16px 112px;display:grid;gap:13px}.live-setup-body label{display:grid;gap:8px;font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.03em}.live-setup-body input{height:50px;border-radius:15px;background:var(--s1);border:1px solid var(--line);padding:0 14px;font-size:15px}.live-setup-body input:focus{border-color:rgba(255,45,85,.7)}.live-topic-row{display:flex;gap:8px;overflow-x:auto}.live-topic-row button,.live-setup-opt button{height:36px;padding:0 13px;border-radius:999px;background:var(--s1);color:var(--muted);font-weight:800;white-space:nowrap}.live-topic-row button.on,.live-setup-opt button.on{background:var(--grad);color:#fff}.live-setup-opt{min-height:52px;border-radius:16px;background:var(--s1);border:1px solid var(--line);padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.live-setup-opt span{font-size:13px;color:rgba(255,255,255,.82);font-weight:700}.live-setup-opt b{font-size:13px}.live-setup-opt .ok{color:var(--green)}.live-setup-opt div{display:flex;gap:6px}.live-start{position:absolute;left:16px;right:16px;bottom:24px;z-index:6;height:54px;border-radius:18px;background:var(--grad);font-weight:1000;letter-spacing:.03em;box-shadow:0 12px 30px rgba(255,45,85,.4);display:flex;align-items:center;justify-content:center;gap:9px}.live-top .live-host b{max-width:138px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-top .live-host span{max-width:154px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-bottom{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:500px){.livehub-head{top:calc(env(safe-area-inset-top) + 50px)}.live-room-top{top:calc(env(safe-area-inset-top) + 112px)}.live-room-foot{bottom:calc(78px + env(safe-area-inset-bottom))}.livehub-go{bottom:calc(20px + env(safe-area-inset-bottom))}.live-setup-preview{height:34vh;min-height:235px}.live-start{bottom:calc(18px + env(safe-area-inset-bottom))}.create-sheet{border-radius:24px 24px 0 0}}
@media(max-width:360px){.livehub-search{max-width:160px}.live-room-center b{font-size:21px}.live-setup-preview{margin-left:12px;margin-right:12px}.live-setup-body{padding-left:12px;padding-right:12px}.create-option{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.live-room-wave i,.livehub-go,.live-start{animation:none!important}.live-room,.livehub-rail{scroll-behavior:auto}}

/* Real creator camera LIVE (local preview; no fake broadcast) */
.live-setup-preview video,.live-camera-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;transform:scaleX(-1)}
.live-setup-preview.camera-on{box-shadow:0 0 0 2px rgba(48,209,88,.45),0 18px 44px rgba(0,0,0,.35)}
.live-setup-camera{position:absolute;inset:0;z-index:1;display:grid;place-content:center;justify-items:center;gap:9px;padding:28px;text-align:center;background:radial-gradient(circle at 50% 38%,rgba(255,45,85,.2),rgba(0,0,0,.28) 50%,rgba(0,0,0,.72));color:#fff}.live-setup-camera b{font-size:16px}.live-setup-camera span{font-size:12px;color:var(--muted);line-height:1.35}.live-setup-camera button{margin-top:5px;height:39px;padding:0 15px;border-radius:999px;background:var(--grad);font-weight:900;box-shadow:0 10px 25px rgba(255,45,85,.34)}.live-setup-camera button:disabled,.live-start:disabled{opacity:.62}.live-camera-error{margin:-4px 16px 12px;padding:10px 12px;border-radius:14px;background:rgba(255,69,58,.14);border:1px solid rgba(255,69,58,.38);color:#ffd0cc;font-size:12px;font-weight:800;line-height:1.35}.live-camera-video{z-index:0}.live-douma-max{position:relative;overflow:visible}.live-douma-max em{position:absolute;right:-5px;top:-7px;min-width:22px;height:17px;border-radius:999px;background:#fff;color:#ff2d55;font-style:normal;font-size:9px;font-weight:1000;display:grid;place-items:center;box-shadow:0 3px 10px rgba(0,0,0,.32)}.live-douma-max.critical{animation:liveCharge .22s linear infinite alternate;filter:drop-shadow(0 0 12px #fff) drop-shadow(0 0 28px #ff2d55)}@keyframes liveCharge{to{transform:scale(1.12) rotate(-5deg)}}.live-max-boom{position:absolute;inset:0;z-index:25;display:grid;place-content:center;justify-items:center;gap:4px;pointer-events:none;background:radial-gradient(circle,#fff 0,rgba(255,210,110,.9) 8%,rgba(255,45,85,.72) 25%,rgba(0,0,0,0) 62%);animation:liveBoom 1.2s ease-out forwards}.live-max-boom b{font-size:28px;letter-spacing:-1px;text-shadow:0 5px 28px #000}.live-max-boom span{font-size:54px;filter:drop-shadow(0 0 22px #fff)}@keyframes liveBoom{0%{opacity:0;transform:scale(.45) rotate(-6deg)}18%{opacity:1;transform:scale(1.08)}70%{opacity:1}100%{opacity:0;transform:scale(1.5)}}
.live-tap-layer{position:absolute;inset:0;z-index:2;touch-action:manipulation;background:transparent}.live-top,.live-badges,.live-chat,.live-bottom{z-index:5}.gsend:not(.off),.gcard{opacity:1;filter:none}.gsend{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.gsend.off{opacity:.55}

/* LIVE regression fix + compact gift dock + Douma MAX live upgrade */
.live-top{top:calc(58px + env(safe-area-inset-top,0px))!important;position:absolute!important}.live-badges{top:calc(106px + env(safe-area-inset-top,0px))!important;position:absolute!important}.live-chat{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;position:absolute!important}.live-bottom{bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;position:absolute!important;padding-bottom:0!important}.live-top,.live-badges,.live-chat,.live-bottom{z-index:26}.live-tap-layer{z-index:3}.live-screen-douma{position:absolute;z-index:24;width:88px;height:88px;display:grid;place-items:center;animation:screenDouma 1.28s cubic-bezier(.2,.66,.24,1) forwards!important;transform-origin:center;pointer-events:none;overflow:visible}.live-screen-douma>svg{position:relative;z-index:3;filter:drop-shadow(0 0 7px #fff) drop-shadow(0 0 22px #ff2d55) drop-shadow(0 0 42px #ff6a00)}.live-screen-douma i{position:absolute;left:42px;top:42px;width:5px;height:20px;border-radius:9px;background:linear-gradient(#fff,#ff6a00);transform:rotate(calc(var(--i)*60deg)) translateY(-30px);transform-origin:2px 30px;animation:tapSpark .72s ease-out forwards}.live-douma-max{overflow:visible}.live-douma-max.charging svg{transform:scale(calc(.9 + var(--heat)*1.05)) rotate(var(--tilt));transition:transform .08s cubic-bezier(.15,1.8,.3,1);filter:drop-shadow(0 0 calc(8px + var(--heat)*18px) #ff2d55)}.live-douma-max.critical{animation:dshake .28s infinite}.live-max-boom{position:absolute;inset:0;z-index:38;display:grid;place-items:center;align-content:center;gap:8px;pointer-events:none;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.34),rgba(255,45,85,.22) 18%,transparent 58%);animation:liveBoom 1.8s ease-out forwards}.live-max-boom svg{filter:drop-shadow(0 0 16px #fff) drop-shadow(0 0 42px #ff2d55);animation:liveBoomD 1.1s cubic-bezier(.15,1.6,.25,1)}.live-max-boom b{font-size:31px;font-weight:1000;letter-spacing:.08em;text-align:center;text-shadow:0 3px 0 #000,0 0 28px #ff2d55}.live-max-boom span{font-size:58px;animation:popScale .55s var(--ease)}@keyframes liveBoom{0%{opacity:0;transform:scale(.6)}18%{opacity:1}100%{opacity:0;transform:scale(1.25)}}@keyframes liveBoomD{0%{transform:scale(.2) rotate(-35deg)}45%{transform:scale(1.65) rotate(20deg)}100%{transform:scale(1) rotate(0)}}@keyframes dshake{0%,100%{transform:translate(0,0)}25%{transform:translate(-1px,1px)}50%{transform:translate(1px,-1px)}75%{transform:translate(-1px,-1px)}}
.gpanel{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;z-index:48!important;max-height:min(42vh,355px)!important;border-radius:22px!important;background:rgba(12,12,12,.94)!important;backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 -10px 42px rgba(0,0,0,.55)!important}.sheet-grab{height:12px}.gpanel-head{padding:0 10px 6px 12px}.gpanel-head>b{font-size:14px}.gtop{display:none}.gtabs{padding:0 12px 7px;gap:5px}.gtab{font-size:11.5px;padding:6px 11px}.gscroll{overflow-x:auto;overflow-y:hidden;flex:1}.gift-grid2{display:flex!important;gap:8px!important;padding:2px 12px 8px!important;min-width:max-content}.gcard{width:76px;min-width:76px;padding:8px 3px 7px;border-radius:14px}.gcard-art{width:36px;height:32px}.gcard-art em{font-size:24px}.gcard-name{font-size:10px;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gcard-coin{font-size:9.5px}.gcard-tier,.gcard-new{display:none}.gpanel-note{display:none}.gpanel-foot{padding:7px 10px 10px;gap:7px;background:rgba(0,0,0,.32)}.gbal{padding:6px 10px;border-radius:12px}.gbal span{font-size:8.5px}.gbal b{font-size:11px}.gsend{height:42px;border-radius:13px}.gsend-lb{font-size:12px}.gsend-coin{font-size:11px;padding:2px 7px}.dim{background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.18) 60%,rgba(0,0,0,.38) 100%)!important}
@media (max-height:740px){.gpanel{max-height:min(40vh,300px)!important}.gcard{width:68px;min-width:68px}.gpanel-head{display:none}.gtabs{padding-top:8px}.gsend{height:38px}.live-chat{max-height:150px!important}}
