:root {
  --bg:       #080810;
  --bg2:      #0e0e1a;
  --bg3:      #14141f;
  --card:     #111120;
  --border:   rgba(255,255,255,.08);
  --text:     #f0f0f5;
  --muted:    rgba(240,240,245,.5);
  --red:      #ff1a35;
  --red2:     #ff4d62;
  --purple:   #9b00ff;
  --purple2:  #c44dff;
  --glow-r:   0 0 20px rgba(255,26,53,.35);
  --glow-p:   0 0 20px rgba(155,0,255,.35);
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius:   14px;
  --tab-h:    56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; background: transparent; border: none; outline: none; }

/* ── Layout ── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.top-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--red), var(--purple2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 18px; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--bg2); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); display: none;
}
.notif-badge.show { display: block; }

.tab-bar {
  display: flex; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--text); border-color: var(--red); }
.tab-btn:hover { color: var(--text); }

#view { flex: 1; max-width: 680px; margin: 0 auto; width: 100%; padding: 0 0 80px; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,16,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; height: var(--tab-h);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--muted);
  transition: color .15s;
}
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn.active { color: var(--red); }
.nav-btn.create .nav-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: var(--glow-r);
}

/* ── Cards ── */
.post-card {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  transition: background .12s;
}
.post-card:hover { background: rgba(255,255,255,.02); }
.post-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-author {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px;
}
.post-author .username { color: var(--muted); font-weight: 400; font-size: 13px; }
.post-time { font-size: 12px; color: var(--muted); }
.post-content { font-size: 15px; line-height: 1.55; margin-bottom: 12px; word-break: break-word; }
.post-media { border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--bg3); }
.post-media img { width: 100%; display: block; max-height: 400px; object-fit: cover; }
.post-media video { width: 100%; display: block; max-height: 400px; }
.post-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.react-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 13px; transition: all .15s;
}
.react-btn:hover { border-color: var(--red); color: var(--red); }
.react-btn.active { background: rgba(255,26,53,.12); border-color: var(--red); color: var(--red); }
.comment-btn, .share-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted); transition: all .15s;
}
.comment-btn:hover { border-color: var(--purple); color: var(--purple); }
.hate-count { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ── Emoji picker ── */
.emoji-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  margin: 8px 0;
}
.emoji-opt {
  padding: 6px 10px; border-radius: 8px; font-size: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  transition: transform .1s, border-color .1s;
}
.emoji-opt:hover { transform: scale(1.2); border-color: var(--red); }
.emoji-opt.chosen { border-color: var(--red); background: rgba(255,26,53,.15); transform: scale(1.15); }

/* ── Comments ── */
.comments-section { padding: 0 16px 16px; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment-body { flex: 1; }
.comment-author { font-weight: 700; font-size: 13px; }
.comment-text { font-size: 14px; line-height: 1.5; margin-top: 2px; }
.comment-input-row {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.comment-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--text);
}
.comment-input:focus { border-color: var(--purple); }
.send-btn {
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; font-weight: 700; font-size: 14px;
  transition: opacity .15s;
}
.send-btn:hover { opacity: .85; }

