/* NanoChat 2.0: social, explore, editor, shield, tutorial */
.av.img { background-size: cover !important; background-position: center !important; color: transparent; }
.av.xl { width: 112px; height: 112px; font-size: 40px; }
.grow.col { flex-direction: column; align-items: stretch; gap: 8px; }
.hint { color: var(--mut); font-size: 12.5px; line-height: 1.4; padding: 4px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--fill, rgba(255,255,255,.1)); border: 1px solid var(--line); color: var(--txt); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.chip svg { width: 15px; height: 15px; } .chip.on { background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; border-color: transparent; } .chip.danger { color: #ff6b81; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--fill, rgba(255,255,255,.1)); border-radius: 14px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--mut); }
.seg button.on { background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.unseen { background: color-mix(in srgb, var(--a) 12%, transparent); }
.sysmsg { align-self: center; margin: 6px auto; padding: 6px 14px; border-radius: 999px; background: rgba(255, 59, 92, .16); border: 1px solid rgba(255, 59, 92, .45); color: var(--txt); font-size: 12.5px; font-weight: 600; text-align: center; max-width: 86%; }
.row.sys { justify-content: center; } .row.sys .bubble { background: none !important; box-shadow: none !important; padding: 0 !important; max-width: 100% !important; }
.trl { margin-top: 6px; padding-top: 6px; border-top: 1px dashed color-mix(in srgb, currentColor 30%, transparent); font-size: .94em; opacity: .95; }
.trl small { display: flex; align-items: center; gap: 4px; opacity: .65; font-size: 11px; margin-bottom: 2px; } .trl small svg { width: 12px; height: 12px; }
a.tag, a.men { color: var(--b); font-weight: 650; cursor: pointer; text-decoration: none; } a.plink { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--a) 25%, transparent); font-weight: 650; cursor: pointer; }
/* top bar buttons */
#topActions .tbtn, #topActions .itip { position: relative; width: 40px; height: 40px; }
#topActions .itip svg { width: 20px; height: 20px; opacity: .75; } .itip { color: var(--mut); }
#bellBtn .bd { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; background: #ff3b5c; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; font-style: normal; }
.pn-act { display: flex; gap: 4px; align-items: center; } .pn-act .itip { width: 38px; height: 38px; }
/* profile */
.pf-head { margin: 6px 0 14px; padding: 22px 16px 18px; border-radius: 26px; text-align: center; }
.pf-head h2 { margin: 12px 0 2px; font-size: 24px; letter-spacing: -.02em; } .pf-head .un { color: var(--mut); font-size: 13.5px; } .pf-head p { margin: 10px 0 0; color: var(--txt); opacity: .9; }
.pf-av { position: relative; display: inline-block; cursor: pointer; } .pf-av .cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; border: 3px solid var(--bg1); } .pf-av .cam svg { width: 17px; height: 17px; }
.cnts { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; } .cnt { padding: 6px 14px; text-align: center; } .cnt b { display: block; font-size: 19px; } .cnt small { color: var(--mut); font-size: 12px; }
.pf-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; } .pf-btns .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.lockmsg { display: grid; place-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--mut); } .lockmsg svg { width: 34px; height: 34px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; } .pth { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fill); padding: 0; } .pth img, .pth video { width: 100%; height: 100%; object-fit: cover; display: block; } .pth .pl { position: absolute; right: 6px; bottom: 6px; font-style: normal; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #000; }
.alb-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; } .alb-row::-webkit-scrollbar { display: none; }
.alb { flex: none; width: 118px; text-align: left; } .alb .cv { width: 118px; height: 118px; border-radius: 18px; overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--mut); } .alb .cv img { width: 100%; height: 100%; object-fit: cover; } .alb b { display: block; margin-top: 6px; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .alb small { color: var(--mut); font-size: 11.5px; }
.sect small { color: var(--mut); font-weight: 500; margin-left: 4px; }
.pvw { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; } .pvw .stage { flex: 1; display: grid; place-items: center; min-height: 0; touch-action: pan-y; } .pvw .stage img, .pvw .stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.pvw .x { position: absolute; top: calc(var(--sat, 0px) + 10px); left: 12px; z-index: 2; } .pvw .nv { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; } .pvw .nv.l { left: 8px; } .pvw .nv.r { right: 8px; transform: scaleX(-1); }
.pvw .bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px calc(var(--sab, 0px) + 12px); color: #fff; font-size: 13px; flex-wrap: wrap; }
/* find / lists */
.xsearch { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 16px; margin: 4px 0 10px; } .xsearch svg { width: 18px; height: 18px; color: var(--mut); flex: none; } .xsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--txt); font-size: 15px; }
.xsearch input::placeholder { color: var(--ph); opacity: 1; }
/* privacy */
.ghost-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 22px; margin: 6px 0 4px; } .ghost-card .gi { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 28%, transparent); } .ghost-card .gi svg { width: 26px; height: 26px; } .ghost-card .l { flex: 1; } .ghost-card small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; line-height: 1.35; } .ghost-card.on { box-shadow: inset 0 0 0 2px var(--a); }
/* tour */
.tour { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(92vw, 400px); padding: 26px 22px 18px; border-radius: 30px; text-align: center; z-index: 95; }
.tour .ti { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--a) 45%, transparent); } .tour .ti svg { width: 38px; height: 38px; stroke: #fff; }
.tour h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; } .tour p { margin: 0 0 14px; color: var(--txt); opacity: .85; line-height: 1.5; font-size: 14.5px; min-height: 66px; }
.tour .dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; } .tour .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: all .3s; } .tour .dots i.on { width: 20px; background: var(--a); }
.tour .tb { display: flex; gap: 8px; } .tour .tb .btn { flex: 1; } .tour .skip { position: absolute; top: 14px; right: 16px; font-size: 13px; color: var(--mut); padding: 6px 8px; }
/* explore hub */
.xhub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 12px; } .xt { position: relative; padding: 16px; border-radius: 22px; text-align: left; color: #fff; overflow: hidden; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.xt i { position: absolute; top: 12px; right: 12px; opacity: .9; } .xt i svg { width: 28px; height: 28px; stroke: #fff; } .xt b { font-size: 18px; } .xt small { opacity: .85; font-size: 12px; }
.xt.xr { background: linear-gradient(135deg, #ff3b5c, #ff9f1c); } .xt.xw { background: linear-gradient(135deg, #6c5cff, #2ec4ff); } .xt.xc { background: linear-gradient(135deg, #11998e, #38ef7d); } .xt.xp { background: linear-gradient(135deg, #ff4fd8, #6c5cff); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 10px; } .vcard { text-align: left; display: block; min-width: 0; }
.vcard .th { position: relative; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: var(--fill); } .vcard.reel .th { aspect-ratio: 9/14; } .vcard .th img, .vcard .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .du { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; } .vcard .rb, .vcard .lk { position: absolute; top: 6px; left: 6px; color: #fff; filter: drop-shadow(0 1px 3px #000); } .vcard .lk { left: auto; right: 6px; } .vcard .rb svg, .vcard .lk svg { width: 16px; height: 16px; stroke: #fff; }
.vcard .vi { padding: 7px 2px 0; } .vcard .vi b { display: block; font-size: 13.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .vcard .vi small { color: var(--mut); font-size: 12px; }
/* reels */
.reels { position: fixed; inset: 0; z-index: 85; background: #000; color: #fff; } .rscroll { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; } .rscroll::-webkit-scrollbar { display: none; }
.rtop { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat, 0px) + 10px) 12px 8px; background: linear-gradient(#0009, transparent); }
.rtabs { display: flex; gap: 18px; } .rtabs button { color: rgba(255,255,255,.65); font-weight: 700; font-size: 16px; padding: 6px 2px; border-bottom: 2px solid transparent; } .rtabs button.on { color: #fff; border-color: #fff; }
.rs { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; background: #000; overflow: hidden; } .rs video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.rshade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.rrail { position: absolute; right: 8px; bottom: calc(var(--sab, 0px) + 90px); display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 3; } .ra { display: grid; justify-items: center; gap: 2px; color: #fff; text-shadow: 0 1px 6px #0008; min-width: 44px; } .ra svg { width: 30px; height: 30px; stroke: #fff; filter: drop-shadow(0 1px 4px #0008); } .ra small { font-size: 12px; font-weight: 600; }
.ra.on svg { stroke: #ff3b5c; fill: #ff3b5c; } .ra.sv.on svg { stroke: #ffe14d; fill: #ffe14d; } .ra.av { position: relative; margin-bottom: 6px; } .ra .pl { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #ff3b5c; display: grid; place-items: center; } .ra .pl svg { width: 12px; height: 12px; }
.rcap { position: absolute; left: 12px; right: 76px; bottom: calc(var(--sab, 0px) + 22px); z-index: 3; text-shadow: 0 1px 6px #000a; } .rcap b { font-size: 15px; cursor: pointer; } .rcap .fol { margin-left: 8px; padding: 3px 12px; border: 1px solid #fff; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff; } .rcap .cp { margin: 6px 0 4px; font-size: 14px; line-height: 1.4; max-height: 5.6em; overflow: auto; } .rcap small { opacity: .75; font-size: 12px; } .rcap a.tag, .rcap a.men { color: #8ee0ff; }
.rprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 4; } .rprog i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.rheart { position: absolute; left: 50%; top: 45%; width: 110px; height: 110px; margin: -55px 0 0 -55px; opacity: 0; pointer-events: none; z-index: 4; } .rheart svg { width: 100%; height: 100%; fill: #ff3b5c; stroke: #ff3b5c; } .rheart.go { animation: hp .8s ease-out; } @keyframes hp { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.4) translateY(-30px); } }
/* player */
.pl-wrap { border-radius: 18px; overflow: hidden; background: #000; margin-bottom: 10px; } .pl-wrap video { width: 100%; max-height: 52vh; display: block; background: #000; }
.pl-info h2 { margin: 6px 0 2px; font-size: 19px; line-height: 1.25; } .pl-info small { color: var(--mut); } .pl-by { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; } .pl-act { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; } .pl-d { white-space: normal; line-height: 1.5; }
.cmlist .cm { padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; } .cm small { color: var(--mut); } .cmin { display: flex; gap: 8px; margin-top: 10px; } .cmin .field { flex: 1; min-width: 0; }
.chav { width: 48px; height: 48px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--a) 25%, transparent); display: grid; place-items: center; flex: none; } .chav img { width: 100%; height: 100%; object-fit: cover; } .chav.lg { width: 84px; height: 84px; border-radius: 28px; margin: 0 auto; }
.cpost { padding: 14px; border-radius: 20px; margin-bottom: 10px; } .cpost .ct { display: flex; justify-content: space-between; color: var(--mut); font-size: 12px; } .cpost p { margin: 8px 0; } .cpost img, .cpost video { width: 100%; border-radius: 14px; margin-top: 4px; display: block; } .cpost .cf { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .cpost .cf small { margin-left: auto; color: var(--mut); }
.cr-drop { display: grid; place-items: center; gap: 4px; text-align: center; padding: 34px 16px; border: 2px dashed var(--line); border-radius: 24px; margin-top: 8px; } .cr-drop svg { width: 40px; height: 40px; color: var(--a); } .cr-drop small { color: var(--mut); }
/* moments media grid + composer */
.mgrid { display: grid; gap: 3px; border-radius: 16px; overflow: hidden; margin: 8px 0; } .mgrid.n1 { grid-template-columns: 1fr; } .mgrid.n2 { grid-template-columns: 1fr 1fr; } .mgrid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .mgrid.n3 .mi:first-child { grid-row: span 2; } .mgrid.n4 { grid-template-columns: 1fr 1fr; }
.mgrid .mi { position: relative; padding: 0; background: var(--fill); aspect-ratio: 1; overflow: hidden; } .mgrid.n1 .mi { aspect-ratio: auto; max-height: 420px; } .mgrid .mi img, .mgrid .mi video { width: 100%; height: 100%; object-fit: cover; display: block; } .mgrid.n1 .mi img { object-fit: contain; max-height: 420px; } .mgrid .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-size: 26px; font-weight: 700; } .mgrid .pl { position: absolute; right: 8px; bottom: 6px; color: #fff; font-style: normal; }
.mprev { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; scrollbar-width: none; } .mp { position: relative; flex: none; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; } .mp img, .mp video { width: 100%; height: 100%; object-fit: cover; } .mp button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; } .mp button svg { width: 12px; height: 12px; }
.mtools { display: flex; gap: 6px; flex-wrap: wrap; } .mopts { display: grid; gap: 8px; margin-top: 10px; } .mopts label { display: grid; gap: 4px; font-size: 12.5px; color: var(--mut); } .mopts select { width: 100%; }
.ed-res { border-radius: 18px; overflow: hidden; margin-bottom: 12px; background: #000; } .ed-res img, .ed-res video { width: 100%; max-height: 40vh; object-fit: contain; display: block; }
/* shield */
.shield-flash { position: fixed; left: 50%; top: calc(var(--sat, 0px) + 18px); transform: translate(-50%, -140%); z-index: 200; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 18px; background: #c0153a; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); max-width: 92vw; } .shield-flash.go { transform: translate(-50%, 0); } .shield-flash svg { width: 22px; height: 22px; stroke: #fff; flex: none; }
html.shield-away #p-chat .msgs, html.shield-extra #p-chat .msgs { filter: blur(22px); pointer-events: none; transition: filter .15s; } html.shield-extra #p-chat::after { content: 'Someone else may be looking at this screen'; position: absolute; left: 50%; top: 45%; transform: translateX(-50%); padding: 12px 18px; border-radius: 16px; background: #c0153a; color: #fff; font-weight: 650; z-index: 30; text-align: center; max-width: 80%; }
.chat-head.shielded .who b::after { content: ' 🛡'; font-size: .8em; } .chat-head.guarding .who span::after { content: ' · camera guard on'; color: #38d66b; }
/* editor */
.ed { position: fixed; inset: 0; z-index: 88; display: flex; flex-direction: column; background: #0b0b14; color: #fff; }
.ed-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(var(--sat, 0px) + 8px) 10px 6px; } .ed-ttl { flex: 1; text-align: center; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; touch-action: none; user-select: none; background: repeating-conic-gradient(#14141f 0 25%, #10101a 0 50%) 50% / 24px 24px; } #edc { display: block; box-shadow: 0 8px 40px rgba(0,0,0,.6); touch-action: none; }
.ed-sel { position: absolute; border: 2px dashed #fff; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4); } .ed-sel.hidden, .ed-crop.hidden { display: none; }
.ed-crop { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); touch-action: none; cursor: move; background-image: linear-gradient(#fff3 1px, transparent 1px), linear-gradient(90deg, #fff3 1px, transparent 1px); background-size: 33.33% 33.33%; }
.ed-crop .h { position: absolute; width: 26px; height: 26px; background: transparent; } .ed-crop .h::after { content: ''; position: absolute; inset: 8px; background: #fff; border-radius: 3px; } .ed-crop .tl { left: -13px; top: -13px; } .ed-crop .tr { right: -13px; top: -13px; } .ed-crop .bl { left: -13px; bottom: -13px; } .ed-crop .br { right: -13px; bottom: -13px; } .ed-crop .t { left: 50%; top: -13px; margin-left: -13px; } .ed-crop .b { left: 50%; bottom: -13px; margin-left: -13px; } .ed-crop .l { top: 50%; left: -13px; margin-top: -13px; } .ed-crop .r { top: 50%; right: -13px; margin-top: -13px; }
.ed-play { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; } .ed-play svg { width: 24px; height: 24px; stroke: #fff; fill: #fff; }
.ed-panel { flex: none; min-height: 112px; max-height: 38vh; overflow-y: auto; padding: 8px 10px; background: #12121d; border-top: 1px solid #ffffff14; }
.pnl-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; flex-wrap: wrap; } .pnl-row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .pnl-row.scroll::-webkit-scrollbar { display: none; } .pnl-row.adj { align-items: flex-start; } .pnl-row.hint { color: #ffffff99; font-size: 13px; }
.ed .chip { background: #ffffff14; border-color: #ffffff1f; color: #fff; } .ed .chip.on { background: linear-gradient(135deg, var(--a), var(--b)); }
.ed-tabs { flex: none; display: flex; overflow-x: auto; background: #0b0b14; padding: 4px 6px calc(var(--sab, 0px) + 6px); scrollbar-width: none; } .ed-tabs::-webkit-scrollbar { display: none; } .ed-tabs button { flex: 1 0 64px; display: grid; justify-items: center; gap: 3px; padding: 8px 4px; color: #ffffff99; font-size: 11px; border-radius: 12px; } .ed-tabs button svg { width: 22px; height: 22px; } .ed-tabs button.on { color: #fff; background: #ffffff14; } .ed-tabs button.on svg { stroke: var(--a); }
.fth { flex: none; width: 66px; display: grid; justify-items: center; gap: 4px; font-size: 11px; color: #ffffffcc; } .fth canvas { width: 62px; height: 62px; border-radius: 12px; border: 2px solid transparent; } .fth.on canvas { border-color: var(--a); }
.sl { display: grid; gap: 4px; min-width: 150px; flex: 1 0 150px; font-size: 12px; color: #ffffffcc; } .sl span { display: flex; justify-content: space-between; } .sl b { color: #fff; } .sl input { width: 100%; accent-color: var(--a); }
.swc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .swc button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ffffff55; } .swc button.on { border-color: #fff; transform: scale(1.18); } .swc input[type=color] { width: 30px; height: 30px; padding: 0; border: 0; background: none; } .swc.big button { width: 44px; height: 44px; border-radius: 14px; }
.emo { flex: none; font-size: 30px; width: 46px; height: 46px; } .stk { flex: none; padding: 8px 12px; border-radius: 10px; background: #ff3b5c; font-weight: 800; color: #fff; font-size: 13px; } .pnl-row.em { align-items: center; }
.lay { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #ffffff14; padding: 6px; border: 2px solid transparent; } .lay.on { border-color: var(--a); } .lay svg { width: 100%; height: 100%; fill: #fff; opacity: .85; }
.trim .tl { position: relative; height: 54px; margin: 12px 14px 4px; border-radius: 10px; background: linear-gradient(90deg, #ffffff22, #ffffff10); } .trim .tl::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--ra, 0%); right: var(--rb, 0%); background: color-mix(in srgb, var(--a) 40%, transparent); border: 2px solid var(--a); border-radius: 8px; } .trim .tl i { position: absolute; top: -4px; bottom: -4px; width: 22px; margin-left: -11px; border-radius: 8px; background: var(--a); touch-action: none; } .trim .tl i.tp { width: 4px; margin-left: -2px; background: #fff; border-radius: 2px; pointer-events: none; } .trim .tt { display: flex; justify-content: space-between; font-size: 12px; color: #ffffffcc; padding: 0 14px; }
.ed-busy { position: absolute; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(8,8,16,.9); text-align: center; } .ed-busy .spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #ffffff22; border-top-color: var(--a); animation: sp 1s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .ed { left: 50%; right: auto; width: min(100vw, 760px); transform: translateX(-50%); } .reels { left: 50%; right: auto; width: min(100vw, 520px); transform: translateX(-50%); } }
@media (max-width: 340px) { .viewer .qr { gap: 4px; padding: 0 6px; } .viewer .qr button { width: 36px; height: 36px; font-size: 18px; } .pf-btns .btn { padding-left: 12px; padding-right: 12px; } .xhub { gap: 8px; } .xt { padding: 12px; min-height: 80px; } .xt b { font-size: 16px; } }
.callscr .cq{position:absolute;top:14px;right:14px}
.callscr[data-q="1"] .st::after{content:" · poor connection";color:#ff8a80}
.callscr[data-q="2"] .st::after{content:" · fair connection";opacity:.8}
.callscr.weak .st{color:#ffd180}
/* delivery ticks */
.bubble .meta .tk{display:inline-flex;align-items:center;margin-left:2px;opacity:1}
.bubble .meta .tk svg{width:18px;height:18px;stroke-width:2.6;filter:drop-shadow(0 0 1px rgba(0,0,0,.35))}
.bubble .meta .tk.sent{color:rgba(255,255,255,.8)}
.bubble .meta .tk.dlv{color:rgba(255,255,255,.9)}
.bubble .meta .tk.read{color:#7ff3ff;filter:drop-shadow(0 0 2px rgba(0,40,120,.7))}
.bubble .meta .tk.pend svg{width:13px;height:13px;opacity:.7}
/* notification banner */
#nbanner{position:fixed;left:50%;top:calc(var(--sat,0px) + 10px);width:min(94vw,440px);transform:translate(-50%,-140%);z-index:99995;display:flex;gap:11px;align-items:center;padding:11px 14px;border-radius:20px;opacity:0;transition:transform .28s cubic-bezier(.2,.9,.3,1.1),opacity .2s;pointer-events:none;box-shadow:0 10px 34px rgba(0,0,0,.28);background:var(--panel,rgba(30,30,40,.92));color:var(--tx,#fff);-webkit-backdrop-filter:blur(20px) saturate(1.5);backdrop-filter:blur(20px) saturate(1.5);border:1px solid rgba(255,255,255,.18)}
#nbanner.on{transform:translate(-50%,0);opacity:1;pointer-events:auto}
#nbanner.sec{border-color:#ff5a6e;box-shadow:0 10px 34px rgba(255,60,90,.4)}
#nbanner .nb-av{flex:none}#nbanner .nb-av:empty{display:none}
#nbanner .nb-t{display:flex;flex-direction:column;min-width:0}#nbanner b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#nbanner span{font-size:13.5px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* smoothness */
html.moving #pages .glass,html.moving #pages .chat-item{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
#pages .page{contain:layout paint style;backface-visibility:hidden}
.chat-item{content-visibility:auto;contain-intrinsic-size:auto 76px}
#pages{touch-action:pan-y;overscroll-behavior-x:none}
.layer .scrim{will-change:opacity}

/* music player placement: top (default), bottom, or a floating bubble */
.mini-bar{position:fixed!important;z-index:60!important}
#app.mpos-top .mini-bar{top:calc(var(--pt,70px) - 12px)!important;bottom:auto!important}
#app.mpos-top.in-chat .mini-bar{top:calc(var(--sat,0px) + 74px)!important}
#app.mpos-bottom .mini-bar{top:auto!important;bottom:calc(var(--sab,0px) + 92px)!important}
#app.mpos-bottom.in-chat .mini-bar{bottom:calc(var(--sab,0px) + 78px)!important}
#app.mpos-bottom.has-mini .page{padding-top:var(--pt)!important;padding-bottom:150px}
#app.mpos-bottom .mini-bar.away{transform:translateY(140%)}
#app.mpos-bottom #miniHandle{top:auto;bottom:calc(var(--sab,0px) + 86px)}
#app.in-chat.mpos-top.has-mini #msgs{padding-top:64px}
#app.mpos-float .mini-bar{left:auto!important;right:auto!important;width:min(340px,92vw);top:var(--mt,auto)!important;bottom:var(--mb,170px)!important;opacity:0;transform:scale(.4);pointer-events:none;transition:transform .32s cubic-bezier(.2,.9,.3,1.15),opacity .2s!important}
#app.mpos-float .mini-bar.pop{opacity:1;transform:scale(1);pointer-events:auto}
#app.mpos-float .mini-bar.away{transform:scale(.4);opacity:0}
#app.mpos-float .mini-bar .mp-hide,#app.mpos-float #miniHandle{display:none}
#app.mpos-float .mini-bar{margin:0 8px;left:8px!important}
#musicFab{position:fixed;z-index:61;width:54px;height:54px;border-radius:50%;padding:0;border:0;background:none;touch-action:none;cursor:grab;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35));animation:fabIn .4s cubic-bezier(.2,.9,.3,1.3)}
#musicFab .fa-art{position:absolute;inset:3px;border-radius:50%;background:linear-gradient(135deg,var(--a),var(--b)) center/cover;display:grid;place-items:center;color:#fff}
#musicFab .fa-art svg{width:22px;height:22px}
#musicFab .fa-ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(255,255,255,.85)}
#musicFab.playing .fa-art{animation:spin 8s linear infinite}
#musicFab.playing .fa-ring{animation:fabPulse 1.6s ease-out infinite}
@keyframes fabIn{from{transform:scale(0)}}
@keyframes fabPulse{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--a) 70%,transparent)}to{box-shadow:0 0 0 14px transparent}}
/* comments */
.cm{padding:8px 4px;border-bottom:1px solid var(--line,rgba(128,128,128,.15))}
.cm .cmh small{opacity:.6;font-size:11px}.cm .cmt{margin-top:2px;line-height:1.35}
.cm .cma{display:flex;align-items:center;gap:6px;margin-top:4px}
.cm .cmb{border:0;background:var(--fill,rgba(128,128,128,.12));border-radius:14px;padding:3px 10px;font-size:14px;color:inherit}
.cm .cmr{display:inline-flex;gap:4px;margin-right:auto}.cm .cmr i{font-style:normal;font-size:12px;border-radius:12px;padding:2px 8px;background:var(--fill,rgba(128,128,128,.12))}
.cm .cmr i.me{outline:1.5px solid var(--a)}
.cmsug{flex-direction:column;gap:2px;padding:6px;margin:6px 0;border-radius:14px;background:var(--fill,rgba(128,128,128,.12))}
.cmsug button{display:flex;align-items:center;gap:8px;border:0;background:none;color:inherit;text-align:left;padding:6px;border-radius:10px}
.cmsug button:active{background:rgba(128,128,128,.2)}.cmsug small{display:block;opacity:.65;font-size:12px}
.cmedit{align-items:center;justify-content:space-between;padding:4px 10px;font-size:12px;border-radius:10px;background:var(--fill,rgba(128,128,128,.12));margin-bottom:4px}
.vtk{display:inline-flex;vertical-align:-3px;margin-left:4px}.vtk svg{width:16px;height:16px}
.pf-head h2 .vtk svg{width:22px;height:22px}

/* ---- 2.2: legal, block list, report ---- */
.legal { position: absolute; left: 12px; right: 12px; top: calc(var(--sat, 0px) + 18px); bottom: calc(var(--sab, 0px) + 18px); max-width: 640px; margin: 0 auto; border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; }
.legal .lgh { padding: 18px 18px 8px; } .legal h3 { margin: 0 0 2px; font-size: 20px; } .legal .sub { margin: 0 0 10px; color: var(--mut); font-size: 13px; }
.legal .lgb { flex: 1; overflow: auto; padding: 4px 18px 12px; -webkit-overflow-scrolling: touch; }
.legaltxt { font-size: 13.5px; line-height: 1.5; } .legaltxt h4 { margin: 14px 0 3px; font-size: 14px; } .legaltxt p { margin: 0 0 6px; color: var(--mut); }
.legaltxt .lglead { padding: 10px 12px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); }
.legal .lgf { padding: 10px 18px calc(14px + var(--sab, 0px)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.lgck { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; } .lgck input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--a); } .lgck a { color: var(--a); font-weight: 600; }
.legal .btns { display: flex; gap: 8px; } .legal .btns .btn { flex: 1; } .legal .btn:disabled { opacity: .45; }
.login select.field, .legal select.field { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); } .brow:last-child { border: 0; } .brow .bn { flex: 1; min-width: 0; } .brow .bn b { display: block; } .brow .bn small { color: var(--mut); font-size: 12px; } .brow .av { width: 42px; height: 42px; font-size: 15px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; } .reasons button { padding: 11px 10px; border-radius: 14px; background: var(--fill); border: 1px solid var(--line); color: var(--txt); font: inherit; font-size: 13px; text-align: left; }
.reasons button:active { background: color-mix(in srgb, var(--a) 22%, transparent); }
