.comment {
    margin-bottom: 50px;
}

    .comment .comment-wrap {
        border: 1px solid #e6e6e6;
        border-radius: 5px;
        padding: 25px 25px 20px;
    }

    .comment .comment-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .comment .comment-title {
        font-size: 22px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        display: flex;
        align-items: center;
    }

    .comment .comment-action {
        font-weight: 500;
        color: gray;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .comment .comment-action button {
            padding: 0;
            background: rgba(0, 0, 0, 0) none;
            border: 0;
            color: #0072bc;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

.comment-action > *:not(:first-child) {
    margin: 0 0 0 7px;
}

.comment-action button:not(:nth-child(1))::before,
.comment-action form button::before {
    content: "";
    position: relative;
    width: 0;
    height: 18px;
    border-left: 1px solid #ccc;
    margin: 0 7px 0 0;
}

.comment .comment-box {
    margin: 10px 0 0;
    width: 100%;
}

.comment-box .textarea {
    background: #f1f5f9 none;
    border-radius: 5px;
    padding: 12px;
    color: #333;
    border: 0;
    width: 100%;
    display: block;
    height: 107px;
    outline: none;
    resize: none;
}

.comment-box .action {
    margin: 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
}

.comment-box .note {
    flex: 0 0 auto;
    max-width: 100%;
    width: calc(100% - 140px);
    color: gray;
}

.comment-box .submit {
    border: 0;
    padding: 1px 0 0;
    border-radius: 5px;
    background: #0072bc none;
    color: #f8fafc;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    width: 120px;
    height: 34px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    cursor: pointer;
}

.comment-container {
    margin: 20px 0 0;
}

.comment--button__select {
    display: flex;
    position: relative;
    gap: 33px;
    margin-top: 48px;
    margin-bottom: 49px;
    border-bottom: 1px solid #e6e6e6;
    min-width: calc(100% + 50px);
    margin-left: -25px;
    padding-left: 25px;
}

    .comment--button__select .active {
        border-width: 0;
        border-bottom: 3px solid var(--accent-color);
        color: #222;
        font-weight: 600;
        background-color: transparent;
        background-image: none;
        -webkit-appearance: button;
        text-transform: none;
        padding: 0;
    }

.comment--button__new {
    border: none;
    background: none;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: gray;
    padding-left: 0;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .comment-list > li {
        margin: 20px 0 0;
    }

        .comment-list > li:not(:first-of-type) {
            border-top: 1px solid #e6e6e6;
            padding: 20px 0 0;
        }

.comment-item {
    display: flex;
    flex-wrap: wrap;
}

.comment-avatar {
    flex: 0 0 auto;
    max-width: 100%;
    width: 40px;
    height: 40px;
    margin: 0 12px 0 0;
}

    .comment-avatar .avatar {
        background: darkgray;
        border-radius: 50%;
        height: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
    }

        .comment-avatar .avatar.img-check {
            background: none;
        }

    .comment-avatar img {
        width: 100%;
        border-radius: 50%;
        max-width: 100%;
        height: auto;
    }

.comment-content {
    flex: 0 0 auto;
    max-width: 100%;
    width: calc(100% - 52px);
}

.comment-top {
    display: flex;
    align-items: center;
    line-height: 16px;
    color: #999;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-time {
    margin: 0 0 0 8px;
}

.comment-text {
    margin: 8px 0 0;
    color: #333;
}

.comment-bottom {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #565656;
}

    .comment-bottom li {
        position: relative;
    }

        .comment-bottom li button {
            padding: 0;
            background: rgba(0, 0, 0, 0) none;
            border: 0;
            cursor: pointer;
            color: #565656;
        }

            .comment-bottom li button.like {
                display: flex;
                align-items: center;
                line-height: 12px;
                gap: 8px;
            }

            .comment-bottom li button.reply {
                display: flex;
                align-items: center;
                line-height: 12px;
                gap: 8px;
            }

        .comment-bottom li:not(:first-of-type) {
            display: flex;
            align-items: center;
        }

            .comment-bottom li:not(:first-of-type)::before {
                content: "";
                position: relative;
                width: 4px;
                height: 4px;
                border-radius: 50%;
                background: #ccc none;
                margin: 0 7px;
            }

        .comment-bottom li .list-reacted-icon {
            display: flex;
            position: relative;
        }

        .comment-bottom li .list-reacted-count {
            color: #888;
            margin-left: 6px;
        }

        .comment-bottom li .reaction-active {
            display: flex;
            gap: 8px;
            color: #0072bc;
            align-items: center;
            line-height: 12px;
            font-weight: 700;
        }

.comment-empty {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comment-reply {
    margin: 12px 0 0 52px;
    display: flex;
    align-items: center;
    padding: 0;
    background: rgba(0, 0, 0, 0) none;
    border: 0;
    cursor: pointer;
    color: #0f6c32;
    text-decoration: underline;
    font-size: 15px;
    line-height: 20px;
}

    .comment-reply::before {
        content: "";
        position: relative;
        display: block;
        width: 24px;
        height: 24px;
        background: #4d4d4d none;
        -webkit-mask: url(https://cdnweb.dantri.com.vn/dist/b8f3063�.svg) no-repeat center / 24px 24px;
        mask: url(https://cdnweb.dantri.com.vn/dist/b8f3063d4f0f9e31d2c8.svg) no-repeat center / 24px 24px;
        margin: 0 4px 0 0;
    }

.comment-more {
    margin: 20px 0 0;
    display: flex;
    align-items: center;
    padding: 12px 28px;
    background: #f4f6fa none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: #0f6c32;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 30px;
}

.phanhoi-form {
    width: 100%;
}


.comment-list.child {
    margin-left: 52px;
}

.post-interact {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    gap: 10px;
}

.interact-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.interact-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    backdrop-filter: blur(10px);
    padding: 8px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .interact-item.active {
        border: 1px solid #0879e9 !important
    }

    .interact-item img {
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .interact-item img:hover {
            transform: scale(1.2);
        }

.like-button.liked {
    background: linear-gradient(135deg, #da020e, #ff4757);
    animation: pulse-like 0.6s ease-out;
}

    .like-button.liked .heart {
        animation: heart-beat 0.6s ease-out;
    }

@keyframes pulse-like {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heart-beat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.heart {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.like-counter {
    font-size: 24px;
    font-weight: bold;
    color: #da020e;
    min-width: 60px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

    .like-counter.animate-up {
        animation: count-up 0.6s ease-out;
        color: #ff4757;
    }

    .like-counter.animate-down {
        animation: count-down 0.6s ease-out;
        color: #666;
    }

@keyframes count-up {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) translateY(-10px);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes count-down {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(0.8) translateY(5px);
        opacity: 0.6;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.like-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .comment .comment-wrap {
        padding: unset;
        border: none;
    }

    .comment-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment-time {
        margin: 0;
        font-size: 0.75rem;
    }

    .comment-list.child {
        margin-left: 20px;
    }

    .interact-item {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        gap: 12px;
    }

    .like-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .like-counter {
        font-size: 20px;
        min-width: 50px;
    }

    .like-text {
        font-size: 12px;
    }
}
