/* Basic word transition */
.tts-word {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active word (Google-style highlight) */
.tts-word.active {
    background-color: #94bbf9; /* Light Google blue */
    border-radius: 2px;        /* Subtle rounding */
}

/* Active paragraph highlight */
.tts-paragraph.active {
    background-color: #D2E3FC; /* Soft paragraph background */
}

/* Audio wrapper layout */
.tts-audio-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Listen button styling */
.tts-listen-btn {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.tts-listen-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.tts-listen-btn:hover:not(:disabled) {
    background-color: #005177;
}
/* Wrapper keeps original space */
.tts-player-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.tts-mini-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background-color: #f1f3f4; /* light Google gray */
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.tts-mini-bar .tts-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #202124;
    background-color: #f1f3f4;
    color: #202124;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tts-mini-bar .tts-duration {
    margin-left: auto;  /* pushes it to the right */
    font-size: 14px;
    color: #5f6368;     /* muted color */
    font-weight: 400;
}

.tts-mini-bar .tts-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}


/* Normal player */
.tts-player {
    transition: all 0.3s ease;
}

/* Floating style */
.tts-player.sticky {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 420px;
    max-width: 90%;
    background: #ffffff;
    padding: 0px 0px;
    border-radius: 12px;
    /* box-shadow: 0 8px 30px rgba(0,0,0,0.15); */
    z-index: 9999;
}

/* Make audio full width inside box */
.tts-player audio {
    width: 100%;
}

