/* * UI Modern & Simple Design untuk Text-to-Speech (Inline Mode) */

#mtts-player {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 0 25px 0;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    
    /* Modern Simple UI */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    color: #333;
}

/* Bagian Header Info & Status */
.mtts-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.mtts-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dot Animasi (Pulse) saat audio berjalan */
.mtts-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #94a3b8;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#mtts-player.is-playing .mtts-pulse-dot {
    background-color: #3b82f6; /* Warna biru saat aktif */
    animation: mtts-pulse 1.5s infinite;
}

@keyframes mtts-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Tombol Kontrol (Play, Pause, Stop) */
.mtts-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mtts-btn {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #475569;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mtts-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.mtts-btn:active {
    transform: scale(0.95);
}

.mtts-hidden {
    display: none !important;
}

/* Progress Bar diletakkan di bagian bawah border */
.mtts-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.mtts-progress {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    border-radius: 0 0 0 12px;
    transition: width 0.1s linear;
}

/* Mode Gelap Opsional (Mengikuti preferensi sistem user) */
@media (prefers-color-scheme: dark) {
    #mtts-player {
        background: #1e293b;
        color: #f8fafc;
        border-color: #334155;
    }
    .mtts-btn {
        background: #334155;
        color: #f8fafc;
    }
    .mtts-btn:hover {
        background: #3b82f6;
    }
}

/* Efek Highlight Teks saat membaca (Opsional) */
body.mtts-reading-mode .entry-content p {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mtts-highlight {
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    padding: 2px 0;
}