#comments.video-comments-section { padding: 8px; }
.video-comments-section .heading {
    padding: 8px;
    border-bottom: 1px solid var(--vid-header-to);
    background: linear-gradient(to bottom, var(--vid-header-from), var(--vid-header-to));
    color: var(--vid-header-text);
}
.video-comments-section .heading h4 { margin: 0; font-size: inherit; color: inherit; }
.video-comments-section .comments-body { padding: 6px; }
.video-comments-section .comment-count-links { margin: 0 0 8px; }
.video-comments-section .comments-table { table-layout: fixed; }
.video-comments-section .cb-author-cell { text-align: center; overflow-wrap: anywhere; }
.video-comments-section .cb-author-name { display: block; margin-bottom: 5px; }
.video-comments-section .cb-author-cell .cb-pfp-img {
    display: block;
    width: 80px;
    height: 80px;
    max-width: 100%;
    object-fit: cover;
    margin: 0 auto;
}
.video-comments-section .cb-content-cell { padding-left: 15px; }
.video-comments-section :is(tr, .comment-reply)[id] { scroll-margin-top: 16px; }
.video-comments-section tr:target > td,
.video-comments-section .comment-reply:target { outline: 2px solid currentColor; outline-offset: -2px; }
.video-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 4px;
    font-weight: bold;
}
.video-comment-content { overflow-wrap: anywhere; line-height: 1.5; }
.video-comment-content.is-plain { white-space: pre-wrap; }
.video-comment-content p { margin: 0 0 6px; }
.video-comment-content :is(img, video, iframe) { max-width: 100%; }
.video-comment-content img { height: auto; }
.video-comments-section .comment-replies {
    margin: 12px 0 0;
    padding: 2px;
    border: 4px solid rgba(150, 150, 150, .1);
    border-radius: 6px;
}
.comment-reply .video-comment-meta {
    margin: 2px 0 0;
    justify-content: flex-start;
    font-size: 11px;
    font-weight: normal;
}
.video-comment-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.video-comments-section .video-comment-actions .report {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: none;
    margin: 0 !important;
    font-weight: normal;
    white-space: nowrap;
}
.video-comment-actions .report .icon { width: 14px; height: 14px; object-fit: contain; }
.video-comments-section .cb-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: transparent;
    color: #888;
    font: normal .8rem Arial, sans-serif;
    vertical-align: middle;
    text-decoration: none;
    cursor: pointer;
}
.video-comments-section .cb-like-btn:is(:hover, :focus-visible, .cb-liked) { border-color: #4a90d9; color: #4a90d9; }
.video-comments-section .cb-like-btn.cb-liked { background: rgba(74, 144, 217, .08); }
.video-comments-section .cb-like-icon { font-size: .85em; }
.video-comments-section .cb-like-count { min-width: 8px; text-align: center; font-size: .8em; }
body.theme-dark .video-comments-section .cb-like-btn { border-color: #65768d; color: #bdcce0; }
body.theme-dark .video-comments-section .cb-like-btn:is(:hover, :focus-visible, .cb-liked) { border-color: #7bb5f5; color: #a9d3ff; }
.video-comment-entry { margin-top: 8px; text-align: right; }
.video-comments-section :is(.blog-add-comment-btn, .cb-delete-comment-btn, .video-comment-form-actions button) {
    border: 1px solid var(--vid-btn-border);
    background: var(--vid-btn-bg);
    color: var(--vid-btn-text);
    font: inherit;
    cursor: pointer;
}
.video-comments-section :is(.blog-add-comment-btn, .video-comment-form-actions button) { padding: 1px 6px; }
.video-comments-section .video-comment-form-actions button:disabled { opacity: .65; cursor: default; }
.video-comments-section .cb-delete-comment-btn { width: 22px; height: 22px; padding: 0; line-height: 1; }
.video-comments-section .video-comment-edit { padding: 0; border: 0; background: transparent; color: var(--vid-link); font: inherit; cursor: pointer; }
.video-comments-section .video-comment-edit:hover { text-decoration: underline; }
.video-comment-form { margin: 8px 0 0; min-width: 0; text-align: left; }
.video-comment-form > label { display: block; margin-bottom: 6px; font-weight: bold; }
.video-comment-form textarea:not(.trumbowyg-textarea) { display: block; width: 100%; box-sizing: border-box; resize: vertical; }
.video-comments-section .trumbowyg-box { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.video-comments-section :is(.trumbowyg-editor, .trumbowyg-textarea) { min-height: 110px; font-size: 16px; }
.video-comment-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.video-comment-form-error, #video-comment-message.is-error { color: #9c2525; }
body.theme-dark .video-comments-section .count,
body.theme-dark .video-comment-form-error,
body.theme-dark #video-comment-message.is-error { color: #fca5a5; }
