@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Outfit:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --wine: oklch(0.22 0.09 18);
  --wine-deep: oklch(0.15 0.07 18);
  --bubble: oklch(0.86 0.07 15);
  --bubble-deep: oklch(0.78 0.11 18);
  --rose: oklch(0.92 0.04 15);
  --rose-hot: oklch(0.55 0.22 22);
  --milk: oklch(0.96 0.02 20);
  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--wine); }
body.shell-menu-open { overflow: hidden; }
body { color: var(--rose); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

.sparkle-svg { display: inline-block; }
.sparkle-svg svg { display: block; fill: currentColor; }

@keyframes twinkle { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

.feed-page { min-height: 100vh; position: relative; }
/* Same ambient background as every other page (see appshell.css's
   .shell-blobs — this is home.html's own separate copy of that div). */
.feed-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 8%, rgb(127 14 50 / 0.28), transparent 32rem),
    radial-gradient(circle at 74% 72%, rgb(105 11 43 / 0.18), transparent 30rem),
    linear-gradient(135deg, #210008 0%, #33000f 48%, #180006 100%);
}
.feed-blob { display: none; }

/* ---------- mobile topbar ---------- */
.mobile-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  background: oklch(0.22 0.09 18 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.92 0.04 15 / 0.1);
}
.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: oklch(0.92 0.04 15 / 0.1);
  display: grid; place-items: center;
  color: var(--rose); border: none; cursor: pointer;
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; }
.mobile-topbar h1 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.25rem; }
.mobile-page-title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mobile-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.42rem; }
.mobile-topbar .home-mobile-notify { width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; }
.mobile-topbar .home-mobile-admin {
  display: none;
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.mobile-topbar .home-mobile-admin svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  flex: 0 0 auto;
}
.mobile-topbar .sparkle-svg { width: 0.75rem; height: 0.75rem; color: var(--rose-hot); }
.mobile-topbar-logo-img { height: 1.875rem; width: auto; display: block; }
.mobile-topbar .mobile-profile-link {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 120 151 / 0.2);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.1), rgb(255 45 104 / 0.08));
}
.mobile-topbar .mobile-profile-link .arena-profile-avatar {
  width: 2.15rem;
  height: 2.15rem;
  flex-basis: 2.15rem;
}
.mobile-topbar .mobile-profile-link .top-profile-img.shown { display: block; }

@media (min-width: 1024px) { .mobile-topbar, .mobile-drawer { display: none; } }

/* ---------- mobile drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 50;
  visibility: hidden; opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-drawer.open { visibility: visible; opacity: 1; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: oklch(0.15 0.07 18 / 0.7); backdrop-filter: blur(4px); border: none; cursor: pointer; padding: 0; }
.drawer-aside {
  position: absolute; inset-block: 0; left: 0;
  width: 78%; max-width: 20rem;
  background: var(--wine);
  display: flex; flex-direction: column;
  padding: 1.5rem; overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-drawer.open .drawer-aside { transform: translateX(0); }
.drawer-close { align-self: flex-end; width: 2.25rem; height: 2.25rem; margin-bottom: 0.5rem; }

/* ---------- sidebar ---------- */
.sidebar { display: none; }
@media (min-width: 1024px) {
  .sidebar {
    display: flex; flex-direction: column; align-items: center;
    width: 5rem; padding: 2rem 0;
    position: sticky; top: 0; height: 100vh;
    flex-shrink: 0; z-index: 30;
  }
}

/* Logo: full lockup image in drawer, icon-only image in narrow sidebar */
.sidebar-logo { margin-bottom: 1.75rem; padding: 0 0.5rem; display: flex; align-items: center; gap: 0.375rem; }
.sidebar-logo-full { height: 2.5rem; width: auto; display: block; }
.sidebar-logo-icon { display: none; height: 2.25rem; width: auto; }
.sidebar .sidebar-logo { padding: 0; justify-content: center; }
.sidebar .sidebar-logo-full { display: none; }
.sidebar .sidebar-logo-icon { display: block; height: 2rem; width: auto; }

/* Nav base (drawer / mobile) */
.sidebar-nav { display: flex; flex-direction: column; gap: 0.125rem; margin-bottom: 2rem; width: 100%; }
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  color: oklch(0.92 0.04 15 / 0.8);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover { background: oklch(0.92 0.04 15 / 0.1); }
.nav-link.active { background: oklch(0.86 0.07 15 / 0.7); color: var(--wine-deep); }
.nav-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; }

/* Narrow icon-only sidebar overrides */
@media (min-width: 1024px) {
  .sidebar .sidebar-nav { margin-bottom: 0; align-items: center; gap: 0.25rem; }

  .sidebar .nav-link {
    width: 3.25rem; height: 3.25rem;
    padding: 0; border-radius: 0.875rem;
    justify-content: center; gap: 0;
    position: relative; overflow: visible;
  }
  .sidebar .nav-label { display: none; }
  .sidebar .nav-link svg { width: 1.5rem; height: 1.5rem; }

  /* Tooltip */
  .sidebar .nav-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 0.875rem); top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: oklch(0.27 0.1 18);
    border: 1px solid oklch(0.92 0.04 15 / 0.14);
    color: var(--rose);
    padding: 0.35rem 0.75rem; border-radius: 0.5rem;
    font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.15s, transform 0.15s;
    z-index: 200; box-shadow: 0 4px 16px oklch(0 0 0 / 0.3);
  }
  .sidebar .nav-link[data-tooltip]:hover::after {
    opacity: 1; transform: translateY(-50%) translateX(0);
  }

  /* Hide extra content in narrow sidebar */
  .sidebar .sidebar-section,
  .sidebar .sidebar-stats { display: none; }
}

/* ── Unified sidebar look (matches every other page's .shell-sidebar) ─── */
@media (min-width: 1024px) {
  .sidebar {
    width: 5.75rem;
    padding: 1.15rem 0.8rem 1rem;
    border-right: 1px solid rgb(255 83 125 / 0.2);
    background: linear-gradient(180deg, rgb(69 2 22 / 0.36), rgb(28 0 9 / 0.76));
  }
  .sidebar .nav-link {
    width: 3rem;
    height: 3rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: rgb(255 236 240 / 0.86);
    background: transparent;
  }
  .sidebar .nav-link svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  .sidebar .nav-link.active {
    color: #fff;
    border-color: rgb(255 45 104 / 0.5);
    background: linear-gradient(145deg, rgb(255 45 104 / 0.34), rgb(144 9 52 / 0.28));
    box-shadow: 0 14px 32px rgb(255 45 104 / 0.16);
  }
}

