.mediapress-comments-section {
    margin: 50px 0;
}

.comment-alert-moderation {
    margin-bottom: 20px;
    font-size: small;
    line-height: 1;
    background-color: #ecfdf5;
    padding: 10px;
    border: 1px solid #10b981;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mediapress-comments-section h2 {
    line-height: 1;
    text-transform: capitalize;
    font-size: large;
    margin-bottom: 20px;
}

.comment-auth-buttons {
    line-height: 1;
}

.comment-auth-buttons p {
    margin: 0;
    padding: 20px;
    border-radius: 6px;
    font-size: small;
    color: #999;
    text-align: center;
}

.comment-auth-buttons p a {
    font-weight: bold;
}

ol.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.comment-list li,
ol.children li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

ol.comment-list .children .children {
    padding: 0;
}

ol.children {
    list-style: none;
    margin-top: 20px;
}

ol.comment-list li:last-child,
ol.children li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.no-comments-msg {
	margin: 0;
    padding: 20px;
    text-align: center;
    color: #999;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.comment-avatar img {
    width: 32px;
    border-radius: 50%;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-meta .fn {
    text-transform: capitalize;
    font-size: small;
}

.comment-date {
    font-size: x-small;
    color: #999;
}

.comment-content {
    padding-left: 42px;
}

.comment-text p {
    margin: 0;
    font-size: small;
    line-height: 1.3;
    color: #333;
}

.reply {
    line-height: 1;
}

.reply .comment-reply-link {
    font-size: x-small;
    color: #999;
}

#cancel-comment-reply-link {
    margin-left: 10px;
    font-size: small;
    font-weight: normal;
    color: #999;
}

.comment-form {
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.comment-form-comment,
.form-submit {
    margin: 0;
}

.comment-form-comment textarea {
    display: block;
    width: 100%;
    height: 45px;
    min-height: 45px;
    border-radius: 12px 12px 0 0;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid #ddd;
    border-bottom: 0;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.comment-form-comment textarea:focus {
    background-color: #fff;
}

.form-submit input[type='submit'] {
    width: 100%;
    background-color: #f0f2f5; /* Warna netral sosmed */
    font-family: inherit;
    font-weight: 700;
    color: #555;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

#respond:target .comment-form-comment textarea {
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.comment-navigation {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 5px;
    margin-bottom: 30px;
    line-height: 1;
}

.comment-navigation .page-numbers,
.comment-navigation .page-numbers.current {
    background: none;
    min-width: auto;
    height: auto;
    color: #999;
}

.comment-navigation .page-numbers.current {
    color: orangered;
}

.navigation-comment-label {
    font-size: small;
    color: #999;
}

/* --- LIKE AND DISLIKE COMMENTS --- */
.comment-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    position: relative;
}

.comment-votes-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-like-btn, .comment-dislike-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    padding: 0;
}

.comment-like-btn .material-icons { font-size: 18px; }
.comment-dislike-btn .material-icons { font-size: 18px; }

/* Warna saat sudah diklik */
.voted { color: #007bff; }

.mp-mini-tip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85); /* Hitam pekat sedikit transparan */
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px; /* Lonjong biar manis */
    font-size: 11px;
    bottom: 45px; /* Posisi di atas tombol */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.mp-mini-tip.show {
    opacity: 1;
    bottom: 50px; /* Sedikit naik saat muncul (efek floating) */
}

/* Panah kecil di bawah tooltip */
.mp-mini-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* ---- LOAD MORE COMMENTS --- */
/* 1. Aturan Dasar: Sembunyikan container Load More secara global */
.comment-load-more-container {
    display: none;
}

/* 2. Styling Tombol (Hanya visual, display dikontrol oleh containernya) */
.btn-load-more {
    background: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: x-small ;
    color: #999;
    cursor: pointer;
    margin: 15px auto;
    display: block;
    border: 1px solid #ddd;
    transition: background 0.2s;
}

/* 3. Aturan Khusus di Frontpage (Sheet) */
.mp-comment-sheet .comment-load-more-container {
    display: block; /* Munculkan Load More hanya di Sheet */
}

.mp-comment-sheet .mp-single-only {
    display: none; /* Sembunyikan navigasi angka WP di Sheet */
}

/* --- DARK MODE COMMENTS --- */

html.dark-mode .comment-sheet-content,
html.dark-mode .comment-form-container {
    background-color: #1a1a1a;
}

html.dark-mode .header-main h4,
html.dark-mode .close-comment-sheet .material-icons {
    color: #eee;
}

html.dark-mode .comment-text p {
    color: #ccc;
}

html.dark-mode .comment-form-comment textarea {
    background-color: #333;
    color: #eee;
    border-color: #555;
}

html.dark-mode .form-submit input[type='submit'] {
    background-color: #444;
    border-color: #555;
    color: #eee;
}

html.dark-mode .sheet-comment-header,
html.dark-mode ol.comment-list > li,
html.dark-mode ol.children li {
    border-color: #333;
}

html.dark-mode .comment-navigation .page-numbers {
    color: #ccc;
}

html.dark-mode .comment-navigation .page-numbers.current {
    color: orangered;
}

html.dark-mode .comment-alert-moderation {
    background-color: #333;
    border-color: #666;
}

html.dark-mode .btn-load-more {
    background-color: #333;
    border-color: #555;
    color: #ccc;
}