/**
 * ESTILOS DE LA PÁGINA "PROGRAMA DE RADIO - ABRIENDO CAMINOS"
 * Integración Oficial con SoundCloud (@user-847023684)
 * Concesión Vías del Nus - Vinus S.A.S.
 *
 * @author  Mateo Jaramillo Suarez
 * @email   teojaramillosuarez@gmail.com
 * @phone   3157456196
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL Y BASE
   ========================================================================== */
.radio-page-section {
  padding: 50px 0 90px;
  background-color: #fafbfc;
  min-height: 70vh;
}

/* ==========================================================================
   2. BANNER DE CONEXIÓN SOUNDCLOUD
   ========================================================================== */
.sc-channel-banner {
  background: linear-gradient(135deg, #ff5500 0%, #e04500 50%, #b83200 100%);
  border-radius: 18px;
  padding: 24px 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.sc-channel-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.sc-channel-info {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.sc-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  background: #ffffff;
}

.sc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-channel-text h3 {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-channel-text p {
  font-size: 13.5px;
  color: #ffeedd;
  margin: 0;
  line-height: 1.4;
}

.sc-verified-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sc-btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #d84000;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.sc-btn-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #fff8f5;
  color: #b83200;
}

.sc-btn-follow svg {
  fill: currentColor;
}

/* ==========================================================================
   3. REPRODUCTOR DESTACADO (ÚLTIMA EMISIÓN)
   ========================================================================== */
.featured-radio-card {
  background: linear-gradient(135deg, #0b1526 0%, #002b53 55%, #004785 100%);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 42px);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 43, 83, 0.22);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-radio-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.featured-radio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.featured-kicker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.featured-live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
  animation: radio-pulse 1.8s infinite ease-in-out;
}

@keyframes radio-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.featured-kicker-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 12px;
}

.featured-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 680px;
}

/* Contenedor del Reproductor SoundCloud Embebido */
.featured-player-wrap {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 14px;
}

.featured-player-wrap iframe {
  border-radius: 8px;
  display: block;
}

.featured-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.featured-meta-bar a {
  color: #38bdf8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.featured-meta-bar a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Columna Derecha de la Tarjeta Destacada */
.featured-side-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
}

.featured-cover-img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.featured-side-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.featured-side-subtitle {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.featured-side-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
}

/* ==========================================================================
   4. BARRA DE CONTROL Y BÚSQUEDA DEL CATÁLOGO
   ========================================================================== */
.radio-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.radio-catalog-title-wrap h2 {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.25;
}

.radio-catalog-title-wrap p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.radio-controls-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-filter-btn:hover {
  background: #f1f5f9;
  color: #004785;
  border-color: #004785;
}

.radio-filter-btn.active {
  background: #004785;
  color: #ffffff;
  border-color: #004785;
  box-shadow: 0 2px 8px rgba(0, 71, 133, 0.25);
}

.radio-search-box {
  position: relative;
  min-width: 220px;
}

.radio-search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-search-box input:focus {
  border-color: #0079c2;
  box-shadow: 0 0 0 3px rgba(0, 121, 194, 0.15);
}

.radio-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* ==========================================================================
   5. REJILLA DE TODOS LOS EPISODIOS DE SOUNDCLOUD
   ========================================================================== */
.radio-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-bottom: 55px;
}

.episode-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 71, 133, 0.08);
  border-color: #0079c2;
}

.episode-card-top {
  padding: 24px 22px 16px;
}

.episode-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.episode-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 14px;
}

.episode-duration {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.episode-main-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.episode-thumb-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.episode-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
}

.episode-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* Reproductor SoundCloud Embebido en la tarjeta */
.episode-player-box {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 18px;
}

.episode-player-box iframe {
  border-radius: 8px;
  display: block;
}

.episode-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.btn-open-sc {
  font-size: 12.5px;
  font-weight: 700;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-open-sc:hover {
  color: #c2410c;
  text-decoration: underline;
}

.btn-play-featured {
  background: #e0f2fe;
  color: #0284c7;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-play-featured:hover {
  background: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   6. CADENA RADIAL Y FRECUENCIAS ALIADAS
   ========================================================================== */
.radio-stations-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.radio-stations-header {
  margin-bottom: 24px;
}

.radio-stations-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #0079c2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.radio-stations-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}

.radio-stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.station-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #0079c2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 71, 133, 0.06);
}

.station-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.station-dial {
  font-size: 14px;
  font-weight: 900;
  color: #0284c7;
  display: block;
  margin-bottom: 6px;
}

.station-schedule {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   7. RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 992px) {
  .featured-radio-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-side-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .sc-channel-banner {
    padding: 20px;
  }

  .sc-btn-follow {
    width: 100%;
    justify-content: center;
  }

  .radio-controls-wrap {
    width: 100%;
  }

  .radio-search-box {
    width: 100%;
  }

  .radio-episodes-grid {
    grid-template-columns: 1fr;
  }

  .episode-main-info {
    flex-direction: column;
  }

  .episode-thumb-img {
    width: 100%;
    height: 140px;
  }
}