/* ── Profile card ─────────────────────────────────────────────── */
.shell-profile-card {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid oklch(0.92 0.04 15 / 0.08);
  width: 100%; position: relative;
}
.spc-inner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.5rem; border-radius: 0.75rem;
  color: inherit; text-decoration: none;
  transition: background 0.15s;
}
.spc-inner:hover { background: oklch(0.92 0.04 15 / 0.07); }
.spc-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: oklch(0.27 0.1 18);
  border: 1.5px solid oklch(0.92 0.04 15 / 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.spc-initial { font-family: var(--font-serif); font-size: 0.875rem; color: var(--rose); }
.spc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.spc-img.shown { display: block; }
.spc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.spc-name { font-size: 0.875rem; font-weight: 600; color: var(--rose); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spc-handle { font-size: 0.6875rem; color: oklch(0.92 0.04 15 / 0.5); font-family: var(--font-mono); }
.spc-popup { display: none; }

@media (min-width: 1024px) {
  .sidebar .spc-inner { justify-content: center; padding: 0.5rem 0; }
  .sidebar .spc-info { display: none; }
  .sidebar .spc-popup {
    display: flex; flex-direction: column; gap: 0.75rem;
    position: absolute; bottom: 0; left: calc(100% + 0.875rem);
    width: 14rem;
    background: oklch(0.25 0.1 18);
    border: 1px solid oklch(0.92 0.04 15 / 0.14);
    border-radius: 1rem; padding: 1rem;
    opacity: 0; pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 200; box-shadow: 0 8px 32px oklch(0 0 0 / 0.4);
  }
  .sidebar .shell-profile-card.is-open .spc-popup {
    opacity: 1; pointer-events: auto; transform: translateX(0);
  }
  .spc-popup-av {
    width: 3rem; height: 3rem; border-radius: 9999px;
    background: oklch(0.27 0.1 18);
    border: 1.5px solid oklch(0.92 0.04 15 / 0.15);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; flex-shrink: 0;
  }
  .spc-popup-av .spc-initial { font-size: 1.125rem; }
  .spc-popup-meta { display: flex; flex-direction: column; gap: 0.125rem; }
  .spc-popup-meta .spc-name { font-size: 0.9375rem; }
  .spc-popup-meta .spc-handle { font-size: 0.75rem; }
  .spc-popup-btn {
    display: block; text-align: center;
    background: oklch(0.92 0.04 15 / 0.08);
    border: 1px solid oklch(0.92 0.04 15 / 0.12);
    color: var(--rose); padding: 0.5rem 0.75rem;
    border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500;
    transition: background 0.15s;
  }
  .spc-popup-btn:hover { background: oklch(0.92 0.04 15 / 0.16); }
  .spc-logout-btn {
    width: 100%; text-align: center; cursor: pointer;
    background: transparent;
    border: 1px solid oklch(0.65 0.22 22 / 0.3);
    color: oklch(0.72 0.18 22);
    padding: 0.45rem 0.75rem; margin-top: 0.4rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem; font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
  }
  .spc-logout-btn:hover { background: oklch(0.65 0.22 22 / 0.12); border-color: oklch(0.65 0.22 22 / 0.5); }
}

.sidebar-section { padding: 0 0.5rem; margin-bottom: 2rem; }
.sidebar-section h3 {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 600; margin-bottom: 0.75rem;
  color: oklch(0.92 0.04 15 / 0.5);
  font-family: var(--font-sans);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pill {
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  box-shadow: inset 0 0 0 1px oklch(0.92 0.04 15 / 0.15);
  font-size: 0.6875rem; color: oklch(0.15 0.07 18 / 0.85);
  transition: transform 0.15s ease;
}
.pill:hover { transform: rotate(-2deg); }
.more-link {
  margin-top: 0.75rem; background: none; border: none; cursor: pointer;
  font-size: 0.75rem; color: oklch(0.92 0.04 15 / 0.5);
  transition: color 0.15s ease;
}
.more-link:hover { color: var(--rose); }

.sidebar-stats { margin-top: auto; }
.stats-card {
  padding: 1rem; border-radius: 1rem; position: relative; overflow: hidden;
  background: linear-gradient(180deg, oklch(0.92 0.05 15) 0%, oklch(0.84 0.08 15) 100%);
  box-shadow: inset 0 2px 0 oklch(1 0 0 / 0.5), inset 0 -8px 24px oklch(0.55 0.22 22 / 0.15), 0 12px 30px -12px oklch(0.15 0.07 18 / 0.55);
}
.stats-card .label { font-size: 0.75rem; color: oklch(0.15 0.07 18 / 0.6); margin-bottom: 0.25rem; }
.stats-card .value { font-size: 1.5rem; font-family: var(--font-serif); color: var(--wine-deep); }
.stats-card .sub { font-size: 0.625rem; color: oklch(0.15 0.07 18 / 0.5); margin-top: 0.5rem; }
.stats-card .orb { position: absolute; right: -0.5rem; bottom: -0.5rem; width: 4rem; height: 4rem; border-radius: 9999px; background: oklch(0.55 0.22 22 / 0.3); filter: blur(24px); }
.avatar-row { display: flex; margin-top: 0.75rem; }
.avatar-row .dot { width: 1.75rem; height: 1.75rem; border-radius: 9999px; box-shadow: 0 0 0 2px var(--milk); margin-left: -0.5rem; }
.avatar-row .dot:first-child { margin-left: 0; }
.av-1 { background: var(--bubble); } .av-2 { background: var(--rose); } .av-3 { background: var(--bubble-deep); } .av-4 { background: var(--wine); }

.sidebar-footer { margin-top: 1.5rem; font-size: 0.625rem; color: oklch(0.92 0.04 15 / 0.4); padding: 0 0.5rem; line-height: 1.6; }

/* ---------- layout ---------- */
.layout {
  position: relative; z-index: 10;
  display: flex; max-width: 1600px; margin: 0 auto;
  padding: 0 1rem; gap: 1.5rem;
}
@media (min-width: 640px) { .layout { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .layout { gap: 2rem; } }

.feed-main { flex: 1; min-width: 0; padding: 1.5rem 0; }
@media (min-width: 640px) { .feed-main { padding: 2.5rem 0; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: none; }
.reveal.in-view { animation: reveal-in 0.6s cubic-bezier(0.22,0.61,0.36,1) both; }
@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- hero ---------- */
.feed-hero { margin-bottom: 2rem; position: relative; }
@media (min-width: 640px) { .feed-hero { margin-bottom: 2.5rem; } }
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.hero-row h2 { font-size: 1.875rem; line-height: 1.05; margin-bottom: 1rem; }
@media (min-width: 640px) { .hero-row h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-row h2 { font-size: 3rem; } }
.hero-row h2 .hot { font-style: italic; color: var(--rose-hot); text-decoration: underline; text-decoration-color: var(--bubble); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.hero-row p { max-width: 48ch; color: oklch(0.92 0.04 15 / 0.75); line-height: 1.6; font-size: 0.875rem; }
@media (min-width: 640px) { .hero-row p { font-size: 1rem; } }

.share-btn {
  margin-top: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--rose); color: var(--wine-deep);
  border: none; cursor: pointer;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 8px 24px -8px oklch(0.25 0.08 280 / 0.15);
  transition: transform 0.15s ease;
}
.share-btn:hover { transform: scale(1.02); }
.share-btn:active { transform: scale(0.98); }
.share-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }

.hero-search { display: none; }
@media (min-width: 1024px) {
  .hero-search {
    display: block; position: relative;
    width: 22rem; margin-top: 0.5rem; flex-shrink: 0;
  }
  .hero-suggest-list { width: 100%; left: 0; transform: none; }
  .hero-search input {
    width: 100%;
    background: oklch(0.19 0.07 18 / 0.9);
    color: var(--rose);
    border: 1px solid oklch(0.92 0.04 15 / 0.14);
    border-radius: 1rem;
    padding: 0.875rem 3rem 0.875rem 2.875rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    outline: none;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px oklch(0 0 0 / 0.25);
  }
  .hero-search input::placeholder { color: oklch(0.92 0.04 15 / 0.35); }
  .hero-search input:focus {
    border-color: oklch(0.55 0.22 22 / 0.6);
    box-shadow: 0 0 0 3px oklch(0.55 0.22 22 / 0.12), 0 4px 24px oklch(0 0 0 / 0.25);
  }
  .hero-search svg {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    width: 1.125rem; height: 1.125rem;
    fill: none; stroke: oklch(0.92 0.04 15); stroke-width: 2;
    pointer-events: none;
  }
  .hero-search .kbd {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 0.625rem;
    color: oklch(0.92 0.04 15 / 0.35);
    padding: 0.2rem 0.45rem;
    border: 1px solid oklch(0.92 0.04 15 / 0.15);
    border-radius: 0.3rem; background: oklch(0.92 0.04 15 / 0.05);
    pointer-events: none;
  }
}

.hero-tape {
  position: absolute; right: -0.25rem; top: -0.5rem;
  transform: rotate(6deg);
  background: var(--bubble-deep); color: var(--wine-deep);
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em;
  border-radius: 0.25rem; box-shadow: 2px 2px 6px oklch(0 0 0 / 0.08);
}
.hero-sparkle-1 { position: absolute; right: 5rem; top: 5rem; width: 1.25rem; height: 1.25rem; color: oklch(0.55 0.22 22 / 0.5); }
.hero-sparkle-2 { position: absolute; left: -0.5rem; top: 3rem; width: 0.75rem; height: 0.75rem; color: var(--bubble-deep); animation-delay: 1.5s; }

/* ---------- tabs ---------- */
.feed-tabs {
  display: flex; gap: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid oklch(0.92 0.04 15 / 0.15);
  overflow-x: auto;
}
@media (min-width: 640px) { .feed-tabs { gap: 1.5rem; margin-bottom: 2rem; } }
.feed-tabs button {
  background: none; border: none; cursor: pointer;
  padding-bottom: 0.75rem; font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  color: oklch(0.92 0.04 15 / 0.5);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}
.feed-tabs button:hover { color: var(--rose); }
.feed-tabs button.active { color: var(--rose); border-bottom-color: var(--rose); }

/* ---------- feed grid — Pinterest masonry columns ----------
   JS (home.js) builds the actual .feed-col wrapper divs and assigns cards
   to them round-robin, in render order — CSS `columns:` was left doing this
   before, but its browser-side balancing heuristic (interacting with
   .vibe-card's break-inside:avoid) can decide a card "doesn't fit" the
   estimated column height and skip a whole column, leaving it visibly
   empty for that row. A plain flex row of pre-built columns can't do that:
   every card always lands in a real column, in order, no balancing. */
.feed-grid {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feed-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.vibe-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  color: inherit; text-decoration: none;
  border-radius: 1rem; overflow: hidden;
  background: oklch(0.19 0.07 18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vibe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.45);
}
.vibe-thumb-wrap { position: relative; }
.vibe-thumb {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.vibe-card:hover .vibe-thumb { transform: scale(1.04); }
.vibe-thumb-empty {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: oklch(0.15 0.07 18 / 0.55);
  color: oklch(0.92 0.04 15 / 0.45);
  font-family: var(--font-mono); font-size: 0.75rem;
}

/* hover overlay with title */
.vibe-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.6) 0%, transparent 45%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0.625rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.vibe-card:hover .vibe-thumb-overlay { opacity: 1; }
.vibe-overlay-title {
  font-size: 0.75rem; font-weight: 700; color: #fff;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px oklch(0 0 0 / 0.5);
}

.vibe-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  padding: 0.2rem 0.45rem; background: oklch(0.96 0.02 20 / 0.88); backdrop-filter: blur(6px);
  border-radius: 0.25rem; font-size: 0.55rem; font-weight: 600; color: var(--wine-deep);
}
.vibe-creator {
  position: absolute; bottom: 0.5rem; left: 0.5rem;
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.2rem 0.45rem; background: oklch(0.96 0.02 20 / 0.88); backdrop-filter: blur(6px);
  border-radius: 9999px; font-size: 0.55rem; color: var(--wine-deep);
}
.vibe-creator img { width: 0.875rem; height: 0.875rem; border-radius: 9999px; background: var(--bubble); object-fit: cover; }

.vibe-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.375rem; padding: 0.4rem 0.5rem 0.5rem;
}
.vibe-meta h3 {
  font-size: 0.75rem; line-height: 1.2; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vibe-meta .caption { display: none; }
.vibe-stats { display: flex; gap: 0.25rem; flex-shrink: 0; font-size: 0.6rem; color: oklch(0.92 0.04 15 / 0.55); }
.vibe-stats span { display: inline-flex; align-items: center; gap: 0.2rem; }
.vibe-stats svg { width: 0.625rem; height: 0.625rem; fill: none; stroke: currentColor; stroke-width: 2; }

.empty-feed { column-span: all; padding: 5rem 0; text-align: center; color: oklch(0.92 0.04 15 / 0.5); font-family: var(--font-mono); font-size: 0.875rem; }

.pinned-card {
  grid-column: 1 / -1;
  position: relative; padding: 3rem 1.5rem 1.5rem; border-radius: 1.5rem; overflow: hidden;
  background: linear-gradient(180deg, oklch(0.92 0.05 15) 0%, oklch(0.84 0.08 15) 100%);
  box-shadow: inset 0 2px 0 oklch(1 0 0 / 0.5), inset 0 -8px 24px oklch(0.55 0.22 22 / 0.15), 0 12px 30px -12px oklch(0.15 0.07 18 / 0.55);
}
@media (min-width: 640px) { .pinned-card { padding: 3.5rem 2rem 2rem; } }
.pinned-tape {
  position: absolute; left: 0.75rem; top: 1.25rem; transform: rotate(-6deg);
  background: var(--milk); color: var(--wine-deep);
  padding: 0.25rem 0.75rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  box-shadow: 2px 2px 6px oklch(0 0 0 / 0.08);
}
.pinned-card .quote { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; max-width: 42rem; color: oklch(0.15 0.07 18 / 0.9); }
@media (min-width: 640px) { .pinned-card .quote { font-size: 1.5rem; } }
@media (min-width: 1024px) { .pinned-card .quote { font-size: 1.875rem; } }
.pinned-card .quote .hot { font-style: italic; color: var(--rose-hot); }
.pinned-card .attrib { margin-top: 1rem; font-size: 0.6875rem; color: oklch(0.15 0.07 18 / 0.6); font-family: var(--font-mono); }
.pinned-sparkle-a { position: absolute; right: 2rem; top: 2rem; width: 1.5rem; height: 1.5rem; color: oklch(0.55 0.22 22 / 0.5); }
.pinned-sparkle-b { position: absolute; right: 5rem; bottom: 2.5rem; width: 0.75rem; height: 0.75rem; color: oklch(0.15 0.07 18 / 0.4); animation-delay: 2s; }

/* ---------- mobile spotlight stack ---------- */
.mobile-extra { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1280px) { .mobile-extra { display: none; } }

/* ---------- right rail ---------- */
.right-rail { display: none; }
@media (min-width: 1280px) {
  .right-rail { display: flex; flex-direction: column; gap: 1.5rem; width: 22rem; padding: 2.5rem 0; flex-shrink: 0; }
}

.rail-card {
  border-radius: 1rem; padding: 1.25rem;
  background: linear-gradient(180deg, oklch(0.92 0.05 15) 0%, oklch(0.84 0.08 15) 100%);
  box-shadow: inset 0 2px 0 oklch(1 0 0 / 0.5), inset 0 -8px 24px oklch(0.55 0.22 22 / 0.15), 0 12px 30px -12px oklch(0.15 0.07 18 / 0.55);
  color: var(--wine-deep);
}
.rail-card h3 {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
  color: oklch(0.15 0.07 18 / 0.5); margin-bottom: 1rem; font-family: var(--font-sans);
}

/* spotlight — push it down from the top of the rail */
.right-rail > .spotlight-card:first-child { margin-top: 2.5rem; }

/* make spotlight card wider than other rail cards */
.spotlight-card { padding: 1rem; }

.spotlight-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.875rem; }
.spotlight-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--rose-hot); }

