/* ═══════════════════════════════════════════════════════════════════════
   FEED 4D — Hot theme (extracted from feed.php)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --hot-pink:#ff2d95; --hot-orange:#ff6b35; --hot-purple:#a855f7; --hot-cyan:#00e5ff;
  --hot-lime:#a3e635; --hot-yellow:#fbbf24;
  --hot-card:rgba(20,20,35,.72); --hot-border:rgba(255,255,255,.08);
  --hot-text:#eaeaf5; --hot-muted:#8b8ba7;
  --hot-glow-pink:  0 0 24px -6px rgba(255,45,149,.75);
  --hot-glow-cyan:  0 0 24px -6px rgba(0,229,255,.75);
}
* { box-sizing: border-box; }

/* Orbiting background */
.fd-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fd-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .22; animation: fdOrbit 26s ease-in-out infinite; }
.fd-orbs span:nth-child(1) { width: 480px; height: 480px; background: var(--hot-pink); top: -10%; left: -10%; }
.fd-orbs span:nth-child(2) { width: 400px; height: 400px; background: var(--hot-cyan); top: 35%; right: -10%; animation-delay: -9s; }
.fd-orbs span:nth-child(3) { width: 360px; height: 360px; background: var(--hot-purple); bottom: -10%; left: 30%; animation-delay: -18s; }
@keyframes fdOrbit {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(50px,-40px) scale(1.12); }
  66%     { transform: translate(-40px,50px) scale(.9); }
}

.feed-wrap { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.feed-wrap h1 {
  font-size: 2rem; font-weight: 900; letter-spacing: -.02em; margin: .5rem 0 1rem;
  background: linear-gradient(90deg, #fff, #ffb3d9 40%, #b3f0ff 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,45,149,.35));
}

/* Floating sidebar toggle */
.sb-float-toggle {
  position: fixed; top: 50%; left: 8px;
  transform: translate(-100%, -50%);
  z-index: 180; width: 44px; height: 88px;
  border: 0; border-radius: 0 14px 14px 0; cursor: pointer; color: #fff;
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,.95), rgba(140,92,255,.95));
  box-shadow: 0 12px 32px -10px rgba(79,70,229,.9), inset 0 1px 0 rgba(255,255,255,.35);
  opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s, filter .2s;
}
.sb-float-toggle.show { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.sb-float-toggle:hover { filter: brightness(1.15); }
@media (min-width: 901px) { html:not(.sb-collapsed) .sb-float-toggle { left: var(--sb-width); } }

/* Feed controls */
.feed-controls {
  position: sticky; top: 0; z-index: 100; margin: 0 0 1rem;
  background: rgba(10,10,20,.92);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--hot-border); border-radius: 14px; padding: .65rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px -25px rgba(0,0,0,.9);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s;
}
.feed-controls.hidden { transform: translateY(-120%); opacity: 0; pointer-events: none; }
.controls-toggle {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  padding: .55rem .85rem; font-size: .9rem; font-weight: 800;
  font-family: inherit; color: var(--hot-text);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); border-radius: 9px; cursor: pointer;
  transition: all .25s;
}
.controls-toggle:hover { background: rgba(255,255,255,.08); border-color: var(--hot-cyan); }
.controls-toggle .arrow { margin-left: auto; transition: transform .3s; }
.feed-controls.open .controls-toggle .arrow { transform: rotate(180deg); }
.controls-content { max-height: 0; overflow: hidden; transition: max-height .4s ease, margin-top .3s; margin-top: 0; }
.feed-controls.open .controls-content { max-height: 520px; margin-top: .75rem; overflow-y: auto; padding-right: .35rem; }
.fc-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .35rem 0; }
.fc-row + .fc-row { border-top: 1px solid rgba(255,255,255,.06); margin-top: .35rem; }
.fc-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--hot-muted); margin-right: .35rem; min-width: 60px; }
.fc-chip {
  padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--hot-text); text-decoration: none; transition: all .25s;
  cursor: pointer; font-family: inherit;
}
.fc-chip:hover { background: rgba(255,255,255,.08); border-color: var(--hot-cyan); text-decoration: none; }
.fc-chip.active { background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); border-color: transparent; color: #fff; }

