/* =========================================================
   VESPER COMMUNITY — Stream
   Palette: #0C0D0F / #000 · #F10000 · #EDEBE6 · #B0B0B0
   Font: Oswald
   ========================================================= */

.vesper-stream,
.vp-card,
.vp-composer {
  --vr-red: #F10000;
  --vr-black: #0C0D0F;
  --vr-alu: #EDEBE6;
  --vr-dim: #B0B0B0;
  --vr-line: rgba(255,255,255,.10);
  --vr-soft: rgba(255,255,255,.05);
  --vr-field: #141414;
  --vr-card: #0F1012;
  color: var(--vr-alu);
  font-family: "Oswald", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.vesper-stream *,
.vp-card *,
.vp-composer *,
.vesper-stream *::before,
.vp-card *::before,
.vp-composer *::before { box-sizing: border-box; }

.vesper-stream > code { display: contents; }

.vesper-stream {
  position: relative;
  max-width: 720px;
  margin: 20px auto 0;
}
/* Sticky upload bar — pinned below the ( sticky ) site header via the
   --vp-sticky-top var ( set in stream.js ). Vertical spacing is padding, not
   margin, so the block's background covers the page while it is stuck. */
.vesper-stream--composer {
  margin-top: 0;
  margin-bottom: 24px;
  padding-top: 20px;
  position: sticky;
  top: var(--vp-sticky-top, 0px);
  z-index: 4000;
  background: #0C0D0F;
}
/* Stories strip sits directly above the bar — exactly 10px between them
   ( 8px strip padding + 2px bar padding ). */
.vp-stories + .vesper-stream--composer { margin-top: 0 !important; padding-top: 2px; }
.vesper-stream--upload { max-width: 600px; margin-bottom: 40px; padding-top: 40px; }

.vesper-stream-feed { display: flex; flex-direction: column; gap: 18px; }

.vp-empty {
  text-align: center;
  color: var(--vr-dim);
  padding: 46px 16px;
  border: 1px dashed var(--vr-line);
  border-radius: 12px;
  font-size: 15px;
}

.vp-btn {
  display: inline-block;
  background: var(--vr-red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.vp-btn:hover { background: #fff; color: var(--vr-red); }
.vp-btn--ghost {
  background: transparent;
  border: 1px solid var(--vr-line);
  color: var(--vr-alu);
}
.vp-btn--ghost:hover { background: var(--vr-red); border-color: var(--vr-red); color: #fff; }
.vp-btn[hidden] { display: none; }

.vp-more { display: flex; justify-content: center; margin-top: 18px; }
.vp-loadsentinel { height: 1px; width: 100%; }
.vp-loadsentinel[hidden] { display: none; }
.vp-loadspin { display: flex; justify-content: center; padding: 18px 0; }
.vp-loadspin[hidden] { display: none; }
.vp-loadspin span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(241,0,0,.25); border-top-color: #F10000;
  animation: vpSpin .7s linear infinite;
}
@keyframes vpSpin { to { transform: rotate(360deg); } }

/* ============================ COMPOSER ============================ */

.vp-composer { margin-bottom: 18px; }

.vp-composer__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-fab {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 0;
  background: var(--vr-red);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .15s ease;
}
.vp-fab:hover { background: #fff; color: var(--vr-red); }
.vp-composer.is-open .vp-fab { transform: rotate(45deg); }

.vp-composer__ask {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vr-card);
  border: 1px solid var(--vr-line);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  color: var(--vr-dim);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease;
}
.vp-composer__ask:hover { border-color: rgba(241,0,0,.55); color: var(--vr-alu); }
.vp-composer__ask .vp-ava { width: 32px; height: 32px; }
.vp-composer.is-locked .vp-btn { margin-top: 12px; }

.vp-composer__panel {
  margin-top: 14px;
  background: var(--vr-card);
  border: 1px solid var(--vr-line);
  border-radius: 14px;
  padding: 16px;
  animation: vpPop .18s ease;
}
@keyframes vpPop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.vp-cp__head { display: flex; align-items: center; gap: 12px; }
.vp-cp__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.vp-cp__who b { font-size: 15px; color: #fff; font-weight: 700; }
.vp-cp__priv {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  color: var(--vr-alu);
  border-radius: 6px;
  padding: 4px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
}
.vp-cp__priv:hover { border-color: rgba(241,0,0,.55); color: #fff; }
.vp-cp__priv i { font-style: normal; opacity: .6; }

.vp-cp__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--vr-line);
  color: var(--vr-dim);
  font-size: 15px;
  cursor: pointer;
}
.vp-cp__close:hover { background: var(--vr-red); border-color: var(--vr-red); color: #fff; }

.vp-cp__text {
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--vr-line);
  color: var(--vr-alu);
  font: inherit;
  font-size: 17px;
  line-height: 1.55;
  padding: 6px 2px 14px;
  resize: none;
  min-height: 74px;
}
.vp-cp__text:focus { outline: none; border-bottom-color: var(--vr-red); }
.vp-cp__text::placeholder { color: #6a6a6a; }

.vp-cp__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.vp-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  color: var(--vr-dim);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s ease;
}
.vp-chip-btn i { font-style: normal; font-size: 14px; }
.vp-chip-btn:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.vp-chip-btn.is-on { background: rgba(241,0,0,.14); border-color: rgba(241,0,0,.6); color: #fff; }

.vp-cp__attach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.vp-attach {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px 6px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  border-radius: 8px;
  color: var(--vr-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: .15s ease;
}
.vp-attach i { font-style: normal; font-size: 17px; color: var(--vr-red); line-height: 1; }
.vp-attach:hover { background: #1d1d21; color: #fff; border-color: rgba(241,0,0,.5); }
.vp-attach.is-on { background: rgba(241,0,0,.12); border-color: rgba(241,0,0,.6); color: #fff; }

.vp-cp__sub {
  margin-top: 14px;
  padding: 14px;
  background: #0B0B0D;
  border: 1px solid var(--vr-line);
  border-radius: 10px;
}
.vp-cp__sub[hidden] { display: none; }
.vp-cp__subhead {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vr-dim);
  margin: 0 0 10px;
}
.vp-cp__sub .vp-cp__subhead:not(:first-child) { margin-top: 16px; }
.vp-cp__hint { font-size: 12px; color: #6f6f6f; margin: 8px 0 0; }

.vp-cp__input {
  width: 100%;
  background: var(--vr-field);
  border: 1px solid #333;
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 7px;
}
.vp-cp__input:focus { outline: none; border-color: var(--vr-red); }

.vp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--vr-line);
  border-radius: 7px;
  margin-bottom: 7px;
  font-size: 14px;
  cursor: pointer;
  color: var(--vr-alu);
}
.vp-opt:last-child { margin-bottom: 0; }
.vp-opt:hover { border-color: rgba(241,0,0,.5); }
.vp-opt input { accent-color: var(--vr-red); }

.vp-cp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
.vp-mood {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--vr-field);
  border: 1px solid var(--vr-line);
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--vr-alu);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.vp-mood:hover { border-color: rgba(241,0,0,.55); color: #fff; }
.vp-mood b { font-size: 15px; }

.vp-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 5px; }
.vp-emoji {
  background: var(--vr-field);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 19px;
  padding: 7px 0;
  cursor: pointer;
}
.vp-emoji:hover { background: #232327; border-color: rgba(241,0,0,.5); }

.vp-cp__file {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1.5px dashed rgba(241,0,0,.55);
  border-radius: 8px;
  background: #0a0a0b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vp-cp__file:hover { border-color: var(--vr-red); background: #140505; }
.vp-cp__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.vp-cp__bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.vp-bg {
  height: 62px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.vp-bg span {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  letter-spacing: .05em;
}
.vp-bg:hover { border-color: rgba(255,255,255,.4); }
.vp-bg.is-on { border-color: var(--vr-red); }

.vp-cp__poll { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }

.vp-cp__files { margin-top: 14px; }
.vp-cp__files[hidden] { display: none; }
.vp-cp__file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--vr-line);
  border-radius: 7px;
  background: #0a0a0b;
  margin-bottom: 7px;
}
.vp-cp__file-row span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #fff;
}
.vp-cp__file-row em { font-style: normal; font-size: 12px; color: var(--vr-dim); }
.vp-cp__file-row b {
  background: none;
  border: 0;
  color: var(--vr-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.vp-cp__file-row b:hover { color: var(--vr-red); }

.vp-cp__status { margin-top: 12px; font-size: 13.5px; color: var(--vr-dim); min-height: 18px; }
.vp-cp__status.is-err { color: var(--vr-red); }
.vp-cp__status.is-ok { color: #37d67a; }

.vp-cp__foot { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.vp-cp__target {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  border-radius: 7px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vr-alu);
}
.vp-cp__publish {
  flex: 1;
  background: var(--vr-red);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 13px;
  cursor: pointer;
  transition: .15s ease;
}
.vp-cp__publish:hover:not(:disabled) { background: #fff; color: var(--vr-red); }
.vp-cp__publish:disabled { opacity: .4; cursor: not-allowed; }

/* ============================ CARD ============================ */

.vp-card {
  background: var(--vr-card);
  border: 1px solid var(--vr-line);
  border-radius: 14px;
  overflow: hidden;
}

.vp-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; }
.vp-head__ava { display: block; line-height: 0; }
.vp-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--vr-red);
  background: #1a1a1a;
}
.vp-head__txt { flex: 1; min-width: 0; }
.vp-head__name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vp-head__name:hover { color: var(--vr-red); }
.vp-head__club { display: block; margin-top: 2px; }
.vp-club {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--vr-red);
  text-decoration: none;
  max-width: 100%;
}
.vp-club svg { flex: 0 0 auto; }
.vp-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-club:hover { text-decoration: underline; }
.vp-head__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--vr-dim);
  margin-top: 2px;
}
.vp-dot { opacity: .55; }
.vp-priv { display: inline-flex; align-items: center; gap: 4px; }
.vp-pin { color: var(--vr-red); font-weight: 600; }

/* Follow button — top-right of every post header */
.vp-head__acts { flex: 0 0 auto; margin-left: 8px; }
.vp-follow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--vr-line);
  background: #16181C;
  color: var(--vr-dim);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.vp-follow:hover { color: #fff; border-color: var(--vr-red); }
.vp-follow.is-on {
  background: rgba(241, 0, 0, .16);
  border-color: rgba(241, 0, 0, .55);
  color: #fff;
}

.vp-body { padding: 0 16px 16px; }
.vp-body.has-bg {
  padding: 20px 18px;
  border-radius: 10px;
  margin: 0 12px 14px;
  color: #fff;
}
.vp-text { margin: 0 0 4px; font-size: 16px; line-height: 1.6; }
.vp-text p { margin: 0 0 8px; }
.vp-text p:last-child { margin-bottom: 0; }
.vp-body.has-bg .vp-text { font-size: 21px; font-weight: 500; line-height: 1.45; text-shadow: 0 2px 8px rgba(0,0,0,.55); }

.vp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.vp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--vr-line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  color: var(--vr-alu);
}
.vp-body.has-bg .vp-chip { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.2); }

.vp-media { display: block; position: relative; background: #000; }
.vp-media--photo { overflow: hidden; }
.vp-media__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
  transition: opacity .2s ease;
}
.vp-media--photo:hover .vp-media__img { opacity: .92; }
.vp-media--reel { display: flex; justify-content: center; }
.vp-media__video {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 78vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}

/* ---------- poll ---------- */

.vp-poll { margin-top: 14px; }
.vp-poll__opts { display: flex; flex-direction: column; gap: 8px; }
.vp-poll__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  border-radius: 9px;
  color: var(--vr-alu);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  overflow: hidden;
}
.vp-poll__opt.is-choose { cursor: pointer; transition: .15s ease; }
.vp-poll__opt.is-choose:hover { border-color: rgba(241,0,0,.6); color: #fff; }
.vp-poll__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(241,0,0,.30);
  border-right: 2px solid rgba(241,0,0,.75);
  transition: width .4s ease;
}
.vp-poll__label { position: relative; flex: 1; min-width: 0; }
.vp-poll__pct { position: relative; font-weight: 700; color: #fff; }
.vp-poll__go { font-size: 18px; color: var(--vr-dim); }
.vp-poll__opt.is-mine .vp-poll__label,
.vp-poll__opt.is-mine .vp-poll__pct { color: #fff; font-weight: 700; }
.vp-poll__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--vr-dim);
}
.vp-poll__closed { color: var(--vr-red); font-weight: 600; }