/* ── Portrait reel frame (matches /reels page) ── */
.spotlight-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 22rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px oklch(0.22 0.09 18 / 0.15);
}
.spotlight-reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

/* mute button — bottom-right overlay, same style as /reels page */
.spotlight-mute-btn {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  width: 2.6rem;
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.spotlight-mute-btn:hover { transform: translateY(-1px); background: rgb(255 255 255 / 0.18); }
.spotlight-mute-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spotlight-mute-btn .icon-volume { display: none; }
.spotlight-mute-btn.is-unmuted .icon-volume { display: block; }
.spotlight-mute-btn.is-unmuted .icon-muted { display: none; }

/* avatar section (fallback when no video) */
.spotlight-img-wrap { position: relative; }
.spotlight-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.75rem; box-shadow: inset 0 0 0 1px oklch(0.22 0.09 18 / 0.15); display: block; }
.spotlight-handle {
  position: absolute; bottom: -0.5rem; left: -0.5rem;
  background: var(--milk); color: var(--wine-deep);
  padding: 0.375rem; font-size: 0.625rem; font-weight: 700; transform: rotate(-3deg);
  box-shadow: 2px 2px 6px oklch(0 0 0 / 0.08);
}
.spotlight-sparkle { position: absolute; top: -0.5rem; right: -0.5rem; width: 1.25rem; height: 1.25rem; color: var(--rose-hot); }
.spotlight-body { padding-top: 0.5rem; }
.spotlight-body h4 { font-size: 1.125rem; line-height: 1.2; }
.spotlight-body .role { font-size: 0.6875rem; color: oklch(0.15 0.07 18 / 0.6); font-family: var(--font-mono); margin-top: 0.125rem; }
.spotlight-body .bio { font-size: 0.875rem; line-height: 1.6; color: oklch(0.15 0.07 18 / 0.75); margin-top: 0.75rem; }
.spotlight-tags { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.75rem; }
.spotlight-tags span { padding: 0.125rem 0.5rem; border-radius: 9999px; background: oklch(0.96 0.02 20 / 0.7); color: var(--wine-deep); font-size: 0.625rem; }
.spotlight-link {
  display: block; text-align: center; width: 100%; margin-top: 1rem;
  padding: 0.625rem; background: var(--wine-deep); color: var(--milk);
  border-radius: 9999px; font-size: 0.75rem; font-weight: 500; text-decoration: none;
  transition: transform 0.15s ease;
}
.spotlight-link:hover { transform: scale(1.02); }
.spotlight-link:active { transform: scale(0.98); }
.spotlight-reel-link {
  display: block; text-align: center; width: 100%; margin-top: 0.75rem;
  padding: 0.5rem; background: oklch(0.92 0.05 15 / 0.6); color: var(--wine-deep);
  border-radius: 9999px; font-size: 0.7rem; font-weight: 500; text-decoration: none;
  border: 1px solid oklch(0.22 0.09 18 / 0.12);
  transition: transform 0.15s ease;
}
.spotlight-reel-link:hover { transform: scale(1.02); }