/* Advertise prompt */
.advertise-prompt {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; margin-bottom: 1rem; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,45,149,.12), transparent 55%),
    radial-gradient(100% 100% at 100% 100%, rgba(0,229,255,.10), transparent 55%),
    linear-gradient(160deg, rgba(20,20,35,.9), rgba(12,12,24,.95));
  border: 1px solid rgba(255,45,149,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -28px rgba(255,45,149,.5);
  position: relative; overflow: hidden;
}
.advertise-prompt-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 24px -10px rgba(255,45,149,.9);
  flex-shrink: 0;
}
.advertise-prompt-body { flex: 1; min-width: 0; }
.advertise-prompt-title { font-weight: 800; font-size: .95rem; color: #fff; margin: 0 0 .15rem; }
.advertise-prompt-sub { font-size: .8rem; color: var(--hot-muted); margin: 0; }
.advertise-prompt-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  color: #fff; font-family: inherit; font-size: .82rem; font-weight: 800;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -10px rgba(255,45,149,.9);
  transition: all .2s;
}
.advertise-prompt-btn:hover { filter: brightness(1.1); transform: translateY(-2px); color: #fff; }
.advertise-prompt-close { background: none; border: 0; color: var(--hot-muted); cursor: pointer; font-size: 1rem; padding: .25rem; border-radius: 6px; flex-shrink: 0; }

/* Composer */
.hot-composer {
  position: relative; margin-bottom: 1.25rem; border-radius: 20px; padding: 2px;
  background: linear-gradient(135deg, rgba(255,45,149,.55), rgba(168,85,247,.55), rgba(0,229,255,.55), rgba(255,45,149,.55));
  background-size: 300% 300%;
  animation: hotBorderFlow 12s linear infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 60px -28px rgba(255,45,149,.55);
}
@keyframes hotBorderFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hot-composer-inner {
  position: relative; border-radius: 18px; padding: 1rem 1.05rem 1.05rem;
  background: linear-gradient(160deg, rgba(20,20,35,.96), rgba(12,12,24,.98));
  backdrop-filter: blur(16px) saturate(150%);
}
.hot-composer-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.hot-composer-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); flex-shrink: 0; }
.hot-composer-head .hch-name { font-weight: 800; font-size: .95rem; color: #fff; }
.hot-composer-head .hch-hint { font-size: .78rem; color: var(--hot-muted); margin-top: .1rem; }
.hot-textarea { width: 100%; min-height: 64px; max-height: 320px; padding: .35rem .25rem .5rem; border: 0; background: transparent; color: var(--hot-text); font-family: inherit; font-size: 1rem; line-height: 1.5; resize: none; outline: none; }
.hot-textarea::placeholder { color: rgba(139,139,167,.85); }
.hot-char-row { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; font-size: .75rem; color: var(--hot-muted); padding: 0 .25rem .35rem; }
.hot-char-row .char-count.warn { color: var(--hot-yellow); }
.hot-char-row .char-count.danger { color: #ff5c8a; }
.hot-char-ring { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--hot-cyan) 0turn, var(--hot-cyan) var(--p, 0turn), rgba(255,255,255,.1) var(--p, 0turn)); display: inline-flex; position: relative; }
.hot-char-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: rgba(15,15,28,.95); }
.hot-media-grid { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: .5rem .25rem .25rem; }
.hot-media-grid:empty { display: none; }
.hot-media-item { position: relative; border-radius: 12px; overflow: hidden; background: #0a0a14; border: 1px solid rgba(255,255,255,.08); aspect-ratio: 1/1; }
.hot-media-item img, .hot-media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-media-item .hm-badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: .68rem; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.hot-media-item .hm-remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(0,0,0,.75); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.hot-context-row { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem .25rem 0; }
.hot-context-row:empty { display: none; }
.hot-context-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: linear-gradient(135deg, rgba(255,45,149,.18), rgba(168,85,247,.18)); border: 1px solid rgba(255,45,149,.35); color: #fff; }
.hot-context-chip .hcc-x { background: none; border: 0; color: #fff; cursor: pointer; font-size: .85rem; line-height: 1; padding: 0; opacity: .7; }
.hot-progress { height: 4px; margin: .55rem .25rem 0; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; display: none; }
.hot-progress.show { display: block; }
.hot-progress > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--hot-pink), var(--hot-cyan)); border-radius: inherit; transition: width .15s linear; }
.hot-status { margin: .35rem .25rem 0; font-size: .78rem; color: var(--hot-muted); min-height: 16px; }
.hot-toolbar { display: flex; align-items: center; gap: .3rem; padding-top: .75rem; margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.hot-tool { position: relative; width: 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--hot-text); font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s, background .18s, border-color .18s; font-family: inherit; }
.hot-tool:hover { background: rgba(255,255,255,.09); border-color: rgba(0,229,255,.45); transform: translateY(-2px); }
.hot-toolbar-spacer { flex: 1; }
.hot-post-btn { padding: .55rem 1.35rem; border: 0; border-radius: 11px; font-family: inherit; font-size: .9rem; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple) 55%, var(--hot-cyan)); background-size: 200% 200%; animation: hotBtnFlow 6s ease-in-out infinite; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 28px -10px rgba(255,45,149,.85); transition: transform .18s, filter .18s; }
@keyframes hotBtnFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hot-post-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hot-post-btn:disabled { filter: grayscale(.4) brightness(.8); cursor: not-allowed; animation: none; }
.hot-post-btn .hp-hint { font-weight: 500; font-size: .72rem; opacity: .8; margin-left: .35rem; }

