.comments {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 32px 0 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.comments__header {
    margin-bottom: 24px;
}

.comments__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.comments__count {
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
}

.comments__empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.2);
    font-size: 14px;
}



.comment-form-wrap {
    margin-bottom: 32px;
}

.comment-form {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-form--reply {
    margin-top: 12px;
}

.comment-form--reply .comment-form__avatar {
    display: none;
}

.comment-form__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-form__body {
    flex: 1;
    min-width: 0;
}

.comment-form__fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-form__input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.comment-form__input:focus {
    border-color: rgba(255,255,255,0.2);
}

.comment-form__input::placeholder,
.comment-form__textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.comment-form__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.comment-form__textarea:focus {
    border-color: rgba(255,255,255,0.2);
}

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

.comment-form__note {
    font-size: 11px;
    color: rgb(238, 231, 231);
}

.comment-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #e5383577;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.comment-form__submit:hover {
    background: #c62828;
}

.comment-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-form__cancel {
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.comment-form__cancel:hover {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.15);
}

.comment-form__reply-to {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border-left: 3px solid rgba(229,57,53,0.3);
}

.comment-form__reply-to strong {
    color: rgba(255,255,255,0.6);
}



.comment {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    align-items: flex-start;
}

.comment + .comment {
    border-top: 1px solid rgba(255,255,255,0.04);
}


.comment__avatar {
    flex-shrink: 0;
}

.comment__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment__avatar-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}


.comment__body {
    flex: 1;
    min-width: 0;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment__author {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.comment__badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #e53935;
    background: rgba(229,57,53,0.1);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 4px;
    vertical-align: middle;
}

.comment__date {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

.comment__content {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment__content p {
    margin: 0 0 8px;
}


.comment__actions {
    margin-top: 8px;
}

.comment__reply-btn {
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    font-family: inherit;
}

.comment__reply-btn:hover {
    color: #e53935;
}

.comment__reply-form {
    margin-top: 4px;
}



.comment__children {
    margin-left: 54px;
    border-left: 2px solid rgba(255,255,255,0.04);
}

.comment--reply {
    padding-left: 16px;
}

.comment--reply .comment__avatar-initial,
.comment--reply .comment__avatar img {
    width: 32px;
    height: 32px;
    font-size: 13px;
}



.comment-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #43a047;
    border-radius: 8px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.comment-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.comment-toast--error {
    background: #e53935;
}



@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 768px) {
    .comments {
        margin-top: 32px;
        padding: 24px 0 32px;
    }

    .comment-form__fields {
        flex-direction: column;
    }

    .comment__children {
        margin-left: 28px;
    }

    .comment--reply {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .comment-form {
        flex-direction: column;
        gap: 10px;
    }

    .comment-form__avatar {
        display: none;
    }

    .comment__children {
        margin-left: 16px;
    }

    .comment__avatar-initial,
    .comment__avatar img {
        width: 32px;
        height: 32px;
    }

    .comment--reply .comment__avatar-initial,
    .comment--reply .comment__avatar img {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}