/* ============================ ENGAGE ============================ */

.vp-engage { border-top: 1px solid var(--vr-line); }

.vp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  flex-wrap: wrap;
}
.vp-sp { flex: 1 1 auto; }

.vp-react-wrap { position: relative; display: inline-flex; align-items: center; }
.vp-react {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--vr-alu);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 8px 12px;
  cursor: pointer;
  transition: .15s ease;
}
.vp-react:hover { background: rgba(255,255,255,.06); color: #fff; }
.vp-react.is-on { color: var(--vr-red); }
.vp-react__ico { font-size: 16px; line-height: 1; font-style: normal; }

.vp-caret {
  width: 24px;
  height: 30px;
  margin-left: -6px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--vr-dim);
  font-size: 11px;
  cursor: pointer;
}
.vp-caret:hover { color: #fff; background: rgba(255,255,255,.08); }

.vp-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  display: none;
  gap: 3px;
  padding: 7px;
  background: #17171b;
  border: 1px solid var(--vr-line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.65);
}
.vp-picker.is-open,
.vp-react-wrap:hover .vp-picker { display: flex; }
@media (hover: none) {
  .vp-react-wrap:hover .vp-picker { display: none; }
  .vp-picker.is-open { display: flex; }
}
.vp-pick {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .13s ease, background .13s ease;
}
.vp-pick:hover { transform: scale(1.28) translateY(-3px); background: rgba(255,255,255,.08); }