/* Reels strip */
.reels-strip { display: flex; flex-direction: column; gap: .65rem; padding: .85rem; margin-bottom: 1rem; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 45%), var(--hot-card); border: 1px solid var(--hot-border); border-radius: 14px; }
.reels-strip-head { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--hot-text); font-weight: 800; font-size: .95rem; }
.reels-strip-title { background: linear-gradient(90deg, var(--hot-pink), var(--hot-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reels-strip-more { margin-left: auto; font-size: .78rem; color: var(--hot-muted); font-weight: 600; }
.reels-strip-scroll { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.reels-strip-scroll::-webkit-scrollbar { display: none; }
.reel-thumb { flex-shrink: 0; width: 110px; text-decoration: none; color: inherit; transition: transform .22s; }
.reel-thumb:hover { transform: translateY(-3px); color: inherit; }
.reel-thumb-preview { position: relative; width: 110px; height: 180px; border-radius: 12px; overflow: hidden; background: #000; border: 2px solid transparent; background-image: linear-gradient(#000,#000), linear-gradient(135deg, var(--hot-pink), var(--hot-purple), var(--hot-cyan)); background-origin: border-box; background-clip: padding-box, border-box; }
.reel-thumb-preview img, .reel-thumb-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-thumb-play { position: absolute; bottom: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; }
.reel-thumb-views { position: absolute; bottom: 8px; right: 8px; padding: .15rem .45rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .65rem; font-weight: 700; }
.reel-thumb-info { display: flex; align-items: center; gap: .35rem; margin-top: .35rem; }
.reel-thumb-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,.15); }
.reel-thumb-name { font-size: .72rem; font-weight: 700; color: var(--hot-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* Stories */
.stories-bar { display: flex; gap: .75rem; overflow-x: auto; padding: .75rem; margin-bottom: 1rem; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 45%), var(--hot-card); border: 1px solid var(--hot-border); border-radius: 14px; scrollbar-width: none; }
.stories-bar::-webkit-scrollbar { display: none; }
.story { flex-shrink: 0; text-align: center; cursor: pointer; transition: transform .25s; }
.story:hover { transform: translateY(-3px); }
.story-avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--hot-pink), var(--hot-orange), var(--hot-cyan)); display: inline-block; }
.story-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--hot-card); display: block; }
.story-avatar.me::after { content: "+"; position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--hot-card); }
.story-name { font-size: .72rem; color: var(--hot-text); margin-top: .35rem; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* Trending */
.trending-bar { display: flex; gap: .5rem; align-items: center; padding: .65rem .9rem; margin-bottom: 1rem; background: linear-gradient(90deg, rgba(255,45,149,.10), rgba(0,229,255,.08)); border: 1px solid rgba(255,45,149,.3); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.trending-bar::-webkit-scrollbar { display: none; }
.trending-icon { flex-shrink: 0; font-size: 1rem; }
.trend-tag { flex-shrink: 0; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--hot-text); font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid rgba(255,255,255,.08); transition: all .25s; }
.trend-tag:hover { background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); border-color: transparent; color: #fff; text-decoration: none; }

/* Suggested */
.suggested-strip { display: flex; gap: .75rem; overflow-x: auto; padding: .75rem; margin-bottom: 1rem; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 45%), var(--hot-card); border: 1px solid var(--hot-border); border-radius: 14px; scrollbar-width: none; }
.suggested-strip::-webkit-scrollbar { display: none; }
.sug-card { flex-shrink: 0; width: 130px; text-align: center; padding: .5rem; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.sug-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hot-cyan); }
.sug-card a { color: #fff; font-weight: 700; font-size: .82rem; display: block; margin-top: .35rem; text-decoration: none; }
.sug-card a:hover { color: var(--hot-cyan); }
.sug-card .sug-btn { display: inline-block; margin-top: .4rem; padding: .3rem .7rem; font-size: .72rem; font-weight: 700; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); color: #fff; cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════════════
   POST CARD — 4D
   ═══════════════════════════════════════════════════════════════════════ */
.feed { display: flex; flex-direction: column; gap: 1rem; }
.feed.feed-view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .feed.feed-view-grid { grid-template-columns: 1fr; } }