/* trending */
.trending-list { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.trending-list li { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.trending-list .num { font-size: 0.75rem; font-family: var(--font-serif); font-style: italic; color: oklch(0.15 0.07 18 / 0.4); width: 1.25rem; }
.trending-list .tag { font-size: 0.875rem; font-weight: 500; color: var(--wine-deep); transition: color 0.15s ease; }
.trending-list li:hover .tag { color: var(--rose-hot); }
.trending-list .rule { flex: 1; height: 1px; background: oklch(0.22 0.09 18 / 0.1); }
.trending-list .count { font-size: 0.625rem; font-family: var(--font-mono); color: oklch(0.15 0.07 18 / 0.45); }
.explore-link { margin-top: 1rem; background: none; border: none; cursor: pointer; font-size: 0.75rem; color: oklch(0.15 0.07 18 / 0.6); transition: color 0.15s ease; }
.explore-link:hover { color: var(--wine-deep); }

/* midnight CTA */
.midnight-cta {
  position: relative; padding: 1.5rem; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(180deg, oklch(0.45 0.18 22) 0%, oklch(0.32 0.15 22) 100%);
  box-shadow: inset 0 2px 0 oklch(1 0 0 / 0.18), 0 12px 30px -12px oklch(0.1 0.05 18 / 0.7);
  color: var(--milk);
}
.midnight-cta .content { position: relative; z-index: 10; }
.midnight-cta .eyebrow { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em; color: oklch(0.96 0.02 20 / 0.6); margin-bottom: 0.5rem; }
.midnight-cta h3 { font-size: 1.5rem; margin-bottom: 0.5rem; line-height: 1.2; }
.midnight-cta p { font-size: 0.75rem; color: oklch(0.96 0.02 20 / 0.75); max-width: 24ch; line-height: 1.5; margin-bottom: 1.25rem; }
.midnight-cta button {
  padding: 0.5rem 1rem; background: var(--bubble); color: var(--wine-deep);
  font-size: 0.75rem; font-weight: 700; border-radius: 9999px; border: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.midnight-cta button:hover { transform: scale(1.05); }
.midnight-cta button:active { transform: scale(0.95); }
.midnight-moon { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 2.25rem; opacity: 0.4; }
.midnight-sparkle { position: absolute; bottom: 1rem; right: 1.5rem; width: 1rem; height: 1rem; color: oklch(0.86 0.07 15 / 0.7); }
.midnight-orb { position: absolute; bottom: -1rem; left: -1rem; width: 6rem; height: 6rem; border-radius: 9999px; background: oklch(0.55 0.22 22 / 0.25); filter: blur(40px); }

/* currently building */
.building-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.building-icon { width: 2rem; height: 2rem; background: var(--bubble); border-radius: 0.5rem; display: grid; place-items: center; font-size: 1rem; }
.building-row .name { font-size: 0.75rem; font-weight: 700; color: var(--wine-deep); }
.building-row .desc { font-size: 0.625rem; color: oklch(0.15 0.07 18 / 0.5); }
.progress-track { height: 0.375rem; background: oklch(0.22 0.09 18 / 0.15); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--rose-hot); border-radius: 9999px; width: 0; transition: width 1.4s ease-out; }
.progress-fill.in-view { width: 72%; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.625rem; color: oklch(0.15 0.07 18 / 0.45); font-family: var(--font-mono); }

/* ---------- 2026 home arena redesign ---------- */
.home-arena-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% 0%, oklch(0.3 0.12 18 / 0.9), transparent 34rem),
    linear-gradient(180deg, oklch(0.18 0.08 18), oklch(0.14 0.07 18) 54%, oklch(0.17 0.08 18));
}

.home-arena-page .feed-blobs {
  opacity: 0.22;
}

.home-page-layout {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  width: min(100% - 32px, 1380px);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  /* the layout row spans edge-to-edge so the sidebar sits flush against
     the true left edge; the content column (.home-shell) gets its own
     max-width + auto margin below so it centers in the space that's
     actually left over next to the sidebar, instead of the whole row
     (sidebar included) being centered/left-aligned as one block */
  .home-page-layout {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

.home-shell {
  flex: 1;
  min-width: 0;
  padding: 26px 0 72px;
}
@media (min-width: 1024px) {
  .home-shell {
    max-width: 1260px;
    margin: 0 auto;
  }
}

.home-sidebar {
  flex: 0 0 5rem;
}

.arena-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  padding: 10px 0;
  margin-left: -4px;
  margin-right: -4px;
}

/* profile pill wrapper — positions dropdown */
.arena-profile-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.arena-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: oklch(0.25 0.1 18);
  border: 1px solid oklch(0.92 0.04 15 / 0.14);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.45);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arena-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--rose);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.13s;
}

.arena-dd-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.arena-dd-item:hover {
  background: oklch(0.92 0.04 15 / 0.08);
}

.arena-dd-logout {
  color: oklch(0.72 0.18 22);
  border-top: 1px solid oklch(0.92 0.04 15 / 0.08);
  margin-top: 2px;
  padding-top: 10px;
}

.arena-logo {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 8px;
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 999px;
  color: var(--rose);
  text-decoration: none;
  font-weight: 800;
}

.arena-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rose-hot);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.arena-search.hero-search {
  display: block;
  position: relative;
  flex: 1;
  width: auto;
  margin: 0;
}

.arena-search.hero-search input {
  width: 100%;
  height: 46px;
  border: 1px solid oklch(0.92 0.04 15 / 0.13);
  border-radius: 999px;
  background: oklch(0.18 0.08 18 / 0.72);
  color: var(--rose);
  padding: 0 72px 0 48px;
  outline: 0;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
}

.arena-search.hero-search input::placeholder {
  color: oklch(0.92 0.04 15 / 0.48);
}

.arena-search.hero-search > svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: oklch(0.92 0.04 15 / 0.55);
  pointer-events: none;
}

.arena-search .kbd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid oklch(0.92 0.04 15 / 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  color: oklch(0.92 0.04 15 / 0.45);
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.arena-create-btn,
.arena-notify-btn,
.arena-profile-btn {
  min-height: 46px;
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.arena-create-btn {
  gap: 8px;
  padding: 0 20px;
  border: 0;
  background: oklch(0.64 0.28 350);
  color: #fff;
  font-weight: 400;
  box-shadow: 0 16px 40px oklch(0.55 0.22 350 / 0.3);
}

.arena-create-btn svg,
.arena-notify-btn svg,
.arena-profile-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.arena-notify-btn {
  position: relative;
  width: 46px;
  padding: 0;
  background: oklch(0.18 0.08 18 / 0.72);
  cursor: pointer;
}

.arena-notify-dot {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.64 0.28 350);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
}

.arena-profile-btn {
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-color: oklch(0.92 0.04 15 / 0.18);
  background: linear-gradient(135deg, oklch(0.96 0.02 20 / 0.13), oklch(0.96 0.02 20 / 0.04));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 16px 42px oklch(0 0 0 / 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
}

.arena-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bubble);
  color: var(--wine-deep);
  font-weight: 900;
  position: relative;
}

.top-profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.top-profile-img.shown {
  display: block;
}

.arena-profile-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.arena-profile-copy strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.arena-profile-copy small {
  color: oklch(0.92 0.04 15 / 0.55);
  font-size: 0.62rem;
}

.home-spotlight-stage {
  margin-bottom: 28px;
}

.spotlight-billboard {
  position: relative;
  min-height: 350px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 28px;
  overflow: hidden;
  padding: 34px 40px;
  background: linear-gradient(
    135deg,
    oklch(0.32 0.18 22) 0%,
    oklch(0.26 0.14 18) 40%,
    oklch(0.28 0.16 10) 70%,
    oklch(0.22 0.1 18) 100%
  );
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid oklch(0.6 0.28 22 / 0.7);
  box-shadow:
    inset 0 1px 0 oklch(0.75 0.25 22 / 0.35),
    inset 0 -1px 0 oklch(0 0 0 / 0.25),
    0 0 8px oklch(0.55 0.28 22 / 0.7),
    0 0 24px oklch(0.5 0.26 22 / 0.45),
    0 0 60px oklch(0.45 0.24 22 / 0.25),
    0 32px 80px oklch(0 0 0 / 0.4);
}

.spotlight-billboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, oklch(0.12 0.06 18 / 0.52), transparent 56%), var(--spotlight-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(1.25);
}

.spotlight-billboard > * {
  position: relative;
  z-index: 1;
}

.spotlight-copy {
  align-self: center;
  max-width: 500px;
}

.spotlight-kicker {
  width: max-content;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: oklch(0.88 0.22 120);
  color: oklch(0.16 0.07 18);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spotlight-copy h2 {
  max-width: 460px;
  color: var(--milk);
  font-size: clamp(2.35rem, 4.3vw, 4.65rem);
  line-height: 0.95;
}

.spotlight-copy h2 span {
  color: oklch(0.7 0.28 350);
  font-style: italic;
}

.spotlight-subcopy {
  max-width: 58ch;
  margin-top: 16px;
  color: oklch(0.92 0.04 15 / 0.74);
  line-height: 1.55;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.spotlight-actions a {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.spotlight-actions a:first-child {
  background: oklch(0.88 0.22 120);
  color: oklch(0.13 0.06 18);
}

.spotlight-actions a:last-child {
  border: 1px solid oklch(0.92 0.04 15 / 0.14);
  color: var(--rose);
}

.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.spotlight-tags span {
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  color: oklch(0.92 0.04 15 / 0.72);
  font-size: 0.72rem;
}

.spotlight-live-card {
  align-self: center;
  display: grid;
  gap: 14px;
}

.spotlight-media-stage {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(48%, 620px);
  overflow: hidden;
  opacity: 0.34;
}

.spotlight-media-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.spotlight-media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, oklch(0.23 0.13 18), transparent 48%, oklch(0.28 0.16 350 / 0.3));
}

.spotlight-builder-row {
  min-height: 72px;
  border: 1px solid oklch(0.92 0.04 15 / 0.11);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: oklch(0.13 0.07 18 / 0.36);
  color: var(--rose);
  text-decoration: none;
}

.spotlight-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--rose-hot);
  color: #fff;
  font-weight: 900;
}

.spotlight-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-builder-row span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spotlight-builder-row small {
  color: oklch(0.92 0.04 15 / 0.54);
}

