.comments-section {
    margin-top: 24px;
    padding: 18px;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.comments-title {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.comments-subtitle {
    margin: 6px 0 0;
    color: #9c9c9c;
    font-size: 14px;
}

.comments-count {
    color: #f0f0f0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.comment-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 240px);
    gap: 12px;
}

.comment-field label {
    display: block;
    margin-bottom: 6px;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 600;
}

.comment-field input,
.comment-field textarea,
.comment-inline-name,
.comment-inline-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    border-radius: 12px;
    background: #101010;
    color: #fff;
    padding: 11px 14px;
    font-size: 14px;
}

.comment-field textarea,
.comment-inline-textarea {
    min-height: 44px;
    max-height: 240px;
    resize: none;
    overflow: hidden;
    line-height: 1.45;
}

.comment-form-actions,
.comment-inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-submit-btn,
.comment-cancel-btn,
.comment-reply-btn,
.comments-load-more-btn {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.comment-submit-btn {
    background: #e50914;
    color: #fff;
    padding: 10px 18px;
}

.comment-submit-btn.is-small,
.comment-cancel-btn.is-small {
    padding: 9px 14px;
    font-size: 13px;
}

.comment-cancel-btn {
    background: #2f2f2f;
    color: #fff;
    padding: 11px 18px;
}

.comment-reply-target {
    margin: -4px 0 0;
    color: #ffb7bc;
    font-size: 13px;
}

.comment-feedback,
.comment-inline-feedback {
    margin: 0;
    min-height: 20px;
    color: #9c9c9c;
    font-size: 13px;
}

.comment-feedback.is-success,
.comment-inline-feedback.is-success {
    color: #7ae582;
}

.comment-feedback.is-error,
.comment-inline-feedback.is-error {
    color: #ff8e8e;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comments-empty {
    color: #a5a5a5;
    background: #111;
    border: 1px dashed #333;
    border-radius: 14px;
    padding: 18px;
}

.comment-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-card {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.comment-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-avatar-wrap {
    flex: 0 0 auto;
}

.comment-avatar {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    background: #1b1b1b;
}

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

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

.comment-author {
    color: #fff;
    font-size: 13px;
}

.comment-date {
    color: #9e9e9e;
    font-size: 12px;
}

.comment-content {
    color: #dedede;
    line-height: 1.5;
    font-size: 14px;
    word-break: break-word;
}

.comment-actions {
    margin-top: 8px;
}

.comment-reply-btn {
    background: transparent;
    color: #bdbdbd;
    padding: 0;
    font-size: 13px;
}

.comment-reply-slot {
    margin-top: 10px;
}

.comment-inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.comment-inline-label {
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 600;
}

.comment-inline-row {
    display: block;
}

.comment-replies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 28px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-item.is-reply .comment-card {
    background: #141414;
}

.comment-item.is-reply .comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.comments-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.comments-load-more-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 11px 18px;
}

.comments-load-more-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 16px;
    }

    .comments-header {
        flex-direction: column;
    }

    .comments-count {
        white-space: normal;
    }

    .comment-form-grid {
        grid-template-columns: 1fr;
    }

    .comment-replies {
        margin-left: 12px;
        padding-left: 12px;
    }

    .comment-body {
        gap: 8px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}
