.post-layout {
    max-width: 1200px; margin: 0 auto; padding: 24px 16px 32px;
    display: flex; gap: 24px; min-height: 60vh;
}
.post-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.post-sidebar {
    width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: calc(var(--header-h) + 16px); align-self: flex-start;
    max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
}
.post-full {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.post-full-title { font-size: 1.6rem; font-weight: 600; line-height: 1.3; color: #fff; }
.post-full-body { font-size: 0.95rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.post-full-body img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; cursor: zoom-in; }
.post-full-body blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--text-secondary); margin: 8px 0; }
.post-full-body code { background: var(--bg-surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-full-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.vote-buttons { display: flex; align-items: center; gap: 2px; background: var(--bg-surface); border-radius: 24px; padding: 2px; }
.post-action-btn {
    display: flex; align-items: center; gap: 6px; background: transparent; border: none;
    color: var(--text-muted); cursor: pointer; font-size: 0.82rem; padding: 8px 12px;
    border-radius: 20px; transition: var(--transition); font-family: inherit;
}
.post-action-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.post-action-btn.active { color: var(--accent); }
.comments-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.comments-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.comment-form { display: flex; gap: 10px; margin-bottom: 20px; }
.comment-input {
    flex: 1; background: var(--bg-input); border: 1px solid var(--border-strong);
    border-radius: 24px; padding: 10px 16px; color: var(--text); font-size: 0.85rem;
    outline: none; font-family: inherit;
}
.comment-submit {
    background: var(--accent); color: #fff; border: none; border-radius: 24px;
    padding: 0 18px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.comment-item.reply { margin-left: 48px; padding: 10px 0; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated); }
.comment-item.reply .comment-avatar { width: 28px; height: 28px; }
.comment-content { flex: 1; min-width: 0; }
.comment-author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 0.85rem; color: #fff; text-decoration: none; }
.comment-author:hover { color: var(--accent); }
.comment-time { font-size: 0.72rem; color: var(--text-muted); }
.comment-text { font-size: 0.88rem; line-height: 1.55; color: var(--text-secondary); }
.author-sidebar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.comment-meta button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: 0.7rem; }
.comment-meta .like-btn.active { color: var(--accent); }
.reply-form { margin-left: 42px; margin-top: 8px; display: none; gap: 8px; }
.reply-form.active { display: flex; }
.similar-post {
    display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer;
    text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border);
}
.similar-post:last-child { border-bottom: none; }
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.25s;
}
.lightbox-overlay.show { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; }
@media (max-width: 900px) {
    .post-layout { flex-direction: column; }
    .post-sidebar { display: none; }
    .post-full-title { font-size: 1.3rem; }
}