.spotlight-builder-row em {
  color: oklch(0.92 0.04 15 / 0.72);
  font-style: normal;
  font-size: 0.72rem;
}

.spotlight-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.spotlight-stat-grid div {
  min-height: 76px;
  border: 1px solid oklch(0.92 0.04 15 / 0.1);
  border-radius: 14px;
  padding: 12px;
  background: oklch(0.13 0.07 18 / 0.28);
}

.spotlight-stat-grid span,
.spotlight-stat-grid small {
  display: block;
  color: oklch(0.92 0.04 15 / 0.52);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.spotlight-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--milk);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1;
}

.spotlight-stat-grid small {
  margin-top: 7px;
  color: oklch(0.78 0.23 120);
  text-transform: none;
}

.spotlight-feature-panel {
  min-height: 230px;
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 18px;
  overflow: hidden;
  align-self: stretch;
  background: oklch(0.13 0.07 18 / 0.42);
  color: var(--rose);
  text-decoration: none;
}

.spotlight-feature-panel.has-video {
  position: relative;
  display: block;
  min-height: 310px;
}

.spotlight-feature-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}

.spotlight-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.spotlight-reel-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(117 0 31 / 0.34), rgb(83 0 24 / 0.48)),
    linear-gradient(180deg, transparent 36%, oklch(0.08 0.04 18 / 0.72));
}

.spotlight-flower {
  position: absolute;
  right: 28px;
  top: 24px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.64 0.28 350);
  color: #fff;
  box-shadow: 0 18px 38px oklch(0.55 0.22 350 / 0.32);
}

.spotlight-flower svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.spotlight-reel-badge,
.spotlight-reel-title,
.spotlight-play-chip,
.spotlight-mute-btn {
  position: absolute;
  z-index: 2;
}

.spotlight-reel-badge {
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: oklch(0.88 0.22 120);
  color: oklch(0.13 0.06 18);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spotlight-play-chip {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.64 0.28 350 / 0.92);
  color: #fff;
  transform: translate(-50%, -50%);
}

.spotlight-play-chip svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.spotlight-reel-title {
  left: 34px;
  right: 34px;
  bottom: 24px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px oklch(0 0 0 / 0.5);
}

.spotlight-mute-btn {
  right: 28px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0 0 0 / 0.42);
  color: #fff;
  cursor: pointer;
}

.spotlight-mute-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.spotlight-mute-btn .icon-volume,
.spotlight-mute-btn.is-unmuted .icon-muted {
  display: none;
}

.spotlight-mute-btn.is-unmuted .icon-volume {
  display: block;
}

.profile-feature,
.fallback-feature {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.profile-feature img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-feature-initial {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rose-hot);
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
}

.spotlight-ticker {
  display: none;
}

.home-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.feed-view-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-view-actions button {
  min-height: 36px;
  border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  background: oklch(0.16 0.07 18 / 0.66);
  color: var(--rose);
}

.feed-view-actions button:not(:first-child) {
  width: 36px;
  padding: 0;
}

.feed-view-actions .is-active {
  background: oklch(0.64 0.28 350);
  color: #fff;
}

.feed-view-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}

.home-content-grid.no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.home-content-grid .feed-main {
  padding: 0;
}

/* ── Grid view: masonry, laid out by JS into real .feed-col columns
   (see .feed-grid comment above) — 3 columns above 980px, 2 at/below it,
   matching home.js's own breakpoint check. Card spacing comes from
   .vibe-card's margin-bottom below, so no gap here (avoids doubling up). */
.home-content-grid .feed-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.home-content-grid .feed-grid .feed-col {
  gap: 0;
}

/* List view: single column, narrow & centered like Instagram feed —
   home.js renders exactly one .feed-col for this view */
.home-content-grid .feed-grid.is-list-view {
  justify-content: center;
}
.home-content-grid .feed-grid.is-list-view .feed-col {
  max-width: 480px;
  width: 100%;
}

/* Every grid card */
.home-content-grid .vibe-card {
  break-inside: avoid;
  display: inline-block; /* required for CSS column layout */
  width: 100%;
  margin-bottom: 12px; /* equal vertical gap (matches column-gap) */
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  vertical-align: top;
}

.home-content-grid .vibe-card:hover {
  box-shadow: 0 6px 20px oklch(0 0 0 / 0.35);
}

/* Thumbnail wrapper: NO fixed aspect-ratio — let content define height.
   Portrait/landscape is set on the img/video itself so the box sizes
   to match the media naturally without cropping. */
.home-content-grid .vibe-thumb-wrap {
  overflow: hidden;
  border-radius: 10px;
}

/* Images: full width, natural height — NEVER crops the image */
.home-content-grid img.vibe-thumb {
  width: 100%;
  height: auto;
  display: block;
}

/* Videos: portrait default (9:16) since phones shoot portrait; JS probe
   changes to is-landscape → 16:9 once it detects the poster dimensions */
.home-content-grid video.vibe-thumb {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover; /* fills the box; near-exact ratio means tiny/no crop */
}

.home-content-grid .vibe-thumb-wrap.is-landscape video.vibe-thumb {
  aspect-ratio: 16 / 9;
}

/* ── Instagram-style list cards ───────────────────────────────────────
   Each card is a compact feed post: author at top, full-width media in
   middle, like/comment/share counts below, caption at bottom. */
.home-content-grid .feed-grid.is-list-view .vibe-card {
  background: oklch(0.18 0.07 18 / 0.7);
  border: 1px solid oklch(0.92 0.04 15 / 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.home-content-grid .feed-grid.is-list-view .vibe-thumb-wrap {
  border-radius: 0;
}

/* List view media: natural height capped so it never escapes the screen */
.home-content-grid .feed-grid.is-list-view img.vibe-thumb,
.home-content-grid .feed-grid.is-list-view video.vibe-thumb {
  width: 100%;
  height: auto;
  max-height: 65vh; /* prevents portrait videos from overflowing viewport */
  display: block;
  aspect-ratio: unset;
  object-fit: contain; /* contain = no cropping, shows full media */
  background: oklch(0.12 0.05 18);
}

/* List card: author header */
.vibe-list-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.vibe-list-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bubble); color: var(--wine-deep);
  display: grid; place-items: center; font-weight: 800;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.vibe-list-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vibe-list-meta { flex: 1; min-width: 0; }
.vibe-list-handle {
  font-size: 0.875rem; font-weight: 600; color: var(--rose);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vibe-list-dot { margin: 0 4px; color: oklch(0.92 0.04 15 / 0.4); }
.vibe-list-time {
  font-size: 0.6875rem; font-weight: 500;
  color: oklch(0.92 0.04 15 / 0.5);
}
.vibe-list-title {
  font-size: 0.72rem; color: oklch(0.92 0.04 15 / 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vibe-list-post-tag {
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: oklch(0.92 0.04 15 / 0.1);
  color: oklch(0.92 0.04 15 / 0.6);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vibe-list-badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px;
  background: oklch(0.88 0.22 120); color: oklch(0.13 0.06 18);
}

/* List card: stats bar below image */
.vibe-list-stats {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px;
}
.vibe-list-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: oklch(0.92 0.04 15 / 0.7);
}
.vibe-list-stat svg {
  width: 18px; height: 18px; fill: none;
  stroke: currentColor; stroke-width: 1.75; flex-shrink: 0;
}
.vibe-list-stat.is-liked svg { fill: #ff3040; stroke: #ff3040; }
.vibe-list-stat[data-post-action],
.vibe-list-stat[data-list-action] { cursor: pointer; }
.vibe-list-save { margin-left: auto; }
.vibe-list-save.is-saved svg { fill: var(--rose); }
.vibe-list-caption {
  padding: 0 14px 12px;
  font-size: 0.8125rem; color: oklch(0.92 0.04 15 / 0.8);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-content-grid .vibe-badge {
  background: oklch(0.88 0.22 120);
  color: oklch(0.13 0.06 18);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-content-grid .vibe-creator {
  background: oklch(0.1 0.05 18 / 0.56);
  color: #fff;
}

.home-content-grid .vibe-meta {
  align-items: flex-end;
  padding: 14px;
}

.home-content-grid .vibe-meta h3 {
  color: var(--milk);
  font-family: var(--font-serif);
  font-size: 1rem;
  white-space: normal;
}

.home-content-grid .vibe-meta .caption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 24ch;
  margin-top: 5px;
  overflow: hidden;
  color: oklch(0.92 0.04 15 / 0.58);
  font-size: 0.72rem;
  line-height: 1.35;
}

.home-content-grid .vibe-stats {
  color: oklch(0.92 0.04 15 / 0.62);
}

.home-content-grid .right-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: auto;
  padding: 0;
}

.home-content-grid .rail-card {
  border: 1px solid oklch(0.92 0.04 15 / 0.11);
  border-radius: 16px;
  background: oklch(0.18 0.08 18 / 0.66);
  color: var(--rose);
  box-shadow: none;
}

.home-content-grid .rail-card h3 {
  margin-bottom: 18px;
  color: var(--milk);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: none;
}

.home-content-grid .trending-list .tag,
.home-content-grid .trending-list .count,
.home-content-grid .trending-list .num {
  color: oklch(0.92 0.04 15 / 0.78);
}

.home-content-grid .trending-list .rule {
  background: oklch(0.92 0.04 15 / 0.08);
}

.home-content-grid .explore-link,
.home-content-grid .trend-explore-link {
  display: inline-flex;
  margin-top: 18px;
  color: oklch(0.7 0.28 350);
  font-size: 0.8125rem;
  text-decoration: none;
}

.home-content-grid .trend-empty-hint {
  font-size: 0.8125rem;
  color: oklch(0.92 0.04 15 / 0.5);
  line-height: 1.5;
}

/* Home trending tags: use light colours (dark rail bg) */
.home-content-grid .trending-list .tag { color: var(--rose); }
.home-content-grid .trending-list li:hover .tag { color: #fff; }

.top-coder-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid oklch(0.92 0.04 15 / 0.08);
  color: inherit;
  text-decoration: none;
}

.top-coder-row span,
.top-coder-row small {
  color: oklch(0.92 0.04 15 / 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.top-coder-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--milk);
}

.top-coder-row img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.home-notification-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.home-notification-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-notification-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: oklch(0.08 0.04 18 / 0.48);
}

.home-notification-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100vw, 420px);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid oklch(0.92 0.04 15 / 0.12);
  background: oklch(0.13 0.06 18);
  color: var(--rose);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.home-notification-drawer.open .home-notification-panel {
  transform: translateX(0);
}

.home-notification-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid oklch(0.92 0.04 15 / 0.1);
}

.home-notification-head h2 {
  font-size: 1.7rem;
}

.home-notification-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.92 0.04 15 / 0.08);
  color: var(--rose);
  cursor: pointer;
}

