/**
 * Estilos del Reproductor de Audio de La Hora v1.4.0
 */

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

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2599D6;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    outline: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

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

.play-button.is-playing::before {
    display: none;
}

/* Ícono de Pausa */
.play-button::after {
    content: '';
    display: none;
    width: 4px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 1px;
    position: absolute;
    top: 13px;
    left: 14px;
    box-shadow: 8px 0 0 #ffffff;
}

.play-button.is-playing::after {
    display: block;
}

.play-button:hover {
    background-color: #1b7ab0;
}

.time-display {
    font-size: 16px;
    color: #333;
    min-width: 45px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    flex-shrink: 0;
}

/* Línea de reproducción clásica */
.playback-line-container {
    flex-grow: 1;
    height: 30px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 8px;
}

.playback-track {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #d0d0d0;
    border-radius: 2px;
    cursor: pointer;
}

.playback-fill {
    height: 100%;
    width: 0;
    background-color: #2599D6;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.playback-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #2599D6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: left 0.1s linear;
}

/* 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;
}

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

#la-hora-sticky-player .play-button {
    width: 32px;
    height: 32px;
}

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

#la-hora-sticky-player .play-button::after {
    width: 3px;
    height: 10px;
    top: 11px;
    left: 10px;
    box-shadow: 6px 0 0 #ffffff;
}

.sticky-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
}

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

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

.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #2599D6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: left 0.1s linear;
}

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

/* Responsivo */
@media (max-width: 600px) {
    .la-hora-player-wrapper {
        padding: 8px 10px;
        gap: 8px;
    }

    .play-button {
        width: 34px;
        height: 34px;
    }

    .play-button::before {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 11px solid #ffffff;
    }

    .play-button::after {
        width: 3px;
        height: 11px;
        top: 11px;
        left: 12px;
        box-shadow: 6px 0 0 #ffffff;
    }

    .time-display {
        font-size: 14px;
        min-width: 38px;
    }

    .playback-thumb {
        width: 12px;
        height: 12px;
    }
}