/* ── Auth Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  width: 100%; max-width: 400px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; color: var(--text);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; font-weight: 700; font-size: 16px;
  border-radius: 12px; border: none;
  box-shadow: var(--glow-r);
  transition: opacity .15s, transform .1s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-secondary {
  width: 100%; padding: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 15px;
  border-radius: 12px; margin-top: 10px;
  transition: background .15s;
}
.btn-secondary:hover { background: var(--bg2); }
.modal-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.modal-switch a { color: var(--red2); font-weight: 600; }
.modal-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 22px; color: var(--muted); }
.modal-box-wrap { position: relative; }

/* ── Create Post Modal ── */
.compose-box {
  width: 100%; max-width: 580px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.compose-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.compose-textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; font-size: 16px; line-height: 1.6; color: var(--text);
  transition: border-color .15s;
}
.compose-textarea:focus { border-color: var(--red); }
.compose-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.compose-media-btns { display: flex; gap: 8px; }
.media-btn {
  padding: 8px 14px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--muted);
  transition: all .15s;
}
.media-btn:hover { border-color: var(--purple); color: var(--text); }
.compose-preview { margin-top: 12px; border-radius: 10px; overflow: hidden; position: relative; }
.compose-preview img, .compose-preview video { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.remove-media {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.7); border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.char-count { font-size: 12px; color: var(--muted); }
.char-count.over { color: var(--red); }
.upload-progress {
  height: 3px; background: var(--bg3); border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.upload-progress-bar { height: 100%; background: linear-gradient(90deg, var(--red), var(--purple)); width: 0; transition: width .3s; }

/* ── Profile ── */
.profile-header {
  padding: 24px 16px 0;
  border-bottom: 1px solid var(--border);
}
.profile-cover {
  height: 140px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,26,53,.3), rgba(155,0,255,.3));
  margin-bottom: -40px;
}
.profile-avatar-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(135deg, var(--red), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-btns { display: flex; gap: 8px; }
.follow-btn, .subscribe-btn, .edit-btn {
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: all .15s;
}
.follow-btn { background: var(--red); color: #fff; box-shadow: var(--glow-r); }
.follow-btn.following { background: var(--bg3); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.follow-btn:hover { opacity: .85; }
.subscribe-btn { background: linear-gradient(135deg, var(--purple), var(--purple2)); color: #fff; box-shadow: var(--glow-p); }
.subscribe-btn.subscribed { background: var(--bg3); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.edit-btn { background: var(--bg3); border: 1px solid var(--border); }
.profile-name { font-size: 22px; font-weight: 800; }
.profile-username { font-size: 14px; color: var(--muted); margin-top: 2px; }
.profile-bio { font-size: 14px; line-height: 1.55; margin: 10px 0; color: var(--muted); }
.profile-stats { display: flex; gap: 24px; padding: 12px 0; }
.stat { text-align: center; }
.stat-n { font-size: 18px; font-weight: 800; }
.stat-l { font-size: 12px; color: var(--muted); }
.profile-tabs { display: flex; border-top: 1px solid var(--border); margin: 0 -16px; }

/* ── Notification ── */
.notif-item {
  display: flex; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.notif-item:hover { background: rgba(255,255,255,.02); }
.notif-item.unread { background: rgba(255,26,53,.04); }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-text { flex: 1; }
.notif-msg { font-size: 14px; line-height: 1.5; }
.notif-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Search ── */
.search-bar {
  padding: 12px 16px;
  position: sticky; top: 56px; z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.search-input-wrap { display: flex; align-items: center; gap: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; }
.search-input-wrap .s-icon { font-size: 18px; color: var(--muted); }
.search-input { flex: 1; font-size: 15px; }
.search-input::placeholder { color: var(--muted); }
.search-type-toggle { display: flex; gap: 8px; padding: 10px 16px; }
.type-btn { padding: 6px 16px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: all .15s; }
.type-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── User list ── */
.user-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.user-item-info { flex: 1; }
.user-item-name { font-weight: 700; font-size: 14px; }
.user-item-handle { font-size: 12px; color: var(--muted); }
.user-item-stats { font-size: 12px; color: var(--muted); }
.mini-follow-btn { padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; }
.mini-follow-btn.following { background: var(--bg3); border: 1px solid var(--border); color: var(--text); }

/* ── Empty / Loading states ── */
.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; }
.loading { text-align: center; padding: 24px; color: var(--muted); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 10px;
  border: 3px solid var(--bg3); border-top-color: var(--red);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast-container { position: fixed; top: 70px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px; font-size: 14px; font-weight: 600;
  max-width: 300px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  animation: slideIn .25s ease; pointer-events: all;
}
.toast.error { border-color: var(--red); background: rgba(255,26,53,.15); }
.toast.success { border-color: #22c55e; background: rgba(34,197,94,.1); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

/* ── Edit profile modal ── */
.modal-box.edit-profile { max-width: 440px; }

/* ── Floating emoji animation ── */
.float-emoji {
  position: fixed; pointer-events: none; z-index: 9999;
  font-size: 28px; user-select: none;
  animation: floatUp 1.1s ease forwards;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);   opacity: 1; }
  60%  { transform: translateY(-80px) scale(1.3); opacity: .9; }
  100% { transform: translateY(-160px) scale(.8); opacity: 0; }
}

/* ── Double-tap ripple ── */
.dtap-ripple {
  position: absolute; border-radius: 50%;
  width: 80px; height: 80px; margin: -40px;
  background: radial-gradient(circle, rgba(255,26,53,.6) 0%, transparent 70%);
  pointer-events: none; animation: rippleOut .5s ease forwards; z-index: 10;
}
@keyframes rippleOut { from{transform:scale(0);opacity:1} to{transform:scale(3);opacity:0} }

/* ── Full-screen video overlay ── */
.video-fullscreen-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: #000; display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s ease;
}
.video-fullscreen-overlay video { max-width: 100%; max-height: 100%; }
.video-fs-close { position: fixed; top: 20px; right: 24px; font-size: 30px; color: rgba(255,255,255,.8); cursor: pointer; z-index: 1001; }

/* ── TikTok-style mobile card ── */
@media (max-width: 720px) {
  #view { padding: 0 0 80px; scroll-snap-type: y mandatory; overflow-y: scroll; height: calc(100vh - 56px); }
  .post-card {
    min-height: calc(100svh - 136px);
    scroll-snap-align: start;
    border-bottom: none;
    padding: 0;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    border-radius: 0;
    animation: none;
    border-left: none;
  }
  .post-card:hover { background: none; border-left: none; }

  /* Media fills card top */
  .post-media {
    flex: 1; border-radius: 0; margin: 0;
    min-height: 60vw; position: relative;
    background: var(--bg3);
  }
  .post-media img { width: 100%; height: 100%; object-fit: cover; max-height: none; transition: none; }
  .post-media:hover img { transform: none; }
  .post-media video { width: 100%; height: 100%; object-fit: cover; max-height: none; }

  /* Text-only card gets gradient background */
  .post-card.text-only { background: linear-gradient(160deg, var(--bg2) 0%, var(--bg3) 100%); }

  /* Info bar pinned to bottom */
  .post-info-bar {
    padding: 16px 70px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    position: absolute; bottom: 0; left: 0; right: 0;
  }
  .post-header { margin-bottom: 6px; }
  .post-content { font-size: 14px; line-height: 1.45; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Right action bar */
  .post-actions { position: absolute; right: 12px; bottom: 20px; flex-direction: column; gap: 18px; align-items: center; background: none; }
  .react-btn, .comment-btn, .share-btn {
    flex-direction: column; gap: 3px; padding: 0; background: none; border: none;
    font-size: 12px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6);
    width: 44px; align-items: center;
  }
  .react-btn span:first-child, .comment-btn span:first-child { font-size: 26px; }
  .react-btn.active { color: var(--red); }
  .emoji-row { position: fixed; bottom: 90px; left: 16px; right: 16px; z-index: 200; }

  /* Text-only: show header above content normally */
  .post-card.text-only .post-header { padding: 16px 16px 0; }
  .post-card.text-only .post-content { padding: 8px 16px 0; color: var(--text); font-size: 18px; line-height: 1.5; font-weight: 500; max-height: none; -webkit-line-clamp: unset; }
  .post-card.text-only .post-info-bar { position: static; background: none; padding: 12px 70px 16px 16px; }

  .compose-box { border-radius: 20px 20px 0 0; align-self: flex-end; }
}
@media (min-width: 721px) {
  .bottom-nav { display: none; }
  #app { flex-direction: row; }
  .sidebar {
    width: 240px; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 20px 12px; border-right: 1px solid var(--border);
  }
  .sidebar .brand { font-size: 26px; padding: 12px 12px 24px; display: block; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav-btn {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--muted);
    transition: all .15s;
  }
  .side-nav-btn .sn-icon { font-size: 22px; }
  .side-nav-btn:hover { background: var(--bg3); color: var(--text); }
  .side-nav-btn.active { color: var(--text); background: var(--bg3); }
  .side-nav-btn.active .sn-icon { filter: drop-shadow(var(--glow-r)); }
  .create-side-btn {
    margin-top: 16px; width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--red), var(--purple));
    border-radius: 12px; font-weight: 800; font-size: 16px; color: #fff;
    box-shadow: var(--glow-r); transition: opacity .15s;
  }
  .create-side-btn:hover { opacity: .88; }
  .top-bar .brand { display: none; }
  #main-content { flex: 1; overflow-y: auto; }
}

/* Hate score fire badge */
.fire-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,26,53,.15); border: 1px solid rgba(255,26,53,.3);
  font-size: 11px; color: var(--red); font-weight: 700;
}

/* Relative time */
.rel-time { cursor: default; }

/* Video player custom */
video { border-radius: 0; }
.video-wrap { position: relative; }

/* Skeleton */
.skeleton-card { padding: 16px; border-bottom: 1px solid var(--border); }
.skeleton-line { height: 14px; border-radius: 4px; margin-bottom: 8px; overflow: hidden; position: relative; background: var(--bg3); }
.skeleton-line::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg,transparent 0%,rgba(255,255,255,.06) 50%,transparent 100%); animation: shimmer 1.6s infinite; }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* ── Landing hero ── */
.hero-wrap { padding: 0 16px 32px; text-align: center; }
.hero-inner { max-width: 520px; margin: 0 auto; padding: 48px 0 16px; }
.hero-skull { font-size: 64px; margin-bottom: 16px; animation: heroFloat 3s ease-in-out infinite; }
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-title {
  font-size: clamp(2.4em, 8vw, 4em); font-weight: 900; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--red) 55%, var(--purple2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 16px; letter-spacing: -1.5px;
}
.hero-sub { font-size: 1.05em; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.hero-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero-join-btn { width: 100%; max-width: 320px; padding: 15px; font-size: 17px; border-radius: 14px; }
.hero-login-btn { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .15s; }
.hero-login-btn:hover { color: var(--text); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hchip { padding: 6px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); }
.preview-title { padding: 16px 16px 8px; font-weight: 700; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }

/* ── Join CTA bar ── */
.join-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: linear-gradient(135deg, rgba(255,26,53,.95), rgba(155,0,255,.95));
  backdrop-filter: blur(12px);
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
}
.join-bar span { font-size: 14px; font-weight: 600; color: #fff; }
.join-bar .btn-primary { background: #fff; color: var(--red); box-shadow: none; font-size: 14px; padding: 9px 20px; }
.join-bar .btn-primary:hover { background: #f5f5f5; }

/* ── Card entrance animation ── */
@keyframes cardIn { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:none } }
.post-card { animation: cardIn .22s ease both; }

/* ── Enhanced post card hover ── */
.post-card { border-left: 3px solid transparent; transition: background .12s, border-color .15s; }
.post-card:hover { background: rgba(255,255,255,.025); border-left-color: rgba(255,26,53,.35); }

/* ── Share button ── */
.share-btn { display:flex; align-items:center; gap:5px; padding:6px 12px; border-radius:999px; background:var(--bg3); border:1px solid var(--border); font-size:13px; color:var(--muted); transition:all .15s; }
.share-btn:hover { border-color:var(--purple); color:var(--purple); }

/* ── Image lightbox ── */
.lightbox { position:fixed; inset:0; z-index:999; background:rgba(0,0,0,.92); backdrop-filter:blur(12px); display:flex; align-items:center; justify-content:center; cursor:zoom-out; animation: fadeIn .15s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.lightbox img { max-width:92vw; max-height:92vh; border-radius:10px; box-shadow:0 0 60px rgba(0,0,0,.8); cursor:default; }
.lightbox-close { position:fixed; top:20px; right:24px; font-size:28px; color:rgba(255,255,255,.7); cursor:pointer; transition:color .15s; }
.lightbox-close:hover { color:#fff; }

/* ── Trending rank badge + heat bar ── */
.trending-wrap { position:relative; }
.rank-badge { position:absolute; top:16px; left:4px; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; z-index:2; }
.rank-1 { background:linear-gradient(135deg,#ffd700,#ff9900); color:#000; box-shadow:0 0 12px rgba(255,215,0,.5); }
.rank-2 { background:linear-gradient(135deg,#c0c0c0,#a0a0a0); color:#000; }
.rank-3 { background:linear-gradient(135deg,#cd7f32,#a0522d); color:#fff; }
.rank-n  { background:var(--bg3); border:1px solid var(--border); color:var(--muted); font-size:10px; }
.heat-bar-wrap { height:3px; background:var(--bg3); margin:0 16px; border-radius:0 0 4px 4px; overflow:hidden; }
.heat-bar { height:100%; border-radius:2px; background:linear-gradient(90deg, var(--red), var(--purple)); transition:width .6s ease; }

/* ── Fire badge pulse ── */
@keyframes flamePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.75;transform:scale(1.05)} }
.fire-badge { animation: flamePulse 2.4s ease infinite; }

/* ── Hate meter on post cards ── */
.hate-meter { display:flex; align-items:center; gap:4px; margin-left:auto; font-size:12px; color:var(--muted); }
.hate-meter .hm-bar { width:40px; height:4px; background:var(--bg3); border-radius:2px; overflow:hidden; }
.hate-meter .hm-fill { height:100%; background:linear-gradient(90deg,var(--red),var(--purple)); border-radius:2px; }

/* ── Profile cover improved ── */
.profile-cover { height:170px; border-radius:14px; position:relative; overflow:hidden; margin-bottom:-48px; }
.profile-cover::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,26,53,.25) 0%,rgba(155,0,255,.25) 100%); }

/* ── Compose modal entrance ── */
@keyframes slideUp { from { transform:translateY(30px); opacity:0; } to { transform:none; opacity:1; } }
.compose-box, .modal-box { animation: slideUp .2s ease both; }

/* ── Notification type color bars ── */
.notif-item[data-type="follow"]    .notif-icon { background:rgba(34,197,94,.12); }
.notif-item[data-type="reaction"]  .notif-icon { background:rgba(255,26,53,.12); }
.notif-item[data-type="comment"]   .notif-icon { background:rgba(155,0,255,.12); }
.notif-item[data-type="subscribe"] .notif-icon { background:rgba(255,165,0,.12); }

/* ── Better avatar ring on hover ── */
.avatar { transition: box-shadow .15s; }
.avatar:hover { box-shadow: 0 0 0 2px var(--red); }

/* ── Copy-link toast flash ── */
@keyframes copyFlash { 0%{background:rgba(34,197,94,.2)} 100%{background:transparent} }
.toast.copy { animation: slideIn .25s ease, copyFlash .5s .25s ease; }

/* ── Post media image hover ── */
.post-media img { transition: transform .25s ease; cursor: zoom-in; }
.post-media:hover img { transform: scale(1.01); }

/* ── Video badge in compose ── */
.video-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 12px; background:rgba(155,0,255,.15); border:1px solid var(--purple); border-radius:999px; font-size:12px; color:var(--purple2); margin-top:8px; }

/* ── Upload status ── */
.upload-status { display:flex; align-items:center; gap:10px; padding:10px 0; }
.upload-label { font-size:13px; color:var(--muted); }

/* ── Video post — mute/unmute overlay ── */
.video-mute-btn { position:absolute; bottom:80px; right:12px; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:16px; z-index:5; color:#fff; }
.video-mute-btn:hover { background:rgba(0,0,0,.8); }

/* ── Full-screen video overlay controls ── */
.video-fs-controls { position:fixed; bottom:0; left:0; right:0; padding:16px 20px; background:linear-gradient(to top,rgba(0,0,0,.8),transparent); display:flex; align-items:center; gap:12px; z-index:1001; }
.video-fs-controls input[type=range] { flex:1; accent-color:var(--red); }

/* ── Media btn active state ── */
.media-btn.active { border-color:var(--purple); color:var(--purple2); background:rgba(155,0,255,.1); }

/* ── DMs ── */
.dm-thread-item { display:flex; align-items:center; gap:12px; padding:14px 12px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .15s; }
.dm-thread-item:hover { background:var(--bg2); }
.dm-thread-info { flex:1; min-width:0; }
.dm-thread-name { font-weight:700; font-size:14px; margin-bottom:3px; }
.dm-thread-preview { font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-thread-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.dm-messages { flex:1; overflow-y:auto; padding:12px 16px; display:flex; flex-direction:column; gap:8px; max-height:60vh; }
.dm-input-row { display:flex; gap:8px; padding:12px 16px; border-top:1px solid var(--border); }
.dm-bubble-wrap { display:flex; flex-direction:column; }
.dm-bubble-wrap.me { align-items:flex-end; }
.dm-bubble-wrap.them { align-items:flex-start; }
.dm-bubble { padding:10px 14px; border-radius:16px; max-width:75%; font-size:14px; line-height:1.4; word-break:break-word; }
.dm-bubble.me { background:var(--red); color:#fff; border-bottom-right-radius:4px; }
.dm-bubble.them { background:var(--bg2); color:var(--text); border-bottom-left-radius:4px; }
.btn-small { padding:5px 14px; background:var(--red); color:#fff; border-radius:100px; font-size:12px; font-weight:700; }

/* ── Section label / feed-list ── */
.section-label { font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.feed-list { display:flex; flex-direction:column; gap:0; }

/* ── Hashtags ── */
.hashtag-link { color:var(--purple2); font-weight:600; cursor:pointer; text-decoration:none; }
.hashtag-link:hover { text-decoration:underline; }

/* ── Hashtag grid (trending page) ── */
.hashtag-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; padding:14px 12px; }
.hashtag-card { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:14px 12px; cursor:pointer; transition:border-color .18s,transform .15s; display:flex; flex-direction:column; gap:4px; }
.hashtag-card:hover { border-color:var(--purple); transform:translateY(-2px); }
.ht-rank { font-size:18px; }
.ht-tag { font-weight:800; font-size:15px; color:var(--purple2); word-break:break-all; }
.ht-count { font-size:12px; color:var(--muted); }

/* ── Hashtag widget in sidebar ── */
.ht-widget { background:var(--bg2); border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin:14px 0; }
.ht-widget-title { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:8px; }
.ht-widget-row { display:flex; justify-content:space-between; align-items:center; padding:5px 2px; cursor:pointer; border-radius:6px; transition:background .15s; }
.ht-widget-row:hover { background:var(--bg3); }
.ht-w-tag { font-size:13px; font-weight:700; color:var(--purple2); }
.ht-w-count { font-size:11px; color:var(--muted); }

/* ── @mention links ── */
.mention-link { color:var(--blue,#60a5fa); font-weight:600; cursor:pointer; text-decoration:none; }
.mention-link:hover { text-decoration:underline; }

/* ── Who to Follow widget ── */
.wf-row { display:flex; align-items:center; gap:8px; padding:6px 2px; cursor:pointer; border-radius:8px; transition:background .15s; }
.wf-row:hover { background:var(--bg3); }
.wf-info { flex:1; min-width:0; overflow:hidden; }
.wf-name { font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wf-handle { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wf-btn {
  font-size:11px; font-weight:700; padding:4px 10px;
  border-radius:20px; border:1.5px solid var(--purple2); color:var(--purple2);
  background:transparent; cursor:pointer; white-space:nowrap; flex-shrink:0;
  transition:background .15s,color .15s;
}
.wf-btn:hover,.wf-btn.active { background:var(--purple2); color:#fff; }

/* ── Hashtag feed header ── */
.hashtag-feed-info { padding:6px 16px 12px; font-size:13px; color:var(--muted); }

/* ── TikTok Video Feed ── */
#view.tiktok-mode {
  max-width: 100%;
  padding: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  height: calc(100vh - 56px - var(--tab-h));
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 721px) {
  #view.tiktok-mode { height: calc(100vh - 56px); max-width: 420px; }
}

.tiktok-card {
  position: relative;
  height: calc(100vh - 56px - var(--tab-h));
  scroll-snap-align: start;
  flex-shrink: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 721px) {
  .tiktok-card { height: calc(100vh - 56px); }
}
.tiktok-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

.tiktok-pause-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 64px; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.7));
  transition: opacity .12s;
}
.tiktok-card.paused .tiktok-pause-icon { opacity: 1; animation: tt-fade .7s forwards; }
@keyframes tt-fade { 0%{opacity:1} 60%{opacity:1} 100%{opacity:0} }

.tiktok-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px 14px 28px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 55%);
}
.tiktok-info { flex: 1; margin-right: 68px; }
.tiktok-username {
  font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 6px; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.tiktok-username:hover { text-decoration: underline; }
.tiktok-caption {
  font-size: 13px; color: rgba(255,255,255,.92); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.tiktok-actions {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding-bottom: 4px; flex-shrink: 0;
}
.tiktok-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tiktok-action-btn .icon {
  font-size: 30px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
  transition: transform .1s;
}
.tiktok-action-btn:active .icon { transform: scale(.82); }
.tiktok-action-btn.reacted .icon { filter: drop-shadow(0 0 10px rgba(255,80,0,.9)) drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.tiktok-action-btn .count { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

.tiktok-upload-fab {
  position: fixed; bottom: calc(var(--tab-h) + 16px); right: 16px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(155,0,255,.5);
  transition: transform .12s;
}
.tiktok-upload-fab:active { transform: scale(.9); }
@media (min-width: 721px) { .tiktok-upload-fab { bottom: 20px; } }

/* ── Polls ── */
.poll-wrap { display:flex; flex-direction:column; gap:8px; padding:12px 16px 4px; }
.poll-option {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); transition: border-color .15s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.poll-option:not(.revealed):hover { border-color: var(--purple); }
.poll-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(155,0,255,.18), rgba(255,26,53,.12));
  transition: width .5s cubic-bezier(.4,0,.2,1); z-index: 0;
}
.poll-option.voted .poll-bar { background: linear-gradient(90deg, rgba(155,0,255,.3), rgba(255,26,53,.2)); }
.poll-text { position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.poll-pct { position: relative; z-index: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
.poll-meta { font-size: 11px; color: var(--muted); text-align: right; padding-right: 4px; }

/* Poll create form */
.poll-create-wrap { padding: 0 16px 8px; }
.compose-poll-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 14px;
  color: var(--text); outline: none;
}
.compose-poll-input:focus { border-color: var(--purple); }

/* ── Leaderboard ── */
.lb-list { display: flex; flex-direction: column; padding: 8px 0 80px; }
.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background .15s;
}
.lb-row:hover { background: var(--bg2); }
.lb-rank {
  width: 32px; text-align: center; font-size: 18px; font-weight: 800;
  color: var(--muted); flex-shrink: 0;
}
.lb-row:nth-child(1) .lb-rank { font-size: 22px; color: #fbbf24; }
.lb-row:nth-child(2) .lb-rank { font-size: 20px; color: #94a3b8; }
.lb-row:nth-child(3) .lb-rank { font-size: 20px; color: #b45309; }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-size: 14px; font-weight: 700; color: var(--text); }
.lb-stat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lb-val { color: var(--red2); font-weight: 700; }

/* ── Rage milestone badges on profile ── */
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.rage-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,45,85,.1); border: 1px solid rgba(255,45,85,.3);
  border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  color: var(--red2); cursor: default;
}
.rage-badge:last-child { background: rgba(255,107,0,.15); border-color: var(--orange); color: var(--orange); }

/* ── Inline follow button on post cards ── */
.inline-follow-btn {
  margin-left: auto; margin-right: 4px; flex-shrink: 0;
  padding: 4px 12px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--accent); border-radius: 20px;
  color: var(--accent); background: transparent; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.inline-follow-btn:hover { background: var(--accent); color: #fff; }
.inline-follow-btn.following { border-color: var(--border); color: var(--muted); }
.inline-follow-btn.following:hover { border-color: #e04; color: #e04; }

/* ── Post ⋮ menu ── */
.post-menu-btn { color: var(--muted) !important; }
.post-menu-popup {
  position: absolute; top: 40px; right: 12px; z-index: 200;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
  min-width: 180px;
}
.post-menu-item {
  display: flex; width: 100%; padding: 11px 16px;
  font-size: 14px; font-weight: 500; text-align: left;
  background: none; border: none; color: var(--text); cursor: pointer;
  transition: background .15s;
}
.post-menu-item:hover { background: var(--bg3); }
.post-menu-item.danger { color: var(--red); }

/* ── Quoted post (embedded in PostCard + compose) ── */
.quoted-post {
  margin: 8px 16px 4px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg2);
}
.quoted-post:hover { border-color: var(--purple); background: var(--bg3); }
.quoted-header { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.quoted-author { font-weight: 700; font-size: 13px; }
.quoted-handle { font-size: 12px; color: var(--muted); }
.quoted-content { font-size: 13px; color: var(--text); line-height: 1.4; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ── Compose quoted preview ── */
.compose-quoted {
  margin: 8px 0 4px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  pointer-events: none;
}

/* ── Stories bar ── */
.stories-bar {
  display: flex; gap: 12px; padding: 12px 16px; overflow-x: auto;
  border-bottom: 1px solid var(--border); background: var(--bg);
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; flex-shrink: 0;
}
.story-ring {
  width: 60px; height: 60px; border-radius: 50%;
  padding: 2.5px;
  background: var(--border);
  position: relative;
}
.story-ring.unread {
  background: linear-gradient(135deg, var(--red), var(--orange), #ff6b6b);
}
.story-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2.5px solid var(--bg);
  object-fit: cover;
  background: var(--bg3);
}
.story-ring .story-add-btn {
  position: absolute; bottom: 0; right: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 14px; font-weight: 900; line-height: 20px; text-align: center;
  border: 2px solid var(--bg);
}
.story-label {
  font-size: 11px; color: var(--muted); max-width: 64px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}

/* ── Story viewer overlay ── */
.story-viewer {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; flex-direction: column;
  touch-action: none;
}
.sv-progress-row {
  display: flex; gap: 3px; padding: 10px 10px 0;
}
.sv-progress-seg {
  flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3);
  overflow: hidden;
}
.sv-progress-fill {
  height: 100%; width: 0; background: #fff;
  transition: width linear;
}
.sv-progress-fill.done { width: 100%; }
.sv-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}
.sv-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--bg3);
}
.sv-info { flex: 1; min-width: 0; }
.sv-name { font-size: 14px; font-weight: 700; color: #fff; }
.sv-time { font-size: 11px; color: rgba(255,255,255,.6); }
.sv-close {
  background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.sv-media { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.sv-media img, .sv-media video {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.sv-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sv-text-caption {
  font-size: 24px; font-weight: 700; color: #fff;
  text-align: center; padding: 24px; text-shadow: 0 2px 12px rgba(0,0,0,.8);
  line-height: 1.4;
}
.sv-caption-bar {
  padding: 10px 16px 20px;
  font-size: 15px; color: rgba(255,255,255,.9);
  text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,.8);
  min-height: 44px;
}
.sv-tap-left, .sv-tap-right {
  position: absolute; top: 0; bottom: 0; width: 40%;
  cursor: pointer; z-index: 10;
}
.sv-tap-left { left: 0; }
.sv-tap-right { right: 0; }
.sv-views {
  font-size: 11px; color: rgba(255,255,255,.5);
  text-align: center; padding-bottom: 6px;
}

/* ── Comment likes ── */
.comment-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.comment-actions { display: flex; align-items: center; gap: 4px; }
.comment-like-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; padding: 2px 4px;
  transition: color .15s, transform .15s;
  line-height: 1;
}
.comment-like-btn:hover { color: var(--red); transform: scale(1.2); }
.comment-like-btn.liked { color: var(--red); }
.comment-like-count { font-size: 12px; color: var(--muted); min-width: 12px; }

/* ── Video double-tap burst ── */
@keyframes tiktokBurst {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  60%  { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* ── Compose autocomplete dropdown ── */
.ac-drop {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  max-height: 240px;
  overflow-y: auto;
}
.ac-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background .1s;
}
.ac-item:hover, .ac-item.active {
  background: rgba(99,102,241,.15);
  color: var(--accent, #818cf8);
}

/* ── New posts pill ── */
.new-posts-pill {
  position: sticky; top: 12px; z-index: 100;
  margin: 8px auto;
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  padding: 8px 20px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: pillSlide .3s ease;
  align-items: center; gap: 8px;
  justify-content: center;
}
@keyframes pillSlide {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ── Follow suggestions in empty feed ── */
.follow-suggest-wrap { margin-top: 12px; }
