/* =====================================================
   BOTÓN FLOTANTE EN HEADER (SMARTPHONE Y TABLET)
   ===================================================== */
.header-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-header-text, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.header-audio-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: color-mix(in srgb, var(--accent, #c9a84c) 55%, rgba(255, 255, 255, 0.2));
}

.header-audio-btn:active {
    transform: scale(0.95);
}

.header-audio-btn svg {
    fill: currentColor;
    transition: transform 0.15s ease;
}

.header-audio-btn.is-playing {
    background: var(--accent, #c9a84c);
    color: #ffffff;
    border-color: var(--accent, #c9a84c);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}

.header-audio-btn.is-playing .audio-icon-play {
    display: none !important;
}

.header-audio-btn.is-playing .audio-icon-stop {
    display: block !important;
}

/* En modo escritorio (>=1180px), ocultamos el botón de header superior porque está integrado en la ventana de lectura */
@media (min-width: 1180px) {
    body:not(.main-torn-off) .header-audio-btn {
        display: none !important;
    }
}

/* ── Fila de Referencia con Botón Discreto de Audio ── */
.reference-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 44px;
    background: var(--studio-panel-solid, #ffffff);
}

@media (max-width: 768px) {
    .reference-header-row {
        padding: 0 16px;
    }
}

/* ── Ocultar botón redundante en cabecera de capítulo ── */
.chapter-audio-trigger {
    display: none !important;
}

/* Padding adicional al fondo del contenido cuando el reproductor está abierto para no tapar los últimos versículos */
body.has-audio-player-open #content {
    padding-bottom: calc(180px + env(safe-area-inset-bottom)) !important;
}

/* =====================================================
   REPRODUCTOR EN MÓVIL Y TABLET (FIJO Y FLOTANTE SIN TAPAR NAVEGACIÓN)
   ===================================================== */
.bible-audio-player {
    display: none;
    align-items: center;
    gap: 12px;
    background: var(--bg-filters, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 8px 16px;
    margin: 8px 44px 14px 44px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

/* Smartphone y Tablet (< 1180px): Panel anclado al fondo total de la ventana */
@media (max-width: 1179px) {
    .bible-audio-player {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 18px 18px 0 0 !important;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom)) 16px !important;
        background: var(--studio-panel, rgba(30, 34, 45, 0.98)) !important;
        border: none !important;
        border-top: 1px solid var(--border-accent, var(--accent, #c9a84c)) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45) !important;
        z-index: 1000 !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        pointer-events: auto !important;
        transition: transform 0.25s ease, opacity 0.25s ease !important;
    }

    /* La barra de navegación de pestañas sube ordenadamente por encima del panel de audio */
    body.has-audio-player-open .mode-tabs {
        bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    }

    /* La barra de selección de versículos sube por encima del panel de audio */
    body.has-audio-player-open .mobile-selection-bar {
        bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    }
}

/* Smartphone (< 600px): Ajuste equilibrado para controles y switch de volumen */
@media (max-width: 600px) {
    .bible-audio-player {
        gap: 6px !important;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) 10px !important;
    }

    .audio-transport-controls {
        gap: 2px !important;
    }

    .audio-btn-play {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .audio-btn-step {
        width: 24px !important;
        height: 24px !important;
    }

    .audio-progress-container {
        min-width: 35px !important;
        flex: 1 !important;
    }

    .audio-time-label {
        font-size: 0.72rem !important;
        letter-spacing: -0.02em !important;
    }

    .audio-ambient-controls {
        gap: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .audio-music-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .audio-ambient-switch {
        padding: 2px !important;
        gap: 2px !important;
        border-radius: 12px !important;
    }

    .ambient-step-btn {
        padding: 3px 6px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        min-width: 22px !important;
        text-align: center !important;
    }

    .audio-btn-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 1.15rem !important;
        margin-left: 2px !important;
        padding: 0 !important;
    }
}

/* La barra de opciones de selección de versículo */
.mobile-selection-bar {
    z-index: 10050 !important;
}

.bible-audio-player.is-active {
    display: flex;
    animation: audioPlayerSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes audioPlayerSlideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CONTROLES DE AUDIO EN VENTANA DE LECTURA (ESCRITORIO)
   ===================================================== */
.desktop-lectura-audio-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 1179px) {
    .desktop-lectura-audio-controls {
        display: none !important;
    }
}

.desktop-audio-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft, rgba(201, 168, 76, 0.18));
    border: 1px solid var(--accent, #c9a84c);
    color: var(--accent, #c9a84c);
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.desktop-audio-play-btn:hover {
    background: var(--accent, #c9a84c);
    color: #ffffff;
    transform: scale(1.08);
}

.desktop-audio-play-btn.is-playing {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.desktop-audio-play-btn.is-playing .audio-icon-play {
    display: none !important;
}

.desktop-audio-play-btn.is-playing .audio-icon-stop {
    display: block !important;
}

.desktop-audio-player-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 10px 2px 4px;
    animation: fadeInInline 0.2s ease;
}

@keyframes fadeInInline {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.desktop-audio-pause-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--studio-header-text, #ffffff);
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease, color 0.15s ease;
    flex-shrink: 0;
}

.desktop-audio-pause-btn:hover {
    color: var(--accent, #c9a84c);
    transform: scale(1.15);
}

.desktop-audio-seek-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.desktop-audio-seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
}

.desktop-audio-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent, #c9a84c);
    cursor: pointer;
}

.desktop-seek-tooltip {
    bottom: calc(100% + 8px) !important;
    z-index: 10050 !important;
}

.desktop-audio-time {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    user-select: none;
}

.desktop-audio-ambient-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.desktop-audio-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--studio-header-text, #ffffff);
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease, color 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
    opacity: 0.85;
}

.desktop-audio-ctrl-btn:hover {
    color: var(--accent, #c9a84c);
    transform: scale(1.15);
    opacity: 1;
}

.desktop-audio-ctrl-btn.is-active {
    color: var(--accent, #c9a84c);
    opacity: 1;
}

.desktop-audio-ctrl-btn.is-muted {
    opacity: 0.55;
}

.desktop-audio-ctrl-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.desktop-volume-popover {
    top: calc(100% + 10px) !important;
    bottom: auto !important;
    right: -4px !important;
    z-index: 10050 !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55) !important;
}

.desktop-volume-popover::after {
    top: -7px !important;
    bottom: auto !important;
    border-width: 0 7px 7px 7px !important;
    border-color: transparent transparent var(--border-accent, var(--accent, #c9a84c)) transparent !important;
}

[data-theme="light"] .desktop-volume-popover::after {
    border-color: transparent transparent var(--accent, #c9a84c) transparent !important;
}

/* Bloque de controles de transporte (Anterior, Play/Pausa, Siguiente) */
.audio-transport-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.audio-btn-step {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.audio-btn-step:hover {
    color: var(--accent, #c9a84c);
    background: rgba(255, 255, 255, 0.08);
}

.audio-btn-step:active {
    transform: scale(0.92);
}

/* Botón Play / Pausa */
.audio-btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.audio-btn-play:hover {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.audio-btn-play:active {
    transform: scale(0.94);
}

.audio-btn-play svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.audio-btn-play.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.audio-btn-play.is-loading svg {
    display: none;
}

.audio-btn-play.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: audioSpin 0.7s linear infinite;
}

@keyframes audioSpin {
    to { transform: rotate(360deg); }
}

/* Barra de progreso / Seek bar */
.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    height: 24px;
    min-width: 80px;
}

/* Tooltip dinámico de versículo al arrastrar la barra de progreso */
.audio-seek-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: var(--studio-panel, #1e222d);
    color: var(--accent, #c9a84c);
    border: 1px solid var(--border-accent, #c9a84c);
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    transition: opacity 0.15s ease;
}

.audio-seek-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--border-accent, #c9a84c) transparent transparent transparent;
}

.audio-seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border, #cbd5e1);
    outline: none;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
}

.audio-seek-slider:hover {
    height: 8px;
}

.audio-seek-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--accent, #3b82f6) 0%,
        var(--accent, #3b82f6) var(--seek-pct, 0%),
        var(--border, #cbd5e1) var(--seek-pct, 0%),
        var(--border, #cbd5e1) 100%
    );
}

.audio-seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    border: 2px solid var(--bg-container, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    margin-top: -3px;
    transition: transform 0.1s ease;
}

.audio-seek-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.audio-seek-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border, #cbd5e1);
}

.audio-seek-slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--accent, #3b82f6);
}

.audio-seek-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    border: 2px solid var(--bg-container, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Display de tiempo (0:00 / 0:00) */
.audio-time-label {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    user-select: none;
}

.audio-time-current {
    color: var(--text-main, #1e293b);
}

/* Controles de música de ambiente y mezcla de volumen */
.audio-ambient-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}

.audio-music-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    user-select: none;
}

.audio-music-icon,
.audio-volume-icon {
    pointer-events: none;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.audio-music-btn:hover {
    color: var(--accent, #c9a84c);
    border-color: var(--accent, #c9a84c);
    background: var(--accent-soft, rgba(201, 168, 76, 0.1));
    transform: scale(1.06);
}

.audio-music-btn:active {
    transform: scale(0.94);
}

.audio-music-btn.is-active {
    background: var(--accent-soft, rgba(201, 168, 76, 0.16));
    border-color: var(--accent, #c9a84c);
    color: var(--accent, #c9a84c);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.25);
    opacity: 1;
}

.audio-music-btn.is-muted,
.audio-music-btn:not(.is-active) {
    opacity: 0.75;
    border-color: var(--border, rgba(255, 255, 255, 0.18));
    color: var(--text-muted, #94a3b8);
    background: transparent;
    box-shadow: none;
}

/* Popover flotante de mezcla de volumen (Voz y Música) - Amplio, táctil y ergonómico */
.audio-volume-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 300px;
    max-width: calc(100vw - 28px);
    background: var(--studio-panel, rgba(30, 34, 45, 0.98));
    border: 1px solid var(--border-accent, var(--accent, #c9a84c));
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 168, 76, 0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10050;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: popoverFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    user-select: none;
}

[data-theme="light"] .audio-volume-popover {
    background: #ffffff;
    border-color: var(--accent, #c9a84c);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 0 12px rgba(201, 168, 76, 0.12);
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.audio-volume-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 18px;
    border-width: 7px;
    border-style: solid;
    border-color: var(--border-accent, var(--accent, #c9a84c)) transparent transparent transparent;
}

[data-theme="light"] .audio-volume-popover::after {
    border-color: var(--accent, #c9a84c) transparent transparent transparent;
}

.audio-vol-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
}

.audio-vol-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 68px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--studio-ink, #ffffff);
}

[data-theme="light"] .audio-vol-label {
    color: var(--text-main, #1e293b);
}

.audio-vol-icon-text {
    font-size: 1.15rem;
    line-height: 1;
}

.audio-vol-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    touch-action: none;
    transition: background 0.2s ease;
}

[data-theme="light"] .audio-vol-slider {
    background: rgba(0, 0, 0, 0.12);
}

.audio-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent, #c9a84c);
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.audio-vol-slider::-webkit-slider-thumb:hover,
.audio-vol-slider::-webkit-slider-thumb:active {
    transform: scale(1.18);
}

.audio-vol-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent, #c9a84c);
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.audio-vol-percent {
    width: 44px;
    text-align: right;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--accent, #c9a84c);
    font-variant-numeric: tabular-nums;
}


/* Modal flotante para cambio a versión con audio */
.audio-switch-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: audioModalFadeIn 0.2s ease;
}

@keyframes audioModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.audio-switch-modal-card {
    background: var(--studio-panel, #1e222d);
    color: var(--studio-ink, #ffffff);
    border: 1px solid var(--border-accent, var(--accent, #c9a84c));
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 22px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: audioModalCardPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes audioModalCardPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.audio-switch-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-switch-modal-icon {
    font-size: 1.4rem;
}

.audio-switch-modal-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--studio-ink, #ffffff);
}

.audio-switch-modal-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted, #cbd5e1);
}

.audio-switch-modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-switch-btn-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--accent, #c9a84c);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.audio-switch-btn-option:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.audio-switch-btn-option:active {
    transform: scale(0.98);
}

.audio-switch-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.audio-switch-btn-cancel {
    background: transparent;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
    color: var(--text-muted, #94a3b8);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.audio-switch-btn-cancel:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Botón cerrar / ocultar barra de audio */
.audio-btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.audio-btn-close:hover {
    color: var(--text-main, #1e293b);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ── Foco Central y Profundidad Inmersiva durante la Reproducción ── */
body.audio-playing-focus .verse {
    transition: opacity 0.45s ease, filter 0.45s ease;
}

body.audio-playing-focus .verse.verse-in-focus {
    opacity: 1 !important;
    filter: none !important;
}

body.audio-playing-focus .verse.verse-out-focus {
    opacity: 0.52 !important;
}

body.audio-playing-focus .verse.verse-in-focus .verse-number {
    color: var(--accent, #c9a84c);
    font-weight: 700;
    transition: color 0.3s ease;
}


/* Indicador táctil en el número de versículo para iniciar audio */
.has-audio-version .verse-number {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.has-audio-version .verse-number:hover {
    color: var(--accent, #c9a84c);
    transform: scale(1.15);
}
