/* ============================================================
   LV TTS Reader — Reproductor full width
   ============================================================ */

.lv-tts-player {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.lv-tts-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #c0392b;
    border-radius: 8px;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow .2s;
}

.lv-tts-inner:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ---- Botones ---- */
.lv-tts-btn {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
    box-shadow: 0 1px 4px rgba(192,57,43,.35);
}

.lv-tts-btn:hover  { background: #a93226; transform: scale(1.06); }
.lv-tts-btn:active { transform: scale(.96); }

.lv-tts-stop {
    background: transparent;
    color: #888;
    box-shadow: none;
    width: 28px;
    height: 28px;
}
.lv-tts-stop:hover { background: #eee; color: #333; }

/* ---- Info / progreso ---- */
.lv-tts-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lv-tts-label {
    font-size: 11px;
    font-weight: 600;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-tts-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lv-tts-progress-bar {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.lv-tts-progress-fill {
    height: 100%;
    width: 0%;
    background: #c0392b;
    border-radius: 2px;
    transition: width .4s linear;
}

.lv-tts-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    min-width: 28px;
    text-align: right;
}

/* ---- Velocidad ---- */
.lv-tts-speed-wrap select {
    font-size: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 4px;
    color: #555;
    cursor: pointer;
    outline: none;
}
.lv-tts-speed-wrap select:focus { border-color: #c0392b; }

/* ---- Estado: reproduciendo ---- */
.lv-tts-player.is-playing .lv-tts-label {
    color: #27ae60;
}
.lv-tts-player.is-playing .lv-tts-inner {
    border-left-color: #27ae60;
}
.lv-tts-player.is-playing .lv-tts-btn.lv-tts-play {
    background: #27ae60;
    box-shadow: 0 1px 4px rgba(39,174,96,.35);
}
.lv-tts-player.is-playing .lv-tts-btn.lv-tts-play:hover {
    background: #1e8449;
}
.lv-tts-player.is-playing .lv-tts-label::after {
    content: ' \25CF';
    animation: lv-blink 1s infinite;
}

@keyframes lv-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---- Mensaje no soportado ---- */
.lv-tts-unsupported {
    font-size: 12px;
    color: #999;
    padding: 8px 0;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .lv-tts-inner { gap: 8px; padding: 8px 10px; }
    .lv-tts-label { font-size: 10px; }
    .lv-tts-btn   { width: 32px; height: 32px; }
}
