:root {
  --bg: #040807; --text: #f1f5f3; --text-2: #b7c7c1; --text-3: #8398a0;
  --glass: rgba(255, 255, 255, .04); --glass-2: rgba(255, 255, 255, .07); --glass-3: rgba(255, 255, 255, .12);
  --stroke: rgba(255, 255, 255, .09); --stroke-2: rgba(255, 255, 255, .18);
  --accent: #3ee6b0; --accent-2: #14b8a6; --grad: linear-gradient(135deg, #6ff2c8, #14b8a6); --on-accent: #04261c;
  --ok: #34d399; --shadow: 0 10px 40px rgba(0, 0, 0, .6);
  --blur: blur(28px) saturate(170%);
  --r: 22px; --nav-h: 64px; --rail: 88px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ecf8f3; --text: #14141f; --text-2: #3f524b; --text-3: #6b7d76;
  --glass: rgba(255, 255, 255, .6); --glass-2: rgba(255, 255, 255, .78); --glass-3: rgba(255, 255, 255, .95);
  --stroke: rgba(20, 20, 40, .1); --stroke-2: rgba(20, 20, 40, .2);
  --shadow: 0 10px 40px rgba(60, 60, 120, .18);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.f { fill: currentColor; stroke: none; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--glass-3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ambient background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { background: #34d399; top: -25vmax; left: -15vmax; opacity: .13; }
.bg i:nth-child(2) { background: #0d9488; bottom: -30vmax; right: -20vmax; animation-duration: 32s; opacity: .16; }
.bg i:nth-child(3) { background: #67e8f9; top: 30%; left: 40%; width: 40vmax; height: 40vmax; animation-duration: 38s; opacity: .07; }
:root[data-theme="light"] .bg i { opacity: .22; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } * { transition-duration: 0s !important; animation-duration: 0s !important; } }

.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow); }

/* shell */
.shell { min-height: 100dvh; padding: calc(var(--nav-h) + 24px) 24px 40px calc(var(--rail) + 24px); }
.top { position: fixed; top: 12px; left: calc(var(--rail) + 12px); right: 12px; height: var(--nav-h); z-index: 40; border-radius: 20px; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 6px 22px rgba(62, 230, 176, .35); flex: none; }
.brand-mark svg { width: 100%; height: 100%; border-radius: 12px; display: block; }
.search { flex: 1; max-width: 620px; margin: 0 auto; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); padding: 0 44px 0 42px; outline: none; transition: .2s var(--ease); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(62, 230, 176, .18); background: var(--glass-2); }
.search svg { position: absolute; left: 13px; top: 10px; color: var(--text-2); }
.search kbd { position: absolute; right: 10px; top: 9px; font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--stroke); color: var(--text-3); }
.ibtn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; transition: .2s var(--ease); position: relative; }
.ibtn:hover { background: var(--glass-2); transform: translateY(-1px); }
.avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; color: var(--on-accent); background: var(--grad); flex: none; }
.avatar.s { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }

.rail { position: fixed; top: 12px; bottom: 12px; left: 12px; width: calc(var(--rail) - 12px); z-index: 45; border-radius: 26px; display: flex; flex-direction: column; align-items: center; padding: 14px 8px; gap: 4px; }
.rail .brand-mark { margin-bottom: 14px; }
.nav { width: 64px; padding: 9px 0 7px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--text-2); transition: .25s var(--ease); position: relative; }
.nav:hover { background: var(--glass-2); color: var(--text); }
.nav.on { color: var(--text); background: var(--glass-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.nav.on::before { content: ""; position: absolute; left: -9px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--grad); }
.rail .sp { flex: 1; }

.tabbar { display: none; }

/* typography & blocks */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.hero { margin-bottom: 18px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); margin: 6px 0 0; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.sec h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.btn { height: 38px; padding: 0 16px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; background: var(--glass-2); border: 1px solid var(--stroke); transition: .2s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--glass-3); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px rgba(62, 230, 176, .35); }
.btn.on { background: var(--text); color: var(--bg); border-color: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--stroke); font-weight: 600; font-size: 13px; white-space: nowrap; transition: .2s var(--ease); flex: none; }
.chip:hover { background: var(--glass-2); }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }

/* video cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.card { display: block; border-radius: var(--r); padding: 8px; transition: .3s var(--ease); content-visibility: auto; contain-intrinsic-size: auto 300px; }
.enter .card, .enter .art, .enter .embed, .enter .bcard { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.card:hover { background: var(--glass); transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--glass-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.thumb .tag { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); color: #fff; }
.thumb .save { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); color: #fff; opacity: 0; transition: .2s; }
.card:hover .save, .save.on { opacity: 1; }
.save.on { color: var(--accent); }
.cmeta { display: flex; gap: 12px; padding: 12px 6px 6px; }
.cmeta h3 { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeta p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.scard { flex: none; width: 188px; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; position: relative; scroll-snap-align: start; transition: .3s var(--ease); border: 1px solid var(--stroke); }
.scard:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow); }
.scard img { width: 100%; height: 100%; object-fit: cover; }
.scard .cap { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; font-size: 13px; font-weight: 600; }
.scard .cap small { display: block; opacity: .7; font-weight: 500; margin-top: 2px; }
.caught { grid-column: 1/-1; text-align: center; padding: 40px 20px; border-radius: var(--r); margin-top: 12px; }
.caught h3 { font-size: 20px; } .caught p { color: var(--text-2); max-width: 520px; margin: 8px auto 16px; }
.empty { text-align: center; padding: 56px 24px; border-radius: var(--r); }
.empty h3 { font-size: 20px; margin-bottom: 6px; } .empty p { color: var(--text-2); max-width: 480px; margin: 0 auto 16px; }
.skel { background: linear-gradient(100deg, var(--glass) 30%, var(--glass-3) 50%, var(--glass) 70%); background-size: 200% 100%; animation: shim 1.3s infinite; border-radius: 16px; }
@keyframes shim { to { background-position: -200% 0; } }

/* shorts */
.shorts { position: fixed; inset: 0 0 0 var(--rail); z-index: 20; overflow-y: scroll; scroll-snap-type: y mandatory; padding-top: 0; scrollbar-width: none; overscroll-behavior: contain; }
.shorts::-webkit-scrollbar { display: none; }
.short { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 84px 16px 20px; }
.sstage { position: relative; height: 100%; max-height: 860px; aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--stroke-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sstage iframe, .sstage > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; pointer-events: none; }
.sinfo b { display: block; font-size: 15px; } .sinfo span { font-size: 12.5px; opacity: .8; }
.srail { display: flex; flex-direction: column; gap: 12px; align-self: flex-end; padding-bottom: 8px; }
.srail .ibtn { width: 52px; height: 52px; border-radius: 50%; flex-direction: column; font-size: 10px; font-weight: 700; gap: 2px; }
.srail .ibtn.on { color: var(--accent); }
.shint { position: fixed; top: calc(var(--nav-h) + 22px); right: 24px; z-index: 30; border-radius: 14px; padding: 8px 14px; font-size: 12px; color: var(--text-2); }

