/* Horror Stories In Between: YouTube's dark layout for the member pages (as on walj.nyptid.com),
   with the channel's red UNSOLVED stamp and the cold blue of Signals from the In Between. */
:root {
  --bg: #0b0b0d; --raised: #17171b; --raised2: #1f1f24; --chip: #26262c; --chip-hover: #34343c; --line: #2c2c33;
  --text: #ededf0; --muted: #a2a2ab; --dim: #74747d; --link: #7fb4d9; --red: #e0313b; --red2: #ff4d57; --cold: #8fc3e8;
  --danger: #ff6b6b; --ok: #6fd39a;
  --sans: Inter, Roboto, Arial, sans-serif; --mono: "IBM Plex Mono", Consolas, monospace;
  --side: 220px; --top: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: inherit; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
::selection { background: var(--red); color: #fff; }

/* top bar */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: rgba(11,11,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); white-space: nowrap; min-width: calc(var(--side) - 32px); }
.brand img { border-radius: 50%; object-fit: cover; }
.brand span { font: 800 16px var(--sans); letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--red2); }
.search { flex: 1; max-width: 640px; margin: 0 auto; display: flex; }
.search input { flex: 1; height: 40px; background: #121215; border: 1px solid var(--line); border-right: 0; border-radius: 40px 0 0 40px; padding: 0 16px; color: var(--text); font: 16px var(--sans); }
.search input:focus { outline: none; border-color: #3a6d96; }
.search button { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 0 40px 40px 0; background: var(--chip); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account button { white-space: nowrap; }

/* left menu, bottom bar on phones */
.side { position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--side); padding: 12px; z-index: 15; background: var(--bg); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 24px; padding: 0 12px; height: 40px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; }
.side a:hover { background: var(--chip); }
.side a.on { background: var(--chip); font-weight: 600; }
.side a.on svg { color: var(--red2); }

main { margin: var(--top) 0 0 var(--side); min-height: calc(100vh - var(--top)); display: flex; flex-direction: column; }
.page { flex: 1; width: 100%; }
.page.pad { padding: 8px 24px 32px; max-width: 1400px; }
.page.narrow { max-width: 960px; }
.page-h { font: 700 20px var(--sans); margin: 16px 0; }

/* who sees what */
body.guest .side, body.guest .members-only, body.guest .signed-only, body.guest .unpaid-only, body.guest .admin-only { display: none !important; }
body.guest main { margin-left: 0; }
body.unpaid .members-only { display: none !important; }
body:not(.unpaid) .unpaid-only { display: none !important; }
body:not(.admin) .admin-only { display: none !important; }

/* buttons */
button, .btn { background: var(--text); color: #0b0b0d; border: 0; border-radius: 18px; padding: 0 16px; height: 36px; font: 600 14px var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
button:hover, .btn:hover { background: #d4d4d8; }
button.ghost, .ghost { background: var(--chip); color: var(--text); }
button.ghost:hover { background: var(--chip-hover); }
button.red, .red { background: var(--red); color: #fff; }
button.red:hover { background: var(--red2); }
button:disabled { opacity: .6; cursor: default; }
input, textarea, select { width: 100%; background: #111114; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 15px var(--sans); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cold); }
.signin { background: transparent; color: var(--text); border: 1px solid var(--line); }
.signin:hover { background: var(--chip); }
.kicker { color: var(--red2); text-transform: uppercase; letter-spacing: .16em; font: 600 12px var(--mono); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 24px; max-width: 680px; }

/* ---------------------------------------------------------------- landing */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 72px max(24px, calc((100vw - 1180px) / 2)) 64px; min-height: min(760px, 92vh);
  background: linear-gradient(90deg, rgba(11,11,13,.97) 0%, rgba(11,11,13,.82) 42%, rgba(11,11,13,.45) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11,11,13,0) 30%), url(/assets/hero.jpg) center 40% / cover no-repeat; }
.hero-text { max-width: 640px; }
.eyebrow { color: var(--red2); text-transform: uppercase; letter-spacing: .2em; font: 600 12px var(--mono); margin: 0 0 18px; }
.hero h1 { font: 800 clamp(44px, 7vw, 84px)/.95 var(--sans); letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 span { display: block; color: var(--cold); }
.lede { font-size: 19px; line-height: 1.55; color: #cfcfd6; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cta button { height: 48px; padding: 0 26px; font-size: 16px; border-radius: 24px; }
.hero-note { color: var(--dim); font-size: 13px; margin: 14px 0 0; }
.hero-film { position: relative; width: min(300px, 34vw); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(143,195,232,.18); background: #000; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); font: 12px var(--mono); display: grid; gap: 2px; }
.film-tag b { color: var(--red2); letter-spacing: .14em; text-transform: uppercase; }
.film-tag span { color: #cfd8e0; }

.land-body { max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px; }
.land-body section { margin: 72px 0; }
.land-body h2 { font: 800 clamp(26px, 3.4vw, 38px)/1.12 var(--sans); letter-spacing: -.02em; margin: 0 0 14px; max-width: 820px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.pillar { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pillar img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: saturate(.9); }
.pillar > div { padding: 20px 22px 24px; }
.pillar h3 { font: 700 19px var(--sans); margin: 6px 0 8px; }
.pillar p { color: #c4c4cc; margin: 0; }
.tag { display: inline-block; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; margin: 0 !important; }
.tag.true { color: var(--ok); border-color: rgba(111,211,154,.35); }
.tag.fiction { color: var(--cold); border-color: rgba(143,195,232,.35); }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: linear-gradient(135deg, #0f1620 0%, #0b0b0d 70%); border: 1px solid #1d2a38; border-radius: 20px; padding: 40px; }
.entry .mono { color: var(--cold); }
.entry p { color: #c9d3dc; font-size: 16px; }
.entry-still { width: 100%; height: auto; max-width: 460px; justify-self: end; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid #1d2a38; display: block; }
.count { font: 500 15px var(--mono); color: var(--muted) !important; }
.count b { color: #ffb347; font-weight: 600; }
.entry button { height: 46px; padding: 0 24px; border-radius: 23px; font-size: 15px; }
.teaser { display: block; width: 100%; height: auto; padding: 0; background: none; color: var(--text); text-align: left; border-radius: 12px; }
.teaser:hover { background: none; }
.teaser .thumb { display: block; }
.teaser .vtitle { display: block; margin-top: 12px; }
.lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); font: 700 17px var(--sans); color: #fff; opacity: 0; transition: opacity .2s; }
.teaser:hover .lock { opacity: 1; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(224,49,59,.6); background: linear-gradient(180deg, #1d1215 0%, var(--raised) 60%); }
.ribbon { position: absolute; top: -12px; left: 24px; margin: 0; background: var(--red); color: #fff; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.plan h3 { font: 700 20px var(--sans); margin: 0 0 6px; }
.price { margin: 0 0 18px; color: var(--muted); }
.price b { font: 800 44px var(--sans); color: var(--text); letter-spacing: -.02em; margin-right: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: #d0d0d6; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--red2); border-bottom: 2px solid var(--red2); transform: rotate(-45deg); }
.plan li b { color: var(--text); font-weight: 600; }
.plan-go { height: 46px; border-radius: 23px; width: 100%; font-size: 15px; }
.plan .current { text-align: center; color: var(--ok); font-weight: 600; height: 46px; display: grid; place-items: center; border: 1px solid rgba(111,211,154,.35); border-radius: 23px; }

.ig-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ig-grid a { display: grid; gap: 2px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; height: 100%; transition: border-color .15s, transform .15s; }
.ig-grid a:hover { border-color: #47474f; transform: translateY(-1px); }
.ig-grid b { font-size: 15px; }
.ig-grid span { color: var(--red2); font: 500 13px var(--mono); }
.ig-grid em { font-style: normal; color: var(--muted); font-size: 13px; margin-top: 6px; }

.faq details { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; max-width: 860px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; }
.faq details p { color: #c4c4cc; margin: 0 0 18px; font-size: 15px; }
.land-end { text-align: center; margin: 72px 0 16px; }
.land-end p { color: var(--muted); font: 500 16px var(--mono); }
.land-end button { height: 50px; padding: 0 34px; border-radius: 25px; font-size: 16px; }

/* ---------------------------------------------------------------- pricing page */
.pricing-head { text-align: center; margin: 24px auto 32px; max-width: 720px; }
.pricing-head h1 { font: 800 clamp(28px, 4vw, 42px) var(--sans); letter-spacing: -.02em; margin: 0 0 10px; }
.pricing-head .sub { margin: 0 auto; }
#pricing-slot { max-width: 1100px; margin: 24px auto 0; }
.fine { text-align: center; color: var(--dim); font-size: 13px; margin-top: 20px; }

/* ---------------------------------------------------------------- channel page and grids */
.banner { margin: 0 24px; height: clamp(110px, 16vw, 210px); border-radius: 12px;
  background: linear-gradient(90deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.3) 55%, rgba(11,11,13,0) 100%), url(/assets/hero.jpg) center 45% / cover no-repeat; }
.chan { display: flex; gap: 24px; align-items: center; padding: 20px 24px 8px; }
.chan-pic { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.chan-info h1 { font: 800 34px/1.2 var(--sans); letter-spacing: -.02em; margin: 0 0 6px; }
.chan-meta { color: var(--muted); margin: 0 0 6px; }
.chan-meta b { color: var(--text); font-weight: 600; }
.chan-desc { color: var(--muted); margin: 0; max-width: 640px; }
.chan-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.chan-tabs a { padding: 12px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; border-bottom: 2px solid transparent; }
.chan-tabs a.on { color: var(--text); border-color: var(--text); }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 16px; padding: 0 24px 32px; }
.vcard { text-decoration: none; color: var(--text); display: block; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vcard:hover .thumb img { transform: scale(1.02); }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 4px; border-radius: 4px; }
.locked-tag { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.8); color: #ffd1d4; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 4px; display: flex; gap: 4px; align-items: center; }
.locked-tag svg { width: 12px; height: 12px; }
.vcard.locked .thumb img { filter: brightness(.55) saturate(.6); }
.vmeta { display: flex; gap: 12px; margin-top: 12px; }
.vmeta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.vtitle { font: 600 16px/22px var(--sans); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vsub { color: var(--muted); font-size: 14px; line-height: 20px; }
.empty { color: var(--muted); background: var(--raised); border-radius: 12px; padding: 28px; text-align: center; grid-column: 1 / -1; }

/* watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; padding: 24px; max-width: 1754px; margin: 0 auto; }
.player { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player.vertical { aspect-ratio: auto; height: min(78vh, 900px); }
.gate-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.55)), var(--poster) center / cover; }
.gate-over h3 { font: 700 22px var(--sans); margin: 0 0 8px; }
.gate-over p { color: #d0d0d6; margin: 0 0 16px; }
.w-title { font: 700 20px/28px var(--sans); margin: 12px 0 8px; }
.w-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.w-chan { display: flex; align-items: center; gap: 12px; }
.w-chan-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.w-chan-name { font: 600 16px var(--sans); }
.w-subs { color: var(--muted); font-size: 12px; }
.w-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--chip); color: var(--text); border-radius: 18px; height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px; }
.pill:hover { background: var(--chip-hover); }
.pill.on { background: var(--text); color: #0b0b0d; }
.pill svg { width: 22px; height: 22px; }
.desc { background: var(--chip); border-radius: 12px; padding: 12px; margin-top: 12px; cursor: pointer; }
.desc:hover { background: var(--chip-hover); }
.desc.open { cursor: default; }
.desc-meta { font-weight: 600; margin-bottom: 4px; }
.desc-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60px; overflow: hidden; }
.desc.open .desc-text { max-height: none; }
.desc-text a { color: var(--link); }
.desc-more { background: none; color: var(--text); padding: 0; height: auto; font-weight: 600; margin-top: 4px; }
.desc-more:hover { background: none; }
.comments h2 { font: 700 20px var(--sans); margin: 24px 0 20px; }
.c-add { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.c-add .pic { width: 40px; height: 40px; }
.c-box { flex: 1; }
.c-box input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; }
.c-box input:focus { border-color: var(--text); }
.c-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.cmt { display: flex; gap: 16px; margin-bottom: 24px; }
.cmt .pic { width: 40px; height: 40px; cursor: pointer; }
.cmt-head { font-size: 13px; margin-bottom: 2px; }
.cmt-head b { font-weight: 600; margin-right: 6px; cursor: pointer; }
.cmt-head b.admin { color: var(--red2); }
.cmt-head span { color: var(--muted); }
.cmt-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-del { background: none; color: var(--dim); height: auto; padding: 0; font-size: 12px; margin-top: 4px; }
.cmt-del:hover { background: none; color: var(--danger); }
.upnext .vcard { display: flex; gap: 8px; margin-bottom: 8px; }
.upnext .thumb { width: 168px; flex: none; border-radius: 8px; }
.upnext .vtitle { font-size: 14px; line-height: 20px; }
.upnext .vsub { font-size: 12px; line-height: 18px; }
.upnext h3 { font: 600 16px var(--sans); margin: 0 0 12px; }

/* shorts */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 8px; padding: 0 24px 32px; }
.sgrid .thumb, .srow .thumb { aspect-ratio: 9 / 16; }
.srow { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.srow .vtitle { font-size: 14px; line-height: 20px; }
#page-shorts .page-h { padding: 0 24px; }
.short-stage { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 4px 16px; margin: 16px auto 24px; }
.short-player { width: min(420px, 92vw); aspect-ratio: 9 / 16; max-height: 82vh; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.short-player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.short-side { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; padding-bottom: 12px; }
.short-side span { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; padding: 0; background: var(--chip); color: var(--text); }
.round:hover { background: var(--chip-hover); }
.round.on { background: var(--text); color: #0b0b0d; }
.short-title { grid-column: 1; font: 600 16px var(--sans); margin: 8px 0 0; max-width: min(420px, 92vw); }

/* chat */
.chat-head { display: flex; align-items: center; gap: 14px; }
.members-toggle { display: none; margin-left: auto; }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.chat-main { position: relative; }
.chat { background: var(--raised); border-radius: 12px; height: calc(100vh - 240px); min-height: 340px; overflow-y: auto; padding: 10px 8px; }
.msg { position: relative; padding: 6px 10px; border-radius: 8px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }
.msg:hover { background: #1f1f25; }
.msg.mine-mention { background: rgba(224,49,59,.09); box-shadow: inset 2px 0 0 var(--red); }
.msg .pic { grid-row: span 3; cursor: pointer; margin-top: 2px; }
.msg .reply-line { grid-column: 2; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); cursor: pointer; min-width: 0; margin-bottom: 1px; }
.msg .reply-line b { color: var(--text); font-weight: 600; white-space: nowrap; }
.msg .reply-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg .reply-line::before { content: ""; width: 22px; height: 10px; border-left: 2px solid #4a4a52; border-top: 2px solid #4a4a52; border-top-left-radius: 6px; margin-left: -30px; flex: none; transform: translateY(4px); }
.msg .head { grid-column: 2; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.msg .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.msg .who.admin { color: var(--red2); }
.badge { font: 700 10px var(--sans); letter-spacing: .06em; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.badge.plan { background: var(--chip); color: var(--cold); }
.badge.plan.keeper { color: #ffb347; }
.msg .time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.msg .txt { grid-column: 2; overflow-wrap: anywhere; white-space: pre-wrap; }
.mention { background: rgba(143,195,232,.16); color: var(--cold); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention.me { background: rgba(224,49,59,.2); color: #ffc4c8; }
.reacts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { height: 24px; padding: 0 8px; border-radius: 12px; background: var(--chip); color: var(--text); font-size: 13px; font-weight: 500; border: 1px solid transparent; gap: 4px; }
.react:hover { background: var(--chip-hover); }
.react.mine { border-color: var(--cold); background: rgba(143,195,232,.14); }
.msg-tools { position: absolute; right: 8px; top: -14px; display: none; background: var(--raised2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; z-index: 2; }
.msg:hover .msg-tools, .msg-tools.open { display: flex; }
.msg-tools button { height: 28px; padding: 0 8px; background: transparent; color: var(--text); font-size: 13px; font-weight: 500; border-radius: 6px; }
.msg-tools button:hover { background: var(--chip); }
.msg-tools button.bad { color: var(--danger); }
.react-pick { position: absolute; right: 8px; top: 18px; z-index: 5; display: flex; gap: 2px; background: var(--raised2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.react-pick button { width: 34px; height: 34px; padding: 0; background: transparent; font-size: 20px; border-radius: 8px; }
.react-pick button:hover { background: var(--chip); }
.composer { margin-top: 12px; position: relative; }
.reply-bar { display: flex; align-items: center; gap: 8px; background: var(--raised2); border-radius: 10px 10px 0 0; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.reply-bar b { color: var(--text); }
.reply-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { background: transparent; color: var(--muted); height: 24px; width: 24px; padding: 0; font-size: 18px; }
.x:hover { background: var(--chip); color: var(--text); }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { border-radius: 20px; }
.emoji-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--chip); font-size: 20px; flex: none; }
.emoji-btn:hover { background: var(--chip-hover); }
.emoji-pop, .mention-pop { position: absolute; bottom: 52px; left: 0; z-index: 6; background: var(--raised2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.emoji-pop { display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 8px; }
.emoji-pop button { width: 36px; height: 36px; padding: 0; background: transparent; font-size: 20px; border-radius: 8px; }
.emoji-pop button:hover { background: var(--chip); }
.mention-pop { left: 48px; min-width: 240px; max-height: 260px; overflow-y: auto; padding: 6px; }
.mention-pop button { display: flex; width: 100%; justify-content: flex-start; gap: 10px; background: transparent; color: var(--text); height: 40px; border-radius: 8px; font-weight: 500; }
.mention-pop button.sel, .mention-pop button:hover { background: var(--chip); }
.mention-pop .pic { width: 26px; height: 26px; font-size: 12px; }
.chat-gate { margin-top: 12px; background: var(--raised); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.load-older { display: block; margin: 4px auto 10px; height: 30px; font-size: 13px; }

.pic { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; position: relative; display: grid; place-items: center; font: 600 16px var(--sans); color: #fff; background: #5a2328; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic.sm { width: 32px; height: 32px; font-size: 14px; overflow: visible; }
.pic.sm img { border-radius: 50%; }
.pic.big { width: 96px; height: 96px; font-size: 36px; margin: 0 auto 10px; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--raised); background: #6a6a72; }
.dot.on { background: #23a55a; }

.members { background: var(--raised); border-radius: 12px; height: calc(100vh - 184px); min-height: 398px; overflow-y: auto; padding: 12px 8px; }
.members h5 { margin: 14px 8px 6px; font: 700 12px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.members h5:first-child { margin-top: 2px; }
.mem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; width: 100%; height: auto; background: transparent; color: var(--text); text-align: left; font: inherit; justify-content: flex-start; }
.mem:hover { background: #1f1f25; }
.mem.off { opacity: .4; }
.mem .info { min-width: 0; flex: 1; }
.mem .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.mem .nm.admin { color: var(--red2); }
.mem .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.mem .sub.act { color: var(--ok); }
.act-card { background: #1f1f25; border-radius: 10px; padding: 8px; margin: 0 2px 8px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.act-card:hover { background: var(--chip-hover); }
.act-card img.th { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex: none; }
.act-card .nm { font-weight: 600; font-size: 13px; }
.act-card .sub { font-size: 12px; color: var(--ok); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* announcements */
.compose { background: var(--raised); border-radius: 12px; padding: 16px; display: grid; gap: 10px; margin-bottom: 20px; }
.compose button { justify-self: start; }
.ann { background: var(--raised); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; border-left: 3px solid var(--red); }
.ann-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ann-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ann-head b { font-weight: 600; }
.ann-head span { color: var(--muted); font-size: 12px; display: block; }
.ann h4 { font: 700 18px var(--sans); margin: 0 0 6px; }
.ann .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.ann .del { margin-top: 10px; height: 28px; background: transparent; color: var(--danger); border: 1px solid var(--line); font-size: 12px; }

/* member home */
.hello { font: 800 30px var(--sans); letter-spacing: -.02em; margin: 0 0 8px; }
#hello-kicker { margin-top: 18px; }
.banner-note { background: rgba(111,211,154,.1); border: 1px solid rgba(111,211,154,.35); color: #c9f0d8; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.home-main .vcard .vtitle { font-size: 20px; line-height: 28px; }
.home-side { display: grid; gap: 12px; margin-top: 16px; }
.home-card { display: block; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; }
a.home-card:hover { background: var(--raised2); }
.home-card h3 { font: 700 15px var(--sans); margin: 0 0 8px; }
.home-card .ann-t { font-weight: 600; margin-bottom: 4px; }
.home-card .ann-b { color: #cfcfd6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.home-card.idea form { display: grid; gap: 10px; }
.home-card.idea button { justify-self: start; }
.home-online { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-online .faces { display: flex; }
.home-online .faces .pic { width: 30px; height: 30px; font-size: 13px; border: 2px solid var(--raised); margin-left: -8px; }
.home-online .faces .pic:first-child { margin-left: 0; }

/* profile */
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel h3 { font: 700 16px var(--sans); margin: 0 0 10px; }
.panel h3.mt { margin-top: 24px; }
#set-form, .up-form { display: grid; gap: 12px; }
#set-form label, .up-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.sub-plan { font: 700 22px var(--sans); margin: 0 0 4px; }
.sub-box-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#set-signout { margin-top: 12px; }
.verify-note { color: #ffd1a0; font-size: 13px; margin: 6px 0; }

/* settings tabs and the plans page */
.set-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: -4px 0 20px; }
.set-tabs a { padding: 10px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.set-tabs a.on { color: var(--text); border-color: var(--red2); }
.plan-link { display: block; margin: 14px 0 0; color: var(--link); text-decoration: none; font-size: 14px; }
.plan-link:hover { text-decoration: underline; }
.billing-wrap { max-width: 1100px; }
.current-plan { margin-bottom: 28px; }
.current-plan .kicker { margin-bottom: 6px; }
.billing-h { font: 700 18px var(--sans); margin: 0 0 18px; }

/* studio */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font: 800 26px var(--sans); }
.stat span { color: var(--muted); font-size: 13px; }
.stat.warn b { color: #ffb347; font-size: 15px; line-height: 1.4; }
.drop { border: 2px dashed #3a3a42; border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; display: grid; gap: 4px; color: var(--muted); }
.drop b { color: var(--text); font-size: 16px; }
.drop.over { border-color: var(--cold); background: rgba(143,195,232,.06); }
#up-name { color: var(--cold); font-weight: 600; }
.row.wrap { flex-wrap: wrap; }
.row.wrap label { flex: 1; min-width: 200px; }
.progress { position: relative; height: 26px; background: #111114; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red2)); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12px var(--mono); }
.up-go { justify-self: start; }
.av { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.av .thumb { border-radius: 8px; }
.av .thumb.v { aspect-ratio: 9 / 16; width: 90px; }
.av-form { display: grid; gap: 8px; }
.av-form .row { flex-wrap: wrap; align-items: center; }
.av-form select { width: auto; }
.av-status { font: 600 12px var(--mono); }
.av-status.processing { color: #ffb347; }
.av-status.failed { color: var(--danger); }
.av-status.ready { color: var(--ok); }
.idea-item { background: var(--raised); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; white-space: pre-wrap; }
.idea-item b { display: block; margin-bottom: 4px; }

/* account, modals */
.account .me { display: flex; align-items: center; gap: 8px; background: transparent; color: var(--text); padding: 0 4px; height: 40px; border-radius: 20px; }
.account .me:hover { background: var(--chip); }
.account .me .pic { width: 32px; height: 32px; font-size: 14px; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 420px; padding: 24px; position: relative; }
.modal-box h3 { margin: 0 0 16px; font: 700 20px var(--sans); }
.close { position: absolute; top: 10px; right: 10px; background: transparent; color: var(--muted); font-size: 24px; padding: 0 8px; height: 32px; }
.close:hover { background: var(--chip); color: var(--text); }
#auth-form { display: grid; gap: 12px; }
#auth-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
#auth-go { background: var(--red); color: #fff; height: 42px; }
#auth-go:hover { background: var(--red2); }
.err { color: var(--danger); font-size: 13px; margin: 0; min-height: 1em; }
.err.note { color: var(--muted); }
.switch { font-size: 13px; color: var(--muted); margin: 0; }
.switch a { color: var(--link); text-decoration: none; }
.pic-row { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.pic-row .pic { width: 84px; height: 84px; font-size: 32px; }
.pic-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { color: var(--muted); font-size: 12px; margin: 0; flex-basis: 100%; }
.row { display: flex; gap: 10px; }
.profile-card { text-align: center; }
.profile-card h3 { margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof-work { color: var(--cold); font-size: 14px; margin: 4px 0 0; }
.prof-status { color: var(--ok); font-size: 13px; margin: 4px 0 10px; }
.prof-bio { white-space: pre-wrap; margin: 0 0 10px; color: #d0d0d6; }
.toast { position: fixed; bottom: 24px; left: 24px; z-index: 60; background: #f1f1f3; color: #0b0b0d; padding: 12px 16px; border-radius: 8px; max-width: calc(100% - 48px); font-weight: 500; }
.foot { padding: 32px 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); margin-top: auto; }
.foot p { max-width: 760px; margin: 0 auto 6px; font: 700 14px var(--sans); color: var(--text); }
.foot .small { font: 12px var(--sans); color: var(--muted); }
.side .sm { display: none; }

@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; }
  .watch { grid-template-columns: 1fr; }
  .plans, .pillar-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pillar img { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .side { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 56px; padding: 0; display: flex; border-top: 1px solid var(--line); overflow: hidden; }
  .side a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 56px; padding: 0; border-radius: 0; font-size: 10px; min-width: 0; }
  .side a.on { background: transparent; }
  .side .lg { display: none; }
  .side .sm { display: inline; }
  main { margin-bottom: 56px; }
  body.guest main { margin-bottom: 0; }
  .brand { min-width: 0; }
  body:not(.guest) .brand span { display: none; }
  .search input { font-size: 15px; }
  .search button { width: 48px; }
  .hero { grid-template-columns: 1fr; padding: 48px 16px 40px; min-height: 0; gap: 28px; background-position: 60% 40%; }
  .hero-film { width: min(260px, 70vw); margin: 0 auto; }
  .lede { font-size: 17px; }
  .land-body { padding: 8px 16px 32px; }
  .land-body section { margin: 52px 0; }
  .entry { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
  .banner { margin: 0 12px; border-radius: 10px; }
  .chan { padding: 16px 16px 4px; gap: 16px; align-items: flex-start; }
  .chan-pic { width: 72px; height: 72px; }
  .chan-info h1 { font-size: 22px; }
  .chan-tabs { padding: 0 16px; }
  .vgrid { grid-template-columns: 1fr; padding: 0 0 24px; gap: 24px; }
  .vgrid .thumb { border-radius: 0; }
  .vgrid .vmeta { padding: 0 12px; }
  .sgrid { grid-template-columns: repeat(2, 1fr); padding: 0 12px 24px; }
  #page-shorts .page-h { padding: 0 12px; }
  .short-stage { grid-template-columns: 1fr; margin: 0 0 16px; }
  .short-player { width: 100vw; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); border-radius: 0; margin: 0 auto; }
  .short-side { flex-direction: row; justify-content: center; padding: 8px 0 0; }
  .short-side span { margin: 0 10px 0 0; }
  .short-title { padding: 0 12px; }
  .watch { padding: 0 0 24px; gap: 12px; }
  .player { border-radius: 0; }
  .player.vertical { height: 70vh; }
  .primary > :not(.player) { margin-left: 12px; margin-right: 12px; }
  .upnext { padding: 0 12px; }
  .page.pad { padding: 4px 12px 24px; }
  .chat-wrap { grid-template-columns: 1fr; }
  .chat { height: calc(100vh - 270px); }
  .members-toggle { display: inline-flex; }
  .members { display: none; height: auto; min-height: 0; max-height: 60vh; }
  .members.open { display: block; }
  .msg-tools { top: -10px; }
  .emoji-pop { grid-template-columns: repeat(7, 36px); }
  .account .me span { display: none; }
  .prof-grid { grid-template-columns: 1fr; }
  .av { grid-template-columns: 96px minmax(0, 1fr); }
  .toast { left: 12px; bottom: 68px; }
  .entry-still { justify-self: center; }
}
@media (max-width: 440px) {
  .brand span { display: none; }
  .account button { padding: 0 14px; }
}

/* ---------------------------------------------------------------- public pages and the shared footer */
body.pub main.pub-main { margin: var(--top) 0 0; min-height: 0; display: block; }
.pub-nav { display: flex; gap: 4px; margin: 0 auto; }
.pub-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.pub-nav a:hover { color: var(--text); background: var(--chip); }
.pub-nav a.on { color: var(--text); }
body:not(.guest) .guest-only { display: none !important; }
body.guest .top .search { display: none; }
.account .btn { white-space: nowrap; }
.btn.big { height: 48px; padding: 0 26px; font-size: 16px; border-radius: 24px; }
.more { display: inline-block; margin-top: 12px; color: var(--cold); font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }
.more.inline { margin: 0 0 0 4px; }
.pub-hero { max-width: 1180px; margin: 0 auto; padding: 64px 24px 24px; }
.pub-hero.small { max-width: 860px; text-align: center; }
.pub-hero.small .sub { margin: 0 auto; }
.pub-hero.center { text-align: center; padding-bottom: 64px; }
.pub-hero h1 { font: 800 clamp(32px, 5vw, 56px)/1.05 var(--sans); letter-spacing: -.03em; margin: 0 0 16px; }
.pub-hero.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.pub-hero.split .sub { margin-bottom: 28px; }
.pub-sec { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }
.pub-sec.narrow { max-width: 860px; }
.pub-sec h2 { font: 800 clamp(22px, 3vw, 30px) var(--sans); letter-spacing: -.02em; margin: 0 0 18px; }
.doc { max-width: 820px; font-size: 16px; line-height: 1.7; color: #d2d2d8; }
.doc h2 { margin-top: 36px; }
.doc a { color: var(--link); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.pub-cta { text-align: center; padding: 48px 24px 72px; }
.pub-cta p { color: var(--muted); font: 500 16px var(--mono); margin: 0 0 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; }
.compare thead th { background: var(--raised); font-size: 15px; }
.compare thead th span { color: var(--muted); font-weight: 500; font-size: 13px; }
.compare tbody th { text-align: left; font-weight: 500; color: #d2d2d8; }
.compare td { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.case { background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 12px; padding: 20px 22px; }
.case h3 { font: 700 18px var(--sans); margin: 0 0 4px; }
.case .when { font: 500 13px var(--mono); color: var(--cold); margin: 0 0 10px; }
.case p { color: #c8c8d0; margin: 0; }
.log { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; background: linear-gradient(135deg, #0f1620 0%, #0b0b0d 70%); border: 1px solid #1d2a38; border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.log img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.log h3 { font: 800 24px var(--sans); margin: 0 0 8px; }
.log p { color: #c9d3dc; }
.log .kicker { color: var(--cold); }
.log.next { grid-template-columns: 1fr; border-style: dashed; opacity: .8; }
.site-foot { border-top: 1px solid var(--line); padding: 48px 24px 28px; margin-top: auto; }
body:not(.guest):not(.pub) .site-foot { margin-left: var(--side); }
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 360px; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot nav h2 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 4px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-foot nav a:hover { color: var(--text); }
.tm { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.tm a { color: var(--muted); }
@media (max-width: 1100px) {
  .pub-nav a { padding: 8px 8px; }
}
@media (max-width: 980px) {
  .pub-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body:not(.guest):not(.pub) .site-foot { margin-left: 0; padding-bottom: 80px; }
  .pub-hero { padding: 40px 16px 16px; }
  .pub-hero.split { grid-template-columns: 1fr; gap: 28px; }
  .pub-sec { padding: 24px 16px; }
  .log { grid-template-columns: 1fr; }
}