.post {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01) 45%),
    var(--hot-card);
  border: 1px solid var(--hot-border);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 50px -30px rgba(0,0,0,.9);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  transform-style: preserve-3d;
  animation: fdPostIn .5s cubic-bezier(.2,.8,.2,1) backwards;
}
@keyframes fdPostIn { from { opacity: 0; transform: translateY(20px) rotateX(-4deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }

.post:hover {
  border-color: rgba(255,45,149,.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 30px 60px -24px rgba(255,45,149,.5),
    0 0 36px -12px rgba(0,229,255,.3);
}
.post::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.07), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.post:hover::after { opacity: 1; }

.post.post-pinned { border-color: rgba(251,191,36,.4); }
.post.post-featured { border-color: rgba(168,85,247,.4); }
.post.post-dimmed { opacity: .4; filter: grayscale(.6); }

.post-flags { display: flex; gap: .35rem; margin-bottom: .5rem; flex-wrap: wrap; }
.post-flag { font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.flag-pin  { background: rgba(251,191,36,.18); color: #fcd34d; border: 1px solid rgba(251,191,36,.4); }
.flag-feat { background: rgba(168,85,247,.18); color: #d8b4fe; border: 1px solid rgba(168,85,247,.4); }

.post header {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem;
  position: relative;
}
.post header img.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.post header > div {
  flex: 1; min-width: 0;
}
.post header a {
  display: block; color: #fff; font-weight: 800; font-size: .95rem;
  text-decoration: none; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post header a:hover { color: var(--hot-cyan); }
.post header time {
  font-size: .74rem; color: var(--hot-muted);
  display: block;
  margin-top: .1rem;
}
.post header time[title] { cursor: help; }

/* Post menu button (⋯) */
.post-menu-btn {
  position: absolute; top: 0; right: 0;
  width: 34px; height: 34px; border-radius: 10px;
  border: 0; background: transparent; color: var(--hot-muted);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 3;
}
.post-menu-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.post-menu-btn.active { background: rgba(255,255,255,.1); color: #fff; }

.post-menu {
  position: absolute;
  top: 40px; right: 8px;
  z-index: 50;
  min-width: 200px;
  background: rgba(15,15,28,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .35rem;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.95);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transition: opacity .16s, transform .16s;
}
.post-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.post-menu-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 8px;
  color: var(--hot-text); font-size: .86rem; font-weight: 600;
  cursor: pointer; border: 0; background: none; font-family: inherit;
  width: 100%; text-align: left;
  transition: background .15s;
}
.post-menu-item:hover { background: rgba(255,255,255,.06); }
.post-menu-item.danger { color: #fca5a5; }
.post-menu-item.danger:hover { background: rgba(239,68,68,.12); }
.post-menu-item .mi-icon { width: 20px; text-align: center; }
.post-menu-item.sep { border-top: 1px solid rgba(255,255,255,.08); margin-top: .25rem; padding-top: .55rem; }

.post-content {
  color: var(--hot-text); font-size: 1rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  margin-bottom: .65rem;
}
.post-content.truncated { max-height: 4.8em; overflow: hidden; position: relative; }
.post-content.truncated::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2em;
  background: linear-gradient(180deg, transparent, rgba(12,12,24,.95));
  pointer-events: none;
}
.post-readmore {
  background: none; border: 0; color: var(--hot-cyan); font-family: inherit;
  font-weight: 700; font-size: .85rem; cursor: pointer; padding: .1rem 0 .55rem;
}
.post-readmore:hover { color: #fff; }

.post-rich { color: var(--hot-text); font-size: .96rem; line-height: 1.6; margin-bottom: .65rem; }
.post-rich img { max-width: 100%; border-radius: 10px; }

/* Media */
.post-media, .video-card {
  display: block; width: 100%; max-height: 520px;
  object-fit: contain; background: #000;
  border-radius: 12px; margin-bottom: .65rem;
  cursor: zoom-in;
  transition: transform .3s;
}
.post-media:hover { transform: scale(1.005); }
.video-card { position: relative; cursor: pointer; }
.video-card img { width: 100%; max-height: 520px; object-fit: cover; display: block; border-radius: 12px; }
.video-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1a2e, #0f0f1a); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.video-placeholder-icon { font-size: 3rem; }
.play-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.75); color: #fff; padding: .4rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 800; backdrop-filter: blur(8px); }
.duration { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.75); color: #fff; padding: .3rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 800; }
.attach-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--hot-cyan); text-decoration: none; font-weight: 700; font-size: .88rem;
  margin-bottom: .65rem;
}
.attach-link:hover { background: rgba(0,229,255,.1); border-color: var(--hot-cyan); color: #fff; text-decoration: none; }

/* Comments */
.comments {
  margin-top: .5rem; padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.comment {
  font-size: .88rem; line-height: 1.5; padding: .35rem 0;
  color: var(--hot-text); word-break: break-word;
}
.comment strong { color: var(--hot-cyan); margin-right: .35rem; }
.comment-form { display: flex; gap: .5rem; margin-top: .5rem; }
.comment-form input {
  flex: 1; padding: .55rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.4);
  color: var(--hot-text); font-family: inherit; font-size: .85rem;
}
.comment-form input:focus { outline: none; border-color: var(--hot-cyan); }
.comment-form button {
  padding: .55rem 1rem; border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  color: #fff; font-family: inherit; font-weight: 800; font-size: .82rem;
  cursor: pointer;
}

/* Scroll top + banner */
.new-posts-banner { position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-80px); z-index: 950; padding: .65rem 1.2rem; border-radius: 999px; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); color: #fff; font-weight: 800; font-size: .85rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(255,45,149,1); opacity: 0; transition: transform .35s, opacity .35s; }
.new-posts-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.scroll-top { position: fixed; right: 22px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 28px -10px rgba(255,45,149,.9); opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .3s; z-index: 900; }
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Ads */
.feed-ad { margin: 1rem 0; text-align: center; border-radius: 14px; overflow: hidden; }
.feed-ad img { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════
   EDIT MODAL / LIGHTBOX / REPORT MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.fd-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fdFade .2s ease;
}
@keyframes fdFade { from { opacity: 0; } to { opacity: 1; } }
.fd-modal.hidden { display: none; }

.fd-modal-card {
  width: 100%; max-width: 560px;
  background: linear-gradient(160deg, rgba(20,20,35,.98), rgba(12,12,24,.99));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.95), 0 0 60px -20px rgba(255,45,149,.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.fd-modal-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, rgba(255,45,149,.6), transparent 40%, rgba(0,229,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.fd-modal-card h2 {
  margin: 0 0 1rem; color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.fd-modal-card h2::before { content: '✏️'; }
.fd-modal-card.report h2::before { content: '⚠️'; }
.fd-modal-card.delete h2::before { content: '🗑️'; }

.fd-label {
  display: block; margin-bottom: .8rem;
  font-size: .76rem; font-weight: 800; color: var(--hot-muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.fd-input, .fd-textarea, .fd-select {
  width: 100%; margin-top: .35rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
  color: var(--hot-text);
  font-family: inherit; font-size: .92rem;
}
.fd-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.fd-input:focus, .fd-textarea:focus, .fd-select:focus {
  outline: none; border-color: var(--hot-cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,.15);
}

.fd-modal-actions {
  display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.1rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08);
}
.fd-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1.2rem; border-radius: 10px; border: 0;
  font-family: inherit; font-size: .88rem; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: filter .2s, transform .2s;
}
.fd-btn:hover { transform: translateY(-1px); }
.fd-btn.primary { background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple)); color: #fff; box-shadow: 0 12px 26px -12px rgba(255,45,149,1); }
.fd-btn.primary:hover { filter: brightness(1.1); }
.fd-btn.ghost { background: rgba(255,255,255,.05); color: var(--hot-text); border: 1px solid rgba(255,255,255,.12); }
.fd-btn.ghost:hover { background: rgba(255,255,255,.1); }
.fd-btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.fd-btn.danger:hover { filter: brightness(1.1); }
.fd-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.5); }

.fd-char-count {
  font-size: .75rem; color: var(--hot-muted); text-align: right;
  margin-top: .35rem; font-weight: 600;
}
.fd-char-count.warn { color: var(--hot-yellow); }
.fd-char-count.over { color: #fca5a5; }

/* Lightbox */
.fd-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  animation: fdFade .22s ease;
  padding: 1rem;
}
.fd-lightbox.hidden { display: none; }
.fd-lightbox img {
  max-width: 95vw; max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(255,45,149,.5);
}
.fd-lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.fd-lightbox-close:hover { background: rgba(239,68,68,.3); border-color: #ef4444; transform: rotate(90deg); }

/* Toast */
.fd-toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: .85rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hot-pink), var(--hot-purple));
  color: #fff; font-weight: 700; font-size: .88rem;
  z-index: 99999;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 20px 50px -15px rgba(255,45,149,1);
  animation: fdToastIn .3s cubic-bezier(.2,.8,.2,1);
  max-width: 340px;
}
@keyframes fdToastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.fd-toast.ok { background: linear-gradient(135deg, var(--hot-lime), #16a34a); color: #0a1a0a; }
.fd-toast.err { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Grid-view overrides */
.feed-view-grid .post { padding: .9rem .95rem; }
.feed-view-grid .post-media,
.feed-view-grid .video-card,
.feed-view-grid .video-card img { max-height: 260px; object-fit: cover; }
.feed-view-grid .post-content { font-size: .94rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hot-composer, .hot-post-btn, .hot-tool, .sb-float-toggle, .feed-controls, .post, .fd-orbs span {
    animation: none !important; transition: none !important;
  }
}
@media (max-width: 520px) {
  .advertise-prompt { flex-wrap: wrap; gap: .75rem; }
  .advertise-prompt-btn { width: 100%; justify-content: center; }
}