/**
 * Estilos del Reproductor con Forma de Onda de La Hora v1.3.0
 */

.la-hora-player-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px 15px;
    background-color: #f0f2f5;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    margin: 15px 0px;
}

.waveform-container {
    flex-grow: 1;
    height: 50px; /* Coincidir con la altura de JS */
}

.play-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    position: relative;
    outline: none;
}

/* Ícono de Play (triángulo) */
.play-button::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #555;
    transition: all 0.2s ease;
}

.play-button.is-playing::before {
    display: none; /* Ocultar triángulo durante la reproducción */
}

/* Ícono de Pausa */
.play-button::after {
    content: '';
    display: none; /* Oculto por defecto */
    width: 6px;
    height: 20px;
    background-color: #555;
    position: absolute;
    top: 2px;
    left: 0;
    box-shadow: 10px 0 0 #555;
}

.play-button.is-playing::after {
    display: block; /* Mostrar ícono de pausa durante la reproducción */
}

.play-button:hover::before {
    border-left-color: #2b82d4;
}

.play-button.is-playing:hover::after {
    background-color: #2b82d4;
    box-shadow: 10px 0 0 #2b82d4;
}

.time-display {
    font-size: 16px;
    color: #333;
    min-width: 45px; /* Evitar salto de diseño */
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* Estilos del Reproductor Fijo (Sticky) */
#la-hora-sticky-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease;
    overflow: hidden; /* Necesario para los bordes con gradiente */
}

/* Bordes de luz para el efecto glassmorphism */
#la-hora-sticky-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

#la-hora-sticky-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}

#la-hora-sticky-player.visible {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

/* Asegurar que el botón de play dentro del reproductor fijo funcione con los estilos existentes */
#la-hora-sticky-player .play-button {
    width: 20px; /* Botón más pequeño para el reproductor fijo */
    height: 20px;
}

#la-hora-sticky-player .play-button::before {
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 16px;
}

#la-hora-sticky-player .play-button::after {
    width: 5px;
    height: 16px;
    top: 2px;
    box-shadow: 8px 0 0 #555;
}

.sticky-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px; /* Ajustar ancho según sea necesario */
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #2b82d4;
    border-radius: 3px;
    transition: width 0.1s linear;
}

#la-hora-sticky-player .time-display {
    font-size: 14px;
    min-width: 40px;
}
