:root {
  --bg: #0b0b0d;
  --surface: #17171b;
  --raised: #232329;
  --line: #2e2e35;
  --text: #ffffff;
  --muted: #a8a8b0;
  --mint: #2eddb4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 30px; height: auto; flex: none; }
.mark path { fill: none; stroke: var(--mint); stroke-width: 10.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.narrow { max-width: 480px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 24px 0 12px; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
p, li { color: #dcdce0; }
.muted { color: var(--muted); font-size: 14px; }
.btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.foot a { color: var(--muted); }

/* The landing page */
.hero { padding: 40px 0 16px; }
.hero h1 { font-size: 40px; margin-top: 0; }
.points { display: grid; gap: 12px; margin-top: 28px; }
.point { background: var(--surface); border-radius: 14px; padding: 16px; }
.point strong { display: block; margin-bottom: 2px; }
.point p { margin: 0; font-size: 15px; color: var(--muted); }

/* A post: the whole phone screen, or an upright player on a big screen */
.media { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#player { cursor: pointer; }
.strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip .media { flex: 0 0 100%; scroll-snap-align: center; }
/* Everything on a poster or sticker scales with the post's width, like the app (390 = a typical phone) */
.player { container-type: size; --k: min(1.15px, calc(100cqw / 390)); }
.poster { background: #0b0b0d; }
.poster .poster-photo { object-fit: cover; transform: scale(1.04); }
.poster-shade { position: absolute; inset: 0; }
.poster-mark { position: absolute; left: -5%; top: 12%; width: 110%; }
.poster-mark path { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 10.5; stroke-linecap: round; stroke-linejoin: round; }
.poster-area { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--k) * 120) calc(var(--k) * 24) calc(var(--k) * 170); }
.poster-card { padding: calc(var(--k) * 24); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: calc(var(--k) * 24); }
.poster-quote { margin-bottom: calc(var(--k) * -24); color: var(--mint); font-size: calc(var(--k) * 64); font-weight: 800; line-height: 1; }
.poster-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 14; margin: 0; overflow: hidden; color: #fff; line-height: 1.32; white-space: pre-wrap; overflow-wrap: anywhere; }
.poster-by { display: flex; align-items: center; gap: calc(var(--k) * 8); margin-top: calc(var(--k) * 20); }
.poster-by .avatar { width: calc(var(--k) * 30); height: calc(var(--k) * 30); font-size: calc(var(--k) * 13); }
.poster-by strong { display: block; color: #fff; font-size: calc(var(--k) * 13); line-height: 1.3; }
.poster-by span { display: block; color: rgba(255, 255, 255, 0.6); font-size: calc(var(--k) * 12); line-height: 1.3; }
.media .poster-by img { position: static; object-fit: cover; }
.stickers { position: absolute; inset: 0; pointer-events: none; font-size: var(--k); }
.stk { position: absolute; width: max-content; max-width: 280em; }
.stk[data-act] { pointer-events: auto; cursor: pointer; }
.stk-pill { display: flex; align-items: center; gap: 6em; padding: 9em 14em; border-radius: 999em; font-size: 1em; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.stk-pill > span { font-size: 15em; font-weight: 700; line-height: 1.25; }
.stk-pill svg { width: 15em; height: 15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.stk-mint { background: var(--mint); color: var(--bg); }
.stk-white { background: #fff; color: var(--bg); }
.stk-glass { border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(11, 11, 13, 0.62); color: #fff; }
.stk-dark { border: 1.5px solid var(--mint); background: var(--bg); color: #fff; }
.stk-offer { background: #ffd166; color: var(--bg); }
.stk-dot { width: 9em; height: 9em; border-radius: 50%; background: var(--mint); }
.stk-emoji { display: block; font-size: 54em; line-height: 1.2; text-align: center; }
.stk-tag { display: block; padding: .39em .78em; border-radius: .44em; font-size: 18em; font-weight: 800; letter-spacing: .08em; transform: rotate(-4deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.stk-price { display: block; padding: .44em .78em; border: 2px dashed var(--bg); border-radius: .55em; background: #fff; color: var(--bg); font-size: 18em; font-weight: 800; transform: rotate(3deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.sound.voice-btn { z-index: 1; border: 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; pointer-events: auto; }
.tag { position: absolute; top: 72px; padding: 4px 12px; border-radius: 999px; background: rgba(11, 11, 13, 0.7); font-size: 13px; font-weight: 600; pointer-events: none; }
.tag.left { left: 14px; }
.tag.right { right: 14px; }
.sound { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
[hidden] { display: none !important; }
.bigplay { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); pointer-events: none; }
.bigplay::after { content: ''; position: absolute; top: 22px; left: 30px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.25); pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--at, 50%)) 0 0); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--at, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare-range { display: block; width: 100%; margin: 0 0 12px; accent-color: var(--mint); }

/* Phones: edge to edge, one post at a time, details over the bottom */
body.watch { height: 100dvh; overflow: hidden; }
.watch .top { position: fixed; top: 0; left: 0; right: 0; z-index: 3; max-width: none; margin: 0; pointer-events: none; }
.watch .top a, .watch .top button { pointer-events: auto; }
.watch .foot { display: none; }
.account { order: 2; }
.pill-btn { padding: 6px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--bg); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.feed { position: fixed; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.feed::-webkit-scrollbar { display: none; }
.panel { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.player { position: absolute; inset: 0; }
.rail { position: absolute; right: 8px; bottom: 150px; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 48px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.act svg { width: 30px; height: 30px; fill: rgba(0, 0, 0, 0.25); stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.act[data-act="more"] svg { fill: #fff; stroke: none; }
.act.on svg { fill: var(--mint); stroke: var(--mint); }
.info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 72px 68px calc(14px + env(safe-area-inset-bottom)) 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 45%); pointer-events: none; }
.info > * { pointer-events: auto; }
.who-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.info .who { margin: 0; min-width: 0; }
.follow { padding: 5px 12px; border: 1px solid #fff; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.info .caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #fff; margin: 6px 0; }
.info .stats { margin-bottom: 8px; color: #dcdce0; }
.info .muted { color: #dcdce0; }
.info .btn { padding: 10px 14px; font-size: 14px; margin-bottom: 8px; }
.info .get { margin: 2px 0 0; font-size: 12px; text-align: left; }
.info .get a { display: inline-block; padding: 8px 2px; }
.small-note { margin: 0 0 4px; font-size: 13px; }
.nav-btns { display: none; }
.note-panel { display: flex; align-items: center; justify-content: center; background: var(--bg); }
.note { max-width: 360px; padding: 24px; text-align: center; }
.note h2 { font-size: 26px; margin: 0 0 8px; }
.note .btn { margin-top: 16px; }
.linkish { margin-top: 12px; padding: 8px; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.offline { position: fixed; top: 64px; left: 50%; z-index: 4; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.buffering::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.9s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 6; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--bg); font-size: 14px; font-weight: 600; text-align: center; }
.sheet-wrap { position: fixed; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.sheet { position: relative; width: 100%; max-width: 460px; max-height: 80dvh; overflow-y: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--surface); }
.sheet h2 { margin: 0 0 8px; }
.sheet label { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.sheet input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; color-scheme: dark; }
.sheet .btn { margin-top: 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.sheet .btn:disabled { opacity: 0.6; }
.btn.secondary { background: var(--raised); color: var(--text); }
.fine { font-size: 13px; margin: 10px 0 0; }
.error { color: #ff8a8a; font-size: 14px; margin: 10px 0 0; }
.comment-list { max-height: 40dvh; overflow-y: auto; }
.comment { margin: 0 0 10px; overflow-wrap: anywhere; }
.comment a { text-decoration: none; }
.comment-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.comment-form input { margin: 0; flex: 1; min-width: 0; }
.comment-form .btn { width: auto; margin: 0; }
.reasons .btn { margin-top: 8px; }
.hero-btn { max-width: 240px; }
.who { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; text-decoration: none; }
.who strong { display: block; line-height: 1.3; }
.who .muted { display: block; line-height: 1.3; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--raised); object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.big { width: 88px; height: 88px; font-size: 30px; }
.caption { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.get { margin-top: 12px; text-align: center; }

/* A profile */
.person { text-align: center; padding: 16px 0 24px; }
.person .avatar { margin: 0 auto 12px; }
.person h1 { font-size: 24px; margin: 0; }
.person p { margin: 6px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 24px; }
.tile { position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; display: block; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile span { display: flex; height: 100%; padding: 8px; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; overflow: hidden; overflow-wrap: anywhere; }

/* Terms and policies */
.legal h2 { color: var(--text); }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

/* Big screens: keep the post upright so none of the work is cropped, details beside it */
@media (min-width: 900px) {
  .watch .top { padding: 16px 24px; }
  .panel { height: 100dvh; }
  .stage { position: static; height: 100%; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 24px; }
  .player { position: relative; inset: auto; flex: none; height: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; }
  .media video, .strip .media img { object-fit: contain; }
  .tag, .sound { top: 14px; }
  .rail { position: static; align-self: flex-end; padding-bottom: 8px; }
  .act svg { fill: none; filter: none; }
  .act.on svg { fill: var(--mint); }
  .act[data-act="more"] svg { fill: #fff; }
  .info { position: static; width: 320px; flex: none; align-self: flex-end; padding: 0 0 8px; background: none; }
  .info .caption { display: block; overflow: visible; color: #dcdce0; }
  .info .stats, .info .muted { color: var(--muted); }
  .nav-btns { position: fixed; right: 24px; top: 50%; z-index: 3; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
  .nav-btns button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--raised); color: #fff; font-size: 18px; cursor: pointer; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 18px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wrap:not(.narrow) > .btn { max-width: 320px; margin: 0 auto; }
}