/* watch */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; max-width: 1600px; margin: 0 auto; }
.player { aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.wtitle { font-size: 22px; font-weight: 700; margin: 18px 0 12px; line-height: 1.3; }
.wrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wrow .grow { flex: 1; min-width: 180px; } .wrow .grow b { display: block; } .wrow small { color: var(--text-2); }
.panel { border-radius: var(--r); padding: 16px; margin-top: 16px; }
.why { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); font-size: 13px; font-weight: 600; }
.rel { display: flex; gap: 12px; padding: 8px; border-radius: 18px; transition: .2s; }
.rel:hover { background: var(--glass); }
.rel .thumb { width: 160px; border-radius: 12px; flex: none; }
.rel h3 { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rel p { margin: 4px 0 0; color: var(--text-2); font-size: 12.5px; }

/* social embeds */
.masonry { columns: 380px; column-gap: 18px; }
.embed { break-inside: avoid; margin-bottom: 18px; border-radius: var(--r); padding: 12px; overflow: hidden; }
.embed header { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; font-weight: 600; font-size: 13px; }
.embed header .x { margin-left: auto; color: var(--text-3); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.embed header .x:hover { background: var(--glass-2); color: var(--text); }
.embed iframe { width: 100%; border: 0; border-radius: 14px; background: #fff; display: block; }
.embed.ig iframe { height: 720px; } .embed.ig.profile iframe { height: 640px; }
.embed .twitter-tweet, .embed .twitter-timeline { margin: 0 auto !important; }
.plat { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.plat.ig { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); } .plat.x { background: #000; border: 1px solid #333; } .plat.th { background: #111; border: 1px solid #333; } .plat.yt { background: #f00; }
.apost { padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px; }
.apost p { margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.apost .m { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 13px; }
.thread-line { border-left: 2px solid var(--stroke-2); margin-left: 17px; padding-left: 18px; }

/* modal / onboarding / forms */
.scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(5, 5, 12, .55); backdrop-filter: blur(14px); animation: fade .25s; }
:root[data-theme="light"] .scrim { background: rgba(220, 224, 240, .6); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); border-radius: 30px; padding: 30px; background: var(--glass-2); animation: pop .4s var(--ease); max-height: 94dvh; overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal h1 { font-size: 30px; font-weight: 800; margin: 6px 0; } .modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.lead { color: var(--text-2); margin: 0 0 20px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; } .steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--glass-3); } .steps i.on { background: var(--grad); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.opt { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--glass); display: flex; flex-direction: column; gap: 3px; transition: .2s var(--ease); }
.opt:hover { background: var(--glass-2); transform: translateY(-2px); }
.opt.on { border-color: var(--accent); background: rgba(62, 230, 176, .14); box-shadow: 0 0 0 3px rgba(62, 230, 176, .15); }
.opt b { font-size: 14.5px; } .opt span { font-size: 12px; color: var(--text-2); }
.field { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); outline: none; transition: .2s; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(62, 230, 176, .16); }
textarea.field { min-height: 84px; resize: vertical; }
label.lbl { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; color: var(--text-2); }
.acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; }
.note { font-size: 12.5px; color: var(--text-2); padding: 11px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.conn { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.conn .field { flex: 1; }
.set { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.set section { border-radius: var(--r); padding: 20px; }
.set h2 { font-size: 17px; margin-bottom: 4px; } .set .hint { color: var(--text-2); margin: 0 0 14px; font-size: 13.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; padding: 12px 20px; border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: rise .3s var(--ease); max-width: 90vw; }
.menu { position: fixed; top: calc(var(--nav-h) + 20px); right: 16px; z-index: 60; width: 270px; border-radius: 20px; padding: 8px; animation: pop .25s var(--ease); background: var(--glass-2); }
.menu button { width: 100%; padding: 10px 12px; border-radius: 12px; display: flex; gap: 12px; align-items: center; text-align: left; font-weight: 500; }
.menu button:hover { background: var(--glass-3); }
.menu .who { display: flex; gap: 12px; align-items: center; padding: 10px 12px 12px; border-bottom: 1px solid var(--stroke); margin-bottom: 6px; }
.menu .who small { color: var(--text-2); display: block; }

@media (max-width: 1100px) { .watch { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  :root { --rail: 0px; --nav-h: 58px; }
  .rail { display: none; }
  .shell { padding: calc(var(--nav-h) + 22px) 14px calc(96px + env(safe-area-inset-bottom)); }
  .top { left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); }
  .search kbd, .brand b { display: none; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; z-index: 50; border-radius: 26px; justify-content: space-around; align-items: center; padding: 0 6px; }
  .tabbar .nav { width: 58px; flex: none; }
  .tabbar .nav.on::before { display: none; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .shorts { inset: 0; } .short { padding: 72px 0 84px; gap: 0; } .sstage { max-height: none; width: 100%; border-radius: 0; border-left: 0; border-right: 0; aspect-ratio: auto; }
  .srail { position: absolute; right: 10px; bottom: 100px; z-index: 5; } .shint { display: none; }
  .rel .thumb { width: 130px; }
  .modal { padding: 22px; border-radius: 26px; }
  .embed.ig iframe { height: 640px; }
}

/* news reader */
.news { display: grid; grid-template-columns: 240px minmax(300px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.nsrc { border-radius: var(--r); padding: 10px; position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100dvh - var(--nav-h) - 48px); overflow-y: auto; }
.nsrc h4 { margin: 14px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.nrow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-align: left; font-weight: 500; font-size: 13.5px; transition: .15s; }
.nrow:hover { background: var(--glass-2); } .nrow.on { background: var(--glass-3); font-weight: 700; }
.nrow em { margin-left: auto; font-style: normal; color: var(--text-3); font-size: 12px; }
.nrow i { width: 10px; height: 10px; border-radius: 50%; flex: none; } .nrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow .rm { color: var(--text-3); padding: 0 4px; }
.nlist { display: flex; flex-direction: column; gap: 10px; }
.art { display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--stroke); transition: .2s var(--ease); content-visibility: auto; contain-intrinsic-size: auto 110px; }
.art:hover { background: var(--glass-2); transform: translateX(3px); } .art.on { border-color: var(--accent); background: var(--glass-2); } .art.read h3 { color: var(--text-2); font-weight: 500; }
.art .at { flex: 1; min-width: 0; } .art small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.art h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 3px 0 4px; } .art p { margin: 0; color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.reader { border-radius: var(--r); padding: 26px; position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100dvh - var(--nav-h) - 48px); overflow-y: auto; }
.reader .back { display: none; margin-bottom: 14px; }
.reader h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 14px; font-weight: 800; } .reader small { color: var(--text-2); font-weight: 600; }
.reader .hero-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.reader .body { font-size: 17px; line-height: 1.65; color: var(--text); white-space: pre-wrap; }
.empty-r { text-align: center; color: var(--text-2); padding: 80px 20px; }
.brief { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bcard { display: flex; gap: 12px; padding: 12px; border-radius: 18px; transition: .25s var(--ease); } .bcard:hover { transform: translateY(-3px); background: var(--glass-2); }
.bcard img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; } .bcard small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.bcard h3 { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pal { width: min(620px, 100%); padding: 14px; } .prow { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; margin-top: 4px; } .prow:hover, .prow.on { background: var(--glass-3); }
.prow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .news { grid-template-columns: 220px 1fr; } .reader { position: static; max-height: none; grid-column: 1/-1; } .news:not(.has-sel) .reader { display: none; } }
@media (max-width: 860px) {
  .news { grid-template-columns: 1fr; } .nsrc { position: static; max-height: none; display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
  .nsrc h4 { display: none; } .nrow { width: auto; white-space: nowrap; } .nsrc .btn { display: none; }
  .news.has-sel .nsrc, .news.has-sel .nlist { display: none; } .reader .back { display: inline-flex; }
}
/* shorts: player must sit above the poster image */
.sstage iframe { z-index: 1; } .sinfo { z-index: 2; }
.ai-card { border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ai-card .grow { flex: 1; min-width: 220px; } .ai-card b { display: block; } .ai-card small { color: var(--text-2); }
.spark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: var(--on-accent); flex: none; }


/* interaction polish + performance */
.bump { animation: bump .4s var(--ease); } @keyframes bump { 40% { transform: scale(1.35); } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.glass, .btn, .chip, .opt { will-change: auto; }
.shorts, .masonry, .grid { contain: layout style; }
html.lite { --blur: blur(10px); } html.lite .bg i { animation: none; filter: blur(60px); }
@media (prefers-reduced-transparency: reduce) { :root { --blur: none; } .glass { background: var(--bg); } }
body:has(#shorts) .bg i { animation-play-state: paused; }
.thumb img, .scard img { background: var(--glass-2); }
html { overscroll-behavior-y: none; }

/* shorts: players load hidden and fade in once playing, so a swipe never shows a black frame */
.sstage iframe { opacity: 0; transition: opacity .3s; pointer-events: none; }
.short.playing .sstage iframe { opacity: 1; }
.stap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; cursor: pointer; background: none; color: #fff; }
.stap .ico { width: 84px; height: 84px; border-radius: 50%; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .2s var(--ease); }
.stap .ico svg { width: 38px; height: 38px; margin-left: 4px; }
.short.paused .ico, .short.needtap .ico { opacity: 1; transform: none; }
.scap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 56px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; pointer-events: none; }
.scap b { display: block; font-size: 15px; } .scap span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; opacity: .92; margin-top: 2px; }
.short.playing .scap { opacity: 0; transition: opacity .6s 2.5s; } .short.paused .scap { opacity: 1; transition: none; }
.shorts { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.short { contain: layout paint; }

/* article readability */
.reader { background: var(--reader-bg, rgba(4, 9, 8, .92)); backdrop-filter: var(--blur); border: 1px solid var(--stroke); box-shadow: var(--shadow); padding: 28px clamp(20px, 4vw, 56px) 40px; }
:root[data-theme="light"] .reader { --reader-bg: rgba(255, 255, 255, .92); }
.reader.solo { max-width: 800px; margin: 0 auto; position: static; max-height: none; }
.solo-wrap { padding-top: 4px; }
.rtools { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; } .rtools .grow { flex: 1; }
.rtools .btn { height: 36px; padding: 0 14px; } .rtools .back { display: none; }
.rmeta { color: var(--text-2); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.reader h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 22px; text-wrap: balance; }
.reader .hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 18px; margin: 0 0 26px; display: block; }
.prose { --fs: 19px; font-family: "Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: var(--fs); line-height: 1.78; color: var(--text); max-width: 68ch; margin: 0 auto; -webkit-font-smoothing: antialiased; hyphens: auto; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: Inter, -apple-system, "Segoe UI", sans-serif; font-size: 1.28em; line-height: 1.3; letter-spacing: -.01em; margin: 1.9em 0 .6em; font-weight: 800; }
.prose blockquote { margin: 1.5em 0; padding: .1em 0 .1em 1.2em; border-left: 4px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3em; } .prose li { margin-bottom: .5em; }
.prose figure { margin: 1.6em -4vw; } .prose figure img { width: 100%; border-radius: 14px; display: block; }
.prose .rnote { font-family: Inter, sans-serif; font-size: .8em; color: var(--text-2); }
.ractions { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px auto 0; max-width: 68ch; padding-top: 22px; border-top: 1px solid var(--stroke); }
.art h3 { font-size: 16.5px; line-height: 1.35; color: var(--text); } .art p { color: var(--text-2); font-size: 14px; line-height: 1.5; -webkit-line-clamp: 3; }
.art small { color: var(--text-2); }
.art.read h3 { color: var(--text-2); font-weight: 600; }
@media (max-width: 860px) { .reader .back { display: inline-flex; } .prose { font-size: max(var(--fs), 18px); } .prose figure { margin: 1.4em 0; } .reader { padding: 20px 18px 30px; } }

/* share + embed dialogs (YouTube-style) */
.dlg { width: min(560px, 100%); padding: 22px 22px 24px; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } .dlg-h h2 { margin: 0; font-size: 20px; }
.targets { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scrollbar-width: none; }
.targets::-webkit-scrollbar { display: none; }
.target { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 66px; color: var(--text); transition: transform .2s var(--ease); }
.target:hover { transform: translateY(-3px); } .target small { font-size: 12px; color: var(--text-2); }
.tcircle { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--glass); }
.linkbox input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; color: var(--text); }
.btn.done { background: var(--ok) !important; color: #04261c !important; }
.embed-prev { width: 100%; max-height: 260px; margin: 0 auto 14px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--stroke); }
.embed-prev iframe { width: 100%; height: 100%; border: 0; display: block; }
.field.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; min-height: 96px; }
@media (max-width: 860px) { .scrim.sheet { align-items: end; padding: 0; } .scrim.sheet .dlg { border-radius: 26px 26px 0 0; width: 100%; animation: sheetup .3s var(--ease); padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }

/* guest + google sign-in */
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.btn.signin { height: 40px; padding: 0 18px; }
.gerr { color: #fca5a5; font-size: 13px; text-align: center; margin: 8px 0 0; min-height: 1em; }

/* focus modes + one-line setup */
.modebtn { height: 40px; padding: 0 14px; } .modebtn.on { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.menu.modes { right: auto; left: 50%; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); top: calc(var(--nav-h) + 20px); }
.menu.modes .mhead { padding: 10px 12px 12px; font-weight: 700; } .menu.modes .mhead small { display: block; color: var(--text-2); font-weight: 500; margin-top: 2px; }
.menu.modes button { align-items: center; justify-content: space-between; } .menu.modes button small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.menu.modes button.on { background: var(--glass-3); } .menu.modes b { font-weight: 700; }
.modebanner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px; border-color: var(--accent); }
.modebanner > div { flex: 1; } .modebanner b { display: block; } .modebanner small { color: var(--text-2); }
.tune { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); margin-bottom: 18px; flex-wrap: wrap; }
.tune .grow { flex: 1; min-width: 240px; } .tune b { display: block; } .tune small { display: block; color: var(--text-2); margin: 2px 0 10px; }
.tune textarea { min-height: 56px; } .tcol { display: flex; flex-direction: column; gap: 8px; } .tmsg { color: var(--ok); font-size: 13.5px; margin: 8px 0 0; }
@media (max-width: 860px) { .modebtn span { display: none; } .modebtn { width: 40px; padding: 0; justify-content: center; } .menu.modes { left: 12px; right: 12px; transform: none; width: auto; } }

.thumb .dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; }

