.comment-block {
    display: block;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.comment-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
}

.comment-block__title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    color: #0C0C0D;
    margin: 0;
}

.comments-count {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #7f7f7f;
}

.comment-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 24px 0;
    padding: 0 0 0 8px;
    width: 100%;
}

.comment-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px 0;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    aspect-ratio: 1/1;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    background: var(--c-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--c-slate-600);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.comment-user__name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: #0C0C0D;
    text-decoration: none;
}

.comment-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 0 0 56px;
    width: 100%;
}

.comment-body p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #555659;
    margin: 0;
}

/* Jumbo-emoji: сообщение состоит только из эмодзи (Unicode + custom :slug:).
   Telegram/WhatsApp-стиль — крупно, без визуальной «обёртки» текста.
   До 8 эмодзи; больше — рендерится обычным размером (см. isOnlyEmojiMessage). */
.comment-body p.comment-body__msg--emoji-only {
    font-size: 36px;
    line-height: 1.1;
}
.comment-body p.comment-body__msg--emoji-only .custom-emoji {
    width: 40px;
    height: 40px;
    vertical-align: -10px;
}

/* Стикер-комментарий: отдельная картинка вместо <p>, рендерится крупно
   как в Telegram. Backend распознаёт body=`[sticker:N]` и резолвит url.
   2026-05-02. */
.comment-body .comment-sticker {
    display: block;
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 10px;
    user-select: none;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-date,
.replay,
.delete-action {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #A0A2A8;
    margin: 0;
}

.replay {
    text-decoration: underline;
    cursor: pointer;
}

.delete-action {
    color: #ff3b30;
    cursor: pointer;
    opacity: 0.7;
}

.delete-action:hover {
    opacity: 1;
}

.comment-item__reply {
    width: 100%;
    padding: 16px 0 0 0;
}

.comment-item__reply:empty {
    padding: 0;
}

.comment-item__reply .user-avatar {
    width: 36px;
    height: 36px;
}

.post-comment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    background: #F2F4F7;
    width: 100%;
    position: relative;
    border: none;
    outline: none;
    margin: 0 0 28px 0;
}

.form-avatar {
    width: 52px;
    height: 52px;
    aspect-ratio: 1/1;
    border-radius: 6px;
    flex: 0 0 auto;
    object-fit: cover;
}

.submit-comment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
}

.comment-input {
    padding: 15px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #0C0C0D;
    border-radius: 12px;
    background: #FFF;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    height: 52px;
    max-height: 150px;
}

.comment-input::placeholder {
    opacity: .4;
}

/* Mobile */
@media (max-width: 768px) {
    .comment-block__title {
        font-size: 20px;
        font-weight: 500;
    }

    .comment-user__name {
        font-size: 16px;
    }

    .comment-bottom {
        padding: 0 0 0 42px;
    }

    .user-avatar,
    .comment-item__reply .user-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-col {
        gap: 20px;
    }

    .form-avatar {
        display: none;
    }

    .comment-input {
        height: 50px;
        padding: 16px;
        font-size: 16px;
    }

    .submit-comment {
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 36px;
        height: 36px;
    }

    .submit-comment svg {
        width: 15px;
        height: 15px;
    }

    .post-comment .emoji-picker-container {
        position: absolute;
        right: 56px;
        bottom: 12px;
        height: 36px;
    }

    .post-comment .emoji-trigger {
        font-size: 24px;
        padding: 0 6px;
    }

    .post-comment .comment-input {
        padding-right: 88px;
    }

    /* JS (CommentSystem.js renderMainInput) рендерит инлайн style="width:52px;height:52px"
       на .user-avatar — inline-стиль перебивает мобильную норму 32px и съедает ширину,
       placeholder «Напишите комментарий» переносится на 2 строки. !important нужен
       именно для побеждения inline-style. */
    .post-comment .user-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    /* На мобилке строка действий длиннее экрана (дата + Ответить + Удалить + Пожаловаться) —
       разрешаем перенос, иначе «Пожаловаться» уезжает за правый край */
    .comment-actions {
        flex-wrap: wrap;
        row-gap: 6px;
    }

}

/* В комментариях «Пожаловаться» отображается только иконкой-треугольником
   (на любом разрешении) — текст скрыт, но доступен скрин-ридерам через title */
.comment-report .report-label {
    display: none;
}