.mtc-comment-sensitive {
    display: block;
    filter: blur(6px);
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s ease;
}

.mtc-detail-comment-item__text.is-sensitive-revealed,
.mtc-comment-sensitive.is-revealed {
    filter: none;
    cursor: text;
    user-select: text;
}

.mtc-detail-comment-item--deleted .mtc-detail-comment-item__text {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__actions {
    gap: 8px;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__action[data-comment-reply] {
    margin-left: 16px;
}

.mtc-detail-comment-item__action--like.is-liked,
.mtc-detail-comment-item__action.is-liked,
.mtc-detail-comment-item--reply .mtc-detail-comment-item__action--like.is-liked {
    color: var(--accent-hot, #f5a536);
}

.mtc-detail-comment-item__action--like.is-liked svg,
.mtc-detail-comment-item--reply .mtc-detail-comment-item__action--like.is-liked svg {
    fill: currentColor;
}

.mtc-detail-comment-item__action--like.is-pending,
.mtc-detail-comment-item__action.is-pending {
    opacity: 0.6;
    pointer-events: none;
}

.mtc-detail-comment-list.is-loading {
    min-height: 120px;
    opacity: 0.6;
}

.mtc-detail-comment-error {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.mtc-detail-comment-error button {
    margin-top: 8px;
}

.mtc-detail-comment-item.is-highlight {
    animation: mtcCommentHighlight 2.5s ease;
}

@keyframes mtcCommentHighlight {
    0% { background: rgba(59, 130, 246, 0.18); }
    100% { background: transparent; }
}

.mtc-detail-comment-item__name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 100%;
}

.mtc-detail-comment-item__name-self {
    font-weight: 700;
    color: #fff;
}

.mtc-detail-comment-item__name-arrow {
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.42);
}

.mtc-detail-comment-item__name-target {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.58);
}

.mtc-detail-comment-reply-to {
    display: none;
}

.mtc-detail-comment-thread + .mtc-detail-comment-thread {
    margin-top: 14px;
}

/* Layout tokens — on thread so mọi reply/toggle đều kế thừa */
.mtc-detail-comment-thread {
    --mtc-cmt-avatar-size: 36px;
    --mtc-cmt-avatar-gap: 12px;
    --mtc-cmt-indent: calc(var(--mtc-cmt-avatar-size) + var(--mtc-cmt-avatar-gap));
    --mtc-cmt-reply-avatar-size: 28px;
    --mtc-cmt-reply-inner: calc(var(--mtc-cmt-reply-avatar-size) + var(--mtc-cmt-avatar-gap));
    --mtc-cmt-stack-gap: 14px;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] {
    --mtc-cmt-avatar-size: 36px;
    --mtc-cmt-avatar-gap: 12px;
    --mtc-cmt-indent: calc(var(--mtc-cmt-avatar-size) + var(--mtc-cmt-avatar-gap));
    --mtc-cmt-reply-avatar-size: 28px;
    --mtc-cmt-reply-inner: calc(var(--mtc-cmt-reply-avatar-size) + var(--mtc-cmt-avatar-gap));
    --mtc-cmt-stack-gap: 14px;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread,
.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-list {
    min-width: 0;
    max-width: 100%;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread .mtc-detail-comment-item {
    gap: var(--mtc-cmt-avatar-gap);
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread > .mtc-detail-comment-item:not(.mtc-detail-comment-item--reply):not(.reply-item) .mtc-detail-comment-item__avatar {
    width: var(--mtc-cmt-avatar-size);
    height: var(--mtc-cmt-avatar-size);
    flex: 0 0 var(--mtc-cmt-avatar-size);
    font-size: 12px;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item--reply .mtc-detail-comment-item__avatar,
.mtc-detail-tabs__panel[data-detail-panel="comments"] .reply-item .mtc-detail-comment-item__avatar {
    width: var(--mtc-cmt-reply-avatar-size);
    height: var(--mtc-cmt-reply-avatar-size);
    flex: 0 0 var(--mtc-cmt-reply-avatar-size);
    font-size: 11px;
}

.mtc-detail-comment-reply-featured {
    margin: 10px 0 0 var(--mtc-cmt-indent);
    padding-left: 0;
    width: auto;
    max-width: calc(100% - var(--mtc-cmt-indent));
    box-sizing: border-box;
}

.mtc-detail-comment-reply-featured[hidden] {
    display: none !important;
}

.mtc-detail-comment-item--reply-featured {
    position: relative;
}

/* .mtc-detail-comment-item--reply-featured::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(245, 165, 54, 0.85), rgba(245, 165, 54, 0.35));
} */

.reply-list {
    display: flex;
    flex-direction: column;
    gap: var(--mtc-cmt-stack-gap);
    margin: 10px 0 8px var(--mtc-cmt-indent) !important;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
    max-width: calc(100% - var(--mtc-cmt-indent));
    box-sizing: border-box;
}

.reply-list.is-open {
    display: flex !important;
}

/* TikTok-style view / hide replies (text link, no connector lines) */
.mtc-detail-comment-replies-toggle {
    display: inline-flex;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

/* Cột reply avatar — thụt vào 1 bậc so với comment gốc */
.mtc-detail-comment-thread > .mtc-detail-comment-replies-toggle--show,
.mtc-detail-comment-replies-toggle--show {
    display: block;
    margin: 10px 0 0 var(--mtc-cmt-indent);
    padding: 0;
    width: auto;
    max-width: calc(100% - var(--mtc-cmt-indent));
    box-sizing: border-box;
}

.reply-list .mtc-detail-comment-replies-footer {
    margin: 8px 0 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mtc-detail-comment-replies-footer__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--mtc-cmt-avatar-gap);
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Cùng cột text reply: spacer = avatar reply + gap */
.mtc-detail-comment-replies-footer__inner::before {
    content: '';
    flex: 0 0 var(--mtc-cmt-reply-avatar-size);
    width: var(--mtc-cmt-reply-avatar-size);
    height: 1px;
}

.mtc-detail-comment-thread > .mtc-detail-comment-replies-footer {
    margin: 10px 0 0 var(--mtc-cmt-indent);
    padding: 0;
}

.mtc-detail-comment-thread > .mtc-detail-comment-replies-footer .mtc-detail-comment-replies-footer__inner {
    margin-left: 0;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .reply-list .mtc-detail-comment-replies-footer__inner .mtc-detail-comment-replies-toggle,
.mtc-detail-tabs__panel[data-detail-panel="comments"] .reply-list .mtc-detail-comment-replies-footer .mtc-detail-comment-replies-toggle {
    margin: 0 !important;
}

.mtc-detail-comment-replies-footer {
    display: block;
}

.mtc-detail-comment-replies-footer .mtc-detail-comment-replies-toggle {
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    display: inline-flex;
}

.mtc-detail-comment-replies-footer .mtc-detail-comment-replies-toggle--more,
.mtc-detail-comment-replies-footer .mtc-detail-comment-replies-toggle--hide {
    flex: 0 0 auto;
    margin-left: 0;
    text-align: left;
}

.mtc-detail-comment-replies-footer[hidden] {
    display: none !important;
}

.mtc-detail-comment-replies-toggle__body {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.mtc-detail-comment-replies-toggle__label {
    white-space: nowrap;
}

.mtc-detail-comment-replies-toggle__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.72;
    transition: transform 0.22s ease, opacity 0.15s ease;
}

.mtc-detail-comment-replies-toggle:hover .mtc-detail-comment-replies-toggle__body,
.mtc-detail-comment-replies-toggle:focus-visible .mtc-detail-comment-replies-toggle__body {
    color: rgba(255, 255, 255, 0.78);
}

.mtc-detail-comment-replies-toggle:focus-visible {
    outline: none;
}

.mtc-detail-comment-replies-toggle:focus-visible .mtc-detail-comment-replies-toggle__body {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mtc-detail-comment-replies-toggle.is-expanded .mtc-detail-comment-replies-toggle__icon {
    transform: rotate(180deg);
}

.mtc-detail-comment-replies-toggle:disabled {
    cursor: wait;
    opacity: 0.72;
}

.mtc-detail-comment-replies-toggle[hidden] {
    display: none !important;
}

.mtc-detail-comment-replies-toggle--hide .mtc-detail-comment-replies-toggle__icon {
    transform: rotate(180deg);
}

.mtc-detail-comment-replies-toggle__rail,
.mtc-detail-comment-replies-toggle__dash {
    display: none !important;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread .mtc-detail-comment-item--reply,
.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread .reply-item {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .reply-list {
    margin-left: var(--mtc-cmt-indent) !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}

.mtc-detail-comment-thread__toggle[hidden],
.mtc-detail-comment-replies-toggle[data-load-replies][hidden] {
    display: none !important;
}

.mtc-detail-comment-item--reply,
.reply-item {
    margin: 0;
    padding: 2px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    border-top: 0;
    min-width: 0;
}

.mtc-detail-comment-item--reply + .mtc-detail-comment-item--reply,
.reply-item + .reply-item,
.reply-list .mtc-detail-comment-item--reply + .mtc-detail-comment-item--reply,
.reply-list .reply-item + .reply-item {
    margin-top: 2px;
}

.mtc-detail-comment-item--reply .mtc-detail-comment-item__text,
.reply-item .mtc-detail-comment-item__text {
    margin-top: 4px;
}

.mtc-detail-comment-item--reply .mtc-detail-comment-item__actions,
.reply-item .mtc-detail-comment-item__actions {
    margin-top: 8px;
}

.mtc-detail-comment-thread__toggle {
    margin-top: 10px;
    margin-left: var(--mtc-cmt-indent);
}

/* Inline reply form — align with comment body column */
.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply,
.mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply--nested {
    margin-left: var(--mtc-cmt-indent);
    margin-right: 0;
    max-width: calc(100% - var(--mtc-cmt-indent));
    box-sizing: border-box;
}

.mtc-detail-tabs__panel[data-detail-panel="comments"] .reply-list > .mtc-detail-comment-reply {
    margin-left: 0;
    max-width: 100%;
}

.mtc-detail-comment-reply__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--detail-text-muted);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.mtc-detail-comment-reply__toggle .mtc-detail-comment-form__toggle-ui {
    flex-shrink: 0;
}

.mtc-detail-comment-reply__toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.mtc-detail-comment-reply.is-anonymous-mode .mtc-detail-comment-reply__toggle [data-reply-identity-text] {
    color: var(--detail-text-muted);
}

.mtc-detail-comment-pending-post {
    opacity: 0.7;
}

.mtc-detail-comment-item:has(.mtc-detail-comment-owner-menu) {
    position: relative;
    padding-right: 36px;
}

.mtc-detail-comment-owner-menu {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 3;
}

.mtc-detail-comment-item--reply.mtc-detail-comment-item:has(.mtc-detail-comment-owner-menu),
.reply-item:has(.mtc-detail-comment-owner-menu) {
    padding-right: 36px;
}

.mtc-detail-comment-owner-menu .mtc-detail-comment-item__menu {
    position: static;
    top: auto;
    right: auto;
}

.mtc-detail-comment-owner-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    min-width: 140px;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mtc-detail-comment-owner-menu.is-open .mtc-detail-comment-owner-menu__dropdown {
    display: block;
}

.mtc-detail-comment-owner-menu__dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.mtc-detail-comment-owner-menu__dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mtc-detail-comment-item__edited {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.mtc-detail-comment-your-post {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px dashed rgba(59, 130, 246, 0.35);
    border-radius: 8px;
}

.mtc-detail-comment-edit {
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: mtcCommentEditIn 0.18s ease;
}

@keyframes mtcCommentEditIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mtc-detail-comment-item.is-editing {
    position: relative;
}

.mtc-detail-comment-item.is-editing .mtc-detail-comment-item__body {
    width: 100%;
}

.mtc-detail-comment-item.is-editing .mtc-detail-comment-item__actions,
.mtc-detail-comment-item.is-editing .mtc-detail-comment-item__stars {
    display: none;
}

.mtc-detail-comment-item.is-editing .mtc-detail-comment-owner-menu {
    opacity: 0.35;
    pointer-events: none;
}

.mtc-detail-comment-edit__head {
    margin-bottom: 6px;
}

.mtc-detail-comment-edit__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.48);
}

.mtc-detail-comment-edit__label::before {
    display: none;
}

.mtc-detail-comment-edit__input {
    display: block;
    width: 100%;
    min-height: 80px;
    max-height: 220px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--detail-border, rgba(255, 255, 255, 0.1));
    background: var(--detail-surface-2, rgba(255, 255, 255, 0.04));
    color: var(--detail-text, #f3f4f6);
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mtc-detail-comment-edit__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.mtc-detail-comment-edit__input:focus {
    outline: none;
    border-color: rgba(var(--accent-hot-rgb, 245, 165, 36), 0.45);
    background: var(--detail-surface, rgba(15, 20, 32, 0.72));
    box-shadow: 0 0 0 2px rgba(var(--accent-hot-rgb, 245, 165, 36), 0.12);
}

.mtc-detail-comment-edit__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.mtc-detail-comment-edit__cancel,
.mtc-detail-comment-edit__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.mtc-detail-comment-edit__cancel {
    border: 1px solid var(--detail-border, rgba(255, 255, 255, 0.18));
    background: transparent;
    color: var(--detail-text-muted, rgba(255, 255, 255, 0.72));
}

.mtc-detail-comment-edit__cancel:hover {
    color: var(--detail-text, #fff);
    background: var(--detail-surface, rgba(255, 255, 255, 0.07));
}

.mtc-detail-comment-edit__save {
    border: 0;
    background: linear-gradient(135deg, var(--accent-hot-dark, #d4891c) 0%, var(--detail-accent, #f5a536) 100%);
    color: var(--on-accent, #111);
}

.mtc-detail-comment-edit__save:hover {
    filter: brightness(1.06);
}

.mtc-detail-comment-edit__save:active,
.mtc-detail-comment-edit__cancel:active {
    opacity: 0.88;
}

.mtc-detail-comment-edit__save:disabled,
.mtc-detail-comment-edit__cancel:disabled {
    opacity: 0.55;
    cursor: default;
}

.mtc-detail-comment-item--reply .mtc-detail-comment-edit {
    margin-left: 0;
}

.mtc-comment-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 920;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mtc-comment-delete-modal.is-open {
    display: flex;
}

.mtc-comment-delete-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.mtc-comment-delete-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--detail-border, rgba(255, 255, 255, 0.08));
    background: #1a1f2e;
    color: #fff;
    box-shadow: var(--shadow-soft, 0 24px 64px rgba(0, 0, 0, 0.45));
}

.mtc-comment-delete-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mtc-comment-delete-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.mtc-comment-delete-modal__close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mtc-comment-delete-modal__text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.mtc-comment-delete-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mtc-comment-delete-modal__btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mtc-comment-delete-modal__btn--danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
}

.mtc-comment-delete-modal__btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.mtc-detail-comment-skeleton {
    display: grid;
    gap: 16px;
    padding: 8px 0;
}

.mtc-detail-comment-skeleton__item {
    display: flex;
    gap: 12px;
}

.mtc-detail-comment-skeleton__avatar,
.mtc-detail-comment-skeleton__line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 400% 100%;
    animation: mtcCommentSkeleton 1.2s ease infinite;
    border-radius: 8px;
}

.mtc-detail-comment-skeleton__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mtc-detail-comment-skeleton__body {
    flex: 1;
    display: grid;
    gap: 8px;
}

.mtc-detail-comment-skeleton__line {
    height: 12px;
}

.mtc-detail-comment-skeleton__line--short {
    width: 35%;
}

.mtc-detail-comment-skeleton__line--medium {
    width: 70%;
}

@keyframes mtcCommentSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.mtc-detail-comment-edit__stars {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    background: rgba(251, 191, 36, 0.06);
}

.mtc-detail-comment-edit__stars button {
    min-width: 36px;
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.28);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.mtc-detail-comment-edit__stars button:hover {
    color: rgba(251, 191, 36, 0.75);
    background: rgba(251, 191, 36, 0.08);
}

.mtc-detail-comment-edit__stars button.is-active {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/* ——— Mobile / tablet comment layout ——— */
@media (max-width: 767px) {
    .mtc-detail-comment-thread,
    .mtc-detail-tabs__panel[data-detail-panel="comments"] {
        --mtc-cmt-avatar-size: 32px;
        --mtc-cmt-avatar-gap: 8px;
        --mtc-cmt-reply-avatar-size: 26px;
        --mtc-cmt-stack-gap: 12px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread {
        padding: 10px !important;
        border-radius: 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread + .mtc-detail-comment-thread {
        margin-top: 8px !important;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-form__input {
        min-height: 88px;
        font-size: 16px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 4px 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__meta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__name {
        font-size: 12px;
        line-height: 1.35;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__time {
        flex: 0 0 auto;
        max-width: 100%;
        white-space: normal;
        font-size: 10px;
        line-height: 1.3;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__text {
        font-size: 13px;
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__actions {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__action[data-comment-reply] {
        margin-left: 0;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__action {
        font-size: 11px;
        min-height: 28px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-replies-toggle__body {
        font-size: 12px;
        min-height: 20px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-replies-toggle__label {
        white-space: normal;
        word-break: break-word;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-replies-footer__inner {
        gap: 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-replies-footer {
        align-items: flex-start;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item--reply-featured::before {
        left: -6px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-owner-menu {
        top: 10px;
        right: 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-owner-menu__dropdown {
        right: 0;
        left: auto;
        min-width: 128px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply {
        padding: 10px;
        margin-top: 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply__footer .mtc-detail-comment-reply__toggle {
        margin-right: 0;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply__cancel,
    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-reply__submit {
        min-height: 40px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__head {
        display: none;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__input {
        min-height: 72px;
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__label {
        font-size: 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__cancel,
    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__save {
        width: auto;
        min-height: 40px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__save {
        min-width: 88px;
        padding: 0 16px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-edit__stars button {
        min-width: 34px;
        min-height: 34px;
        font-size: 16px;
    }
}

@media (max-width: 399px) {
    .mtc-detail-comment-thread,
    .mtc-detail-tabs__panel[data-detail-panel="comments"] {
        --mtc-cmt-avatar-size: 28px;
        --mtc-cmt-reply-avatar-size: 24px;
        --mtc-cmt-stack-gap: 10px;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-thread {
        padding: 8px !important;
    }

    .mtc-detail-tabs__panel[data-detail-panel="comments"] .mtc-detail-comment-item__name-arrow {
        font-size: 11px;
    }
}

.mtc-comment-watch-link,
a.mtc-comment-watch-link {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-color: #60a5fa;
    text-underline-offset: 2px;
    font-weight: inherit;
}

.mtc-comment-watch-link:hover,
.mtc-comment-watch-link:focus-visible {
    color: #93c5fd;
    text-decoration-color: #93c5fd;
}

.mtc-detail-comment-item__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

img.mtc-detail-comment-form__toggle-avatar {
    object-fit: cover;
}