/* ============ Fanbase Profile 1.5 — web ============ */
:root {
  --ink: #1F1F1F;
  --grey-label: #8A96A0;
  --grey-icon: #979797;
  --grey-fill: #E2E2E2;
  --divider: #E2E2E2;
  --link: #0D00FF;
  --pink: #FF2A92;
  --grad-love: linear-gradient(135deg, #FF00D6 0%, #FF453A 50%, #FFA624 100%);
  --grad-story: conic-gradient(from 210deg, #FF002E, #FF00D6, #7000FF, #FF002E);
  --content-max: 1040px;
  --bar-h: 58px;
  --nav-h: 64px;
  --webnav-h: 60px;
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; }

/* every interactive element gives feedback */
.icon-btn, .pill-btn, .stat, .tab, .nav-btn, .pd-action, .sheet-item,
.avatar-wrap, .post-cell, .back-btn, .pd-viewcomments, .story-close,
.webnav-link, .webnav-avatar, .overlay-close {
  transition: transform .12s ease, opacity .12s ease, background-color .12s ease, color .12s ease;
}
.icon-btn:active, .stat:active, .tab:active, .nav-btn:active,
.pd-action:active, .avatar-wrap:active, .back-btn:active, .webnav-avatar:active { transform: scale(.88); }
.pill-btn:active, .sheet-item:active, .post-cell:active { transform: scale(.96); opacity: .8; }
@media (hover: hover) {
  .icon-btn:hover, .stat:hover, .tab:hover, .nav-btn:hover, .pd-action:hover, .overlay-close:hover { opacity: .65; }
  .webnav-link:hover { color: #fff; }
  .pill-btn:hover { background: #d6d6d6; }
  .post-cell:hover img.post-img { transform: scale(1.03); }
}

/* ============ Desktop navbar ============ */
.webnav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--webnav-h);
  background: #000;
  z-index: 55;
}
.webnav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
}
.webnav-logo img { height: 26px; }
.webnav-links { display: flex; gap: 24px; flex: 1; }
.webnav-link { color: #b9b9b9; font-size: 14px; font-weight: 600; }
.webnav-link:hover, .webnav-link.is-active { color: #fff; }
.webnav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn.light .counter { color: #fff; }
.icon-btn.invert img { filter: invert(1); }
.webnav-avatar img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  outline: 2px solid transparent;
  outline-offset: 1.5px;
}
.webnav-avatar.is-active img { outline-color: #fff; }

/* ============ Desktop sidebar ============ */
:root {
  --sidebar-w: 260px;
  --sb-grey: #8A8A8A;
  --sb-purple: #7B00FF;
  --sb-pill: #F3EDFD;
  --sb-badge: #FF3B5C;
  --grad-active: linear-gradient(135deg, #360060 0%, #9829FF 55%, #FF00D6 100%);
}
.sidebar {
  display: none;
  position: fixed;
  top: var(--webnav-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid #ECECEC;
  z-index: 50;
  flex-direction: column;
}
.sidebar-menu { padding: 14px 12px 0; }
.sb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  margin-bottom: 2px;
  transition: background-color .15s ease, transform .12s ease;
}
.sb-item:hover { background: #F6F6F6; }
.sb-item:active { transform: scale(.97); }
.sb-ico { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.sb-ico-badge { width: 30px; height: 30px; margin: -3px -3px -3px -3px; }
/* inactive home: flatten the gradient icon to sidebar grey */
.sb-item:not(.is-active) .sb-ico-home { filter: brightness(0) saturate(100%) invert(58%); }
.sb-label { font-size: 16px; font-weight: 600; color: var(--sb-grey); }

.sb-item.is-active { background: var(--sb-pill); }
.sb-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 9px;
  width: 4px; height: 32px;
  border-radius: 0 3px 3px 0;
  background: var(--sb-purple);
}
.sb-item.is-active .sb-label {
  background: var(--grad-active);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 700;
}
/* active icons (except the gradient home asset) get the purple treatment */
.sb-item.is-active .sb-ico:not(.sb-ico-home):not(.sb-ico-badge) {
  filter: brightness(0) saturate(100%) invert(16%) sepia(92%) saturate(6500%) hue-rotate(272deg) brightness(92%);
}

.sidebar-live { margin-top: auto; padding: 16px 22px 14px; }
.sb-live-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--sb-grey); margin-bottom: 12px; }
.sb-live-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  text-align: left;
  transition: opacity .12s ease, transform .12s ease;
}
.sb-live-row:hover { opacity: .7; }
.sb-live-row:active { transform: scale(.97); }
.sb-live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sb-badge);
  margin-top: 4px;
  flex: 0 0 auto;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .5); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(255, 59, 92, 0); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .sb-live-dot { animation: none; } }
.sb-live-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-live-info b { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-live-info em { font-style: normal; font-size: 12px; color: var(--sb-grey); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid #F1F1F1;
}
.sb-user-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; transition: opacity .12s ease; }
.sb-user-main:hover { opacity: .75; }
.sb-user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sb-user-id { display: flex; flex-direction: column; min-width: 0; }
.sb-user-id b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-id em { font-style: normal; font-size: 12.5px; color: var(--sb-grey); }

/* ============ App shell (mobile-first) ============ */
.app {
  position: relative;
  max-width: 414px;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  padding-top: var(--bar-h);
  padding-bottom: var(--nav-h);
}

/* ============ Mobile top bar ============ */
.topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  height: var(--bar-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 40;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 96px; }
.topbar-right { justify-content: flex-end; }
.topbar-username {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1px;
  text-align: center;
  flex: 1;
}
.icon-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px; }
.icon-btn img { width: 24px; height: 24px; object-fit: contain; }
.counter-btn .counter { font-size: 14px; font-weight: 600; }

/* ============ Profile header ============ */
.screen { display: none; }
.screen.is-active { display: block; }

.wallpaper { width: 100%; aspect-ratio: 414 / 157; overflow: hidden; }
.wallpaper img { width: 100%; height: 100%; object-fit: cover; }

.content { width: 100%; }

.profile-head { padding: 14px 16px 0; }
.profile-head-row { display: flex; gap: 18px; }

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 104px; height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.story-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--grad-story);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.avatar-wrap:not(.has-story) .story-ring { display: none; }
.avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }

.identity { flex: 1; min-width: 0; padding-top: 6px; }
.name-row { display: flex; align-items: center; gap: 6px; }
.display-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified { width: 18px; height: 18px; flex: 0 0 auto; }
.more-btn { margin-left: auto; }
.bio { margin-top: 6px; color: var(--grey-label); font-size: 15px; }
.bio-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--link);
  font-size: 15px;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bio-link:hover { text-decoration: underline; }

/* stats */
.stats-row { display: flex; align-items: center; }
.stats-desktop { display: none; }
.stats-mobile { justify-content: space-between; margin-top: 18px; padding: 0 4px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat-num { font-size: 17px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--grey-label); }
.stat-sep { color: var(--divider); }

/* action buttons */
.actions-row { display: flex; gap: 12px; }
.actions-desktop { display: none; }
.actions-mobile { margin-top: 18px; }
.pill-btn {
  flex: 1;
  height: 38px;
  border-radius: 19px;
  background: var(--grey-fill);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.pill-icon { flex: 0 0 46px; }
.pill-icon img { width: 22px; height: 22px; }

/* ============ Tabs ============ */
.tabs {
  position: relative;
  display: flex;
  margin-top: 18px;
  border-bottom: 1px solid var(--divider);
}
.tab { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab-ico { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) saturate(100%) invert(65%); transition: filter .15s; }
.tab.is-active .tab-ico { filter: brightness(0); }
.tab-label { display: none; font-size: 14px; font-weight: 700; color: var(--grey-icon); }
.tab.is-active .tab-label { color: var(--ink); }
.tab-indicator {
  position: absolute;
  bottom: -1px; left: 0;
  width: 20%; height: 2px;
  background: var(--ink);
  transition: transform .25s cubic-bezier(.4,0,.2,1), width .25s;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ============ Post grid ============ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #fff;
}
.post-cell {
  position: relative;
  aspect-ratio: 1 / 1.008;
  overflow: hidden;
  background: #D8D8D8;
  padding: 0;
}
.post-cell img.post-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.cell-badge {
  position: absolute;
  left: 7px; bottom: 7px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  pointer-events: none;
}
.cell-badge.play {
  width: 0; height: 0;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 0;
}
.cell-badge.flick { width: 20px; height: 20px; object-fit: contain; display: none; }

/* ============ Empty states ============ */
.empty-state {
  padding: 56px 32px;
  text-align: center;
  color: var(--grey-label);
}
.empty-state.tall { padding-top: 120px; min-height: 60vh; }
.empty-state img { width: 44px; height: 44px; margin: 0 auto 14px; opacity: .55; object-fit: contain; }
.empty-state h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ============ Mobile bottom nav ============ */
.bottomnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn { flex: 1; display: grid; place-items: center; height: 100%; }
.nav-btn img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0); opacity: .8; transition: opacity .15s; }
.nav-btn.is-active img { opacity: 1; }
.nav-avatar img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  filter: none !important;
  opacity: 1 !important;
  outline: 2px solid transparent;
  outline-offset: 1.5px;
}
.nav-avatar.is-active img { outline-color: var(--ink); }

