/* ==========================================================================
   Contenedor Principal y Grid
   ========================================================================== */
.sp-podcast-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sp-podcast-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Separación amplia para evitar clics accidentales */
}

/* ==========================================================================
   Estructura de la Tarjeta de Episodio (Lista Responsive)
   ========================================================================== */
.sp-podcast-card {
    background-color: #ffffff;
    border: 3px solid #121212; /* Borde grueso para alto contraste visual */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .sp-podcast-card {
        flex-direction: row; /* En pantallas grandes se ve horizontal */
    }
}

/* Imagen del Podcast */
.sp-podcast-image-wrapper {
    flex: 0 0 250px;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-podcast-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

/* Contenido de la tarjeta */
.sp-podcast-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* ==========================================================================
   Tipografías de Alta Legibilidad (Mayores de 70 años)
   ========================================================================== */
.sp-podcast-date {
    font-size: 18px; /* Mínimo requerido */
    color: #4c4c4c;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.sp-podcast-title {
    font-size: 26px; /* Muy grande y legible */
    color: #121212;
    margin: 0 0 12px 0;
    line-height: 1.3;
    font-weight: 800;
}

.sp-podcast-desc {
    font-size: 19px; /* Texto de lectura cómodo */
    color: #222222;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* ==========================================================================
   Botones de Acción (Tamaño Objetivo Fitts: >48px)
   ========================================================================== */
.sp-podcast-btn {
    display: inline-block;
    align-self: flex-start;
    background-color: #1ED760; /* Verde Spotify Oficial */
    color: #121212 !important; /* Texto oscuro sobre fondo claro para máximo contraste */
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    border: 2px solid #121212;
    text-align: center;
    min-height: 54px; /* Supera los estándares de accesibilidad */
    box-sizing: border-box;
    box-shadow: 0 4px 0px #121212;
    transition: all 0.1s ease;
}

.sp-podcast-btn:hover, 
.sp-podcast-btn:focus {
    background-color: #1db954;
    transform: translateY(2px);
    box-shadow: 0 2px 0px #121212;
    outline: 4px solid #0056b3; /* Outline evidente al hacer focus con teclado */
}

/* Botón Footer "Ver todos" */
.sp-podcast-footer {
    text-align: center;
    margin-top: 40px;
}

.sp-podcast-btn-all {
    display: inline-block;
    background-color: #121212;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 8px;
    border: 3px solid #121212;
    min-height: 60px;
    box-sizing: border-box;
}

.sp-podcast-btn-all:hover,
.sp-podcast-btn-all:focus {
    background-color: #2c2c2c;
    color: #ffffff !important;
}

/* Mensajes de Error */
.sp-podcast-error {
    background-color: #ffdddd;
    color: #ff0000;
    padding: 15px;
    border-left: 6px solid #ff0000;
    font-size: 18px;
    font-weight: bold;
}