/* ============================================
   AULA INTERATIVA - Texto sincronizado + Audio
   ============================================ */

.pvai-wrapper {
    max-width: 760px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* ===== BARRA DE CONTROLES STICKY ===== */
.pvai-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pvai-btn {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pvai-btn:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-1px);
}

.pvai-play {
    background: linear-gradient(135deg, #c89b4a, #a87a2e);
    border-color: transparent;
    padding: 10px 20px;
    font-weight: 700;
}
.pvai-play:hover {
    background: linear-gradient(135deg, #d4a85f, #b88838);
}
.pvai-play.playing .pvai-icon-play { display: none; }
.pvai-play.playing .pvai-icon-pause { display: inline !important; }

.pvai-progress-wrap {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pvai-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,.15);
    border-radius: 4px;
    overflow: hidden;
}
.pvai-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #c89b4a, #f4d289);
    transition: width .3s ease;
}
.pvai-progress-text {
    color: #f4d289;
    font-weight: 700;
    font-size: 13px;
    min-width: 40px;
    text-align: right;
}

.pvai-speed {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.pvai-speed option { background: #2c1810; color: #fff; }

/* ===== CONTEUDO ===== */
.pvai-content {
    font-size: 22px;
    line-height: 1.85;
    color: #1f2937;
    text-align: justify;
    padding: 20px 0 60px;
}

.pvai-frase {
    display: inline;
    transition: all .35s ease;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #1f2937;
}

.pvai-frase:hover {
    background: rgba(200,155,74,.08);
}

/* JA LIDA - cinza claro */
.pvai-frase.lida {
    color: #9ca3af;
    opacity: .65;
}

/* ATIVA - destaque dourado intenso */
.pvai-frase.ativa {
    background: linear-gradient(120deg, #fff8e1 0%, #f4d289 100%);
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(200,155,74,.3);
    padding: 6px 10px;
    border-radius: 8px;
    transform: scale(1.02);
    display: inline-block;
}

/* MENSAGEM FINAL */
.pvai-fim {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 4px 16px rgba(16,185,129,.15);
}
.pvai-fim h3 { margin: 0 0 10px; color: #065f46; font-size: 26px; }
.pvai-fim p { margin: 0; color: #047857; font-size: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .pvai-controls { padding: 12px; gap: 8px; }
    .pvai-btn { padding: 8px 12px; font-size: 13px; }
    .pvai-btn-label { display: none; }
    .pvai-content { font-size: 18px; padding: 16px 0 40px; }
    .pvai-progress-wrap { order: 10; flex-basis: 100%; }
}

/* DARK MODE OPCIONAL */
@media (prefers-color-scheme: dark) {
    .pvai-content { color: #e5e7eb; }
    .pvai-frase { color: #e5e7eb; }
    .pvai-frase.lida { color: #6b7280; }
}