.home-notification-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.home-notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.home-notification-row {
  min-height: 62px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--rose);
  text-decoration: none;
}

.home-notification-row:hover,
.home-notification-row.is-unread {
  background: oklch(0.92 0.04 15 / 0.08);
}

.home-notification-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.64 0.28 350);
  color: #fff;
  font-weight: 900;
}

.home-notification-copy {
  min-width: 0;
  color: oklch(0.92 0.04 15 / 0.76);
  line-height: 1.35;
}

.home-notification-copy strong {
  color: #fff;
}

.home-notification-empty {
  padding: 48px 12px;
  color: oklch(0.92 0.04 15 / 0.52);
  text-align: center;
}

@media (max-width: 1180px) {
  .home-content-grid {
    grid-template-columns: 1fr;
  }

  .home-content-grid .right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .arena-topbar {
    flex-wrap: wrap;
  }

  .arena-logo {
    order: 1;
  }

  .arena-create-btn,
  .arena-notify-btn,
  .arena-profile-btn {
    order: 2;
  }

  .arena-search.hero-search {
    order: 3;
    flex: 0 0 100%;
  }

  .spotlight-billboard {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .spotlight-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* column *count* below 980px is handled by home.js (matches this same
     breakpoint) rebuilding .feed-col divs — nothing to override here. */
}

@media (max-width: 680px) {
  .home-page-layout {
    width: min(100% - 20px, 1380px);
  }

  .home-shell {
    padding-top: 12px;
  }

  .arena-logo span:last-child,
  .arena-create-btn span,
  .arena-profile-copy,
  .arena-profile-btn > svg {
    display: none;
  }

  .arena-create-btn {
    width: 46px;
    padding: 0;
  }

  .home-feed-header {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-view-actions {
    justify-content: flex-end;
  }

  .spotlight-copy h2 {
    font-size: 2.4rem;
  }

  .spotlight-live-card {
    gap: 10px;
  }

  .spotlight-stat-grid,
  .home-content-grid .feed-grid,
  .home-content-grid .right-rail {
    grid-template-columns: 1fr;
  }

  .spotlight-ticker {
    border-radius: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    white-space: normal;
  }
}

.rail-footer { text-align: center; font-size: 0.625rem; color: oklch(0.92 0.04 15 / 0.5); font-family: var(--font-mono); line-height: 1.6; }

/* ── Autocomplete dropdown (shared with search page) ───────────── */
.suggest-list {
  position: absolute; top: calc(100% + 0.375rem); left: 0; right: 0;
  background: oklch(0.2 0.08 18); border: 1px solid oklch(0.92 0.04 15 / 0.12);
  border-radius: 1rem; overflow: hidden; z-index: 100;
  list-style: none; margin: 0; padding: 0.375rem;
  box-shadow: 0 8px 32px oklch(0.1 0.05 18 / 0.6);
}
.suggest-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem;
  border-radius: 0.625rem; cursor: pointer; transition: background 0.1s ease;
}

/* --------------------------------------------------------------------------
   Home: tablet and phone experience
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  html { width: 100%; height: 100%; overflow: hidden; }
  body.home-arena-page:not(.shell-menu-open):not(.home-notification-open) {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  body { overflow-x: clip; }

  /* Android Chrome can refuse to pan the root document when custom
     overscroll handling is installed. Make the actual Home content the
     explicit momentum scroller so a swipe works from every card/blank area. */
  .home-page-layout {
    height: calc(100dvh - 3.75rem - env(safe-area-inset-top));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-page-layout::-webkit-scrollbar { display: none; }

  .mobile-topbar {
    min-height: calc(3.75rem + env(safe-area-inset-top));
    padding: calc(0.6rem + env(safe-area-inset-top)) 1rem 0.6rem;
    background: rgb(31 0 10 / 0.82);
    border-color: rgb(255 133 160 / 0.14);
    box-shadow: 0 0.75rem 2rem rgb(8 0 3 / 0.18);
    backdrop-filter: blur(22px) saturate(145%);
  }
  .mobile-topbar .icon-btn { width: 2.75rem; height: 2.75rem; }
  .mobile-topbar-logo-img { height: 2rem; }
  .mobile-drawer .drawer-aside {
    width: min(86vw, 22rem);
    max-width: none;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1.25rem + env(safe-area-inset-bottom));
    background: radial-gradient(circle at 15% 8%, rgb(255 48 103 / 0.16), transparent 16rem), rgb(35 0 12 / 0.97);
  }

  .home-page-layout { width: min(100% - 2rem, 86rem); }
  .home-shell { padding: 1rem 0 max(2rem, env(safe-area-inset-bottom)); }
  .arena-topbar { display: block; margin-bottom: 1rem; }
  .arena-topbar > :not(.arena-search) { display: none; }
  .arena-search.hero-search { width: 100%; min-height: 3.25rem; }
  .arena-search.hero-search input { font-size: 1rem; }

  .spotlight-billboard { min-height: 25rem; border-radius: 1.35rem; }
  .home-feed-header { margin-top: 1rem; }
  .feed-view-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .feed-view-actions::-webkit-scrollbar { display: none; }
  .feed-view-actions button { min-width: 2.75rem; min-height: 2.75rem; flex: 0 0 auto; }
  .feed-view-actions button:first-child { min-width: max-content; }

  .home-content-grid { gap: 1.25rem; }
  .home-content-grid .right-rail { gap: 1rem; }
}

@media (min-width: 1024px) {
  .arena-topbar .arena-profile-btn {
    width: auto;
    min-width: 10.5rem;
    max-width: min(16rem, calc(100vw - 8rem));
    height: 2.9rem;
    padding: 0.3rem 0.8rem 0.3rem 0.35rem;
    justify-content: flex-start;
    gap: 0.65rem;
    overflow: hidden;
  }
  .arena-topbar .arena-profile-copy { display: flex; }
  .arena-topbar .arena-profile-copy { flex: 1 1 auto; align-items: flex-start; }
  .arena-topbar .arena-profile-btn > svg { display: block; margin-left: auto; }
  .arena-topbar .arena-profile-avatar { width: 2.2rem; height: 2.2rem; }
  .home-sidebar .nav-link[href^="/contests.html"] { display: none !important; }
}

