.post-container {
    margin-top: 20px;
}

.post-card {
            max-width: 600px;
            margin: 0 auto 40px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            background: #2b2b2b;
        }
        
        .post-header {
            padding: 16px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #888;
        }
        
        .post-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 12px;
            object-fit: cover;
            cursor: pointer;
        }
        
        .post-author {
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
        }
        
        .post-time {
            color: #888;
            font-size: 13px;
            margin-left: 8px;
        }

.username-badge {
    display: flex;
    gap: 5px;
}

.username-badge-comment {
    display: flex;
    margin-right: 5px;
}
        
        .post-media {
            width: 100%;
            max-height: 600px;
            object-fit: cover;
            display: block;
        }

        .media-container video, 
.media-container img {
    width: 100%;
    display: block;
}
        
        .video-container {
            position: relative;
            background: #000;
        }
        
        .video-play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
        }
        
        .video-play-btn::after {
            content: "";
            border-style: solid;
            border-width: 12px 0 12px 20px;
            border-color: transparent transparent transparent #333;
            margin-left: 5px;
        }
        
        .post-footer {
            padding: 16px;
        }
        
        .post-stats {
            border-top: 1px solid #707070;
            padding: 12px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 14px;
            margin-bottom: 14px;
        }
        
        .like-container {
            display: flex;
            align-items: center;
        }

        .comments-count-container {
            display: flex;
            align-items: center;
        }
        
        .like-btn, .fuckyou-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #464646;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .like-btn:hover {
            background: #a7a7a7;
        }
        
        .like-btn.liked {
            background: rgba(255, 0, 0, 0.1);
            color: #ff0000;
        }
        
        .like-btn.liked path {
            fill: #ff0000;
            /* color: rgb(255, 100, 72); */
        }
        
        .like-count, .fuckyou-count {
            margin-left: 8px;
            font-weight: 500;
        }

        .comment-like {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #464646;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .comment-like:hover {
            background: #a7a7a7;
        }

        .comment-like.liked {
            background: rgba(255, 38, 0, 0.473);
        }

        .comment-like.liked path {
            fill: rgb(255, 114, 89);
        }

        .comment-footer span {
            /* background: none;
            border: none; */
            color: #a0a0a0;
            /* cursor: pointer; */
            padding: 0;
            font-size: 0.9em;
            margin-top: 5px;
        }

        .like-comment {
            display: flex;
            gap: 5px;
        }
        
        .view-count {
            color: #65676b;
            font-size: 14px;
        }
        
        .post-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .post-caption {
            /* margin-top: 14px; */
            padding: 0 0 12px;
            /* border-bottom: 1px solid #707070; */
            font-size: 20px;
            font-weight: 600;
            line-height: 1.4;
        }

.post-description {
    /* padding: 12px 0 12px; */
    /* border-bottom: 1px solid #707070; */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}
        
.comments-section {
    margin: 0 auto 40px;
    max-width: 600px;
    background: #2b2b2b;
    border-radius: 12px;
    padding: 20px;
}

.comments-section h2 {
    font-size: 20px;
    font-weight: 600;
}

.comment {
    display: flex;
    margin-bottom: 15px;
    background: #2b2b2b;
    /* border-radius: 12px; */
    padding: 15px;
    border-top: 1px solid #707070;
}

.comment[data-parent-id] {
    margin-left: 40px;
    border-left: 2px solid #a0a0a0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.comment-author {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

.comment-author:hover {
    color: #fff;
}

.comment-time {
    color: #a0a0a0;
    font-size: 0.85em;
}

.comment-actions {
    margin-left: auto;
    position: relative;
}

.comment-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
}

.comment-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #303030;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    min-width: 120px;
}

.comment-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.comment-menu button:hover {
    background: rgba(148, 148, 148, 0.3);
}

.comment-footer {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.comment-footer button {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
}

.comment-replies {
    margin-top: 15px;
    border-left: 1px solid #444;
    padding-left: 15px;
}

#commentForm {
    margin-bottom: 25px;
}

#commentForm textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    resize: vertical;
}

#commentForm button {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Форма ответа на комментарий */
.comment-reply-form {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #9e9e9e;
}

.reply-textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    resize: vertical;
}

.reply-controls {
    display: flex;
    gap: 10px;
}

.reply-controls button {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-send-reply {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
}

.btn-cancel-reply {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
}

/* Стили для редактирования комментария */
.edit-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    resize: vertical;
}

.edit-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-save, .btn-cancel {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-save {
    background: #9D3162;
    color: white;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
}

.moderation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.moderation-warning {
    /* background: #2b2b2b; */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 80%;
}

.moderation-warning p {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.moderation-warning button {
    background: #9d316200;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #fff;
    cursor: pointer;
    font-weight: 600;
}

.media-container {
    position: relative; /* Добавить для позиционирования оверлея */
}

.clip-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение 16:9 */
    height: 0;
    overflow: hidden;
}

.clip-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.reactions-container {
    display: flex;
    gap: 10px;
}

.fuckyou-container {
    display: flex;
    align-items: center;
}

.fuckyou-btn:hover {
    background: #a7a7a7;
}

.fuckyou-btn.fuckyou {
    background: rgba(255, 165, 0, 0.1);
}

.fuckyou-btn.fuckyou path {
    fill: orange;
}

.sign-in-button {
    margin-left: 12px;
    background: #8225fc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-in-button:hover {
    background: #6a1fc9;
    transform: translateY(-2px);
}

.delete-button {
    background: #fc2525;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-button:hover {
    background: #c91f1f;
    transform: translateY(-2px);
}