.vp-sum { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.vp-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #17171b;
  border: 1px solid var(--vr-line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: var(--vr-dim);
}
.vp-pill i { font-style: normal; font-size: 12px; line-height: 1; }
.vp-pill b { font-weight: 700; color: var(--vr-alu); }
.vp-pill.is-mine { border-color: rgba(241,0,0,.65); background: rgba(241,0,0,.14); }
.vp-pill.is-mine b { color: #fff; }
.vp-sumtxt {
  font-size: 12px;
  color: var(--vr-dim);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--vr-dim);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: .15s ease;
}
.vp-act:hover { background: rgba(255,255,255,.06); color: #fff; }
.vp-act.is-static { cursor: default; }
.vp-act.is-static:hover { background: transparent; color: var(--vr-dim); }

/* ---------- comments ---------- */

.vp-comments { padding: 4px 16px 16px; border-top: 1px dashed rgba(255,255,255,.08); }
.vp-clist-wrap { padding-top: 4px; }
.vp-cempty { color: var(--vr-dim); font-size: 13.5px; margin: 10px 0 0; }

.vp-clist { list-style: none; margin: 0; padding: 0; }
.vp-clist--sub { margin: 10px 0 0 44px; }
.vp-comment { padding: 9px 0; }
.vp-comment + .vp-comment { border-top: 1px solid var(--vr-soft); }

.vp-crow { display: flex; gap: 10px; }
.vp-cav { flex: 0 0 auto; line-height: 0; }
.vp-cav__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}
.vp-cbody {
  flex: 1;
  min-width: 0;
  background: #16161A;
  border: 1px solid var(--vr-soft);
  border-radius: 11px;
  padding: 9px 13px;
}
.vp-cname { font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: none; }
.vp-cname:hover { color: var(--vr-red); }
.vp-ctext { margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--vr-alu); }
.vp-ctext p { margin: 0 0 6px; }
.vp-ctext p:last-child { margin-bottom: 0; }
.vp-ctext a { color: var(--vr-red); }