@media (max-width: 680px) {
  .home-page-layout { width: 100%; padding: 0 0.75rem; }
  .home-shell { padding-top: 0.75rem; }

  .spotlight-billboard {
    min-height: clamp(25rem, 72dvh, 34rem);
    padding: 1.35rem;
    align-content: end;
    overflow: hidden;
  }
  .spotlight-copy h2 { max-width: 11ch; font-size: clamp(2rem, 10vw, 3rem); line-height: 0.96; }
  .spotlight-copy p { max-width: 34rem; }
  .spotlight-live-card { padding: 0.85rem; border-radius: 1rem; }
  .spotlight-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-feed-header { margin-bottom: 0.75rem; }
  .feed-view-actions { padding-bottom: 0.15rem; }
  .home-content-grid .right-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }
  .home-content-grid .right-rail::-webkit-scrollbar { display: none; }
  .home-content-grid .right-rail > * { min-width: min(88vw, 24rem); scroll-snap-align: start; }

  .home-notification-panel {
    top: auto;
    width: 100%;
    height: min(88dvh, 46rem);
    border-radius: 1.4rem 1.4rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .home-notification-head { min-height: 4.5rem; padding: 1rem; }

  .vibe-share-modal { align-items: end; padding: 0; }
  .vibe-share-panel {
    width: 100%;
    max-height: 88dvh;
    border-radius: 1.4rem 1.4rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 390px) {
  .home-page-layout { padding-inline: 0.55rem; }
  .spotlight-billboard { min-height: 23rem; padding: 1.05rem; }
  .spotlight-stat-grid { grid-template-columns: 1fr; }
}

/* Home owns a separate drawer implementation, so give it the same compact
   icon rail used by the shared desktop/application shell. */
@media (max-width: 1023px) {
  .mobile-drawer .drawer-backdrop {
    background: rgb(7 0 3 / 0.54);
    backdrop-filter: blur(10px) saturate(90%);
  }
  .mobile-drawer .drawer-aside {
    width: 6.25rem;
    min-width: 6.25rem;
    padding: calc(0.7rem + env(safe-area-inset-top)) 0.7rem max(0.8rem, env(safe-area-inset-bottom));
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    background:
      radial-gradient(circle at 50% 7%, rgb(255 45 104 / 0.18), transparent 10rem),
      linear-gradient(180deg, rgb(57 1 19 / 0.98), rgb(20 0 7 / 0.98));
    border-right: 1px solid rgb(255 83 125 / 0.22);
    box-shadow: 1.5rem 0 4rem rgb(0 0 0 / 0.45);
  }
  .mobile-drawer .drawer-aside::-webkit-scrollbar { display: none; }
  .mobile-drawer .drawer-close {
    align-self: center;
    margin: 0 0 0.8rem;
    border: 1px solid rgb(255 112 145 / 0.17);
    border-radius: 0.8rem;
    background: rgb(255 236 240 / 0.065);
  }
  #sidebar-content-mount-mobile {
    width: 100%;
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
  }
  #sidebar-content-mount-mobile .sidebar-logo {
    width: 3rem;
    height: 3rem;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    place-items: center;
  }
  #sidebar-content-mount-mobile .sidebar-logo-full { display: none; }
  #sidebar-content-mount-mobile .sidebar-logo-icon { display: block; width: 2.15rem; height: 2.15rem; object-fit: contain; }
  #sidebar-content-mount-mobile .sidebar-nav {
    width: 100%;
    margin: 0;
    align-items: center;
    gap: 0.45rem;
  }
  #sidebar-content-mount-mobile .nav-link {
    position: relative;
    width: 3.25rem;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    color: rgb(255 228 235 / 0.72);
    background: transparent;
  }
  #sidebar-content-mount-mobile .nav-label { display: none; }
  #sidebar-content-mount-mobile .nav-link svg { width: 1.35rem; height: 1.35rem; }
  #sidebar-content-mount-mobile .nav-link.active {
    color: #fff;
    border-color: rgb(255 66 116 / 0.55);
    background: linear-gradient(145deg, rgb(255 45 104 / 0.38), rgb(128 7 45 / 0.32));
    box-shadow: 0 0.8rem 2rem rgb(255 45 104 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.04);
  }
  #sidebar-content-mount-mobile .nav-link:active { transform: scale(0.94); }
  #sidebar-content-mount-mobile .notif-icon-wrap { position: static; }
  #sidebar-content-mount-mobile .nav-notif-badge { top: 0.28rem; right: 0.25rem; }
  #sidebar-content-mount-mobile .sidebar-section,
  #sidebar-content-mount-mobile .sidebar-stats { display: none; }
}

/* Home uses the same stable mobile destination screen as the shared shell. */
@media (max-width: 1023px) {
  .mobile-drawer,
  .mobile-drawer.open { transition: none; }
  .mobile-drawer .drawer-backdrop { display: none; }
  .mobile-drawer .drawer-aside,
  .mobile-drawer.open .drawer-aside {
    inset: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    transform: none;
    transition: none;
    overflow-y: auto;
    background:
      radial-gradient(circle at 82% 9%, rgb(255 43 101 / 0.2), transparent 16rem),
      radial-gradient(circle at 10% 85%, rgb(143 11 53 / 0.18), transparent 20rem),
      linear-gradient(155deg, #27000d, #150006 72%);
  }
  .mobile-drawer .drawer-close {
    position: absolute;
    top: calc(1rem + env(safe-area-inset-top));
    right: 1rem;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    margin: 0;
    border-radius: 1rem;
  }
  #sidebar-content-mount-mobile {
    width: min(100%, 32rem);
    min-height: 100%;
    margin: 0 auto;
    padding: 0.2rem 0 1rem;
    justify-content: center;
  }
  #sidebar-content-mount-mobile .sidebar-logo {
    width: max-content;
    height: auto;
    margin: 0 auto clamp(2rem, 7vh, 4rem);
  }
  #sidebar-content-mount-mobile .sidebar-logo-full { display: block; width: auto; height: 2.8rem; }
  #sidebar-content-mount-mobile .sidebar-logo-icon { display: none; }
  #sidebar-content-mount-mobile .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  #sidebar-content-mount-mobile .nav-link {
    width: 100%;
    height: auto;
    min-height: 5.25rem;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    border-color: rgb(255 151 174 / 0.12);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.025));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.035);
    transform: none;
    transition: border-color 0.12s ease, background 0.12s ease;
  }
  #sidebar-content-mount-mobile .nav-label {
    display: block;
    color: rgb(255 239 243 / 0.88);
    font-size: 0.86rem;
    font-weight: 750;
  }
  #sidebar-content-mount-mobile .nav-link svg { width: 1.4rem; height: 1.4rem; color: #ff6b96; }
  #sidebar-content-mount-mobile .nav-link.active {
    border-color: rgb(255 79 126 / 0.6);
    background: linear-gradient(145deg, rgb(255 45 104 / 0.3), rgb(121 7 43 / 0.28));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 0.9rem 2.2rem rgb(255 23 82 / 0.13);
  }
  #sidebar-content-mount-mobile .nav-link:active { transform: none; background: rgb(255 45 104 / 0.22); }
  #sidebar-content-mount-mobile .notif-icon-wrap { position: relative; }
  #sidebar-content-mount-mobile .nav-notif-badge { top: -0.35rem; right: -0.55rem; }
  #sidebar-content-mount-mobile .sidebar-section,
  #sidebar-content-mount-mobile .sidebar-stats { display: none; }

  /* Avoid a second entrance animation after navigating back to Home. */
  .reveal,
  .reveal.in-view { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 380px) {
  #sidebar-content-mount-mobile .nav-link { min-height: 4.65rem; padding: 0.7rem 0.8rem; }
  #sidebar-content-mount-mobile .sidebar-logo { margin-bottom: 1.5rem; }
}

/* Home correction: keep the redesigned navigation as a smooth side sheet;
   the non-sliding state change applies only to Yap conversations. */
@media (max-width: 1023px) {
  .mobile-drawer { transition: opacity 0.16s ease, visibility 0.16s ease; }
  .mobile-drawer .drawer-backdrop {
    display: block;
    background: rgb(8 0 3 / 0.58);
    backdrop-filter: blur(8px);
  }
  .mobile-drawer .drawer-aside,
  .mobile-drawer.open .drawer-aside {
    inset: 0 auto 0 0;
    width: min(86vw, 22rem);
    min-width: 0;
    max-width: 22rem;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    align-items: stretch;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    background:
      radial-gradient(circle at 18% 8%, rgb(255 45 104 / 0.17), transparent 14rem),
      linear-gradient(165deg, rgb(55 1 19 / 0.99), rgb(20 0 7 / 0.99));
  }
  .mobile-drawer.open .drawer-aside { transform: translate3d(0, 0, 0); }
  .mobile-drawer .drawer-close {
    top: calc(0.9rem + env(safe-area-inset-top));
    right: 0.9rem;
    width: 2.85rem;
    height: 2.85rem;
  }
  #sidebar-content-mount-mobile {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  #sidebar-content-mount-mobile .sidebar-logo {
    width: max-content;
    height: 3rem;
    margin: 0 0 2rem 0.25rem;
  }
  #sidebar-content-mount-mobile .sidebar-logo-full { display: block; width: auto; height: 2.4rem; }
  #sidebar-content-mount-mobile .sidebar-logo-icon { display: none; }
  #sidebar-content-mount-mobile .sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  #sidebar-content-mount-mobile .nav-link {
    width: 100%;
    min-height: 3.65rem;
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
  }
  #sidebar-content-mount-mobile .nav-label { font-size: 0.95rem; }
  #sidebar-content-mount-mobile .nav-link svg { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; }
  #sidebar-content-mount-mobile .nav-link.active {
    border-color: rgb(255 82 128 / 0.48);
    background: linear-gradient(100deg, rgb(255 45 104 / 0.31), rgb(255 45 104 / 0.08));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  }
}

@media (max-width: 1023px) {
  .home-shell { padding-bottom: calc(6.75rem + env(safe-area-inset-bottom)) !important; }
  body:has(.home-notification-drawer.open) .mobile-bottom-nav { display: none; }
}

