body {
    background-color: #edeef0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0; padding: 20px; color: #000;
    background-size: cover; background-position: center; background-attachment: fixed;
    transition: background 0.3s ease;
}
.container { max-width: 600px; margin: 0 auto; }
.card, .upload-card, .post-card {
    background: #fff; border-radius: 8px;
    box-shadow: 0 1px 0 0 #dce1e6, 0 0 0 1px #e7e8ec;
    padding: 15px; margin-bottom: 15px;
}
#auth-panel { display: flex; justify-content: space-between; align-items: center; }
.auth-forms { display: flex; gap: 10px; width: 100%; }
.auth-forms input, #uploadForm input, #uploadForm textarea { padding: 8px; border: 1px solid #dce1e6; border-radius: 4px; flex-grow: 1; font-family: inherit;}
button { background-color: #5181b8; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: 600; transition: 0.2s;}
button:hover { background-color: #4a76a8; }

/* НАВИГАЦИЯ */
.nav-bar { display: flex; gap: 10px; margin-bottom: 15px; }
.nav-bar button { flex-grow: 1; padding: 12px; font-size: 16px; background: #fff; color: #2a5885; border: 1px solid #dce1e6; box-shadow: 0 1px 0 0 #dce1e6; }
.nav-bar button.active { background: #5181b8; color: white; border-color: #5181b8; }
.nav-bar button:hover:not(.active) { background: #f0f2f5; }

/* Пост */
.post-header { display: flex; justify-content: space-between; font-size: 14px; color: #818c99; margin-bottom: 10px; }
.post-author { font-weight: bold; color: #2a5885; text-decoration: none; cursor: pointer;}
.post-author:hover { text-decoration: underline; }
.post-title { font-size: 18px; font-weight: bold; margin: 0 0 5px 0; }
.post-desc { margin-bottom: 15px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.post-media img { width: 100%; border-radius: 4px; display: block; }
.post-media audio { width: 100%; margin-top: 10px; }
.file-download { display: inline-block; background: #e5ebf1; color: #2c2d2e; padding: 10px; border-radius: 4px; text-decoration: none; margin-top: 10px; font-weight: bold; }

/* Комментарии */
.comments-section { margin-top: 15px; border-top: 1px solid #e7e8ec; padding-top: 10px; }
.comment { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; align-items: flex-start; }
.comment-avatar { width: 32px; height: 32px; background: #5181b8; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0;}
.comment-content { background: #f0f2f5; padding: 8px 12px; border-radius: 8px; flex-grow: 1; }
.comment-author { font-weight: bold; color: #2a5885; display: block; margin-bottom: 2px; }
.comment-form { display: flex; gap: 8px; margin-top: 15px; }
.comment-form input { flex-grow: 1; padding: 8px; border: 1px solid #dce1e6; border-radius: 4px; }
.show-more-btn { background: none; border: none; color: #5181b8; cursor: pointer; padding: 0; font-size: 13px; margin-top: 5px; font-weight: bold;}
.show-more-btn:hover { background: none; text-decoration: underline; }
.del-btn { background: none; border: none; color: #e64a4a; cursor: pointer; font-size: 12px; padding: 0; margin-top: 5px; }

/* Модалка и профиль */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: #fff; padding: 20px; border-radius: 8px; width: 300px; display: flex; flex-direction: column; gap: 10px; }
.user-header { text-align: center; background: rgba(255,255,255,0.9) !important; }
.user-header h1 { margin: 0; color: #2a5885; }