.vp-cmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.vp-ctime { font-size: 11.5px; color: #7d7d7d; }
.vp-ctime.is-wait { color: var(--vr-red); }

.vp-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--vr-dim);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.vp-link:hover { color: var(--vr-red); }
.vp-link.is-on { color: var(--vr-red); }

.vp-comment.is-pending .vp-cbody { border-color: rgba(241,0,0,.45); }

.vp-cform { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.vp-cform__field { flex: 1; min-width: 0; }
.vp-replying {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--vr-dim);
  margin-bottom: 7px;
}
.vp-replying[hidden] { display: none; }
.vp-replying b { color: var(--vr-red); }
.vp-cinput {
  width: 100%;
  background: var(--vr-field);
  border: 1px solid #F10000;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 6px;
  resize: none;
  max-height: 150px;
  line-height: 1.5;
  min-height: 44px;
  overflow: hidden;
}
.vp-cinput:focus { outline: none; border-color: #F10000; box-shadow: 0 0 0 1px #F10000; }
.vp-csend {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 0;
  background: var(--vr-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .15s ease;
}
.vp-csend:hover:not(:disabled) { background: #fff; color: var(--vr-red); }
.vp-csend:disabled { opacity: .4; cursor: not-allowed; }

.vp-cform.is-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #16161A;
  border: 1px dashed var(--vr-line);
  border-radius: 11px;
  padding: 14px;
}
.vp-cform.is-locked p { margin: 0; font-size: 14px; color: var(--vr-dim); flex: 1; }

/* ============================ FOOTER (static switch) ============================ */

.vesper-stream-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9985;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.92) 100%);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
}
/* The stream has its own bottom nav — the docked chat footer would cover it
   ( z 99990 vs 9985 ), so drop the chat footer on any stream page. */