/* ============ Overlays ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .18s ease;
}
.overlay[hidden], .toast[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }

.overlay-close {
  display: none;
  position: absolute;
  top: 16px; right: 22px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  z-index: 2;
}

/* post detail */
#postOverlay { align-items: center; }
.post-detail {
  width: min(440px, 100%);
  max-height: 100dvh;
  overflow-y: auto;
  background: #fff;
  animation: slideUp .22s ease;
  display: flex;
  flex-direction: column;
}
.pd-side { display: contents; }
.post-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  order: 1;
}
.pd-media { order: 2; }
.pd-actions { order: 3; }
.pd-caption { order: 4; }
.pd-comments-hint, .pd-comments, .pd-addcomment { display: none; }
.pd-viewcomments { order: 5; }
/* comment list items (shown on desktop) */
.pd-comment { display: flex; gap: 12px; align-items: flex-start; }
.pd-c-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pd-c-body { flex: 1; min-width: 0; font-size: 14px; }
.pd-c-body p { line-height: 1.4; }
.pd-c-body b { font-weight: 700; }
.pd-c-body b img { width: 12px; height: 12px; vertical-align: -1px; margin-left: 2px; }
.pd-c-meta { display: flex; gap: 14px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--grey-label); }
.pd-c-meta button { font-size: 12px; font-weight: 600; color: var(--grey-label); }
.pd-c-like { color: #C8C8C8; align-self: flex-start; margin-top: 3px; flex: 0 0 auto; transition: transform .1s; }
.pd-c-like:active { transform: scale(.85); }
.pd-c-like svg { width: 15px; height: 15px; display: block; }
.pd-c-like.loved { color: #FF2C6A; }
.pd-c-like.loved svg { fill: #FF2C6A; }
.pd-addcomment input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.pd-addcomment #pdCommentPost { color: #7B00FF; font-weight: 700; font-size: 14px; }

.back-btn { font-size: 22px; line-height: 1; padding: 4px 8px 4px 0; }
.pd-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.pd-id { flex: 1; display: flex; flex-direction: column; }
.pd-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.pd-name img { width: 14px; height: 14px; }
.pd-time { font-size: 12px; color: var(--grey-label); }
.pd-media img { width: 100%; max-height: 60dvh; object-fit: cover; }
.pd-media video { width: 100%; max-height: 72dvh; object-fit: contain; background: #000; display: block; }
/* post-detail carousel */
.pd-carousel { position: relative; width: 100%; overflow: hidden; }
.pd-track { display: flex; transition: transform .25s ease; }
.pd-track img { flex: 0 0 100%; width: 100%; max-height: 60dvh; object-fit: cover; }
.pd-c-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1F1F1F; font-size: 21px; line-height: 1; display: grid; place-items: center; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pd-c-nav.prev { left: 12px; } .pd-c-nav.next { right: 12px; }
.pd-c-count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 11px; z-index: 2; }
.pd-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.pd-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pd-dots i.on { background: #fff; }
.pd-actions { display: flex; gap: 22px; padding: 12px 16px 4px; }
.pd-action { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pd-action img { width: 22px; height: 22px; }
.pd-action.loved { animation: pop .25s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.pd-share-glyph { font-size: 18px; }
.pd-caption { padding: 8px 16px 0; font-size: 14px; line-height: 1.45; }
.pd-caption b { font-weight: 700; }
.pd-viewcomments {
  padding: 10px 16px 18px;
  color: var(--grey-label);
  font-size: 14px;
  text-align: left;
  width: 100%;
}

/* bottom sheet */
.sheet {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  animation: slideUp .22s ease;
  max-height: 86dvh;
  overflow-y: auto;
}
.sheet::before {
  content: "";
  display: block;
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--grey-fill);
  margin: 2px auto 10px;
}
.sheet h3 { font-size: 16px; text-align: center; padding: 6px 20px 12px; }
.sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.sheet-item img { width: 22px; height: 22px; object-fit: contain; }
.sheet-item.danger { color: #E0245E; }
.sheet-item:active { background: #f4f4f4; }
.sheet .form-row { padding: 8px 22px; }
.sheet label { display: block; font-size: 12px; font-weight: 700; color: var(--grey-label); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.sheet input, .sheet textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--divider);
  border-radius: 10px;
  outline: none;
}
.sheet input:focus, .sheet textarea:focus { border-color: var(--ink); }
.sheet .save-btn {
  display: block;
  width: calc(100% - 44px);
  margin: 14px auto 4px;
  height: 44px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.sheet .save-btn:active { opacity: .8; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 22px; }
.list-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.list-row .lr-name { font-weight: 700; font-size: 14px; }
.list-row .lr-sub { font-size: 12px; color: var(--grey-label); }
.list-row .lr-btn {
  margin-left: auto;
  padding: 7px 16px;
  border-radius: 16px;
  background: var(--grey-fill);
  font-size: 13px;
  font-weight: 700;
}

/* story viewer */
.story-overlay { align-items: stretch; background: #000; }
.story-view { position: relative; width: min(440px, 100%); margin: 0 auto; display: flex; flex-direction: column; }
.story-progress {
  position: absolute; top: 10px; left: 12px; right: 12px;
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
  z-index: 2;
}
.story-progress span { display: block; height: 100%; width: 0; background: #fff; }
.story-overlay:not([hidden]) .story-progress span { animation: storybar 5s linear forwards; }
@keyframes storybar { to { width: 100%; } }
.story-head {
  position: absolute; top: 24px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 10px;
  color: #fff; z-index: 2;
}
.story-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.story-head span { font-size: 14px; font-weight: 700; }
.story-head em { font-style: normal; font-weight: 400; opacity: .7; margin-left: 6px; }
.story-close { margin-left: auto; color: #fff; font-size: 30px; line-height: 1; }
.story-media { flex: 1; width: 100%; object-fit: contain; }

/* ============ Messages (DM) ============ */
.dm-layout {
  display: flex;
  height: calc(100dvh - var(--bar-h) - var(--nav-h));
  background: #fff;
}

/* inbox column */
.dm-inbox {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--divider);
  flex: 0 0 auto;
}
.dm-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}
.dm-me { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dm-me img { width: 15px; height: 15px; }
#dmCompose img { width: 23px; height: 23px; }

.dm-tabs { display: flex; border-bottom: 1px solid var(--divider); }
.dm-tab {
  flex: 1;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.dm-tab-requests { color: #21B5FF; }
.dm-tab.is-active { border-bottom-color: var(--ink); }

.dm-search { position: relative; padding: 12px 16px 8px; }
.dm-search img {
  position: absolute;
  left: 28px; top: 50%;
  transform: translateY(-30%);
  width: 15px; height: 15px;
  opacity: .45;
  pointer-events: none;
}
.dm-search input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #EFEFEF;
  padding: 0 14px 0 38px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.dm-list { flex: 1; overflow-y: auto; padding: 6px 0 12px; }
.dm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 18px;
  text-align: left;
  transition: background-color .12s ease;
}
.dm-row:hover { background: #FAFAFA; }
.dm-row:active { background: #F2F2F2; }
.dm-row.is-active { background: #F4F2FF; }
.dm-avatar-wrap { position: relative; flex: 0 0 auto; }
.dm-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.dm-online {
  position: absolute;
  right: 1px; bottom: 1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #64DF61;
  border: 2px solid #fff;
}
.dm-row-info { flex: 1; min-width: 0; }
.dm-row-name { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; color: #191919; }
.dm-row-name img { width: 13px; height: 13px; }
.dm-row-preview {
  font-size: 13.5px;
  color: var(--grey-icon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.dm-row.unread .dm-row-preview { color: #191919; font-weight: 700; }
.dm-row-preview .dm-time { color: #CDCDCD; font-weight: 400; }
.dm-row-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: #5A52FF; }
.dm-row-cam { width: 24px; height: 24px; opacity: .55; }
.dm-row-cam img { width: 100%; height: 100%; object-fit: contain; }

/* thread area */
.dm-thread-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
}
.dm-empty-circle {
  width: 96px; height: 96px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--ink);
}
.dm-empty-circle svg { width: 44px; height: 44px; }
.dm-empty h3 { font-size: 20px; font-weight: 800; }
.dm-empty p { font-size: 14px; color: var(--grey-label); }
.dm-send-btn {
  margin-top: 14px;
  height: 38px;
  padding: 0 22px;
  border-radius: 19px;
  background: #5A52FF;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .12s ease, transform .12s ease;
}
.dm-send-btn:hover { opacity: .85; }
.dm-send-btn:active { transform: scale(.96); }

.dm-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-thread[hidden] { display: none; }
.dm-thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #F1F1F1;
}
.dm-back { display: none; }
.dm-thread-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dm-thread-id { display: flex; flex-direction: column; }
.dm-thread-id b { font-size: 15.5px; font-weight: 800; }
.dm-active { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #18D95F; }
.dm-active i { width: 8px; height: 8px; border-radius: 50%; background: #18D95F; }

.dm-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-date { text-align: center; font-size: 12.5px; font-weight: 600; color: #A1A1A1; letter-spacing: .5px; margin: 6px 0 10px; }
.dm-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 72%; }
.dm-msg.them { align-self: flex-start; }
.dm-msg.me { align-self: flex-end; }
.dm-msg-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.dm-bubble {
  padding: 11px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}
.dm-msg.them .dm-bubble { background: #ECEDF1; color: var(--ink); border-bottom-left-radius: 6px; }
.dm-msg.me .dm-bubble { background: #5A52FF; color: #fff; border-bottom-right-radius: 6px; }
.dm-like {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  color: #E2E2E2;
  align-self: center;
  transition: transform .15s ease, color .15s ease;
}
.dm-like svg { width: 100%; height: 100%; fill: currentColor; }
.dm-like:hover { color: #cfcfcf; }
.dm-like.liked { color: #FF453A; animation: pop .25s ease; }

/* voice + video bubbles */
.dm-bubble-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ECEDF1;
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 230px;
}
.dm-voice-play { width: 0; height: 0; border-left: 14px solid #1F1F1F; border-top: 9px solid transparent; border-bottom: 9px solid transparent; flex: 0 0 auto; transition: opacity .12s; }
.dm-voice-play:hover { opacity: .6; }
.dm-bubble-voice img { height: 22px; flex: 1; min-width: 0; object-fit: contain; }
.dm-voice-dur { font-size: 13px; color: var(--ink); }
.dm-bubble-video {
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 0;
  display: block;
}
.dm-bubble-video img { width: 100%; display: block; }
.dm-bubble-video::after {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

/* composer */
.dm-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 16px 14px;
  border: 1.5px solid #E5E5E5;
  border-radius: 28px;
  padding: 6px 14px 6px 6px;
}
.dm-cam {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #5A52FF;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: opacity .12s ease, transform .12s ease;
}
.dm-cam:hover { opacity: .85; }
.dm-cam:active { transform: scale(.92); }
.dm-cam svg, .dm-cam img { width: 22px; height: 22px; }
.dm-composer input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  min-width: 0;
}
.dm-composer-icons { display: flex; align-items: center; gap: 6px; }
.dm-composer-icons svg { width: 22px; height: 22px; }
.dm-gif {
  font-size: 11px;
  font-weight: 800;
  border: 1.8px solid #1F1F1F;
  border-radius: 6px;
  padding: 3px 5px;
}

/* compose sheet rows reuse .list-row */
.dm-compose-row { cursor: pointer; width: 100%; text-align: left; }
.dm-compose-row:hover { background: #FAFAFA; }

/* ============ Search / Explore ============ */
.explore { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.explore-search { position: relative; margin-bottom: 18px; }
.x-searchbox { position: relative; }
.x-searchbox img {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  opacity: .45;
  pointer-events: none;
}
.x-searchbox input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #E5E5E5;
  border-radius: 23px;
  background: #fff;
  padding: 0 18px 0 44px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.x-searchbox input:focus { border-color: #FF2A92; }
.x-suggest {
  position: absolute;
  top: 52px; left: 0; right: 0;
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 20;
  overflow: hidden;
}
.x-suggest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  text-align: left;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.x-suggest-row img { width: 15px; height: 15px; opacity: .5; flex: 0 0 auto; }
.x-suggest-row:hover { background: #FAFAFA; }

.x-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 6px;
}
.x-tile {
  position: relative;
  overflow: hidden;
  background: #D8D8D8;
  border-radius: 4px;
  padding: 0;
  aspect-ratio: 1 / 1;
}
.x-tile img.x-media, .x-tile video.x-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.x-tile:hover img.x-media, .x-tile:hover video.x-media { transform: scale(1.03); }
.x-tile:active { opacity: .85; }
.x-tile.tall { grid-row: span 2; aspect-ratio: auto; }
.x-tile.wide { grid-column: span 2; aspect-ratio: auto; }
.x-tile.audio { grid-column: span 2; aspect-ratio: auto; background: #fff; }
.x-tile.audio img.x-media { object-fit: cover; object-position: top left; }
.x-badge {
  position: absolute;
  left: 10px; bottom: 10px;
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.55));
  pointer-events: none;
}
.x-badge.fbplus { filter: invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.x-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  padding: 4px 0;
  margin-bottom: 14px;
  transition: opacity .12s;
}
.x-back:hover { opacity: .6; }

/* ---- Flicks watch ---- */
.fw-layout { display: flex; gap: 36px; max-width: 1100px; margin: 0 auto; padding: 22px 24px 50px; }
.fw-rail { width: 290px; flex: 0 0 auto; }
.fw-rail h4 { font-size: 14px; color: #777; font-weight: 700; margin: 14px 0 10px; }
.fw-account {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  text-align: left;
  transition: opacity .12s;
}
.fw-account:hover { opacity: .7; }
.fw-account img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.fw-account span { display: flex; flex-direction: column; min-width: 0; }
.fw-account b { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.fw-account b img { width: 13px; height: 13px; border-radius: 0; }
.fw-account em { font-style: normal; font-size: 12.5px; color: #B5B5B5; }
.fw-trends { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-trend {
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .12s;
}
.fw-trend:hover { background: #F5F5F5; }
.fw-main { flex: 1; min-width: 0; max-width: 480px; }
.fw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fw-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fw-id { flex: 1; display: flex; flex-direction: column; }
.fw-id b { font-size: 15px; }
.fw-id em { font-style: normal; font-size: 12.5px; color: #999; }
.fw-pill {
  border: 1.5px solid #FF2A92;
  color: #1F1F1F;
  border-radius: 17px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 700;
  background: #fff;
  transition: background-color .12s, transform .12s;
}
.fw-pill:hover { background: #FFF0F7; }
.fw-pill:active { transform: scale(.95); }
.fw-caption { font-size: 14px; color: #555; margin: 6px 0 12px; }
.fw-player { border-radius: 14px; overflow: hidden; background: #000; }
.fw-player video { width: 100%; display: block; max-height: 78dvh; }

/* ---- Fanbase+ watch ---- */
.fbw-layout { display: flex; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 18px 24px 50px; }
.fbw-main { flex: 1.6; min-width: 0; }
.fbw-player { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.fbw-player > img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.fbw-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 108px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF00D6, #FF453A 60%, #FFA624);
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}
.fbw-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.fbw-play span {
  width: 0; height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.fbw-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.fbw-progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); margin-bottom: 8px; position: relative; }
.fbw-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: #FF2A92; }
.fbw-progress i::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.fbw-controls-row { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.fbw-ctl-right { margin-left: auto; }
.fbw-title { font-size: 20px; font-weight: 800; margin: 16px 0 12px; }
.fbw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fbw-chip {
  border: 1.5px solid #E2E2E2;
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  background: #fff;
  transition: background-color .12s, transform .12s;
}
.fbw-chip:hover { background: #F6F6F6; }
.fbw-chip:active { transform: scale(.95); }
.fbw-chip.love { border-color: #FF2A92; color: #FF2A92; }
.fbw-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #F0F0F0; }
.fbw-author > img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fbw-author-id { flex: 1; display: flex; flex-direction: column; }
.fbw-author-id b { font-size: 15.5px; }
.fbw-author-id em { font-style: normal; font-size: 13px; color: #999; }
.fbw-sub {
  background: #FF2A92;
  color: #fff;
  border-radius: 18px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 700;
  transition: opacity .12s, transform .12s;
}
.fbw-sub:hover { opacity: .85; }
.fbw-sub:active { transform: scale(.95); }
.fbw-stats { margin-top: 12px; font-size: 13.5px; color: #888; }
.fbw-rail { flex: 1; min-width: 320px; max-width: 420px; border-left: 1px solid #F0F0F0; padding-left: 24px; }
.fbw-tabs { display: flex; gap: 24px; border-bottom: 1px solid #ECECEC; margin-bottom: 14px; }
.fbw-tab { font-size: 14.5px; font-weight: 700; color: #B5B5B5; padding: 10px 2px; border-bottom: 2px solid transparent; }
.fbw-tab.is-active { color: #FF2A92; border-bottom-color: #FF2A92; }
.fbw-ccount { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.fbw-comment { display: flex; gap: 10px; padding: 10px 0; }
.fbw-comment.pinned { background: #FAFAFA; border-radius: 10px; padding: 10px; }
.fbw-comment > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fbw-comment b { font-size: 13px; }
.fbw-comment p { font-size: 13.5px; line-height: 1.4; margin: 3px 0; }
.fbw-comment em { font-style: normal; font-size: 12px; color: #A0A0A0; }
.fbw-creator { background: #FF2A92; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 8px; }
.fbw-next-tile { display: flex; gap: 10px; width: 100%; padding: 8px 0; text-align: left; transition: opacity .12s; }
.fbw-next-tile:hover { opacity: .75; }
.fbw-next-tile img { width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.fbw-next-tile b { font-size: 13.5px; line-height: 1.35; }
.fbw-next-tile em { display: block; font-style: normal; font-size: 12px; color: #999; margin-top: 4px; }

/* ---- Audio room ---- */
.ar-layout { display: flex; max-width: 1280px; margin: 0 auto; min-height: calc(100dvh - var(--bar-h) - var(--nav-h)); }
.ar-main { flex: 1.7; min-width: 0; padding: 18px 28px 30px; display: flex; flex-direction: column; }
.ar-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-live { background: #FF2C3F; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; border-radius: 12px; padding: 4px 10px; }
.ar-cat { font-size: 12.5px; font-weight: 700; color: #9A9A9A; letter-spacing: .4px; }
.ar-counts { margin-left: auto; font-size: 13.5px; font-weight: 700; color: #444; }
.ar-title { font-size: 24px; font-weight: 800; line-height: 1.25; margin-top: 12px; max-width: 640px; }
.ar-tags { color: #A0A0A0; font-size: 14px; margin-top: 6px; }
.ar-quote { background: #6E6E6E; color: #fff; font-size: 14px; line-height: 1.45; border-radius: 10px; padding: 13px 16px; margin: 16px 0 6px; max-width: 720px; }
.ar-speakers { display: flex; align-items: flex-end; justify-content: center; gap: 40px; padding: 34px 0 26px; border-bottom: 1px solid #F0F0F0; }
.ar-speaker { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .12s; }
.ar-speaker:active { transform: scale(.95); }
.ar-ring { display: block; padding: 4px; border-radius: 50%; border: 3px solid #2196F3; }
.ar-speaker img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; display: block; }
.ar-speaker.big img { width: 110px; height: 110px; }
.ar-speaker b { font-size: 14.5px; }
.ar-heart {
  position: absolute;
  right: -4px; bottom: 36px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
}
.ar-others-title { font-size: 14px; color: #8A8A8A; font-weight: 700; margin: 18px 0 14px; }
.ar-others { display: flex; flex-wrap: wrap; gap: 26px; }
.ar-other { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: opacity .12s; }
.ar-other:hover { opacity: .75; }
.ar-other img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.ar-other b { font-size: 12.5px; font-weight: 600; color: #444; }
.ar-bar { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 26px; }
.ar-leave { background: #FFE3E8; color: #FF2C3F; font-weight: 800; font-size: 14px; border-radius: 20px; padding: 10px 20px; transition: transform .12s; }
.ar-leave:active { transform: scale(.95); }
.ar-ctl { border: 1.5px solid #E5E5E5; border-radius: 20px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; transition: background-color .12s; }
.ar-ctl:hover { background: #F6F6F6; }
.ar-chat { flex: 1; min-width: 330px; max-width: 430px; border-left: 1px solid #ECECEC; display: flex; flex-direction: column; }
.ar-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #F2F2F2; }
.ar-room-ico { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #21B5FF, #0D00FF); display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.ar-chat-head b { font-size: 14.5px; display: block; }
.ar-chat-head em { font-style: normal; font-size: 12.5px; color: #999; }
.ar-pinned { background: #F6F6F8; border-radius: 12px; margin: 14px 16px 4px; padding: 12px 14px; }
.ar-pinned b { color: #C13BD8; font-size: 11.5px; letter-spacing: .5px; }
.ar-pinned p { font-size: 13.5px; line-height: 1.4; margin-top: 5px; }
.ar-msgs { flex: 1; overflow-y: auto; padding: 12px 16px; }
.ar-msg { display: flex; gap: 10px; margin-bottom: 14px; }
.ar-msg > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.ar-msg b { font-size: 13px; }
.ar-msg p { background: #F4F4F6; border-radius: 12px; padding: 9px 12px; font-size: 13.5px; line-height: 1.4; margin: 5px 0 3px; }
.ar-msg em { font-style: normal; font-size: 11.5px; color: #B0B0B0; }
.ar-love-divider { text-align: center; color: #FF2C6A; font-size: 12.5px; font-weight: 700; margin: 10px 0 14px; }
.ar-composer { display: flex; align-items: center; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid #F2F2F2; }
.ar-composer input { flex: 1; height: 42px; border: 0; border-radius: 21px; background: #F1F1F3; padding: 0 16px; font: inherit; font-size: 14px; outline: none; }
.ar-composer button { width: 38px; height: 38px; border-radius: 50%; background: #5A52FF; color: #fff; font-size: 15px; transition: opacity .12s; }
.ar-composer button:hover { opacity: .85; }

@media (max-width: 899px) {
  .x-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .fw-rail, .fbw-rail, .ar-chat { display: none; }
  .fw-layout, .fbw-layout { padding: 14px; }
}

/* ============ Notifications drawer (right side) ============ */
.notif-panel {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  border-left: 1px solid #ECECEC;
  box-shadow: -12px 0 32px rgba(0,0,0,.07);
  z-index: 52;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), visibility .25s;
}
.notif-panel.open { transform: translateX(0); visibility: visible; }

.notif-head {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--divider);
  padding: 6px 10px 0 18px;
}
.notif-tabs { display: flex; gap: 26px; flex: 1; }
.notif-tab {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.notif-tab.is-active { border-bottom-color: var(--ink); }
.notif-tab-revenue { color: #C7C7C7; }
.notif-close { font-size: 26px; line-height: 1; padding: 6px 10px; color: var(--ink); transition: opacity .12s; }
.notif-close:hover { opacity: .6; }

.notif-list { flex: 1; overflow-y: auto; padding: 14px 0 24px; }
.notif-section {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 18px 10px;
}
.notif-new-pill {
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: #FF2C6A;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.notif-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  text-align: left;
  transition: background-color .12s ease;
}
.notif-row:hover { background: #FAFAFA; }
.notif-row:active { background: #F1F1F1; }
.notif-row.big-love { background: #FCE9F1; }
.notif-row.big-love:hover { background: #FADDE9; }
.notif-row.trivia {
  background: linear-gradient(90deg, #FFC93C 0%, #FF9BCE 100%);
  margin: 2px 0 6px;
}
.notif-avatar-wrap { position: relative; flex: 0 0 auto; }
.notif-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.notif-badge-heart {
  position: absolute;
  right: -3px; bottom: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF00D6, #FF453A 60%, #FFA624);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
}
.notif-q {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #FFC93C;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}
.notif-q.small { width: 42px; height: 42px; border-radius: 10px; font-size: 23px; }
.notif-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: #191919; }
.notif-text b { font-weight: 700; }
.notif-text .n-time { color: #979797; }
.notif-text .n-loves { color: #FF2C6A; font-weight: 800; }
.notif-text .n-blue { color: #21B5FF; font-weight: 700; }
.notif-text .n-orange { color: #FF7A30; font-weight: 700; }
.notif-text .n-trivia { color: #FF2C92; font-weight: 800; }
.notif-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }

@media (min-width: 900px) {
  .notif-panel { top: var(--webnav-h); }
}

/* toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 22px;
  z-index: 90;
  white-space: nowrap;
  animation: fadeIn .2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

/* ================================================================
   DESKTOP — website layout, like fanbase.app web
   ================================================================ */
@media (min-width: 900px) {
  body { background: #fff; }

  .webnav { display: block; }
  .sidebar { display: flex; }
  .topbar, .bottomnav { display: none; }

  .app {
    max-width: none;
    padding-top: var(--webnav-h);
    padding-bottom: 0;
    margin-left: var(--sidebar-w);
  }

  /* full-width banner */
  .wallpaper { aspect-ratio: auto; height: 260px; }

  .content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
  }

  /* header row: avatar | identity | actions */
  .profile-head { padding: 28px 0 0; }
  .profile-head-row { gap: 28px; align-items: flex-start; }

  .avatar-wrap { width: 140px; height: 140px; }
  .avatar { width: 126px; height: 126px; }

  .identity { padding-top: 4px; }
  .display-name { font-size: 24px; }
  .verified { width: 20px; height: 20px; }
  .more-btn { margin-left: 6px; }

  .stats-mobile, .actions-mobile { display: none; }
  .stats-desktop {
    display: flex;
    gap: 14px;
    margin-top: 16px;
  }
  .stats-desktop .stat { flex-direction: row; gap: 5px; align-items: baseline; }
  .stats-desktop .stat-num { font-size: 15px; }
  .stats-desktop .stat-label { font-size: 15px; }

  .actions-desktop { display: flex; flex: 0 0 auto; padding-top: 14px; }
  .actions-desktop .pill-btn { flex: 0 0 auto; padding: 0 28px; }

  /* tabs: left-aligned with labels, like the live site */
  .tabs { margin-top: 26px; justify-content: flex-start; }
  .tab { flex: 0 0 auto; padding: 0 22px; height: 52px; }
  .tab-label { display: inline; }
  .tab-ico { width: 20px; height: 20px; }
  /* JS positions the indicator under the active tab on desktop */
  .tab-indicator { width: 0; transition: transform .25s cubic-bezier(.4,0,.2,1), width .25s; }

  /* uniform square grid with rounded cards */
  .tab-panel.is-active { padding: 24px 0 60px; }
  .post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .post-cell {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }
  .cell-badge { left: 10px; bottom: 10px; }
  .cell-badge.play { display: none; }
  .cell-badge.flick { display: block; }

  /* post detail: two-pane dialog */
  .post-detail {
    flex-direction: row;
    width: min(1020px, calc(100% - 96px));
    height: min(640px, 90dvh);
    max-height: none;
    border-radius: 14px;
    overflow: hidden;
  }
  .pd-media {
    flex: 1.4;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 0;
  }
  .pd-media img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .pd-media video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .pd-carousel, .pd-track { height: 100%; }
  .pd-track img { height: 100%; max-height: none; object-fit: contain; }
  .pd-side {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 340px;
    overflow-y: auto;
  }
  .pd-side > * { order: 0; }
  .post-detail-head { border-bottom: 1px solid var(--divider); }
  .back-btn { display: none; }
  .pd-caption { padding-top: 14px; }
  .pd-comments-hint { display: none; }
  .pd-comments { display: flex; flex-direction: column; gap: 18px; flex: 1; overflow-y: auto; padding: 14px 16px; }
  .pd-addcomment { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--divider); padding: 12px 16px; }
  .pd-actions { border-top: 1px solid var(--divider); padding-top: 14px; }
  .pd-viewcomments { padding-bottom: 4px; }
  .overlay-close { display: block; }

  /* sheets become centered dialogs */
  #sheetOverlay { align-items: center; }
  .sheet { border-radius: 18px; }
  .sheet::before { display: none; }

  .toast { bottom: 36px; }

  /* ---- Messages page ---- */
  .dm-layout { height: calc(100dvh - var(--webnav-h)); }
  .dm-inbox { width: 380px; }

  /* sidebar collapses to icons-only while Messages is open */
  body.dm-mode .sidebar { width: 76px; }
  body.dm-mode .sb-item { justify-content: center; padding: 0; gap: 0; }
  body.dm-mode .sb-label { display: none; }
  body.dm-mode .sidebar-live { display: none; }
  body.dm-mode .sidebar-user { justify-content: center; padding: 12px 8px 14px; }
  body.dm-mode .sb-user-id { display: none; }
  body.dm-mode .sidebar-user .icon-btn { display: none; }
  body.dm-mode .app { margin-left: 76px; }
  .sidebar, .app, .sb-item { transition: width .22s ease, margin-left .22s ease; }
}

/* mobile: thread takes over the screen */
@media (max-width: 899px) {
  .dm-inbox { border-right: 0; }
  .dm-thread-area {
    position: fixed;
    inset: var(--bar-h) 0 var(--nav-h);
    background: #fff;
    display: none;
    z-index: 30;
  }
  .dm-thread-area.mobile-open { display: flex; }
  .dm-back { display: inline-block; }
  .dm-empty { display: none; }
}

/* ============================================================
   FANBASE+ TAB — video grid, supporters & milestones
   ============================================================ */
.fbtv { padding: 4px 0 0; display: flex; flex-direction: column; }
.fbtv-main { order: 1; min-width: 0; }

/* centered upload hero below the tabs */
.fbtv-upload-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 14px 30px;
}
.fbtv-upload-icon { width: 58px; height: auto; }
.fbtv-upload-text { font-size: 15px; font-weight: 600; color: var(--grey-label); }
.fbtv-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 34px;
  border-radius: 20px;
  border: 2px solid #FF1A58;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .14s ease, transform .12s ease;
}
.fbtv-upload:hover { background: #FFF0F7; }
.fbtv-upload:active { transform: scale(.96); }

.fbtv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 18px;
  padding: 0 14px;
}

/* video card */
.fbtv-card { text-align: left; width: 100%; padding: 0; }
.fbtv-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}
.fbtv-thumb img, .fbtv-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.fbtv-thumb video { position: absolute; inset: 0; }
.fbtv-card:hover .fbtv-thumb img { transform: scale(1.04); }
.fbtv-thumb img { transition: transform .3s ease; }
.fbtv-exclusive {
  position: absolute;
  top: 0; right: 14px;
  width: 30px; height: 40px;
  background: var(--grad-love);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  display: grid;
  place-items: start center;
  padding-top: 6px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.fbtv-exclusive svg { width: 15px; height: 15px; }
.fbtv-dur {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 2;
}
.fbtv-card-foot { display: flex; gap: 12px; margin-top: 11px; }
.fbtv-card-foot > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fbtv-card-info { min-width: 0; }
.fbtv-card-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.fbtv-card-user { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--grey-label); margin-top: 4px; }
.fbtv-card-user img { width: 12px; height: 12px; }
.fbtv-card-meta { font-size: 13px; color: var(--grey-label); margin-top: 1px; }

/* fbtv right rail */
.fbtv-rail { order: 2; display: flex; flex-direction: column; gap: 16px; padding: 0 14px; margin-top: 4px; }
.fbtv-panel { border: 1px solid #ECECEC; border-radius: 16px; padding: 16px; }
.fbtv-panel-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.fbtv-supporters { display: flex; flex-direction: column; gap: 4px; }
.fbtv-supporter {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 7px 6px;
  border-radius: 10px;
  text-align: left;
  transition: background-color .12s ease, transform .1s ease;
}
.fbtv-supporter:hover { background: #F7F7F8; }
.fbtv-supporter:active { transform: scale(.98); }
.fbtv-supporter-rank { width: 16px; font-size: 13px; font-weight: 800; color: var(--grey-label); flex: 0 0 auto; }
.fbtv-supporter-av { position: relative; flex: 0 0 auto; }
.fbtv-supporter-av img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fbtv-supporter-av.gold::after,
.fbtv-supporter-av.silver::after,
.fbtv-supporter-av.bronze::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid;
}
.fbtv-supporter-av.gold::after { border-color: #FFC93C; }
.fbtv-supporter-av.silver::after { border-color: #C9CDD2; }
.fbtv-supporter-av.bronze::after { border-color: #E08A4B; }
.fbtv-supporter-info { min-width: 0; flex: 1; }
.fbtv-supporter-info b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbtv-supporter-loves { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--pink); font-weight: 700; margin-top: 1px; }

/* milestones */
.fbtv-milestones { display: flex; flex-direction: column; gap: 14px; }
.fbtv-milestone {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 2px;
  transition: transform .1s ease;
}
.fbtv-milestone:hover .fbtv-ms-label { color: var(--pink); }
.fbtv-milestone:active { transform: scale(.98); }
.fbtv-ms-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.fbtv-ms-label { font-size: 14px; font-weight: 800; transition: color .12s ease; }
.fbtv-ms-pct { font-size: 12.5px; font-weight: 700; color: var(--grey-label); }
.fbtv-ms-track { height: 10px; border-radius: 5px; background: #ECECEE; overflow: hidden; }
.fbtv-ms-fill { height: 100%; border-radius: 5px; background: var(--grad-love); width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }
.fbtv-ms-sub { font-size: 12px; color: var(--grey-label); margin-top: 6px; }

/* supporter / milestone dialog bodies */
.sup-modal { text-align: center; padding: 6px 24px 8px; }
.sup-modal-av { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 4px auto 12px; box-shadow: 0 6px 22px rgba(0,0,0,.16); }
.sup-modal-name { font-size: 19px; font-weight: 800; }
.sup-modal-handle { font-size: 13.5px; color: var(--grey-label); margin-top: 2px; }
.sup-modal-loves {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 6px;
  font-size: 26px; font-weight: 900;
  background: var(--grad-love);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sup-modal-loves img { width: 26px; height: 26px; -webkit-text-fill-color: initial; }
.sup-modal-cap { font-size: 13.5px; color: var(--grey-label); }
.sup-modal-stats { display: flex; justify-content: center; gap: 28px; margin: 18px 0 4px; }
.sup-modal-stat b { display: block; font-size: 17px; font-weight: 800; }
.sup-modal-stat span { font-size: 12px; color: var(--grey-label); }

.ms-modal { text-align: center; padding: 8px 26px 10px; }
.ms-modal-ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad-love);
  display: grid; place-items: center;
  margin: 2px auto 14px;
}
.ms-modal-ring span { font-size: 34px; }
.ms-modal h4 { font-size: 20px; font-weight: 900; }
.ms-modal-big {
  font-size: 38px; font-weight: 900; margin: 14px 0 2px;
  background: var(--grad-love);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ms-modal-need { font-size: 14px; color: var(--ink); font-weight: 600; }
.ms-modal-need b { background: var(--grad-love); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.ms-modal-track { height: 16px; border-radius: 8px; background: #ECECEE; overflow: hidden; margin: 20px 0 8px; position: relative; }
.ms-modal-fill {
  height: 100%; border-radius: 8px; width: 0;
  background: var(--grad-love);
  background-size: 200% 100%;
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
  animation: msShimmer 2s linear infinite;
}
@keyframes msShimmer { to { background-position: 200% 0; } }
.ms-modal-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-label); font-weight: 700; }
.ms-modal-current { font-size: 13.5px; color: var(--grey-label); margin-top: 14px; }
.ms-modal-current b { color: var(--ink); }

/* ============================================================
   FANBASE+ WATCH PAGE — real video player + recommendations
   ============================================================ */
.fbw-player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: none;
}
.fbw-player.has-video > video { display: block; }
.fbw-player.has-video > #fbwPoster { display: none; }
.fbw-player.is-playing > .fbw-play { display: none; }
.fbw-player .fbw-ctl {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 2px 4px;
  transition: opacity .12s ease;
}
.fbw-player .fbw-ctl:hover { opacity: .7; }
.fbw-ctl-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.fbw-progress { cursor: pointer; }
.fbw-stats { margin: 10px 0 14px; }
.fbw-actions .fbw-chip.loved { background: var(--pink); border-color: var(--pink); color: #fff; animation: pop .25s ease; }
.fbw-comments { margin-top: 22px; padding-top: 18px; border-top: 1px solid #F0F0F0; }
.fbw-comments .form-row input {
  width: 100%; font: inherit; font-size: 14px;
  padding: 10px 14px; border: 1.5px solid var(--divider); border-radius: 22px; outline: none;
}
.fbw-comments .form-row input:focus { border-color: var(--pink); }

/* recommendations rail */
.fbw-rail { display: flex; flex-direction: column; gap: 22px; }
.fbw-rec-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.fbw-rec-section + .fbw-rec-section { padding-top: 18px; border-top: 1px solid #F2F2F2; }
.fbw-rec-tile { display: flex; gap: 10px; width: 100%; padding: 7px 0; text-align: left; transition: opacity .12s ease; }
.fbw-rec-tile:hover { opacity: .8; }
.fbw-rec-thumb { position: relative; width: 150px; flex: 0 0 auto; }
.fbw-rec-thumb img, .fbw-rec-thumb video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; background:#111; }
.fbw-rec-thumb .fbw-rec-dur {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 5px; border-radius: 5px;
}
.fbw-rec-info { min-width: 0; }
.fbw-rec-info b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.3; }
.fbw-rec-info em { display: block; font-style: normal; font-size: 12px; color: var(--grey-label); margin-top: 4px; }

/* ---- desktop: video grid (left) + sticky supporters/milestones (upper right) ---- */
@media (min-width: 900px) {
  .fbtv { flex-direction: row; gap: 30px; align-items: flex-start; padding-bottom: 40px; }
  .fbtv-main { flex: 1; }
  .fbtv-grid { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .fbtv-rail {
    width: 300px;
    flex: 0 0 auto;
    padding: 0;
    margin-top: 0;
    position: sticky;
    top: calc(var(--webnav-h) + 18px);
    align-self: flex-start;
    max-height: calc(100vh - var(--webnav-h) - 36px);
    overflow-y: auto;
  }
}

/* ---- wide desktop: widen the Fanbase+ panel so the grid can show 4 columns ---- */
@media (min-width: 1100px) {
  #panel-fbtv {
    width: calc(100vw - var(--sidebar-w) - 48px);
    max-width: 1500px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .fbtv-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- mobile: single column, supporters/milestones below ---- */
@media (max-width: 899px) {
  .fbtv-grid { gap: 18px; padding: 0 12px; }
  .fbtv-rail { padding: 0 12px; margin-top: 12px; }
}

/* ============================================================
   CLIP TO FLICKS — 16:9 long-form → 9:16 Flick
   ============================================================ */
.clip2flicks {
  margin: 14px 14px 50px;
  border: 1px solid #ECECEC;
  border-radius: 20px;
  padding: 24px 24px 28px;
  background: linear-gradient(180deg, #FFF7FB 0%, #fff 160px);
}
.c2f-head { display: flex; gap: 14px; align-items: flex-start; }
.c2f-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad-love);
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(255, 40, 120, .3);
}
.c2f-icon svg { width: 26px; height: 26px; }
.c2f-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c2f-title-row h3 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.c2f-tag { font-size: 12px; font-weight: 800; color: var(--pink); background: #FFE6F1; padding: 4px 10px; border-radius: 12px; }
.c2f-sub { font-size: 15px; color: #6B6B6B; margin-top: 5px; }
.c2f-sub b { color: var(--ink); font-weight: 800; }

/* format toggle */
.c2f-formats { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 4px; }
.c2f-fmt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #888; border: 1.5px solid #E2E2E2; border-radius: 22px; padding: 9px 18px; background: #fff; }
.c2f-fmt.active { color: var(--pink); border-color: var(--pink); background: #FFF0F7; }
.c2f-fmt-ico { font-size: 15px; }
.c2f-arrow { color: #C9C9C9; font-size: 18px; font-weight: 700; }

/* stepper */
.c2f-steps { display: flex; align-items: center; justify-content: center; margin: 26px auto 26px; list-style: none; }
.c2f-step { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: #B5B5B5; }
.c2f-step:not(:last-child)::after { content: ""; width: 44px; height: 2px; background: #E6E6E6; margin: 0 16px; transition: background .2s ease; }
.c2f-step-num { width: 26px; height: 26px; border-radius: 50%; background: #E0E0E0; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; transition: background .2s ease; }
.c2f-step.is-active { color: var(--ink); }
.c2f-step.is-active .c2f-step-num { background: var(--grad-love); }
.c2f-step.done { color: var(--ink); }
.c2f-step.done .c2f-step-num { background: #FF2C6A; }
.c2f-step.done:not(:last-child)::after { background: #FFC3D8; }
.c2f-step.clickable { cursor: pointer; }
.c2f-step.clickable:hover .c2f-step-label { color: var(--pink); }

/* panels */
.c2f-panel { display: none; }
.c2f-panel.is-active { display: block; animation: fadeIn .2s ease; }
.c2f-panel-title { font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #9A9A9A; margin-bottom: 14px; }

/* step 1 — video list */
.c2f-vidlist { display: flex; flex-direction: column; gap: 10px; }
.c2f-vidrow { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 1.5px solid #ECECEC; border-radius: 14px; padding: 10px; background: #fff; transition: border-color .14s, background .14s, transform .1s; }
.c2f-vidrow:hover { border-color: var(--pink); background: #FFFBFD; }
.c2f-vidrow:active { transform: scale(.995); }
.c2f-vidrow-thumb { position: relative; width: 150px; aspect-ratio: 16/9; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #111; }
.c2f-vidrow-thumb img, .c2f-vidrow-thumb video { width: 100%; height: 100%; object-fit: cover; }
.c2f-vidrow-dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 5px; }
.c2f-vidrow-info { flex: 1; min-width: 0; }
.c2f-vidrow-meta { font-size: 13px; font-weight: 700; color: var(--pink); }
.c2f-vidrow-meta span { color: #9A9A9A; font-weight: 600; }
.c2f-vidrow-title { font-size: 16px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.c2f-vidrow-chev { color: #C9C9C9; font-size: 24px; line-height: 1; flex: 0 0 auto; padding-right: 6px; }

/* step 2 — trim editor */
.c2f-editor { max-width: 760px; margin: 0 auto; }
.c2f-editor-video { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; margin-bottom: 18px; }
.c2f-editor-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.c2f-trim-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.c2f-trim-label { font-size: 13px; color: #888; font-weight: 600; }
.c2f-trim-info { font-size: 13.5px; font-weight: 700; }
.c2f-trim-info b { color: var(--pink); }
.c2f-trim-track { position: relative; height: 60px; border-radius: 10px; overflow: hidden; background-color: #1a1a1a; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px); touch-action: none; user-select: none; }
.c2f-trim-dim { position: absolute; top: 0; bottom: 0; background: rgba(0,0,0,.55); pointer-events: none; }
.c2f-trim-dim.left { left: 0; }
.c2f-trim-dim.right { right: 0; }
.c2f-trim-range { position: absolute; top: 0; bottom: 0; border: 2px solid var(--pink); border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,40,120,.3); }
.c2f-trim-handle { position: absolute; top: -2px; bottom: -2px; width: 16px; background: var(--pink); cursor: ew-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.c2f-trim-handle.start { left: -9px; border-radius: 8px 0 0 8px; }
.c2f-trim-handle.end { right: -9px; border-radius: 0 8px 8px 0; }
.c2f-trim-handle::after { content: ""; width: 3px; height: 20px; border-left: 2px solid rgba(255,255,255,.85); border-right: 2px solid rgba(255,255,255,.85); }
.c2f-trim-playhead { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 5px rgba(0,0,0,.8); }
.c2f-trim-controls { margin-top: 14px; }
.c2f-play { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); border: 1.5px solid #DADADA; border-radius: 18px; padding: 8px 16px; transition: background .12s; }
.c2f-play:hover { background: #F5F5F5; }

/* shared action buttons */
.c2f-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.c2f-actions.center { justify-content: center; }
.c2f-btn { background: var(--grad-love); color: #fff; border-radius: 22px; padding: 11px 26px; font-size: 14.5px; font-weight: 800; transition: opacity .12s, transform .12s; }
.c2f-btn:hover { opacity: .9; }
.c2f-btn:active { transform: scale(.96); }
.c2f-btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #DADADA; }
.c2f-btn.ghost:hover { background: #F5F5F5; opacity: 1; }

/* step 3 — 9:16 preview */
.c2f-preview { display: flex; gap: 34px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.c2f-phone { position: relative; width: 248px; aspect-ratio: 9/16; border-radius: 30px; overflow: hidden; background: #000; border: 7px solid #0c0c0c; box-shadow: 0 20px 48px rgba(0,0,0,.28); }
.c2f-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2f-phone-ui { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(transparent 58%, rgba(0,0,0,.55)); }
.c2f-phone-cap { color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.c2f-preview-side { width: 320px; max-width: 100%; }
.c2f-preview-h { font-size: 20px; font-weight: 800; }
.c2f-preview-meta { font-size: 14px; color: #777; margin: 6px 0 16px; }
.c2f-field { display: block; }
.c2f-field span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #9A9A9A; margin-bottom: 6px; }
.c2f-field input { width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border: 1.5px solid var(--divider); border-radius: 12px; outline: none; }
.c2f-field input:focus { border-color: var(--pink); }

/* step 4 — publish */
.c2f-publish { text-align: center; max-width: 460px; margin: 0 auto; padding: 10px 0; }
.c2f-publish-ico { font-size: 42px; }
.c2f-publish h4 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.c2f-publish p { font-size: 15px; color: #666; margin: 8px 0 22px; }
.c2f-publish p b { color: var(--ink); }
.c2f-restart { display: block; margin: 16px auto 0; font-size: 13.5px; font-weight: 700; color: #9A9A9A; }
.c2f-restart:hover { color: var(--pink); }

@media (max-width: 899px) {
  .clip2flicks { margin: 6px 12px 40px; padding: 18px 16px 22px; }
  .c2f-step-label { display: none; }
  .c2f-step:not(:last-child)::after { width: 22px; margin: 0 8px; }
  .c2f-vidrow-thumb { width: 116px; }
  .c2f-title-row h3 { font-size: 19px; }
  .c2f-actions { justify-content: stretch; }
  .c2f-btn { flex: 1; }
}

/* ============================================================
   ALL POSTS — Instagram-style grid: bigger tiles, tight gaps
   ============================================================ */
@media (min-width: 900px) {
  #panel-posts .post-grid { gap: 3px; }
  #panel-posts .post-cell { border-radius: 0; aspect-ratio: 3 / 4; }
  #panel-posts .cell-badge { left: 8px; bottom: 8px; }
}
/* widen the All Posts panel so the tiles get noticeably bigger */
@media (min-width: 1100px) {
  #panel-posts {
    width: calc(100vw - var(--sidebar-w) - 48px);
    max-width: 1500px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================
   FLICKS — vertical reels viewer
   ============================================================ */
#screen-flicks { background: #fff; }
.reels {
  height: calc(100dvh - var(--bar-h) - var(--nav-h));
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.reels::-webkit-scrollbar { display: none; }
.reel {
  height: calc(100dvh - var(--bar-h) - var(--nav-h));
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.reel-stage {
  position: relative;
  height: min(calc(100% - 20px), 86vh);
  aspect-ratio: 9 / 16;
}
.reel-media { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #111; }
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; cursor: pointer; }

/* play overlay (paused) */
.reel-play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.32);
  border-radius: 50%;
  opacity: 0; transition: opacity .15s ease;
  pointer-events: none;
}
.reel-stage.paused .reel-play { opacity: 1; }
.reel-play::after {
  content: ""; width: 0; height: 0;
  border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  margin-left: 6px;
}

/* mute toggle (bottom-right of video) */
.reel-mute {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; z-index: 4;
  transition: transform .12s ease, background .12s ease;
}
.reel-mute:hover { background: rgba(0,0,0,.75); }
.reel-mute:active { transform: scale(.9); }
.reel-mute svg { width: 19px; height: 19px; }

/* info overlay (bottom-left) */
/* creator info — overlaid on the bottom-left of the video */
.reel-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 46px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
}
.reel-info > * { max-width: 76%; }
.reel-head { display: flex; align-items: center; gap: 9px; }
.reel-info-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255,255,255,.7); flex: 0 0 auto; }
.reel-name { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.reel-name img { width: 14px; height: 14px; }
.reel-follow { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); transition: opacity .12s ease; }
.reel-follow::before { content: "•"; margin-right: 8px; font-weight: 400; opacity: .9; }
.reel-follow:hover { opacity: .7; }
.reel-follow.following { opacity: .8; }
.reel-caption { font-size: 14px; margin-top: 10px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* action rail (to the right of the video, dark icons on the white page) */
.reel-actions {
  position: absolute; right: -60px; bottom: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.reel-act { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #1f1f1f; font-size: 12px; font-weight: 600; }
.reel-act svg { width: 25px; height: 25px; }
.reel-act:active { transform: scale(.88); }
/* Like: outlined SVG by default, blue SVG when active */
.reel-act.like img { width: 25px; height: 25px; object-fit: contain; }
.reel-act.like .like-active { display: none; }
.reel-act.like.liked .like-default { display: none; }
.reel-act.like.liked .like-active { display: inline-block; }
.reel-act.love.loved svg { fill: #FF2C55; stroke: #FF2C55; }

/* up/down nav */
.reels-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 6; }
.reels-nav button { width: 44px; height: 44px; border-radius: 50%; background: #262626; color: #fff; font-size: 20px; display: grid; place-items: center; transition: background .12s, transform .12s; }
.reels-nav button:hover { background: #3a3a3a; }
.reels-nav button:active { transform: scale(.9); }

/* collapse the sidebar to icons while on Flicks (same as Messages) */
@media (min-width: 900px) {
  .reels, .reel { height: calc(100dvh - var(--webnav-h)); }
  body.flicks-mode .sidebar { width: 76px; }
  body.flicks-mode .sb-item { justify-content: center; padding: 0; gap: 0; }
  body.flicks-mode .sb-label { display: none; }
  body.flicks-mode .sidebar-live { display: none; }
  body.flicks-mode .sidebar-user { justify-content: center; padding: 12px 8px 14px; }
  body.flicks-mode .sb-user-id { display: none; }
  body.flicks-mode .sidebar-user .icon-btn { display: none; }
  body.flicks-mode .app { margin-left: 76px; }

  /* video stays centered; creator info sits in the bottom-left margin (left of the video) */
  .reel { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; align-items: center; }
  .reel-stage { grid-column: 2; }
  .reel-info {
    position: static; grid-column: 1;
    align-self: end; justify-self: stretch;
    background: none; color: #1f1f1f; text-align: left;
    padding: 0 24px calc((100dvh - var(--webnav-h) - 86vh) / 2 + 6px);
  }
  .reel-info > * { max-width: 100%; }
  .reel-info-avatar { border-color: #e2e2e2; }
  .reel-name { color: #1f1f1f; text-shadow: none; }
  .reel-follow { color: #3897F0; text-shadow: none; }
  .reel-follow::before { color: #9a9a9a; }
  .reel-caption { color: #333; text-shadow: none; }
}

/* ============ floating Messages widget ============ */
.msgbox { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: none; }
body.flicks-mode .msgbox, body.home-mode .msgbox { display: block; }
.msgbox-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 26px;
  padding: 10px 16px; box-shadow: 0 6px 22px rgba(0,0,0,.2);
  font-size: 14px; font-weight: 700; color: #1f1f1f;
  transition: transform .12s ease;
}
.msgbox-pill:hover { transform: translateY(-1px); }
.msgbox-pill svg { width: 22px; height: 22px; }
.msgbox-avatars { display: inline-flex; padding-left: 6px; }
.msgbox-avatars img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; object-fit: cover; }
.msgbox-panel { position: absolute; right: 0; bottom: 58px; width: 340px; background: #fff; border: 1px solid #e6e6e6; border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,.24); overflow: hidden; }
.msgbox-panel[hidden] { display: none; }
.msgbox-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.msgbox-head b { flex: 1; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.msgbox-count { background: #FF2C6A; color: #fff; font-size: 12px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
.msgbox-expand, .msgbox-close { font-size: 20px; line-height: 1; color: #555; padding: 2px 6px; transition: opacity .12s; }
.msgbox-expand:hover, .msgbox-close:hover { opacity: .6; }
.msgbox-list { max-height: 360px; overflow-y: auto; }
.msgbox-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; text-align: left; transition: background .12s; }
.msgbox-row:hover { background: #fafafa; }
.msgbox-row > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.msgbox-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msgbox-row-info b { font-size: 14px; font-weight: 700; }
.msgbox-row-info em { font-style: normal; font-size: 12.5px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgbox-dot { width: 9px; height: 9px; border-radius: 50%; background: #3897F0; flex: 0 0 auto; }

@media (max-width: 899px) {
  .reels-nav { display: none; }
  .msgbox { display: none !important; }
  .reel-actions { right: 8px; bottom: 92px; }
  .reel-act { color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
  .reel-act.like .like-default { filter: invert(1); }
  .reel-stage { height: 100%; aspect-ratio: auto; width: 100%; }
  .reel-media { border-radius: 0; }
}

/* hover overlay: loves + comments (desktop hover only) */
.cell-stats {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.cell-stat { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; font-weight: 800; }
.cell-stat svg { width: 20px; height: 20px; fill: #fff; flex: 0 0 auto; }
@media (hover: hover) {
  .post-cell:hover .cell-stats { opacity: 1; }
}

/* ============================================================
   AUDIO — live rooms hallway
   ============================================================ */
#screen-dms { background: #fff; }
.audio { max-width: 1260px; margin: 0 auto; padding: 22px 28px 70px; }

.aud-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.aud-sec-head.col { flex-direction: column; align-items: flex-start; gap: 2px; }
.aud-sec-head h2 { font-size: 17px; font-weight: 800; letter-spacing: .4px; }
.aud-sec-head p { font-size: 13.5px; color: #8a8a8a; }
.aud-viewall { color: #7B00FF; font-size: 14px; font-weight: 700; transition: opacity .12s; }
.aud-viewall:hover { opacity: .65; }

.aud-rail { position: relative; }
.aud-next {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); display: grid; place-items: center;
  font-size: 18px; color: #333; z-index: 4; transition: transform .12s;
}
.aud-next:hover { transform: translateY(-50%) scale(1.08); }

/* featured */
.aud-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-feat-card {
  position: relative; height: 270px; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff; text-align: left; isolation: isolate;
}
.aud-feat-card:active { transform: scale(.995); }
.aud-feat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.aud-feat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 52%, rgba(0,0,0,.12) 100%); }
.aud-badge { position: absolute; top: 16px; left: 16px; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 5px 11px; border-radius: 13px; }
.aud-badge.featured { background: #7B00FF; color: #fff; }
.aud-badge.live { background: #FF2C3F; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.aud-badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.aud-feat-host { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.aud-feat-host img { width: 15px; height: 15px; }
.aud-feat-title { font-size: 21px; font-weight: 800; line-height: 1.18; max-width: 88%; }
.aud-feat-desc { font-size: 12.5px; opacity: .9; margin-top: 8px; max-width: 78%; line-height: 1.35; }
.aud-feat-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; }
.aud-listeners { display: flex; align-items: center; gap: 9px; }
.aud-avatars { display: flex; flex: 0 0 auto; }
.aud-avatars img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.65); margin-left: -8px; object-fit: cover; }
.aud-avatars img:first-child { margin-left: 0; }
.aud-listen-txt b { font-size: 13px; font-weight: 700; display: block; }
.aud-listen-txt em { font-style: normal; font-size: 11.5px; opacity: .82; }
.aud-join { background: #7B00FF; color: #fff; border-radius: 20px; padding: 9px 18px; font-size: 13.5px; font-weight: 700; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; transition: opacity .12s, transform .12s; }
.aud-join:hover { opacity: .9; } .aud-join:active { transform: scale(.95); }

/* body: main + for-you */
.aud-body { display: flex; gap: 28px; align-items: flex-start; }
.aud-main { flex: 1; min-width: 0; }

/* trending — dark room cards (rooms have no cover image) */
.aud-trending { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud-trend-card {
  position: relative; text-align: left; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, #3b1e5e 0%, #1b1030 100%);
  color: #fff; transition: transform .12s, box-shadow .12s;
}
.aud-trend-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60,20,110,.35); }

/* per-badge background gradient (dimmed so text stays readable) */
.aud-trend-card.public {
  background: linear-gradient(180deg, rgba(8,12,40,.30) 0%, rgba(6,8,28,.60) 100%), linear-gradient(54deg, #00BFFF 0%, #1F1FFF 100%);
}
.aud-trend-card.exclusive {
  background: linear-gradient(180deg, rgba(28,6,22,.28) 0%, rgba(18,6,14,.58) 100%), linear-gradient(140deg, #FF00D6 0%, #FF453A 58%, #FFA624 100%);
}

/* featured cards: larger host circles */
#audFeatured .aud-room-stage { height: 184px; }
#audFeatured .aud-room-av.main { width: 110px; height: 110px; }
#audFeatured .aud-room-av.side { width: 80px; height: 80px; margin: 0 -14px; }

/* category badge (top-left) */
.aud-trend-badge { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: 10px; font-weight: 800; letter-spacing: .3px; padding: 5px 10px; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.aud-trend-badge.trending { background: linear-gradient(90deg, #FF7A30, #FF2C6A); }
.aud-trend-badge.celebrity { background: linear-gradient(90deg, #9829FF, #FF00D6); }
.aud-trend-badge.started { background: #2196F3; }
.aud-trend-badge.watch { background: #FF2C3F; }

/* privacy ribbon (top-right, replaces the save icon) */
.aud-privacy { position: absolute; top: 0; right: 16px; z-index: 3; }
.aud-privacy img { height: 38px; width: auto; display: block; }

/* host circles (regular rooms) */
.aud-room-stage { display: flex; align-items: center; justify-content: center; height: 158px; padding-top: 14px; }
.aud-room-av { border-radius: 50%; object-fit: cover; background: #2a1842; }
.aud-room-av.main { width: 92px; height: 92px; border: 3px solid #A24BFF; z-index: 2; }
.aud-room-av.side { width: 62px; height: 62px; border: 3px solid rgba(255,255,255,.18); margin: 0 -12px; }

/* watch-party thumbnail */
.aud-watch-thumb { position: relative; margin: 14px 14px 4px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.aud-watch-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.aud-watch-prog { position: absolute; left: 0; right: 0; bottom: 30px; height: 3px; background: rgba(255,255,255,.3); }
.aud-watch-prog i { display: block; position: relative; height: 100%; width: 42%; background: #FF2C3F; }
.aud-watch-prog i::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: #FF2C3F; }
.aud-watch-now { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 11.5px; }
.aud-watch-now b { font-weight: 600; }
.aud-watch-now span { color: #cfcfcf; }

/* body */
.aud-trend-body { padding: 8px 16px 16px; }
.aud-trend-title { font-size: 16px; font-weight: 800; line-height: 1.2; }
.aud-trend-host { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.aud-trend-host img { width: 13px; height: 13px; }
.aud-trend-tags { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 5px; }
.aud-trend-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.aud-trend-foot .aud-avatars img { width: 24px; height: 24px; border-color: #2a1640; }
.aud-trend-listen { font-size: 12.5px; font-weight: 600; }
.aud-trend-eye { display: inline-flex; align-items: center; gap: 6px; }
.aud-trend-eye svg { width: 15px; height: 15px; }
.aud-trend-live { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.aud-trend-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.aud-trend-live.red { color: #FF4D5E; }
.aud-trend-live.red::before { background: #FF4D5E; }
.aud-trend-live.green { color: #42D17A; }
.aud-trend-live.green::before { background: #42D17A; }
/* live-duration colour follows the badge: red on blue (public), green on exclusive */
.aud-trend-card.public .aud-trend-live { color: #FF4D5E; }
.aud-trend-card.public .aud-trend-live::before { background: #FF4D5E; }
.aud-trend-card.exclusive .aud-trend-live { color: #42D17A; }
.aud-trend-card.exclusive .aud-trend-live::before { background: #42D17A; }
.aud-trend-joined { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 9px; }

/* friends */
.aud-friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aud-friend-card { text-align: left; background: #F4EFFD; border-radius: 12px; padding: 14px; transition: background .12s, transform .1s; }
.aud-friend-card:hover { background: #ECE2FB; }
.aud-friend-card:active { transform: scale(.99); }
.aud-friend-top { display: flex; align-items: center; gap: 10px; }
.aud-friend-top .aud-avatars img { width: 30px; height: 30px; border-color: #fff; }
.aud-friend-who { font-size: 12.5px; color: #555; line-height: 1.3; }
.aud-friend-title { font-size: 15px; font-weight: 800; margin-top: 11px; display: flex; align-items: center; gap: 7px; }
.aud-friend-title img { width: 18px; height: 18px; object-fit: contain; }
.aud-friend-foot { font-size: 12px; color: #8a8a8a; margin-top: 6px; display: flex; align-items: center; gap: 7px; }
.aud-friend-foot .live { color: #1FAE54; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.aud-friend-foot .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1FAE54; }

/* for you */
.aud-foryou { width: 272px; flex: 0 0 auto; background: #FAFAFB; border: 1px solid #eee; border-radius: 16px; padding: 18px; }
.aud-foryou h3 { font-size: 15px; font-weight: 800; }
.aud-foryou-sub { font-size: 13px; color: #8a8a8a; margin: 4px 0 14px; }
.aud-interests { display: flex; flex-direction: column; gap: 9px; }
.aud-interest { display: flex; align-items: center; gap: 10px; border: 1px solid #e2e2e2; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; background: #fff; text-align: left; transition: border-color .12s, background .12s; }
.aud-interest:hover { border-color: #7B00FF; background: #FBF8FF; }
.aud-interest.is-active { border-color: #7B00FF; background: #7B00FF; color: #fff; }
.aud-empty { padding: 28px 4px; color: #8a8a8a; font-size: 14px; }
.aud-newcard { background: #F3ECFD; border-radius: 14px; padding: 16px; margin-top: 16px; }
.aud-newcard h4 { font-size: 11.5px; font-weight: 800; color: #7B00FF; letter-spacing: .4px; }
.aud-newcard p { font-size: 13px; color: #555; margin: 7px 0 14px; line-height: 1.4; }
.aud-find { width: 100%; background: #1F1F1F; color: #fff; border-radius: 22px; padding: 11px; font-size: 14px; font-weight: 700; transition: opacity .12s; }
.aud-find:hover { opacity: .88; }

/* collapse the sidebar to icons while on Audio (same as Flicks) */
@media (min-width: 900px) {
  body.audio-mode .sidebar { width: 76px; }
  body.audio-mode .sb-item { justify-content: center; padding: 0; gap: 0; }
  body.audio-mode .sb-label { display: none; }
  body.audio-mode .sidebar-live { display: none; }
  body.audio-mode .sidebar-user { justify-content: center; padding: 12px 8px 14px; }
  body.audio-mode .sb-user-id { display: none; }
  body.audio-mode .sidebar-user .icon-btn { display: none; }
  body.audio-mode .app { margin-left: 76px; }
}

@media (max-width: 1100px) {
  .aud-featured { grid-template-columns: 1fr 1fr; }
  .aud-trending { grid-template-columns: repeat(2, 1fr); }
  .aud-friends { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .audio { padding: 16px 14px 90px; }
  .aud-body { flex-direction: column; }
  .aud-foryou { width: 100%; }
  .aud-featured { grid-template-columns: 1fr; }
  .aud-next { display: none; }
}

/* collapsed sidebar: the user's avatar replaces the Profile icon (and the bottom user block is hidden) */
.sb-profile-av { display: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
@media (min-width: 900px) {
  body.dm-mode .sidebar-user,
  body.flicks-mode .sidebar-user,
  body.audio-mode .sidebar-user { display: none; }

  body.dm-mode .sb-profile .sb-ico,
  body.flicks-mode .sb-profile .sb-ico,
  body.audio-mode .sb-profile .sb-ico { display: none; }

  body.dm-mode .sb-profile .sb-profile-av,
  body.flicks-mode .sb-profile .sb-profile-av,
  body.audio-mode .sb-profile .sb-profile-av { display: block; }
}

/* ============================================================
   SUBSCRIPTION FLOW (exclusive rooms)
   ============================================================ */
.sub-overlay { align-items: center; }
.sub-modal {
  position: relative;
  width: min(420px, calc(100% - 32px));
  max-height: 92dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  animation: slideUp .24s ease;
}
.sub-close {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.28); color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.sub-close:hover { background: rgba(0,0,0,.45); }

/* step 1 — profile */
.sub-hero {
  position: relative; padding: 30px 24px 22px; text-align: center; color: #fff;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(150deg, #FF00D6 0%, #FF453A 58%, #FFA624 100%);
}
.sub-exclusive-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  padding: 5px 12px; border-radius: 13px; margin-bottom: 14px;
}
.sub-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); margin: 0 auto 12px; }
.sub-name { font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sub-name img { width: 18px; height: 18px; }
.sub-handle { font-size: 13.5px; opacity: .9; margin-top: 2px; }
.sub-stats { display: flex; justify-content: center; gap: 26px; margin-top: 14px; font-size: 13px; }
.sub-stats b { font-weight: 800; }

.sub-body { padding: 22px 24px 24px; }
.sub-body h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.sub-perks { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.sub-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; }
.sub-perks li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #F0E7FF; color: #7B00FF; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.sub-price { text-align: center; margin-bottom: 14px; }
.sub-price b { font-size: 28px; font-weight: 900; }
.sub-price span { font-size: 14px; color: #8a8a8a; }
.sub-btn { display: block; width: 100%; height: 50px; border-radius: 25px; background: #7B00FF; color: #fff; font-size: 16px; font-weight: 800; transition: opacity .12s, transform .12s; }
.sub-btn:hover { opacity: .9; } .sub-btn:active { transform: scale(.98); }
.sub-terms { font-size: 11.5px; color: #aaa; text-align: center; margin-top: 12px; line-height: 1.4; }
.sub-link { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 700; color: #8a8a8a; }
.sub-link:hover { color: #555; }

/* step 2 — payment */
.sub-pad { padding: 30px 24px 24px; }
.sub-title { font-size: 19px; font-weight: 800; text-align: center; margin-bottom: 18px; }
.sub-summary { display: flex; align-items: center; gap: 12px; background: #F7F7F8; border-radius: 14px; padding: 14px; }
.sub-summary img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.sub-summary div { flex: 1; }
.sub-summary b { font-size: 15px; font-weight: 700; display: block; }
.sub-summary em { font-style: normal; font-size: 12.5px; color: #8a8a8a; }
.sub-amt { font-size: 16px; font-weight: 800; }
.sub-paywith { font-size: 13px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #9a9a9a; margin: 20px 0 10px; }
.sub-methods { display: flex; flex-direction: column; gap: 10px; }
.sub-method { display: flex; align-items: center; gap: 10px; border: 1.5px solid #e4e4e4; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 700; text-align: left; transition: border-color .12s, background .12s; }
.sub-method.is-active { border-color: #7B00FF; background: #FBF8FF; }
.sub-method .sub-radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; flex: 0 0 auto; }
.sub-method.is-active .sub-radio { border-color: #7B00FF; background: radial-gradient(circle, #7B00FF 42%, transparent 46%); }
.sub-total { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 16px; font-size: 16px; }
.sub-total b { font-size: 20px; font-weight: 900; }

/* step 3 — processing */
.sub-processing { padding: 56px 24px; text-align: center; }
.sub-spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid #EEE; border-top-color: #7B00FF; margin: 0 auto 22px; animation: subspin .8s linear infinite; }
@keyframes subspin { to { transform: rotate(360deg); } }
.sub-processing h3 { font-size: 19px; font-weight: 800; }
.sub-processing p { font-size: 14px; color: #8a8a8a; margin-top: 6px; }

/* step 4 — congratulations */
.sub-done { padding: 44px 28px 30px; text-align: center; }
.sub-check { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #9829FF, #FF00D6); color: #fff; font-size: 44px; display: grid; place-items: center; margin: 0 auto 20px; animation: pop .4s ease; }
.sub-done h3 { font-size: 24px; font-weight: 900; }
.sub-done p { font-size: 14.5px; color: #555; margin: 10px 0 22px; line-height: 1.45; }
.sub-done p b { color: #1f1f1f; }

/* ============================================================
   AUDIO ROOM CARDS — white rectangular (Fanbase Audio 1.5)
   ============================================================ */
.aud-featured, .aud-trending { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .aud-featured, .aud-trending { grid-template-columns: repeat(2, 1fr); } }

/* SF Pro families (installed system fonts) — Fanbase Audio 1.5 */
:root {
  --sf-rounded: "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sf-display: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.aud-card {
  position: relative; text-align: left;
  background: #fff; border: 1px solid #F0F0F0; border-radius: 16px;
  padding: 14px 20px 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  transition: box-shadow .14s ease, transform .12s ease;
}
.aud-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
.aud-card:active { transform: scale(.995); }
.aud-card .aud-privacy { position: absolute; top: 0; right: 24px; }
.aud-card .aud-privacy img { height: 45px; width: auto; display: block; }

/* eyebrow — SF Pro Rounded Medium 12 / #1F1F1F / uppercase */
.aud-cat { font-family: var(--sf-rounded); font-size: 12px; font-weight: 500; letter-spacing: .2px; color: #1F1F1F; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
/* title — SF Pro Rounded Semibold 16 / #1F1F1F */
.aud-card-title { font-family: var(--sf-rounded); font-size: 16px; font-weight: 600; line-height: 1.15; letter-spacing: -.3px; color: #1F1F1F; margin-top: 4px; max-width: calc(100% - 44px); }
/* subtitle — SF Pro Display Regular 12 / #979797 */
.aud-card-tags { font-family: var(--sf-display); font-size: 12px; font-weight: 400; color: #979797; margin-top: 4px; }

.aud-card-speakers { display: flex; align-items: center; gap: 26px; margin: 14px 0 16px; }
.aud-card-host { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.aud-spk-cols { display: flex; gap: 44px; }
.aud-spk { display: flex; flex-direction: column; }
/* speaker names — SF Pro Rounded Bold 13 / #999 / lh 17 */
.aud-spk span { font-family: var(--sf-rounded); font-size: 13px; font-weight: 700; color: #999; line-height: 17px; letter-spacing: -.08px; }

.aud-card-foot { display: flex; align-items: center; gap: 9px; }
.aud-stats { display: inline-flex; align-items: center; gap: 6px; }
/* stat numbers — SF Pro Rounded Semibold 12 / #979797 — exact Fanbase icons */
.aud-foot-stat { font-family: var(--sf-rounded); display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #979797; letter-spacing: -.43px; }
.aud-stat-ico { height: 16px; width: auto; display: block; }
.aud-cat-fire { height: 13px; width: auto; display: block; }
.aud-pop { height: 14px; width: auto; display: block; margin-left: -3px; }

/* pills — bg tint, bold dark number + gradient label text */
.aud-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sf-rounded); font-size: 12px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.aud-pill b { font-weight: 700; color: #1F1F1F; }
.aud-pill svg { width: 14px; height: 14px; }
.aud-pill-txt { font-weight: 600; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.aud-pill.live { background: #FFEDF3; }
.aud-pill.live .aud-pill-txt { background-image: linear-gradient(14.43deg, #FF00D6 5%, #FF453A 64%, #FFA624 100%); }
.aud-pill.watch { background: #E8F0FD; border-radius: 5px; }
.aud-pill.watch .aud-pill-txt { background-image: linear-gradient(7deg, #00BFFF 15%, #1F1FFF 85%); }
/* subscribe — Figma: 97x25, radius 16.09, 1px #FF00D6 border, gradient 13.06deg; star 14px, SF Pro Display Semibold 13 */
.aud-sub-btn { margin-left: auto; font-family: var(--sf-display); display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 0 12px 0 8px; background: linear-gradient(13.06deg, #FF1BAF 4.72%, #FF3F24 63.54%, #FFA624 100%); border: 1px solid #FF00D6; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -.31px; border-radius: 16px; white-space: nowrap; }
.aud-sub-star { width: 14px; height: 14px; display: block; }

/* ===== Audio WEB layout: grey page bg, 3-across featured + trending ===== */
#screen-dms { background: #F3F3F5; }
.audio { max-width: 1360px; }
.aud-card-foot { flex-wrap: wrap; row-gap: 8px; }
@media (min-width: 1180px) {
  .aud-featured, .aud-trending { grid-template-columns: repeat(3, 1fr); }
}

/* sidebar: keep the Fanbase Audio brand icon blue (don't tint it purple when active) */
.sb-item.is-active .sb-ico-audio { filter: none !important; }
.sb-ico-audio { width: 26px; height: 26px; }

/* webnav contextual brand — reflects the current page (Flickz / Audio / Fanbase+) */
/* icon stacked on top, word mark below, sitting right after the FANBASE logo */
.webnav-context { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin-left: -22px; align-self: center; }
.webnav-context[hidden] { display: none; }
.webnav-context .wc-icon { height: 21px; width: auto; display: block; }   /* colorful icon — no invert */
.webnav-context .wc-word { height: 11px; width: auto; display: block; filter: invert(1); }  /* black word → white on black bar */

/* sidebar icons: grey when inactive, purple when active (consistent across tabs) */
.sb-item:not(.is-active) .sb-ico:not(.sb-ico-home):not(.sb-ico-badge) { filter: brightness(0) saturate(100%) invert(58%); }

/* ============================================================
   FANBASE+ BROWSE PAGE — YouTube-style video grid
   ============================================================ */
.fbp { max-width: 1860px; margin: 0 auto; padding: 18px 24px 70px; }

.fbp-chips { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.fbp-chips::-webkit-scrollbar { display: none; }
.fbp-chip {
  flex: 0 0 auto; font-family: var(--sf-display); font-size: 14px; font-weight: 600;
  color: #1F1F1F; background: #F2F2F2; border-radius: 9px; padding: 8px 13px; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.fbp-chip:hover { background: #E5E5E5; }
.fbp-chip.is-active { background: #1F1F1F; color: #fff; }

.fbp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 16px; margin-top: 6px; }
@media (max-width: 1500px) { .fbp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) { .fbp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .fbp-grid { grid-template-columns: 1fr; gap: 22px; } }

.fbp-card { text-align: left; width: 100%; padding: 0; }
.fbp-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #000;
  transition: border-radius .15s ease;
}
.fbp-card:hover .fbp-thumb { border-radius: 4px; }
.fbp-thumb > img:not(.fbp-fbmark), .fbp-thumb > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbp-thumb .fbp-fbmark {
  position: absolute; top: 8px; left: 8px; height: 19px; width: auto;
  filter: invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.fbp-dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff;
  font-family: var(--sf-display); font-size: 12px; font-weight: 600; line-height: 1;
  padding: 3px 5px; border-radius: 5px;
}

.fbp-meta { display: flex; gap: 12px; margin-top: 12px; }
.fbp-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fbp-text { min-width: 0; }
.fbp-title {
  font-family: var(--sf-display); font-size: 15px; font-weight: 600; line-height: 1.3; color: #0F0F0F;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fbp-chan { display: flex; align-items: center; gap: 4px; font-family: var(--sf-display); font-size: 13px; color: #606060; margin-top: 6px; }
.fbp-verified { width: 13px; height: 13px; flex: 0 0 auto; }
.fbp-sub { font-family: var(--sf-display); font-size: 13px; color: #606060; margin-top: 1px; }

/* ============================================================
   HOME FEED — Instagram-style feed
   ============================================================ */
.home { max-width: 640px; margin: 0 auto; padding: 22px 16px 90px; }

/* story bubbles */
.home-stories-wrap { position: relative; margin-bottom: 18px; border-bottom: 1px solid #EFEFEF; }
.home-stories { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 20px; scroll-behavior: smooth; scrollbar-width: none; }
.home-stories::-webkit-scrollbar { display: none; }
.hs-nav {
  position: absolute; top: 39px; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 1px solid #ECECEC; box-shadow: 0 2px 8px rgba(0,0,0,.16);
  color: #1F1F1F; font-size: 19px; line-height: 1; display: grid; place-items: center; z-index: 3;
  transition: opacity .15s; cursor: pointer;
}
.hs-nav:hover { background: #FAFAFA; }
.hs-prev { left: -6px; } .hs-next { right: -6px; }
.hs-nav[hidden] { display: none; }
.hs-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; }
.hs-ring { position: relative; width: 74px; height: 74px; border-radius: 50%; padding: 2.5px; background: linear-gradient(45deg, #FFA624, #FF2C6A 55%, #9829FF); }
.hs-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; box-sizing: border-box; }
.hs-ring.hs-live { background: linear-gradient(45deg, #FF2C6A, #FF6A3D); }
.hs-ring.hs-audio { background: linear-gradient(45deg, #21B5FF, #1F1FFF); }
.hs-tag { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 800; color: #fff; padding: 2px 6px; border-radius: 6px; letter-spacing: .3px; }
.hs-tag.live { background: #FF2C6A; }
.hs-tag.audio { background: #1F8BFF; }
.hs-name { font-family: var(--sf-display); font-size: 12px; color: #1F1F1F; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-ring.hs-live + .hs-name, .hs-ring.hs-audio + .hs-name { font-weight: 700; }

/* feed column */
.home-feed { max-width: 470px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hf-post { font-family: var(--sf-display); }
.hf-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 11px; }
.hf-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hf-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 14px; }
.hf-id b { font-weight: 600; color: #1F1F1F; }
.hf-badge { width: 13px; height: 13px; }
.hf-dot { color: #999; }
.hf-time { color: #999; }
.hf-more { color: #1F1F1F; margin-left: auto; }
.hf-more svg { width: 22px; height: 22px; display: block; }

.hf-media { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.hf-media > img, .hf-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-flickmedia { aspect-ratio: 9 / 16; max-height: 600px; }
.hf-fbmedia { aspect-ratio: 16 / 9; }

.hf-vplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.42); pointer-events: none; transition: opacity .15s; }
.hf-vplay::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.hf-videomedia.playing .hf-vplay { opacity: 0; }
.hf-vmute { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.hf-vmute svg { width: 18px; height: 18px; display: block; }
.hf-flick-badge { position: absolute; top: 10px; right: 12px; }
.hf-flick-badge img { height: 23px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }

/* carousel */
.hf-carousel .hf-track { display: flex; width: 100%; height: 100%; transition: transform .25s ease; }
.hf-carousel .hf-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.hf-c-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1F1F1F; font-size: 19px; line-height: 1; display: grid; place-items: center; transition: opacity .15s; }
.hf-c-nav.prev { left: 8px; } .hf-c-nav.next { right: 8px; }
.hf-c-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 11px; }
.hf-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.hf-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hf-dots i.on { background: #fff; }

/* actions + meta */
.hf-actions { display: flex; align-items: center; gap: 14px; padding: 12px 2px 0; }
.hf-act { color: #1F1F1F; transition: transform .1s; }
.hf-act:active { transform: scale(.88); }
.hf-act svg { width: 25px; height: 25px; display: block; }
.hf-love.loved svg { fill: #FF2C6A; stroke: #FF2C6A; }
.hf-like img { width: 25px; height: 25px; object-fit: contain; display: block; }
.hf-like .like-active { display: none; }
.hf-like.liked .like-default { display: none; }
.hf-like.liked .like-active { display: block; }
.hf-likes { font-size: 14px; font-weight: 600; color: #1F1F1F; padding: 10px 2px 0; }
.hf-caption { font-size: 14px; color: #1F1F1F; padding: 5px 2px 0; line-height: 1.4; }
.hf-caption b { font-weight: 600; }
.hf-comments-link { display: block; text-align: left; font-size: 14px; color: #8A8A8A; padding: 6px 2px 0; }
.hf-timeago { font-size: 12px; color: #999; padding: 9px 2px 0; }

/* fanbase+ post */
.hf-fbplus-badge { position: absolute; top: 10px; left: 10px; }
.hf-fbplus-badge img { height: 20px; filter: invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.hf-fb-dur { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.hf-fb-title { font-size: 15px; font-weight: 600; color: #1F1F1F; padding: 11px 2px 0; }

/* audio room feed card */
.hfa-card { position: relative; background: #F6F6F6; border-radius: 14px; padding: 16px 18px 18px; }
.hfa-ribbon { position: absolute; top: 0; right: 18px; }
.hfa-ribbon img { height: 42px; width: auto; display: block; }
.hfa-title { font-family: var(--sf-rounded); font-size: 18px; font-weight: 600; color: #1F1F1F; max-width: calc(100% - 48px); line-height: 1.2; }
.hfa-tags { font-family: var(--sf-display); font-size: 13px; color: #979797; margin-top: 3px; }
.hfa-speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; margin: 18px 0 16px; }
.hfa-spk { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.hfa-spk-av { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: block; }
.hfa-spk-av img { width: 100%; height: 100%; object-fit: cover; }
.hfa-more { display: grid; place-items: center; background: #B7ADA4; color: #fff; font-family: var(--sf-rounded); font-weight: 700; font-size: 15px; }
.hfa-spk b { font-family: var(--sf-rounded); font-size: 13px; font-weight: 600; color: #1F1F1F; }
.hfa-join { display: block; width: 100%; background: linear-gradient(7.68deg, #4FAB4D, #75FF72); color: #fff; font-family: var(--sf-display); font-size: 15px; font-weight: 700; padding: 13px; border-radius: 24px; transition: opacity .12s, transform .1s; }
.hfa-join:hover { opacity: .94; } .hfa-join:active { transform: scale(.98); }

@media (max-width: 680px) {
  .home { padding: 14px 0 90px; }
  .home-stories { padding-left: 14px; padding-right: 14px; }
  .home-feed { gap: 22px; }
  .hf-head, .hf-actions, .hf-likes, .hf-caption, .hf-comments-link, .hf-timeago, .hf-fb-title { padding-left: 14px; padding-right: 14px; }
  .hf-media { border-radius: 0; }
}

/* ============================================================
   REVENUE DASHBOARD
   ============================================================ */
.rev { max-width: 640px; margin: 0 auto; padding: 20px 22px 90px; font-family: var(--sf-display); }
.rev-back { font-size: 15px; color: #1F1F1F; padding: 4px 0; margin-bottom: 10px; }

.rev-titlerow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.rev-title { font-family: var(--sf-display); font-size: 32px; font-weight: 700; letter-spacing: -.5px; color: #000; }
.rev-date { font-size: 13px; font-weight: 600; color: #979797; }

.rev-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.08); padding: 20px 20px 0; margin-bottom: 26px; }
.rev-bal-top { display: flex; align-items: flex-start; justify-content: space-between; }
.rev-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: #979797; }
.rev-bal-amt { font-size: 40px; font-weight: 700; color: #000; letter-spacing: 1px; margin-top: 6px; display: flex; align-items: flex-start; gap: 4px; }
.rev-cur { font-size: 20px; font-weight: 700; margin-top: 6px; }
.rev-pill { border: 1px solid #FF00D6; border-radius: 50px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: #1F1F1F; background: #fff; white-space: nowrap; transition: background .12s; }
.rev-pill:hover { background: #FFF0FB; }

.rev-row { display: flex; align-items: center; width: 100%; padding: 16px 0; border-top: 1px solid #F0F0F0; font-size: 14px; }
.rev-row:first-of-type { margin-top: 18px; }
.rev-row-label { font-weight: 600; color: #454545; }
.rev-row-val { margin-left: auto; font-weight: 600; color: #000; }
.rev-arrow { color: #C8C8C8; font-size: 20px; margin-left: 12px; line-height: 1; }

.rev-meta { display: flex; border-top: 1px solid #F0F0F0; }
.rev-meta-cell { flex: 1; padding: 14px 0 16px; }
.rev-meta-cell + .rev-meta-cell { padding-left: 18px; }
.rev-meta-label { font-size: 13px; font-weight: 600; color: #979797; }
.rev-meta-red { font-size: 13px; color: #FF453A; margin-top: 3px; }
.rev-meta-green { font-size: 13px; color: #64DF61; margin-top: 3px; }

.rev-sechead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rev-sechead h2, .rev-h2 { font-size: 20px; font-weight: 600; color: #000; }
.rev-h2 { margin: 30px 0 16px; }

.rev-pay { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; box-shadow: 0 0 12px rgba(0,0,0,.08); padding: 14px 18px; margin-bottom: 12px; font-size: 16px; }
.rev-pay b { color: #454545; font-weight: 700; }
.rev-pay-year { color: #979797; font-weight: 700; }
.rev-pay-amt { margin-left: auto; color: #64DF61; font-weight: 700; }

/* area chart */
.rev-chartwrap { display: flex; gap: 8px; }
.rev-yaxis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: #000; text-align: right; height: 170px; padding: 2px 0; flex: 0 0 auto; }
.rev-chart { flex: 1; height: 170px; min-width: 0; }
.rev-chart-svg { width: 100%; height: 100%; display: block; clip-path: inset(0 100% 0 0); animation: revReveal 1.2s ease forwards; }
@keyframes revReveal { to { clip-path: inset(0 0 0 0); } }
.rev-grid { stroke: #EFEFEF; stroke-width: 1; vector-effect: non-scaling-stroke; }
.rev-area { fill: #6FE3A0; }
.rev-xaxis { display: flex; justify-content: space-around; font-size: 13px; color: #000; margin-top: 8px; padding-left: 40px; }

/* all time statistics */
.rev-stats { display: flex; flex-direction: column; }
.rev-stat { display: flex; align-items: center; gap: 14px; padding: 16px 10px; border-bottom: 1px solid #F0F0F0; }
.rev-stat:first-child { border-top: 1px solid #F0F0F0; }
.rev-stat-ico { width: 24px; height: 24px; object-fit: contain; }
.rev-stat-dollar { width: 24px; text-align: center; font-size: 22px; font-weight: 700; color: #000; }
.rev-stat-label { font-size: 13px; font-weight: 700; }
.rev-red { color: #FF453A; }
.rev-stat-val { margin-left: auto; font-size: 22px; font-weight: 700; color: #979797; }
.rev-stat-val.rev-black { color: #000; }

/* engagement donut */
.rev-engage { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rev-donut { position: relative; width: 200px; height: 200px; flex: 0 0 auto; }
.rev-donut-svg { width: 100%; height: 100%; }
.rd-track { fill: none; stroke: #F1F1F1; stroke-width: 20; }
.rd-arc { fill: none; stroke-width: 20; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.rd-loves { stroke: #FF2C6A; }
.rd-subs { stroke: #64DF61; }
.rd-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.rd-center span { font-size: 13px; color: #979797; line-height: 1.2; }
.rd-center b { font-size: 22px; font-weight: 700; color: #454545; }
.rev-legend { display: flex; flex-direction: column; gap: 16px; }
.rev-leg-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #000; }
.rev-leg-row img { width: 20px; height: 20px; object-fit: contain; }
.rev-leg-row b { color: #979797; }
@media (prefers-reduced-motion: reduce) {
  .rev-chart-svg { animation: none; clip-path: none; }
  .rd-arc { transition: none; }
}

/* ============================================================
   LOVE PACKS
   ============================================================ */
.lovepacks { max-width: 540px; margin: 0 auto; padding: 18px 22px 90px; font-family: var(--sf-display); }
.lovepacks .x-back { font-size: 15px; color: #1F1F1F; padding: 4px 0; }
.lp-tabs { display: flex; border-bottom: 1px solid #ECECEC; margin: 10px 0 24px; }
.lp-tab { flex: 1; padding: 12px 0; font-size: 15px; font-weight: 600; color: #B0B0B0; position: relative; }
.lp-tab.is-active { color: #1F1F1F; }
.lp-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #1F1F1F; }
.lp-title { text-align: center; font-size: 20px; font-weight: 700; color: #1F1F1F; }
.lp-sub { text-align: center; font-size: 13px; color: #979797; margin: 6px auto 24px; max-width: 360px; }
.lp-list { display: flex; flex-direction: column; gap: 14px; }
.lp-pack { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #fff; border-radius: 12px; box-shadow: 0 2px 14px rgba(0,0,0,.07); padding: 16px 18px; transition: transform .1s ease, box-shadow .14s ease; }
.lp-pack:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-1px); }
.lp-pack:active { transform: scale(.99); }
.lp-heart { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.lp-amt { font-size: 16px; font-weight: 700; color: #1F1F1F; }
.lp-price { margin-left: auto; font-size: 15px; color: #1F1F1F; }

/* love purchase modal (reuses .sub-* styles) */
.love-tag { background: rgba(255,255,255,.25); }
.love-modal-icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.love-modal-icon img { width: 42px; height: 42px; }
.love-confirm-text { font-size: 13.5px; color: #555; line-height: 1.45; margin: 4px 0 16px; }

/* ============================================================
   LOVE INTERACTIONS — flying hearts + Big Love popup
   ============================================================ */
.hf-love, .reel-act.love, .pd-c-like { touch-action: manipulation; -webkit-user-select: none; user-select: none; }

/* flying hearts layer */
.love-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.love-fly { position: fixed; transform: translate(-50%, -50%); will-change: transform, opacity; animation: loveFly 1.35s cubic-bezier(.25,.6,.3,1) forwards; }
.love-fly img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(255,44,106,.35)); }
.love-fly span { position: absolute; top: 44%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #fff; font-family: var(--sf-display); font-weight: 800; letter-spacing: -.3px; }
.love-fly-big { animation-duration: 1.85s; }
.love-fly-big img { filter: drop-shadow(0 8px 22px rgba(255,44,106,.45)); }
@keyframes loveFly {
  0%   { transform: translate(-50%, -50%) scale(.3);  opacity: 0; }
  18%  { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  30%  { transform: translate(-50%, -50%) scale(.95); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 240px)) scale(1) rotate(var(--rot)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .love-fly { animation-duration: .6s; } }

/* gradient heart with number (bar + flying) */
.love-heart { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
.love-heart img { width: 100%; height: 100%; display: block; }
.love-heart > span { position: absolute; top: 44%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #fff; font-family: var(--sf-display); font-weight: 800; font-size: 12px; letter-spacing: -.3px; }
.bl-plus-sign { position: absolute; top: 42%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #fff; font-weight: 700; font-size: 20px; line-height: 1; }

/* Big Love overlay + bar */
.biglove-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.45); }
.biglove-overlay[hidden] { display: none; }
.biglove-bar {
  position: fixed; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 20px;
  background: #fff; border-radius: 100px; padding: 12px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  animation: blPop .22s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes blPop { from { opacity: 0; transform: translate(-50%, -100%) scale(.8); } }
.bl-heart { transition: transform .12s ease; }
.bl-heart:hover { transform: scale(1.14); }
.bl-heart:active { transform: scale(.92); }
.bl-custom { display: inline-flex; align-items: center; gap: 12px; }
.bl-mini { width: 30px; height: 30px; }
.bl-custom input { width: 110px; border: none; border-bottom: 2px solid #EAEAEA; outline: none; font-family: var(--sf-display); font-size: 16px; font-weight: 600; padding: 4px 2px; }
.bl-custom input:focus { border-color: #FF2C6A; }
.bl-custom #blSend { background: linear-gradient(135deg, #FF2C6A, #FF6A3D); color: #fff; font-family: var(--sf-display); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 20px; }

/* header upload button (Fanbase+ tab / page only) */
.nav-upload { display: inline-flex; align-items: center; transition: transform .1s; }
.nav-upload:active { transform: scale(.95); }
.nav-upload img { height: 30px; width: auto; display: block; }
.nav-upload[hidden] { display: none; }

/* ============================================
   AUTH GATE (login / signup overlay)
   ============================================ */
.auth-gate {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, #2a0050 0%, #12001f 55%, #000 100%);
}
.auth-gate[hidden] { display: none; }
.auth-card {
  width: 100%; max-width: 380px;
  background: #fff; border-radius: 22px;
  padding: 34px 28px 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
}
.auth-logo { height: 34px; width: auto; align-self: center; margin-bottom: 22px;
  filter: invert(1); }
.auth-title {
  font-family: var(--sf-display); font-size: 24px; font-weight: 700;
  color: var(--ink); text-align: center; margin: 0 0 20px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span {
  font-size: 13px; font-weight: 600; color: var(--grey-label);
}
.auth-field input {
  height: 46px; padding: 0 14px;
  border: 1.5px solid var(--divider); border-radius: 12px;
  font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s ease;
}
.auth-field input:focus { outline: none; border-color: var(--sb-purple); }
.auth-field input.input-error { border-color: #FF453A; }
.auth-error { min-height: 16px; margin: 0; font-size: 13px; color: #FF453A; text-align: center; }
.auth-btn {
  height: 48px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--sf-display); font-size: 16px; font-weight: 700; color: #fff;
  background: var(--grad-active);
  transition: opacity .15s ease, transform .05s ease;
}
.auth-btn:hover { opacity: .94; }
.auth-btn:active { transform: scale(.99); }
.auth-btn:disabled { opacity: .55; cursor: default; }
.auth-switch { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--grey-label); }
.auth-switch button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 14px; font-weight: 700; color: var(--sb-purple);
}
/* hide the app shell behind the gate while unauthenticated */
body.auth-locked .webnav,
body.auth-locked .sidebar,
body.auth-locked .app { visibility: hidden; }

/* clickable author cues (feed / flicks / comments -> profile) */
.hf-head .hf-id b, .hf-av, .reel-name, .reel-info-avatar, .pd-comment .pd-c-av, .pd-comment .pd-c-body p b { cursor: pointer; }

/* Camps tab + Subscriptions list (real data) */
.camp-list { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 8px 0; }
.camp-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--divider); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.camp-card:hover { background: var(--sb-pill); }
.camp-cover { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.camp-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.camp-info b { font-size: 15px; color: var(--ink); }
.camp-info em { font-size: 13px; color: var(--grey-label); font-style: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.subs-list { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.subs-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.subs-row:hover { background: var(--sb-pill); }
.subs-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.subs-info { display: flex; flex-direction: column; }
.subs-info b { font-size: 15px; color: var(--ink); }
.subs-info em { font-size: 13px; color: var(--sb-purple); font-style: normal; }

/* dynamic unread count badges on Notifications + Messages nav items */
.sb-item { position: relative; }
.nav-count {
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sb-badge, #FF3B5C); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; border-radius: 999px;
}
.nav-count[hidden] { display: none; }

/* GIF picker overlay (GIPHY) */
.gif-overlay { position: fixed; inset: 0; z-index: 4500; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.gif-overlay[hidden] { display: none; }
.gif-panel { width: 100%; max-width: 460px; max-height: 70vh; background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px){ .gif-overlay { align-items: center; } .gif-panel { border-radius: 18px; max-height: 76vh; } }
.gif-head { display: flex; gap: 8px; padding: 14px 14px 10px; align-items: center; border-bottom: 1px solid var(--divider); }
.gif-search { flex: 1; height: 40px; padding: 0 14px; border: 1.5px solid var(--divider); border-radius: 999px; font-size: 15px; }
.gif-search:focus { outline: none; border-color: var(--sb-purple); }
.gif-close { width: 34px; height: 34px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--grey-icon); cursor: pointer; }
.gif-grid { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gif-item { border: none; padding: 0; background: var(--grey-fill); border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; }
.gif-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-loading { grid-column: 1/-1; text-align: center; color: var(--grey-label); padding: 30px 0; }
.gif-attribution { text-align: center; font-size: 11px; color: var(--grey-label); padding: 6px 0 10px; }
.dm-bubble-audio { height: 38px; }
#dmMic.recording { color: #FF453A; animation: dmpulse 1s infinite; }
@keyframes dmpulse { 50% { opacity: .4; } }

/* Stripe subscribe tier picker */
.pay-tiers { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.pay-tier { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--divider); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s; }
.pay-tier:hover { border-color: var(--sb-purple); }
.pay-tier-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.pay-tier-price { font-size: 15px; font-weight: 700; color: var(--sb-purple); }
.pay-tier-desc { font-size: 13px; color: var(--grey-label); }

/* DM message reactions */
.dm-msg { position: relative; }
.dm-react-bar { position: absolute; top: -42px; left: 40px; z-index: 50; display: flex; gap: 2px; padding: 5px 8px; background: #fff; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.dm-react { border: none; background: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px; border-radius: 50%; transition: transform .1s; }
.dm-react:hover { transform: scale(1.3); }
.dm-reaction { position: absolute; bottom: -10px; left: 44px; background: #fff; border: 1px solid var(--divider); border-radius: 999px; padding: 1px 5px; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.dm-msg.me .dm-reaction { left: auto; right: 8px; }
