/* =========================================================
   FEED COMMENTS — bubble tetap seperti versi yang sudah bagus
   Yang diperbaiki hanya layout di sekitarnya.
   ========================================================= */

.facebook-feed .feed-comments,
.facebook-feed .comments-list,
.facebook-feed .feed-comment,
.facebook-feed .feed-comment-main,
.facebook-feed .feed-comment-replies{
    box-sizing:border-box;
}

/* Area komentar */
.facebook-feed .feed-comments{
    width:100%;
}

.facebook-feed .comments-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
}

/* =========================
   COMMENT ROW
   ========================= */

.facebook-feed .feed-comment{
    display:flex;
    align-items:flex-start;
    gap:8px;
    width:100%;
    margin:0;
    padding:0;
}

/* =========================
   AVATAR
   ========================= */

.facebook-feed .feed-comment-avatar{
    flex:0 0 32px;
    width:32px!important;
    height:32px!important;
    min-width:32px;
    max-width:32px;
    min-height:32px;
    max-height:32px;
    border-radius:50%;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:#e8f1fb;
    color:#2f80ed;
}

.facebook-feed .feed-comment-avatar .avatar{
    display:grid;
    place-items:center;
    width:32px!important;
    height:32px!important;
    min-width:32px;
    min-height:32px;
    margin:0;
    padding:0;
    border-radius:50%;
    overflow:hidden;
}

.facebook-feed .feed-comment-avatar img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================
   COMMENT MAIN
   ========================= */

.facebook-feed .feed-comment-main{
    flex:0 1 auto;
    min-width:0;
    max-width:calc(100% - 40px);
}

/* =========================
   BUBBLE
   JANGAN DIUBAH — INI YANG SUDAH BAGUS
   ========================= */

.facebook-feed .feed-comment-bubble{
    display:block;
    width:fit-content;
    max-width:100%;
    padding:7px 11px;
    margin:0;
    border-radius:14px;
    background:#f1f3f5;
    line-height:1.4;
}

/* =========================
   NAMA
   ========================= */

.facebook-feed .feed-comment-head{
    display:flex;
    align-items:center;
    gap:5px;
    margin:0 0 2px;
    padding:0;
    line-height:1.2;
}

.facebook-feed .feed-comment-head strong{
    display:inline;
    margin:0;
    padding:0;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:700;
}

.facebook-feed .feed-comment-head .verified-badge{
    flex:0 0 auto;
}

/* =========================
   TEXT
   ========================= */

.facebook-feed .feed-comment-text{
    margin:0;
    padding:0;
    font-size:13px!important;
    line-height:1.45!important;
    font-weight:400;
    overflow-wrap:anywhere;
    word-break:break-word;
}

/* =========================
   ACTION
   ========================= */

.facebook-feed .feed-comment-actions{
    display:flex;
    align-items:center;
    gap:10px;
    width:auto;
    margin:3px 0 0 8px;
    padding:0;
    min-height:14px;
}

.facebook-feed .feed-comment-actions time,
.facebook-feed .comment-reply-btn{
    margin:0;
    padding:0;
    font-size:10px!important;
    line-height:1.2!important;
    font-weight:700;
    color:#7e91a5;
}

.facebook-feed .comment-reply-btn{
    border:0;
    background:transparent;
    cursor:pointer;
}

.facebook-feed .comment-reply-btn:hover{
    color:#2675ce;
}

/* =========================================================
   REPLY
   Tetap 1 tingkat visual seperti Facebook.
   Reply kedua tidak membuat indentasi semakin dalam.
   ========================================================= */

.facebook-feed .feed-comment-replies{
    display:flex;
    flex-direction:column;
    gap:6px;
    width:100%;
    margin:7px 0 0;
    padding:0;
    border:0;
}

/* Reply langsung di bawah thread */
.facebook-feed .feed-comment-replies > .feed-comment{
    margin:0;
    width:100%;
}

/* Reply avatar */
.facebook-feed .feed-comment-replies .feed-comment-avatar{
    flex:0 0 30px;
    width:30px!important;
    height:30px!important;
    min-width:30px;
    max-width:30px;
    min-height:30px;
    max-height:30px;
}

.facebook-feed .feed-comment-replies .feed-comment-avatar .avatar{
    width:30px!important;
    height:30px!important;
    min-width:30px;
    min-height:30px;
}

/*
 * Reply tetap berada di thread yang sama.
 * Tidak ada indentasi tambahan berulang.
 */