/* ---- accounts UI ---- */
.dlg .wide { width: 100%; justify-content: center; height: 46px; margin-top: 10px; font-size: 15px; }
.dlg .field + .field, .dlg .field + .gerr { margin-top: 10px; }
.pkbtn { margin: 0 0 4px; background: var(--glass-3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--stroke); }
.alt { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 16px 0 0; }
.link { background: none; color: var(--accent); font-weight: 700; padding: 0; cursor: pointer; } .link:hover { text-decoration: underline; }
.field.otp { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px; }
.qrwrap { display: grid; place-items: center; margin: 4px 0 12px; } #qr { background: #fff; padding: 12px; border-radius: 14px; min-width: 200px; min-height: 200px; display: grid; place-items: center; }
.secret { text-align: center; color: var(--text-2); font-size: 13px; margin: 0 0 12px; } .secret code { display: block; margin-top: 6px; font-size: 15px; color: var(--text); letter-spacing: .08em; user-select: all; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--stroke); }
.srow small { display: block; color: var(--text-2); margin-top: 2px; } .srow.sub { padding: 8px 0 8px 14px; font-size: 13.5px; color: var(--text-2); border-top: 0; }
.signin { white-space: nowrap; }
/* ---- accounts picker ---- */
.acctgroup { margin: 0 0 14px; } .acctgroup h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0 0 8px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); margin-bottom: 8px; cursor: pointer; transition: .15s; }
.acct:hover { background: var(--glass-2); } .acct .grow { flex: 1; } .acct small { display: block; color: var(--text-2); }
.acct input { width: 18px; height: 18px; accent-color: var(--accent); }
/* ---- cards: progress, more menu ---- */
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); } .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }
.cmeta .more { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; font-weight: 800; opacity: 0; transition: .15s; color: var(--text); }
.card:hover .more, .more:focus-visible { opacity: 1; } .cmeta .more:hover { background: var(--glass-3); }
@media (hover: none) { .cmeta .more { opacity: .8; } }
.pop { position: fixed; z-index: 120; min-width: 230px; border-radius: 16px; padding: 6px; background: var(--glass-2); animation: pop .18s var(--ease); }
.pop button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-align: left; font-weight: 500; } .pop button:hover { background: var(--glass-3); }
.tundo { margin-left: 12px; font-weight: 800; color: var(--accent-2); background: none; text-decoration: underline; cursor: pointer; }
:root[data-theme="light"] .tundo { color: #0a7a5f; }
/* ---- search suggestions ---- */
.search { position: relative; } .sugg { position: absolute; left: 0; right: 0; top: 48px; border-radius: 18px; padding: 6px; z-index: 70; background: var(--glass-2); max-height: 60vh; overflow-y: auto; }
.srow2 { display: flex; align-items: center; border-radius: 12px; } .srow2.on, .srow2:hover { background: var(--glass-3); }
.srow2 .grow { flex: 1; display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-align: left; min-width: 0; } .srow2 .grow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow2 .rm { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); } .srow2 .rm:hover { color: var(--text); }
/* ---- watch extras ---- */
.wtools { margin-top: 10px; gap: 8px; } .ibtn-sm { padding: 0 12px; font-size: 18px; font-weight: 800; }
.desc.clamp p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .desc p { white-space: pre-wrap; word-break: break-word; color: var(--text-2); margin: 10px 0 0; }
.theater .watch, .watch.theater { grid-template-columns: 1fr; max-width: none; } .watch.theater .player { max-height: 78vh; border-radius: 0 0 24px 24px; }
kbd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--stroke-2); background: var(--glass); }
.keys { display: grid; gap: 8px; } .keys div { display: flex; align-items: center; gap: 14px; } .keys kbd { min-width: 92px; text-align: center; }
/* ---- pager: Instagram cards ---- */
.sstage.igs { background: #0b0b12; } .sstage.igs .igf { opacity: 1; pointer-events: auto; background: #fff; z-index: 1; }
.igph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #fff; background: linear-gradient(160deg, #833ab4, #fd1d1d 55%, #fcb045); } .igph small { opacity: .85; }
.shint .link { color: var(--accent); }

/* ---- official embeds: calm, consistent cards ---- */
.masonry { columns: 360px; column-gap: 18px; }
.embed { padding: 10px 10px 12px; overflow: hidden; }
.embed header { padding: 4px 6px 10px; font-weight: 700; } .embed .ename { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed header .x { margin-left: 0; } .embed header .ename + .x { margin-left: auto; }
.ebody { position: relative; min-height: 240px; border-radius: 14px; overflow: hidden; }
.ebody .eskel { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(100deg, var(--glass) 30%, var(--glass-3) 50%, var(--glass) 70%); background-size: 200% 100%; animation: shim 1.3s infinite; transition: opacity .35s; pointer-events: none; z-index: 2; }
.ebody.ready .eskel { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.ebody .efail { display: none; position: absolute; inset: auto 0 12px; text-align: center; z-index: 3; color: var(--accent); font-weight: 700; }
.ebody.slow:not(.ready) .efail { display: block; } .ebody.slow:not(.ready) .eskel { animation: none; opacity: .5; }
.ebody iframe { width: 100%; border: 0; display: block; background: #fff; border-radius: 14px; }
.embed.ig.profile .ebody iframe { height: 620px; }
.ebody .instagram-media { box-shadow: none !important; }
.ebody .twitter-tweet { margin: 0 auto !important; }
@media (max-width: 860px) { .masonry { columns: 1; } }

/* YouTube-style logo: green rounded rectangle with an A, plus the wordmark */
.brand { gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.04em; }
.brand-mark { width: 40px !important; height: 28px !important; border-radius: 8px !important; box-shadow: 0 4px 16px rgba(62, 230, 176, .22) !important; }
.brand-mark svg { border-radius: 8px !important; }
.rail .brand-mark { width: 46px !important; height: 32px !important; margin-bottom: 16px; }
.embed.ig .ebody { min-height: 560px; } .embed.xp .ebody { min-height: 340px; } .embed.xt .ebody { min-height: 640px; } .embed.ig.profile .ebody { min-height: 620px; }

/* filters, tags, share-at-time */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; } .fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; padding: 0 5px; }
.fpanel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; padding: 18px 20px; border-radius: var(--r); margin: 0 0 18px; animation: pop .2s var(--ease); }
.fpanel[hidden] { display: none; } .fpanel .hint { grid-column: 1/-1; margin: 0; color: var(--text-3); font-size: 12.5px; }
.fgroup h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fopt { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); } .fopt:hover { background: var(--glass-2); color: var(--text); } .fopt.on { background: var(--glass-3); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; } .tag-chip { color: var(--accent); font-weight: 600; font-size: 14px; padding: 2px 4px; border-radius: 6px; } .tag-chip:hover { text-decoration: underline; }
.startat { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; color: var(--text-2); cursor: pointer; } .startat input { width: 18px; height: 18px; accent-color: var(--accent); }