/* Responsive billboard: one real Reel, centered. The thumbnail/background
   duplicate is removed so no cropped preview remains stuck to one side. */
@media (max-width: 1023px) {
  .spotlight-billboard.has-reel {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-content: initial;
    gap: 1rem;
  }
  .spotlight-billboard.has-reel::before {
    background-image: none;
    opacity: 0;
  }
  .spotlight-billboard.has-reel .spotlight-copy { order: 1; align-self: stretch; }
  .spotlight-billboard.has-reel .spotlight-media-stage {
    position: relative;
    inset: auto;
    order: 2;
    width: min(100%, 38rem);
    height: clamp(18rem, 58dvh, 32rem);
    margin-inline: auto;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    opacity: 0.78;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  }
  .spotlight-billboard.has-reel .spotlight-media-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .spotlight-billboard.has-reel .spotlight-hero-video { object-fit: cover; background: transparent; }
  .spotlight-billboard.has-reel .spotlight-live-card { order: 3; align-self: stretch; }
  .spotlight-billboard.has-reel .spotlight-mute-btn { right: 0.8rem; bottom: 0.8rem; }
}

/* Phone billboard: keep the actual featured Reel and its essential context;
   drop the desktop analytics/profile furniture that made this section huge. */
@media (max-width: 680px) {
  .spotlight-billboard.has-reel {
    min-height: 0;
    gap: 0.65rem;
    padding: 0.9rem;
    border-radius: 1.15rem;
  }
  .spotlight-billboard.has-reel .spotlight-copy {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: none;
  }
  .spotlight-billboard.has-reel .spotlight-kicker {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.35rem 0.55rem;
    font-size: 0.52rem;
  }
  .spotlight-billboard.has-reel .spotlight-copy h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.25rem, 6vw, 1.65rem);
    line-height: 1;
  }
  .spotlight-billboard.has-reel .spotlight-subcopy,
  .spotlight-billboard.has-reel .spotlight-tags,
  .spotlight-billboard.has-reel .spotlight-live-card { display: none; }
  .spotlight-billboard.has-reel .spotlight-media-stage {
    width: 100%;
    height: clamp(12rem, 34dvh, 17rem);
    margin: 0;
  }
  .spotlight-billboard.has-reel .spotlight-reel-title {
    left: 1rem;
    right: 3.8rem;
    bottom: 0.85rem;
    font-size: 0.95rem;
  }
}
.suggest-item:hover,
.suggest-item.active { background: oklch(0.92 0.04 15 / 0.08); }
.suggest-av {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px; flex-shrink: 0;
  background: oklch(0.27 0.1 18); border: 1px solid oklch(0.92 0.04 15 / 0.15);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.suggest-initial {
  font-family: var(--font-serif); font-size: 0.875rem; color: var(--rose);
  line-height: 1;
}
.suggest-avatar {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 9999px;
}
.suggest-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest-name { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--rose); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-handle { font-size: 0.6875rem; color: oklch(0.92 0.04 15 / 0.5); font-family: var(--font-mono); }
.suggest-bio { font-size: 0.6875rem; color: oklch(0.92 0.04 15 / 0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.125rem; }

.home-arena-page .vibe-meta,
.shell-page-search .vibe-meta {
  display: none !important;
}

/* ── List-card 3-dots menu ──────────────────────────────────────────── */
.vibe-list-av-link { display: contents; }
.vl-menu-wrap { position: relative; flex-shrink: 0; }
.vl-dots-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 9999px; border: none;
  background: none; color: oklch(0.92 0.04 15 / 0.5); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.vl-dots-btn:hover { background: oklch(0.92 0.04 15 / 0.08); color: var(--rose); }
.vl-dots-btn svg { width: 1rem; height: 1rem; pointer-events: none; }
.vl-dots-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 200;
  min-width: 140px; padding: 0.375rem;
  background: oklch(0.22 0.09 18);
  border-radius: 0.875rem;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.5), inset 0 0 0 1px oklch(0.58 0.22 22 / 0.25);
}
.vl-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.8125rem; font-family: inherit;
  color: oklch(0.92 0.04 15 / 0.8); background: none; border: none;
  cursor: pointer; transition: background 0.1s, color 0.1s;
}
.vl-menu-item:hover { background: oklch(0.55 0.22 22 / 0.16); color: var(--rose); }
.vl-menu-item.danger { color: oklch(0.65 0.18 22); }
.vl-menu-item.danger:hover { background: oklch(0.55 0.22 22 / 0.25); color: oklch(0.8 0.2 22); }

/* Post comments overlay — posts have no detail page yet, so this is a
   small self-contained modal instead of a full page. */
.post-comments-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.post-comments-overlay.open { display: flex; }
.post-comments-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.post-comments-panel {
  position: relative;
  width: min(94vw, 420px);
  max-height: min(80vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: oklch(0.2 0.08 18);
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.5), inset 0 0 0 1px oklch(0.92 0.04 15 / 0.1);
  color: var(--rose);
}
.post-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  box-shadow: 0 1px 0 oklch(0.92 0.04 15 / 0.1);
  font-weight: 700;
}
.post-comments-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
}
.post-comments-close:hover { background: oklch(0.92 0.04 15 / 0.08); }
.post-comments-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.post-comments-list {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-comment-item { display: flex; align-items: flex-start; gap: 9px; }
.post-comment-avatar {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 999px; overflow: hidden;
  background: var(--bubble); color: var(--wine-deep);
  font-weight: 800; font-size: 0.75rem;
}
.post-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-comment-body { min-width: 0; font-size: 0.8125rem; }
.post-comment-body strong { color: var(--rose); }
.post-comment-body p { margin: 2px 0 0; color: oklch(0.92 0.04 15 / 0.8); line-height: 1.4; word-break: break-word; }
.post-comments-loading,
.post-comments-empty { padding: 8px 0; color: oklch(0.92 0.04 15 / 0.55); font-size: 0.8125rem; }
.post-comments-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 14px;
  box-shadow: 0 -1px 0 oklch(0.92 0.04 15 / 0.1);
}
.post-comments-footer input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rose);
  font: inherit;
  font-size: 0.8125rem;
}
.post-comments-footer input::placeholder { color: oklch(0.92 0.04 15 / 0.42); }
.post-comments-footer button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: var(--wine-deep);
  font-weight: 800;
  font-size: 0.8125rem;
  cursor: pointer;
}

/* Share modal (Send to Yap / copy link) — ported verbatim from
   css/vibes.css so posts share the exact same panel vibes/threads use. */
.vibe-share-modal[hidden] { display: none; }

.vibe-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.vibe-share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.vibe-share-panel {
  position: relative;
  width: min(94vw, 470px);
  max-height: min(86vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  background: #111820;
  color: #fff;
}

.vibe-share-head,
.vibe-share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.vibe-share-head p {
  margin: 0 0 3px;
  color: rgb(255 255 255 / 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vibe-share-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.vibe-share-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.vibe-share-close svg,
.vibe-share-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.vibe-share-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  margin: 0 16px 14px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.055);
}

.vibe-share-thumb {
  min-height: 92px;
  border-radius: 8px;
  background: #202733;
  background-size: cover;
  background-position: center;
}

.vibe-share-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.vibe-share-copy span,
.vibe-share-copy small {
  color: rgb(255 255 255 / 0.6);
  font-size: 13px;
}

.vibe-share-copy strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.vibe-share-search {
  min-height: 42px;
  margin: 0 16px 12px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(0 0 0 / 0.26);
  color: rgb(255 255 255 / 0.68);
}

.vibe-share-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.vibe-share-search input::placeholder {
  color: rgb(255 255 255 / 0.42);
}

.vibe-share-list {
  overflow-y: auto;
  padding: 0 8px;
  scrollbar-width: thin;
}

.vibe-share-row {
  width: 100%;
  min-height: 58px;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.vibe-share-row:hover,
.vibe-share-row.is-sending,
.vibe-share-row.is-sent {
  background: rgb(255 255 255 / 0.08);
}

.vibe-share-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #202733;
  color: #fff;
  font-weight: 900;
}

.vibe-share-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-share-person {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vibe-share-person strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 15px;
}

.vibe-share-person small {
  color: rgb(255 255 255 / 0.56);
}

.vibe-share-send,
.vibe-share-copy-link {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0b0f14;
  font-size: 13px;
  font-weight: 900;
}

.vibe-share-copy-link {
  font: inherit;
}

.vibe-share-empty,
.vibe-share-status {
  padding: 14px 16px;
  color: rgb(255 255 255 / 0.62);
  font-size: 14px;
}

.vibe-share-status {
  min-height: 40px;
  margin: 0;
}

.vibe-share-status[data-kind="ok"] { color: #8ef5cc; }
.vibe-share-status[data-kind="error"] { color: #ff8ea0; }

.vibe-share-verified.gold-tick svg {
  width: 15px;
  height: 15px;
}
.post-comments-footer button:disabled { opacity: 0.4; cursor: default; }