.facebook-feed .feed-comment-replies .feed-comment-replies{
    display:none;
}

/* Reply bubble sedikit lebih compact */
.facebook-feed .feed-comment-replies .feed-comment-bubble{
    max-width:100%;
    padding:6px 10px;
    border-radius:14px;
}

.facebook-feed .feed-comment-replies .feed-comment-text{
    font-size:12.5px!important;
    line-height:1.4!important;
}

/* =========================
   LOADING / EMPTY / ERROR
   ========================= */

.facebook-feed .comments-loading,
.facebook-feed .comments-empty,
.facebook-feed .comments-error{
    padding:10px 4px;
    text-align:center;
    font-size:12px!important;
    line-height:1.4;
    color:var(--ck-muted);
}

/* =========================
   LEGACY BODY
   Jangan reset dengan all:unset
   ========================= */

.facebook-feed .feed-comment-body{
    margin:0;
    padding:0;
    width:auto;
    max-width:100%;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:680px){

    .facebook-feed .feed-comment{
        gap:8px;
    }

    .facebook-feed .feed-comment-main{
        max-width:calc(100% - 40px);
    }

    .facebook-feed .feed-comment-bubble{
        max-width:100%;
    }

    .facebook-feed .feed-comment-replies{
        margin-top:6px;
    }

    .facebook-feed .feed-comment-replies .feed-comment{
        margin:0;
    }
}

/* =========================================================
   Hanya angka/jumlah komentar di kanan postingan
   ========================================================= */

.facebook-feed .post-stats [data-post-comments-toggle]{
    display:inline!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:400!important;
    color:var(--ck-muted)!important;
    text-align:right!important;
    white-space:nowrap!important;
}

.facebook-feed .post-stats [data-post-comments-toggle]:hover{
    color:#2675ce!important;
    text-decoration:underline;
}

.facebook-feed .post-stats [data-comment-count]{
    display:inline!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:400!important;
}

/* HANYA posisi "13 Komentar" di kanan */
.facebook-feed .post-stats{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    width:100%!important;
}

.facebook-feed .post-stats [data-post-comments-toggle]{
    margin-left:auto!important;
    margin-right:0!important;
    text-align:right!important;
    width:auto!important;
    display:inline-block!important;
}

/* =========================================================
   Like Count — kiri pada statistik postingan
   ========================================================= */

.facebook-feed .post-stats .post-like{
    display:inline-flex!important;
    align-items:center!important;
    gap:4px!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    color:var(--ck-muted)!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:400!important;
    white-space:nowrap!important;
}

.facebook-feed .post-stats .post-like-dot{
    display:inline!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    color:#2f80ed!important;
    font-size:12px!important;
    line-height:1!important;
}

.facebook-feed .post-stats [data-like-count]{
    display:inline!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:400!important;
}

/* =========================================================
   PenCerita Verified Badge — Premium
   Bukan gaya Facebook
   ========================================================= */

.facebook-feed .verified-badge{
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;

    width:15px!important;
    height:15px!important;
    min-width:15px!important;
    min-height:15px!important;
    max-width:15px!important;
    max-height:15px!important;

    margin-left:4px!important;
    padding:0!important;

    border-radius:5px!important;

    background:linear-gradient(
        135deg,
        #7c5cff 0%,
        #9d72ff 45%,
        #4fc3ff 100%
    )!important;

    color:#fff!important;

    font-size:8px!important;
    font-weight:900!important;
    line-height:15px!important;

    box-shadow:
        0 2px 7px rgba(103,82,255,.28),
        inset 0 1px 0 rgba(255,255,255,.35)!important;

    vertical-align:middle!important;
    flex:0 0 15px!important;

    transform:translateY(-1px) rotate(0deg);
}

/* Kilau kecil */
.facebook-feed .verified-badge::before{
    content:"";
    position:absolute;
    inset:1px;
    border-radius:4px;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,.25),
        transparent 55%
    );

    pointer-events:none;
}

/* Centang */
.facebook-feed .verified-badge{
    text-shadow:
        0 1px 2px rgba(39,22,120,.25)!important;
}

/* Verified pada komentar sedikit lebih kecil */
.facebook-feed .feed-comment-head .verified-badge{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    min-height:13px!important;
    max-width:13px!important;
    max-height:13px!important;

    border-radius:4px!important;
    font-size:7px!important;
    line-height:13px!important;
    flex-basis:13px!important;

    margin-left:3px!important;
    transform:translateY(-1px);
}