/* ============================================= */
/* --- ESTILOS SECCIÓN PODCAST --- */
/* ============================================= */

.podcast-container {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-color: #050505; 
    background-image: url('../media/images/backgrounds/background_podcast.png'); /* Fondo general oscuro */
    background-size: 100% 100%;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 5%;
    overflow: hidden;
}

.podcast-wrapper {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Columna derecha ligeramente más ancha */
    gap: 60px;
    align-items: center;
    z-index: 10;
}

/* --- COLUMNA IZQUIERDA --- */
.podcast-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.podcast-title-img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.podcast-text-img {
    width: 100%;
    max-width: 550px;
    height: auto;
}

/* --- COLUMNA DERECHA (CAJA PLAYLIST) --- */
.podcast-right {
    display: flex;
    justify-content: center;
}

.podcast-playlist-box {
    width: 100%;
    max-width: 700px;
    /* Fondo difuminado naranja/oscuro */
    background-image: url('../media/images/podcast_blur_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.playlist-title {
    color: #ffffff;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.playlist-title span {
    font-weight: 800;
}

.playlist-tracks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- CONTENEDOR DEL REPRODUCTOR (CARD) --- */
.audio-container {
    background-color: #111111;
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.audio-container:hover {
    border-color: var(--primary-orange, #FF4500);
    transform: translateX(5px); /* Pequeño salto a la derecha al pasar el ratón */
}

/* Miniatura del episodio */
.podcast-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255,69,0,0.2);
}

.podcast-player-core {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podcast-ep-title {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

/* --- PANEL DE CONTROLES --- */
.controls-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.playPauseButton {
    background-color: var(--primary-orange, #FF4500);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.playPauseButton:hover { background-color: #e63e00; }
.playPauseButton:active { transform: scale(0.90); }
.playPauseButton .icon { font-size: 14px; margin-left: 2px; } /* Ajuste óptico del play */

/* --- BARRA DE PROGRESO --- */
.progressBar {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #333333; /* Color de fondo de la barra */
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

.progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-orange, #FF4500);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.8);
}

.progressBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary-orange, #FF4500);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* --- VISUALIZACIÓN DEL TIEMPO --- */
.time-display {
    color: #ffffff;
    font-size: 12px;
    width: 75px; 
    text-align: right;
    font-family: monospace; /* Evita que los números bailen de ancho */
}
.duracionTotal { color: #888888; }

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .podcast-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .podcast-left { align-items: center; }
    .podcast-playlist-box { padding: 30px 20px; }
}

@media (max-width: 600px) {
    /* La tarjeta se apila verticalmente */
    .audio-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
    }
    
    .podcast-player-core { 
        width: 100%; 
        align-items: center; 
    }
    
    /* Reorganizamos el panel de controles para que todo quepa */
    .controls-panel {
        flex-wrap: wrap; /* Permite que los elementos bajen de línea si no caben */
        justify-content: center;
        gap: 10px;
    }
    
    /* La barra de progreso toma todo el ancho disponible */
    .progressBar {
        width: 100%;
        order: 1; /* Forzamos a la barra a ir a la línea de abajo */
    }
    
    /* Aparece el tiempo y lo centramos en su propia línea o al lado del botón */
    .time-display { 
        display: block; 
        width: auto; 
        text-align: center;
    }
}