/* Comment form and list */

#comments,
#comments * {
    box-sizing: border-box;
}


/* OwO hover bridge: keep panel open while the cursor moves into it. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    display: block !important;
    height: 22px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 2px);
}


/* Keep the emoji panel open while moving from the trigger to the panel. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    display: block !important;
    height: 22px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 2px);
}

#comments {
    margin-bottom: 40px;
    scroll-margin-top: 110px;
}

#comments ul,
#comments li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#comments .respond {
    position: relative;
    z-index: 1300;
    display: block;
    margin: 24px 0;
}

#comments .cat_comment_respond_form {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(62, 57, 52, .035);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .cat_comment_respond_form .card,
#comments .comment-form-btn-wrap .card {
    overflow: visible;
    word-break: normal;
}

#comments .cat_comment_respond_form .head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#comments .cat_comment_respond_form .head .list,
#comments .cat_comment_respond_form .body {
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#comments .cat_comment_respond_form .head .list:focus-within,
#comments .cat_comment_respond_form .body:focus-within,
#comments .tp-comment-captcha:focus-within {
    border-color: var(--control-hover-border);
    background: var(--control-bg);
    box-shadow: var(--control-hover-shadow);
}

#comments .cat_comment_respond_form input,
#comments .cat_comment_respond_form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-body);
    font: 14px/1.7 var(--font-main);
}

#comments .cat_comment_respond_form .head input {
    height: 36px;
    padding: 0 12px;
}

#comments .cat_comment_respond_form .body {
    padding: 0;
}

#comments .cat_comment_respond_form .Comment_Textarea {
    display: block;
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
}

#comments .cat_comment_respond_form input::placeholder,
#comments .cat_comment_respond_form textarea::placeholder {
    color: var(--text-muted);
}

#comments .comment-form-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#comments .comment-form-btn-wrap .right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#comments .tp-comment-captcha {
    display: inline-flex;
    flex: 1 1 138px;
    align-items: center;
    width: 138px;
    min-width: 0;
    max-width: 138px;
    height: 34px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    overflow: hidden;
}

#comments .tp-comment-captcha-input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    padding: 0 6px;
    font-size: 13px;
    line-height: 32px;
    text-transform: lowercase;
}

#comments .tp-comment-captcha-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48%;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    padding: 0;
    border-left: 1px solid var(--control-border);
    background: radial-gradient(circle at 10px 8px, color-mix(in srgb, var(--accent-brown) 16%, transparent) 0 1px, transparent 1.4px), radial-gradient(circle at 38px 23px, color-mix(in srgb, var(--accent-brown) 12%, transparent) 0 1px, transparent 1.4px), linear-gradient(180deg, var(--control-bg), var(--control-hover-bg));
    color: var(--control-text);
    cursor: pointer;
    font: italic 700 15px/32px Consolas, "Courier New", monospace;
    letter-spacing: 2.5px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .8), -1px 0 0 rgba(171, 59, 58, .16);
    user-select: none;
}

#comments .tp-comment-captcha-code:hover {
    background: var(--control-hover-bg);
    color: var(--control-hover-text);
    filter: contrast(1.08) saturate(1.08);
}

#comments .tp-comment-captcha-code img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-puzzle-lock {
    overflow: hidden;
}

.tp-puzzle-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.tp-puzzle-modal[hidden] {
    display: none !important;
}

.tp-puzzle-mask {
    position: absolute;
    inset: 0;
    background: rgba(22, 18, 15, .48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.tp-puzzle-dialog {
    position: relative;
    width: min(300px, calc(100vw - 34px));
    padding: 24px 18px 20px;
    border: 1px solid var(--line-secondary);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
    box-shadow: 0 22px 48px rgba(37, 29, 22, .34);
    color: #4f4034;
    overflow: hidden;
}

.tp-puzzle-dialog::before,
.tp-puzzle-dialog::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.tp-puzzle-dialog::before {
    inset: 0;
    background: radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--bg-card) 58%, transparent) 0 1px, transparent 1.6px), radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent-gold) 18%, transparent) 0 1px, transparent 1.5px);
    background-size: 22px 22px, 28px 28px;
    opacity: .45;
}

.tp-puzzle-dialog::after {
    left: -26px;
    right: -26px;
    bottom: -72px;
    height: 152px;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-brown) 8%, transparent), transparent 70%);
}

.tp-puzzle-close {
    position: absolute;
    right: 16px;
    top: 15px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #6f5b49;
    cursor: pointer;
    font: 22px/20px Arial, sans-serif;
}

.tp-puzzle-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 15px;
    text-align: center;
}

.tp-puzzle-head strong {
    margin-top: 8px;
    color: #3f332a;
    font: 700 20px/1.2 var(--font-main);
}

.tp-puzzle-head em {
    margin-top: 8px;
    color: #9b9088;
    font: 400 12px/1.2 var(--font-main);
    font-style: normal;
}

.tp-puzzle-shield {
    width: 30px;
    height: 30px;
    fill: #6E4F2F;
}

.tp-puzzle-stage {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(158, 133, 108, .26), 0 10px 20px rgba(72, 52, 36, .08);
}

.tp-puzzle-bg {
    position: relative;
    height: 142px;
    background: linear-gradient(rgba(255, 250, 242, .02), rgba(35, 29, 24, .32)), url("../static/images/captcha_bg.png") center / cover no-repeat;
}

.tp-puzzle-hole,
.tp-puzzle-piece {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    clip-path: path("M 5 0 H 28 C 28 12 44 12 44 0 H 48 V 18 C 36 18 36 30 48 30 V 48 H 18 C 18 36 5 36 5 48 H 0 V 31 C 12 31 12 17 0 17 V 5 C 0 2.2 2.2 0 5 0 Z");
}

.tp-puzzle-hole {
    background: linear-gradient(rgba(32, 28, 24, .48), rgba(32, 28, 24, .48)), url("../static/images/captcha_bg.png") calc(var(--puzzle-x, 0px) * -1) calc(var(--puzzle-y, 0px) * -1) / var(--stage-width, 264px) var(--stage-height, 142px) no-repeat;
    filter: contrast(1.22) saturate(.96);
    box-shadow: 0 8px 16px rgba(30, 22, 17, .22), inset 0 0 0 2px rgba(255, 255, 255, .86), inset 0 -10px 18px rgba(45, 34, 26, .2);
}

.tp-puzzle-piece {
    background: linear-gradient(rgba(255, 250, 242, .02), rgba(35, 29, 24, .2)), url("../static/images/captcha_bg.png") calc(var(--puzzle-x, 0px) * -1) calc(var(--puzzle-y, 0px) * -1) / var(--stage-width, 264px) var(--stage-height, 142px) no-repeat;
    filter: contrast(1.3) saturate(1.03);
    box-shadow: 0 9px 18px rgba(30, 22, 17, .38), inset 0 0 0 2px rgba(255, 255, 255, .94), inset 0 -10px 18px rgba(45, 34, 26, .18);
}

.tp-puzzle-refresh {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-secondary);
    border-radius: 50%;
    background: #FFF6E8;
    color: #6E4F2F;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(69, 49, 34, .18), inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -2px 5px rgba(228, 206, 176, .28);
}

.tp-puzzle-refresh svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tp-puzzle-slider {
    position: relative;
    z-index: 1;
    height: 36px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgba(205, 190, 174, .56), inset 0 3px 7px rgba(102, 78, 57, .06);
    overflow: hidden;
    user-select: none;
}

.tp-puzzle-slider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: var(--puzzle-error-width, 0);
    height: 100%;
    background: rgba(255, 78, 66, .34);
    opacity: 0;
}

.tp-puzzle-track-text {
    display: block;
    padding-left: 38px;
    color: #b2a69c;
    font-size: 12px;
    line-height: 36px;
    text-align: center;
}

.tp-puzzle-handle {
    position: absolute;
    left: 0;
    top: -1px;
    width: 55px;
    height: 38px;
    border: 1px solid var(--line-secondary);
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: 0 5px 14px rgba(91, 68, 49, .15);
    cursor: grab;
    touch-action: none;
}

.tp-puzzle-handle::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 13px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #7e6b5a;
    border-bottom: 2px solid #7e6b5a;
    transform: rotate(-45deg);
}

.tp-puzzle-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, transparent 40%, #fff 41% 59%, transparent 60%), linear-gradient(-45deg, transparent 40%, #fff 41% 59%, transparent 60%);
}

.tp-puzzle-captcha.is-dragging .tp-puzzle-handle {
    cursor: grabbing;
}

.tp-puzzle-captcha.is-error .tp-puzzle-slider {
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 78, 66, .68), 0 0 0 3px rgba(255, 78, 66, .08);
}

.tp-puzzle-captcha.is-error .tp-puzzle-slider::before,
.tp-puzzle-captcha.is-error .tp-puzzle-handle::after {
    opacity: 1;
}

.tp-puzzle-captcha.is-error .tp-puzzle-handle {
    width: 44px;
    border-color: #ff594d;
    background: #ff594d;
    box-shadow: none;
}

.tp-puzzle-captcha.is-error .tp-puzzle-handle::before {
    opacity: 0;
}

.tp-puzzle-captcha.is-verified .tp-puzzle-slider {
    background: var(--bg-soft);
    box-shadow: inset 0 0 0 1px rgba(107, 156, 101, .46);
}

@media (max-width: 380px) {
    .tp-puzzle-dialog {
        width: min(268px, calc(100vw - 24px));
        padding: 16px 14px 16px;
    }
    .tp-puzzle-bg {
        height: 122px;
    }
}

#comments .comment-form-btn-wrap .OwO,
#comments .OwO .OwO-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-secondary);
    border-radius: 50%;
    background: var(--bg-soft) !important;
    color: var(--accent-brown);
    cursor: pointer;
    font-size: 0 !important;
}

#comments .comment-form-btn-wrap .OwO {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

#comments .comment-form-btn-wrap .OwO:hover,
#comments .comment-form-btn-wrap .OwO:focus-within {
    border-color: var(--accent-brown);
    background: var(--bg-soft) !important;
    color: var(--accent-brown);
    transform: translateY(-1px);
}

#comments .comment-form-btn-wrap .OwO::before {
    content: "\1F60A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: emoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1;
}

#comments .comment-form-btn-wrap .OwO::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    left: 0;
    top: calc(100% + 6px);
    bottom: auto;
    display: none;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: min(520px, calc(100vw - 32px));
    max-height: 300px;
    border: 1px solid var(--line-primary);
    border-radius: 10px !important;
    background: var(--bg-card);
    box-shadow: 0 16px 34px rgba(62, 57, 52, .12);
    overflow: hidden;
    z-index: 2001 !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -5px;
    width: 10px;
    height: 10px;
    border-left: 1px solid var(--line-primary);
    border-top: 1px solid var(--line-primary);
    background: var(--bg-card);
    transform: rotate(45deg);
}

#comments .comment-form-btn-wrap .OwO>.OwO-logo,
#comments .OwO .OwO-logo::before {
    display: none !important;
    content: "";
}

#comments .comment-form-btn-wrap .OwO .OwO-items {
    min-height: 0;
    max-height: 246px !important;
    margin: 0 !important;
    padding: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#comments .comment-form-btn-wrap .OwO .OwO-items-show {
    display: grid !important;
    gap: 6px;
}

#comments .comment-form-btn-wrap .OwO .OwO-items-image.OwO-items-show {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
}

#comments .comment-form-btn-wrap .OwO .OwO-items-emoji.OwO-items-show {
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
}

#comments .comment-form-btn-wrap .OwO .OwO-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 30px;
    padding: 4px;
    border-radius: 8px;
    line-height: 1;
    transition: background-color .18s ease, transform .18s ease;
}

#comments .comment-form-btn-wrap .OwO .OwO-item:hover {
    background: var(--bg-soft);
    box-shadow: none;
    transform: translateY(-1px);
    animation: none;
}

#comments .comment-form-btn-wrap .OwO .OwO-item img {
    display: block !important;
    width: 32px;
    height: 32px;
    margin: 0;
    object-fit: contain;
}

#comments .comment-form-btn-wrap .OwO .OwO-bar {
    border-top: 1px solid var(--line-secondary);
    border-radius: 0;
    background: var(--bg-soft);
    overflow-x: auto;
    white-space: nowrap;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages {
    display: flex;
    gap: 4px;
    padding: 6px;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 10px;
    border-radius: 999px !important;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 28px;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages li:hover,
#comments .comment-form-btn-wrap .OwO .OwO-packages .OwO-package-active {
    background: var(--accent-brown);
    color: var(--bg-card);
}

#comments .send_anniu_style,
#comments .comment-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    cursor: pointer;
    font-size: 13px;
    line-height: 34px;
    white-space: nowrap;
    overflow: visible;
    transition: all .2s ease;
}

#comments .comment-form-cancel {
    background: var(--control-bg);
    color: var(--text-secondary);
}

#comments #cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#comments .send_anniu_style:hover,
#comments .comment-form-cancel:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

.tp-heart-confirm-mask {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: color-mix(in srgb, var(--line-primary) 34%, transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .18s ease;
}

.tp-heart-confirm-mask.is-show {
    opacity: 1;
}

.tp-heart-confirm {
    position: relative;
    width: min(300px, calc(100vw - 48px));
    min-height: 148px;
    padding: 14px 22px 16px;
    border: 1px solid color-mix(in srgb, var(--accent-gold) 38%, transparent);
    border-radius: 12px;
    background: url("../static/images/dialog_bg.png") right bottom / 74px auto no-repeat, linear-gradient(135deg, var(--bg-card), var(--bg-soft));
    box-shadow: 0 12px 30px rgba(84, 55, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .72);
    color: #6D4B32;
    transform: translateY(8px) scale(.98);
    transition: transform .18s ease;
}

.tp-heart-confirm-mask.is-show .tp-heart-confirm {
    transform: translateY(0) scale(1);
}

.tp-heart-confirm-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8A5D37;
    cursor: pointer;
}

.tp-heart-confirm-close::before,
.tp-heart-confirm-close::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
}

.tp-heart-confirm-close::before {
    transform: rotate(45deg);
}

.tp-heart-confirm-close::after {
    transform: rotate(-45deg);
}

.tp-heart-confirm-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 20px 16px;
    color: #6E4828;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.tp-heart-confirm-title span {
    width: 5px;
    height: 5px;
    background: #B47C45;
    transform: rotate(45deg);
}

.tp-heart-confirm-body {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.tp-heart-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--accent-gold) 36%, transparent);
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 5px 12px rgba(116, 74, 35, .08);
    color: #D06B35;
    font: 700 20px/1 Georgia, serif;
}

.tp-heart-confirm-body p {
    margin: 0;
    color: #6D4B32;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.tp-heart-confirm-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding-right: 0;
}

.tp-heart-confirm-btn {
    min-width: 64px;
    height: 24px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--accent-red) 74%, transparent);
    border-radius: 5px;
    background: var(--bg-card);
    color: #9B5A36;
    cursor: pointer;
    font-size: 12px;
    line-height: 22px;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.tp-heart-confirm-btn.is-ok {
    background: #C86135;
    color: #FFF8EC;
    box-shadow: 0 5px 12px rgba(198, 97, 53, .2);
}

.tp-heart-confirm-btn:hover,
.tp-heart-confirm-btn:focus-visible {
    background: #B7532C;
    color: #FFF8EC;
    outline: 0;
}

#comments .tp-comment-panel {
    margin-top: 26px;
    padding: 18px 22px;
    border: 1px solid var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(62, 57, 52, .045);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .tp-comment-head,
#comments .tp-comment-title-wrap,
#comments .tp-comment-meta,
#comments .tp-comment-foot,
#comments .tp-comment-actions,
#comments .tp-comment-from,
#comments .tp-comment-from>span,
#comments .tp-heart-action,
#comments .tp-reply-action {
    display: flex;
    align-items: center;
}

#comments .tp-comment-head {
    gap: 16px;
}

#comments .tp-comment-title-wrap {
    gap: 10px;
    min-width: 0;
}

#comments .tp-comment-title-mark {
    display: inline-block;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    background-color: var(--accent-brown);
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
    opacity: .9;
}

#comments .tp-comment-title-mark::after {
    display: none;
    content: none;
}

#comments .comments-list-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

#comments .tp-comment-count {
    color: var(--text-secondary);
    font-size: 13px;
}

#comments .comment-list {
    display: grid;
    gap: 0;
}

#comments .comment-list>.tp-comment-item {
    padding: 13px 0 15px;
    border-bottom: 0;
}

#comments .tp-comment-card {
    position: relative;
}

#comments .tp-comment-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px;
    align-items: start;
}

#comments .tp-comment-avatar-wrap .avatar,
#comments .avatar {
    display: block;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid var(--line-secondary);
    border-radius: 50%;
    background: var(--bg-soft);
    object-fit: cover;
}

#comments .tp-comment-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top top" "text text" "foot actions";
    column-gap: 16px;
    min-width: 0;
}

#comments .tp-comment-top {
    grid-area: top;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

#comments .tp-comment-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 20px;
}

#comments .tp-comment-author,
#comments .tp-comment-author a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

#comments .tp-comment-author a:hover {
    color: var(--accent-brown);
}

#comments .tp-comment-level,
#comments .commentapprove,
#comments .bozhu {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--ink-decor) 26%, transparent);
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
}

#comments .commentapprove.tp-comment-level {
    border-color: color-mix(in srgb, var(--accent-brown) 18%, transparent);
    background: var(--accent-brown);
    box-shadow: 0 4px 10px rgba(74, 48, 25, .12);
    color: #FFF8EC;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .2);
}

#comments .commentapprove.comment-level {
    border-color: color-mix(in srgb, var(--accent-brown) 16%, transparent);
    background: var(--accent-brown);
    box-shadow: 0 4px 10px rgba(74, 48, 25, .08);
    color: #FFF8EC;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .16);
}

#comments .tp-heart-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent-red) 14%, transparent);
    background: color-mix(in srgb, var(--accent-red) 8%, transparent);
    color: #9b4a38;
    font-size: 11px;
    line-height: 18px;
}

#comments .tp-comment-text {
    grid-area: text;
    margin-top: 4px;
    color: #222;
    font-size: 16px;
    line-height: 1.58;
    word-break: break-word;
}

#comments .tp-comment-text p {
    margin: 0 0 6px;
}

#comments .tp-comment-text p:last-child {
    margin-bottom: 0;
}

#comments .comment-list-item-relation,
#comments .tp-comment-time,
#comments .tp-comment-from {
    color: #B4ACA4;
}

#comments .tp-comment-foot {
    grid-area: foot;
    gap: 0;
    min-height: 22px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 22px;
}

#comments .tp-comment-from {
    flex-wrap: wrap;
    gap: 0;
    min-width: 0;
    font-size: 13px;
}

#comments .tp-comment-from:empty {
    display: none;
}

#comments .tp-comment-from>span {
    max-width: 100%;
}

#comments .tp-comment-location,
#comments .tp-comment-location * {
    color: inherit !important;
}

#comments .tp-comment-from>span::before {
    content: "\00b7";
    margin: 0 5px;
}

#comments .tp-comment-from img,
#comments .tp-comment-from svg,
#comments .tp-comment-from .icon,
#comments .tp-comment-from i {
    display: inline-block;
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    margin: 0 3px;
    object-fit: contain;
    vertical-align: -2px;
    opacity: .58;
}

#comments .tp-comment-from svg {
    flex: 0 0 15px;
}

#comments .comment-waiting {
    margin-bottom: 6px;
    color: var(--accent-red);
    font-size: 13px;
}

#comments .owo_image {
    display: inline-block !important;
    height: 1.75em;
    margin: 0 2px;
    vertical-align: -0.35em;
}

#comments .tp-comment-actions {
    grid-area: actions;
    justify-content: flex-end;
    gap: 13px;
    min-height: 22px;
    margin-top: 6px;
    white-space: nowrap;
}

#comments .tp-heart-action,
#comments .tp-reply-action {
    justify-content: center;
    position: relative;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font: 13px/22px var(--font-main);
    font-weight: 400;
    text-decoration: none;
    text-shadow: none;
    transition: color .2s ease;
}

#comments .tp-heart-action::before {
    content: "\2661";
    margin-right: 4px;
    font-size: 17px;
    line-height: 1;
}

#comments .tp-heart-action.is-active::before {
    content: "\2665";
    color: var(--accent-red);
}

#comments .tp-heart-action.is-active {
    color: var(--accent-red);
}

#comments .tp-reply-action::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-color: currentColor;
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
}

#comments .tp-comment-foot>.tp-reply-action {
    margin-left: 10px;
}

#comments .tp-reply-action span {
    color: inherit;
}

#comments .tp-heart-action:hover,
#comments .tp-reply-action:hover {
    color: var(--accent-brown);
    text-decoration: none;
    text-shadow: none;
}

#comments .comment-list>.tp-comment-item>.tp-comment-children {
    margin: 8px 0 0 20px;
    padding: 10px 14px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-item .respond,
#comments .tp-comment-item .cat_comment_respond_form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#comments .tp-comment-children .comment-list,
#comments .tp-comment-children .tp-comment-children,
#comments .tp-comment-children .tp-comment-item>.tp-comment-children {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-children .comment-list {
    margin: 0;
}

#comments .tp-comment-children .tp-comment-item {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#comments .tp-comment-children .tp-comment-item+.tp-comment-item,
#comments .tp-comment-children .tp-comment-children .tp-comment-item {
    margin-top: 12px;
}

#comments .tp-comment-children .tp-comment-main {
    grid-template-columns: 30px minmax(0, 1fr);
}

#comments .tp-comment-children .avatar {
    width: 24px !important;
    height: 24px !important;
}

#comments .tp-comment-children .tp-comment-author,
#comments .tp-comment-children .tp-comment-author a {
    font-size: 14px;
}

#comments .tp-comment-children .tp-comment-text {
    font-size: 15px;
    line-height: 1.55;
}

#comments .comment-list-empty {
    margin: 20px 0 30px;
    padding: 18px 16px;
    border: 1px dashed var(--line-primary);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-align: center;
}

#comments .comment-list-empty-text {
    display: block;
    margin: 0;
}

#comments .comment-list-empty-image {
    display: block;
    width: min(100%, 260px);
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

#comments .comment-pagination {
    margin: 40px 0 0;
}

@media (max-width: 800px) {
    #comments .comment-list>.tp-comment-item>.tp-comment-children {
        margin-left: 0;
    }
    #comments .cat_comment_respond_form .head {
        grid-template-columns: 1fr;
    }
    #comments .tp-comment-head {
        align-items: flex-start;
        flex-direction: column;
    }
    #comments .comment-list-empty {
        margin: 16px 0 30px;
        padding: 12px;
    }
    #comments .comment-list-empty-image {
        width: min(100%, 210px);
        max-height: 116px;
    }
}

@media (max-width: 480px) {
    #comments .comment-list-empty {
        margin: 14px 0 30px;
        padding: 10px;
    }
    #comments .comment-list-empty-image {
        width: min(100%, 178px) !important;
        max-height: 96px !important;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-body {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px);
        max-height: 190px;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-items {
        max-height: 142px !important;
        padding: 8px;
        gap: 5px;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-packages li {
        padding: 0 8px;
        font-size: 12px;
        line-height: 26px;
    }
}


/* OwO final hover bridge: this must come after the default ::after reset. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    display: block !important;
    height: 22px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 2px);
}


/* OwO viewport/layer fix: keep the panel above captcha/submit controls and inside mobile screens. */

#comments .comment-form-btn-wrap {
    position: relative;
    z-index: 60;
    overflow: visible;
}

#comments .comment-form-btn-wrap .OwO {
    z-index: 80;
}

#comments .comment-form-btn-wrap .OwO:hover,
#comments .comment-form-btn-wrap .OwO:focus-within,
#comments .comment-form-btn-wrap .OwO.OwO-open {
    z-index: 10020;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    z-index: 10010 !important;
}

@media (max-width: 480px) {
    #comments .comment-form-btn-wrap .OwO:hover,
    #comments .comment-form-btn-wrap .OwO:focus-within,
    #comments .comment-form-btn-wrap .OwO.OwO-open {
        transform: none !important;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-body {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: auto !important;
        bottom: calc(100% + 8px) !important;
        width: min(260px, calc(100vw - 96px)) !important;
        max-width: min(260px, calc(100vw - 96px)) !important;
        max-height: 190px !important;
        transform: none !important;
        z-index: 10010 !important;
    }
    #comments .tp-comment-item .comment-form-btn-wrap .OwO .OwO-body {
        width: min(240px, calc(100vw - 116px)) !important;
        max-width: min(240px, calc(100vw - 116px)) !important;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-body::before {
        display: none;
    }
}