body:has(.vesper-stream-footer) .vchat--docked { display: none !important; }
.vp-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  color: var(--vr-dim);
  border: 0;
  cursor: pointer;
  padding: 4px 2px;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vp-tab.is-active { color: #F10000; }
.vp-tab--plus {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 0;
  background: transparent;
  color: #F10000;
  justify-content: center;
  font-size: 34px;
  padding: 0;
  margin: 0 4px;
}
.vp-tab--plus .vp-tab__ico { display: flex; align-items: center; justify-content: center; line-height: 1; }
/* "All" tab — always the red diamond ( never a word ), clearer when active. */
.vp-tab--all .vp-tab__ico { display: flex; align-items: center; justify-content: center; opacity: .65; transition: opacity .15s ease, transform .15s ease; }
.vp-tab--all.is-active .vp-tab__ico { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 5px rgba(241,0,0,.8)); }

.vesper-stream.is-loading .vesper-stream-feed { opacity: .45; transition: opacity .15s ease; }

/* ============================ TOAST ============================ */

.vp-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 999;
  background: #17171B;
  border: 1px solid var(--vr-line);
  border-left: 3px solid var(--vr-red);
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(0,0,0,.6);
  animation: vpToast .2s ease;
  max-width: 88vw;
}
@keyframes vpToast {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================ STORIES ============================ */
.vp-stories {
  display: flex;
  gap: 10px;
  padding: 12px 12px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.vp-stories::-webkit-scrollbar { height: 6px; }
.vp-stories::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 6px; }
.vp-story { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: #fff; min-width: 64px; flex: 0 0 auto; background: transparent; border: 0; padding: 0; cursor: pointer; }
.vp-story-thumb {
  position: relative;
  width: 64px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px #F10000;
}
.vp-story-thumb img, .vp-story-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-story-thumb__fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 26px; font-weight: 700; color: #F10000; background: #141414; }
.vp-story-thumb--add { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #F10000; background: #141414; box-shadow: 0 0 0 2px rgba(255,255,255,.25); cursor: pointer; }
.vp-story--add .vp-story-thumb { cursor: pointer; }
.vp-story-name { font-size: 11px; color: #fff; opacity: .9; text-overflow: ellipsis; overflow: hidden; max-width: 64px; white-space: nowrap; }

/* ============================ STORY CAROUSEL ============================ */
.vp-storyview { position: fixed; inset: 0; z-index: 9996; background: #000; display: flex; flex-direction: column; }
.vp-storyview__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 4px;
}
.vp-storyview__name { font-size: 14px; font-weight: 600; color: #EDEBE6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-storyview__count { margin-left: auto; font-size: 12px; color: rgba(237,235,230,.65); flex: 0 0 auto; }
.vp-storyview__close { flex: 0 0 auto; background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.vp-storyview__bars { display: flex; gap: 4px; padding: 6px 14px 8px; }
.vp-storyview__bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.vp-storyview__bar span { display: block; height: 100%; width: 100%; background: #F10000; border-radius: 2px; transform: scaleX(0); transform-origin: left; }
.vp-storyview__bar.is-done span { transform: scaleX(1); }
.vp-storyview__bar.is-live span { animation: vpStoryBar var(--vp-story-dur, 5s) linear forwards; }
@keyframes vpStoryBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.vp-storyview__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; background: #0C0D0F; }
.vp-storyview__stage img, .vp-storyview__stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vp-storyview__fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 72px; font-weight: 700; color: #F10000; background: #141414; }
.vp-storyview__nav { position: absolute; top: 0; bottom: 0; width: 34%; background: transparent; border: 0; cursor: pointer; z-index: 2; padding: 0; }
.vp-storyview__nav--prev { left: 0; }
.vp-storyview__nav--next { right: 0; }

/* ============================ FAB + MODAL ============================ */
.vp-fab-plus {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 0;
  background: transparent;
  color: #F10000;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  box-shadow: none;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), color .2s ease, opacity .25s ease;
}
.vp-fab-plus:hover { color: #fff; transform: scale(1.12); }
.vp-fab-plus:active { transform: scale(.92); }
.vp-fab-plus.is-open { transform: rotate(135deg); color: #F10000; }
.vp-fab-plus.is-hidden { opacity: 0; pointer-events: none; }

.vp-upload-modal { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; }
.vp-upload-modal[hidden] { display: none; }
.vp-upload-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.vp-upload-dialog { position: relative; z-index: 1; width: min(600px, 94vw); max-height: 92vh; overflow: auto; animation: vpPop .18s ease; }
body.vp-modal-open { overflow: hidden; }
.vp-upload-dialog .vp-composer { margin: 0; }
.vp-upload-dialog .vp-composer__panel { margin-top: 0; border-radius: 16px; }

/* ============================ SWITCH BAR ============================ */
.vp-cp__switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vr-line);
}
.vp-cp__switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  background: #16161a;
  border: 1px solid var(--vr-line);
  color: var(--vr-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.vp-cp__switch-btn:hover { color: var(--vr-alu); border-color: rgba(241,0,0,.5); }
.vp-cp__switch-btn.is-on { background: rgba(241,0,0,.14); border-color: #F10000; color: #fff; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 767px) {
  .vesper-stream { max-width: 100%; }
  .vp-composer__panel { padding: 14px; border-radius: 12px; }
  .vp-cp__attach { grid-template-columns: repeat(2, 1fr); }
  .vp-cp__foot { flex-direction: column; align-items: stretch; }
  .vp-head, .vp-body, .vp-comments { padding-left: 13px; padding-right: 13px; }
  .vp-body.has-bg { margin: 0 9px 12px; padding: 16px 14px; }
  .vp-clist--sub { margin-left: 30px; }
  .vp-actions { gap: 4px; padding: 6px 8px; }
  .vp-react { padding: 8px 9px; font-size: 13px; }
  .vp-act { padding: 8px 8px; font-size: 12.5px; }
  .vp-sumtxt { display: none; }
  .vp-tab { font-size: 11.5px; letter-spacing: .03em; padding: 12px 4px; gap: 5px; }
  .vp-tab__ico { display: none; }
  /* Keep the missing plus button and the All diamond visible on mobile. */
  .vp-tab--plus .vp-tab__ico, .vp-tab--all .vp-tab__ico { display: flex; }
  .vp-media__video { max-width: 100%; }
  .vp-picker { left: auto; right: 0; }
}

/* ============================ LIVE ============================ */

.vp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241,0,0,.15);
  border: 1px solid #F10000;
  color: #F10000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.vp-live-badge.is-ended { background: rgba(255,255,255,.06); border-color: var(--vr-line); color: var(--vr-dim); }
.vp-live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F10000;
  animation: vpLivePulse 1.2s ease-in-out infinite;
}
@keyframes vpLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}
.vp-media--live { position: relative; }
.vp-live-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  background: linear-gradient(135deg, #1a0000 0%, #0C0D0F 60%);
  border: 1px solid var(--vr-line);
}
.vp-live-frame__badge { position: absolute; top: 12px; left: 12px; }
.vp-live-frame__play { color: #F10000; line-height: 0; }
.vp-live-frame__cta { color: var(--vr-alu); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
