
/* --- CONTENEDOR PRINCIPAL (GRID FLEXIBLE) --- */
.spvl-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Variables por defecto (se sobreescriben desde Elementor) */
    --spvl-gap: 20px; 
    --spvl-player-width: 65%;
    
    gap: var(--spvl-gap);
    align-items: flex-start; /* Alineación superior */
}

/* --- REPRODUCTOR (COLUMNA IZQUIERDA) --- */
.spvl-list-container {
    display: flex;
    flex-direction: column;
    gap: var(--spvl-gap-miniatures);
}
.spvl-main-player {
    /* El ancho viene del control de Elementor */
    width: var(--spvl-player-width);
    flex-shrink: 0; /* No encogerse */
    position: relative;
}

/* --- REPRODUCTOR --- */
.spvl-main-player {
    flex: 2;
    box-sizing: border-box;
    position: relative;
}

.spvl-player-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spvl-cover img {
    height: 100% !important;
    position: absolute;
    width: 100% !important;
    object-fit: cover;
    top: 0;
    left: 0;
}

.spvl-player-ui h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
    line-height: 1.2;
}
.spvl-player-ui span {
    font-size: 0.9rem;
    display: block;
}

/* Barra de Progreso */
.spvl-progress-container {
    display: flex;
    flex-direction: column;
}
input[type=range] {
    width: 100%;
    cursor: pointer;
    height: 6px;
    border-radius: 5px;
    appearance: none;
    background: #e0e0e0;
}

.spvl-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Controles */
.spvl-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.spvl-controls button {
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    background: transparent !important;
    border: none;
}
#spvl-btn-speed{
    color: currentColor;
    border: none;
    background-color: transparent;
}
span#spvl-main-date {
    margin-bottom: 1em;
}

.spvl-controls button:active {
    transform: scale(0.95);
}
.spvl-player-ui {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    z-index: 2;
}
.spvl-player-container{
    position: relative;
    width: 100%;
}
.spvl-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.spvl-controls button svg, 
.spvl-controls button i {
    fill: currentColor;
    color: currentColor;
    display: block;
}

.spvl-speed-control {
    text-align: center;
}
.spvl-speed-control button {
    font-weight: bold;
    font-size: 0.9rem;
    background: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 auto;
    cursor: pointer;
}

/* --- LISTA LATERAL --- */
.spvl-thumbnails {
    width: calc(100% - var(--spvl-player-width) - var(--spvl-gap));
    flex-grow: 1; /* Ocupar espacio sobrante si lo hay */
    min-width: 200px; /* Evita que se aplaste demasiado */
    box-sizing: border-box;
}

.spvl-wrapper[style*="--spvl-player-width: 100%"] .spvl-thumbnails,
.spvl-wrapper[style*="--spvl-player-width:100%"] .spvl-thumbnails {
    width: 100%;
}

/* --- ELEMENTOS INTERNOS (TIPOGRAFÍA Y CONTROLES) --- */
.spvl-list-title { margin: 0 0 10px 0; line-height: 1.2; }
.spvl-list-desc { margin: 0 0 20px 0; line-height: 1.5; }
.spvl-list-btn { display: inline-block; padding: 10px 20px; text-decoration: none; transition: all 0.3s; text-align: center; }

.spvl-progress-container { display: flex; flex-direction: column; margin-bottom: 15px; }
input[type=range] { width: 100%; cursor: pointer; height: 6px; border-radius: 5px; appearance: none; background: #e0e0e0; }
.spvl-time-display { display: flex; justify-content: space-between; font-size: 0.8rem; margin-top: 5px; }

.spvl-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 10px; }
.spvl-controls button { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
.spvl-controls button:active { transform: scale(0.95); }
.spvl-controls button svg, .spvl-controls button i { fill: currentColor; color: currentColor; display: block; }

.spvl-speed-control { text-align: center; }
.spvl-speed-control button { font-weight: bold; font-size: 0.9rem; background: none; border: 1px solid currentColor; border-radius: 4px; padding: 2px 8px; margin: 0 auto; cursor: pointer; }

/* Items de la lista */
.spvl-thumb { display: flex; gap: 15px; padding: 10px; border-bottom: 1px solid #eee; cursor: pointer; transition: background 0.2s; align-items: center; }
.spvl-thumb-img { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.spvl-thumb-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.spvl-play-icon { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: rgba(0,0,0,0.3); opacity: 0.8; transition: opacity 0.2s; border-radius: 4px; }
.spvl-thumb:hover .spvl-play-icon { opacity: 1; background-color: rgba(0,0,0,0.1); }
.spvl-play-icon svg, .spvl-play-icon i { fill: currentColor; color: currentColor; }
.spvl-thumb-info .title_miniatura { margin: 0 0 5px; font-size: 0.95rem; line-height: 1.2; }
.spvl-thumb-info span { font-size: 0.8rem; color: #888; }