/**
 * PL Audio Player - VERSIÓN FINAL
 * Exactamente como la foto adjunta
 */

 :root {
    --pl-bg-start: #2b2b2b; /* Marrón/ocre suave arriba */
    --pl-bg-end: #1a1a1a;   /* Negro abajo */
    --pl-accent: #ffffff;    /* Controles blancos */
    --pl-text: #ffffff;
    --pl-text-light: rgba(255, 255, 255, 0.8);
    --pl-text-muted: rgba(255, 255, 255, 0.5);
    --pl-radius: 24px;
}

/* Contenedor principal con DEGRADADO de abajo hacia arriba */
.pl-audio-player {
    background: linear-gradient(180deg, var(--pl-bg-start) 0%, var(--pl-bg-end) 100%);
    border-radius: var(--pl-radius);
    padding: 30px 25px 30px 25px;
    padding-bottom: 100px;
    color: var(--pl-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 420px;
    margin: 20px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* PORTADA */
.pl-player-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.pl-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CABECERA con artista, título e iconos */
.pl-player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* Info izquierda (artista y título) */
.pl-player-info-left {
    flex: 1;
}

/* ARTISTA - texto gris claro */
.pl-player-artist {
    font-size: 16px;
    font-weight: 400;
    color: var(--pl-text-light);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    text-align: left;
}

/* TÍTULO - texto blanco */
.pl-player-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--pl-text);
    text-align: left;
    line-height: 1.2;
}

/* Iconos derecha (favorito y compartir) - SIN BACKGROUND */
.pl-player-icons-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pl-icon-btn {
    background: transparent !important; /* SIN BACKGROUND */
    border: none !important;
    color: var(--pl-text-light);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    box-shadow: none !important;
    outline: none;
}

.pl-icon-btn:hover {
    color: var(--pl-text); /* Solo cambia color a blanco, sin fondo */
    background: transparent !important;
}

.pl-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* BARRA DE PROGRESO - ARRIBA de los controles */
.pl-progress-area {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 25px; /* Espacio antes de los controles */
}

/* Tiempos */
.pl-time-current,
.pl-time-duration {
    font-size: 15px;
    font-weight: 500;
    color: var(--pl-text-muted);
    min-width: 45px;
    letter-spacing: 0.3px;
}

.pl-time-duration {
    text-align: right;
}

/* Barra de progreso */
.pl-progress-bar-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.pl-progress-bar {
    height: 100%;
    background: var(--pl-accent);
    border-radius: 3px;
    width: 0%;
    position: relative;
}

/* Círculo en la barra - SOLO EN HOVER */
.pl-progress-bar-container:hover .pl-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--pl-accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* CONTROLES - SIN BACKGROUND, solo iconos */
.pl-player-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Botones ANTERIOR y SIGUIENTE - SIN BACKGROUND */
.pl-prev,
.pl-next {
    background: transparent !important;
    border: none !important;
    color: var(--pl-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
    padding: 10px;
    box-shadow: none !important;
    outline: none;
}

.pl-prev:hover,
.pl-next:hover {
    opacity: 1;
    color: #cccccc; /* Gris más claro en hover */
    background: transparent !important;
}

.pl-prev svg,
.pl-next svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Botón PLAY - SIN BACKGROUND, solo borde sutil */
.pl-play-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent !important; /* SIN FONDO */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Borde sutil */
    color: var(--pl-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    box-shadow: none !important;
    outline: none;
}

.pl-play-big:hover {
    border-color: rgba(255, 255, 255, 0.8); /* Borde más brillante en hover */
    color: #ffffff;
    background: transparent !important;
    transform: scale(1.02);
}

.pl-play-big svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

.pl-play-big .pl-icon-pause {
    display: none;
}

.pl-play-big.is-playing .pl-icon-play {
    display: none;
}

.pl-play-big.is-playing .pl-icon-pause {
    display: block;
}

/* Ocultar elementos no usados */
.pl-player-waveform,
.pl-waveform-canvas,
.pl-pulse-ring,
.pl-pulse-ring-2 {
    display: none !important;
}

/* Contenedores ocultos */
.pl-spotify-container,
.pl-youtube-container {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
    .pl-audio-player {
        padding: 20px 20px 25px 20px;
    }
    
    .pl-player-title {
        font-size: 22px;
    }
    
    .pl-play-big {
        width: 70px;
        height: 70px;
    }
    
    .pl-play-big svg {
        width: 36px;
        height: 36px;
    }
    
    .pl-prev svg,
    .pl-next svg {
        width: 28px;
        height: 28px;
    }
    
    .pl-player-controls-row {
        gap: 30px;
    }
    
    .pl-icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .pl-progress-area {
        margin-bottom: 20px;
    }
}