/* Popup bình luận video: nổi ở góc phải dưới, mobile trải ngang màn hình */

.modal-comment .modal-dialog {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: min(380px, calc(100% - 24px));
    max-width: none;
    margin: 0;
}

.modal-comment .modal-content {
    width: 100%;
    border: none;
    background: transparent;
}

.modal-comment .modal-body {
    padding: 0;
}

.block {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(5, 40, 12, 0.3);
}

.content-comment {
    max-height: 420px;
    padding: 16px 18px 8px;
    overflow-y: auto;
}

.content-comment::-webkit-scrollbar {
    width: 5px;
}

.content-comment::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--brand);
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.block-header .title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-header .title h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.block-header .title .tag {
    min-width: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.comment {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2ee;
}

.comment .user-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment .user-banner .user {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.username {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.is-mute {
    color: var(--ink-soft);
    font-size: 12px;
}

/* Nút "..." dùng icon font chưa được nạp nên ẩn đi */
.comment .btn.dropdown {
    display: none;
}

.content-text-cmt p {
    margin: 0;
    color: #2b3a2f;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.load {
    display: flex;
    align-items: center;
    justify-content: center;
}

.load span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #969696;
    font-size: 13px;
}

.footer-comment {
    padding: 10px 18px 14px;
    border-top: 1px solid #edf2ee;
    background: #f6faf7;
}

.input-user {
    padding: 4px 0;
    border-bottom: 2px solid rgba(12, 145, 66, 0.35);
}

.input-user input {
    padding: 6px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.input-text-cmt {
    position: relative;
    padding-top: 8px;
}

.text-nd textarea {
    display: block;
    min-height: 64px;
    padding: 6px 48px 6px 0;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

.send-comment {
    position: absolute;
    right: 0;
    bottom: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--brand-gradient);
    box-shadow: var(--brand-glow);
    transition: transform 0.2s ease;
}

.send-comment:not(:disabled):hover {
    transform: translateY(-1px);
}

.send-comment:disabled {
    background: #cfd8d2;
    box-shadow: none;
    cursor: not-allowed;
}

.icon-send {
    display: flex;
}

@media (max-width: 576px) {
    .modal-comment .modal-dialog {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }

    .content-comment {
        max-height: 50vh;
    }
}
