.comment-content p.expanded {
    -webkit-line-clamp: unset !important;
    overflow: visible;
}


.comment-list { margin-top:10px; padding:8px; border:1px solid #ddd; border-radius:6px; width:100%; font-family:Arial, sans-serif; font-size:0.85rem;}
.comment-list ul.comments, .nested-comments { list-style:none; padding-left:0; margin:0;}
.comment-list ul.comments > li, .nested-comments > li { margin-top:4px;}
.comment { display:flex; gap:6px; align-items:flex-start;}
.comment .avatar { width:28px; height:28px; border-radius:50%; border:2px solid #0077cc; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.comment .comment-content { flex:1; background:transparent; padding:4px 6px; border-radius:6px; position:relative; }
.comment .comment-content button.reply-btn { font-size:0.7rem; color:#0077cc; background:none; border:none; cursor:pointer; margin-top:2px;}
.comment .comment-content button.reply-btn:hover { text-decoration:underline; }
.nested-comments { margin-left:25px; }

/* Form utama & nested reply */
#commentForm, .nested-reply-form {
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:0.85rem;
    background:#f5f6f7;
    padding:8px;
    border-radius:12px;
}

/* Input teks & textarea mirip fb */
#commentForm input[type="text"],
#commentForm input[type="email"],
#commentForm textarea,
.nested-reply-form input[type="text"],
.nested-reply-form input[type="email"],
.nested-reply-form textarea {
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:20px;
    font-size:0.9rem;
    width:100%;
    box-sizing:border-box;
    outline:none;
    transition: border 0.2s;
}

#commentForm input:focus,
#commentForm textarea:focus,
.nested-reply-form input:focus,
.nested-reply-form textarea:focus {
    border-color:#0077cc;
}

/* Tombol kirim */
#commentForm button,
.nested-reply-form button {
    align-self:flex-end;
    background:#0077cc;
    color:#fff;
    border:none;
    padding:6px 14px;
    border-radius:20px;
    cursor:pointer;
    font-size:0.85rem;
    transition:background 0.2s;
}

#commentForm button:hover,
.nested-reply-form button:hover {
    background:#005fa3;
}

#commentForm textarea,
.nested-reply-form textarea { min-height:50px; resize:vertical; }

.comment-popup { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center; z-index:9999;}
.comment-popup.hidden { display:none; }
.comment-popup-content { background:#fff; padding:15px 20px; border-radius:8px; text-align:center; box-shadow:0 3px 10px rgba(0,0,0,0.2); max-width:300px; width:80%; font-size:0.9rem;}
.comment-popup-content button { padding:6px 12px; background:#0077cc; color:#fff; border:none; border-radius:5px; cursor:pointer;}
.comment-popup-content button:hover { background:#005fa3; }

.load-more { display:inline-block; margin:6px 0; padding:4px 8px; cursor:pointer; border:none; background:none; color:#0077cc;}
.load-more:hover { text-decoration:underline; }
.child-wrapper { margin-left:25px; }

.comment-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}

.read-more-btn {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #0077cc;
    cursor: pointer;
}
.read-more-btn:hover { text-decoration:underline; }
