/* Long notes + reply-parent preview */
.nm-clamped {
    max-height: var(--nm-h, 340px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 64px), transparent);
}
.nm-more { margin: 4px 0 8px; }
.nm-more button, .nm-retry {
    padding: 3px 12px;
    font-size: 0.8rem;
    color: var(--purple-light);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
}
.nm-more button:hover, .nm-retry:hover { background: rgba(168, 85, 247, 0.35); color: #fff; }

.reply-parent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-left: 3px solid var(--purple-primary);
    border-radius: 8px;
}
.reply-parent[data-loaded] { cursor: pointer; }
.reply-parent[data-loaded]:hover { background: rgba(168, 85, 247, 0.15); }
.reply-parent img { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.reply-parent .nm-body { min-width: 0; flex: 1; }
.reply-parent .nm-text {
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.nm-muted { flex: 1; color: #999; }
.feed-content, .conversation-content { scroll-margin-top: calc(var(--thread-top, 0px) + 60px); }

/* Quote cards (naddr and other non-note kinds) */
.qc-card { display: flex; gap: 10px; align-items: stretch; cursor: pointer; overflow: hidden; }
.qc-card:hover { background: rgba(168, 85, 247, 0.12); }
.qc-img { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.qc-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.qc-kind { align-self: flex-start; padding: 0 8px; font-size: 0.7rem; color: var(--purple-light); border: 1px solid rgba(168, 85, 247, 0.5); border-radius: 10px; }
.qc-title { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-sub { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-by { color: #999; }

/* Link embeds: YouTube player and link preview cards */
.le-wrap { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; cursor: default; }
.le-yt { position: relative; aspect-ratio: 16 / 9; max-width: 560px; overflow: hidden; border-radius: 10px; background: #000; cursor: pointer; }
.le-yt img, .le-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.le-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: #fff; background: rgba(0, 0, 0, 0.25); transition: background 0.2s; }
.le-yt:hover .le-play { background: rgba(168, 85, 247, 0.35); }
.le-playing { cursor: default; }
.le-card { display: flex; gap: 10px; max-width: 560px; overflow: hidden; cursor: pointer; border: 1px solid rgba(168, 85, 247, 0.3); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.le-card:hover { background: rgba(168, 85, 247, 0.12); }
.le-card.le-loading { min-height: 0; height: 0; border: 0; }
.le-img { flex: none; width: 110px; object-fit: cover; }
.le-body { min-width: 0; padding: 8px 10px 8px 0; }
.le-card:not(:has(.le-img:not([hidden]))) .le-body { padding-left: 10px; }
.le-site { color: #999; }
.le-title { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.le-desc { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 576px) { .le-img { width: 84px; } }

/* Return bar shown in the view a quote card opened */
.qc-return { position: sticky; top: var(--mobile-bar-h, 0px); z-index: 80; display: flex; gap: 8px; padding: 8px 0; margin-bottom: 8px; background: #14142a; border-bottom: 2px solid var(--purple-primary); }
.qc-return button { padding: 4px 14px; font-size: 0.85rem; color: var(--purple-light); background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.4); border-radius: 14px; }
.qc-return button:hover { background: rgba(168, 85, 247, 0.35); color: #fff; }

.qc-zap .qc-bolt { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; font-size: 1.8rem; color: var(--bitcoin-orange, #f7931a); }
.qc-zap .qc-title { color: var(--bitcoin-orange, #f7931a); }
