/* Para poder posicionar el bloque de programa */
#csp-player {
    position: relative; /* antes estaba sólo fixed */
}

/* Centrar siempre el bloque de programa */
.csp-program {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    /* opcional: ajustar verticalmente si quieres más separación arriba/abajo */
    top: 50%;
    transform: translate(-50%, -50%);
}
#csp-player {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: #001F5C;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    font-family: Arial, sans-serif;
}
.csp-controls { margin-right:20px;}
.csp-btn-wrap { position: relative; width: 80px; height: 80px; }
.csp-btn { position: absolute; top: 0; left: 0; width: 80px; height: 80px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.csp-triangle { width: 0; height: 0; border-left: 24px solid red; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 5px; }
.csp-pause-bars { display: flex; gap: 8px; }
.csp-pause-bars div { width: 8px; height: 28px; background: red; }
.csp-song { display: flex; align-items: center; gap: 10px; flex: 1; }
.csp-song img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.csp-program { flex: 1; display: flex; align-items: center; justify-content: center; gap: 15px; }
.csp-program-image img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.csp-volume { flex: 0 0 120px; display: flex; align-items: center; justify-content: center; }
.csp-podcast-controls { flex: 2; display: flex; align-items: center; gap: 10px; }
.csp-podcast-controls input[type="range"] { flex: 1; }
.csp-program-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* Etiquetas internas */
#csp-now-label {
    font-size: 14px;
    font-weight: normal;
}
#csp-program-title {
    font-size: 16px;
    font-weight: bold;
}
/* Forzar imagen 1:1 en las cards */
.csp-podcast-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Centrar texto dentro del botón */
.csp-load-more {
    text-align: center;
    line-height: normal; /* o ajústalo a la altura del botón si hiciera falta */
}
/* Ajustar tamaño de cada card y centrar contenido */
.csp-podcast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 15px;
}

/* Cada tarjeta toma todo el espacio de celda y centra su contenido */
.csp-podcast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  /* Altura mínima para 3 filas, ajusta según tu diseño */
  min-height: 250px;
  background: #f9f9f9;
  border-radius: 5px;
}

/* Imagen 1:1 */
.csp-podcast-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Metadatos centrados */
.csp-podcast-card .title,
.csp-podcast-card .meta {
  width: 100%;
  margin: 4px 0;
  font-size: 14px;
}

/* Botón “Escuchar” centrado */
.csp-podcast-card .csp-play-podcast {
  margin-top: auto;
  padding: 8px 12px;
  background: #001F5C;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.csp-podcast-card .csp-play-podcast:hover {
  background: #003168;
}
.csp-podcast-card .csp-play-podcast {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #001F5C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* Asegura una altura mínima para centrar mejor */
    min-height: 36px;
    line-height: normal;
}
