/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Child theme de Astra
Author:       Hugo Carabaña Menéndez / Óscar Olmos
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ========================================================
   APLICAR TIPOGRAFÍA FUNNEL DISPLAY
   ======================================================== */
.nx-hero-header,
.nx-hero-title,
.nx-hero-lead,
.nx-hero-badges,
.nx-byline,
.nx-platforms-bar,
.nx-platforms-title,
.nx-plat-link,
.single-podcast .wp-block-table,
.single-post .wp-block-table {
  font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Ajustes de tracking y peso característicos de Funnel Display */
/* ========================================================
   FICHA DE NOTICIA: AUTOR, FECHA Y CATEGORÍAS
   ======================================================== */
.nx-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 14px auto;
  padding: 12px 18px 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.nx-byline-avatar {
  flex: 0 0 auto;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #BE1622;
}

.nx-byline-avatar img.nx-byline-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nx-byline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nx-byline-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.nx-byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b;
}

.nx-byline-sep {
  color: #cbd5e1;
}

.nx-byline-upd {
  font-weight: 700;
  color: #BE1622;
}

.nx-news-cats {
  flex-wrap: wrap;
}

/* La etiqueta "no, ¿por?" va en minúsculas; las categorías se ven como se escriben */
.nx-news-cats .nx-badge-name {
  text-transform: none !important;
}

/* Subtítulo de las noticias en cursiva */
.single-post .nx-hero-lead {
  font-style: italic;
}

.nx-byline-name {
  text-decoration: none !important;
  transition: color .15s ease;
}

a.nx-byline-name:hover {
  color: #BE1622;
}

.nx-byline-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.nx-social {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569 !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}

.nx-social:hover {
  background: #BE1622;
  color: #ffffff !important;
}

a.nx-badge-name,
a.nx-badge-name:hover {
  text-decoration: none !important;
}

a.nx-badge-name:hover {
  background: #d11a29 !important;
}

@media (max-width: 600px) {
  .nx-byline { padding: 10px 14px 10px 12px; gap: 12px; border-radius: 14px; }
  .nx-byline-avatar { width: 42px; height: 42px; }
  .nx-byline { flex-wrap: wrap; }
  .nx-byline-social { margin-left: 0; flex-basis: 100%; }
}

.nx-hero-title {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.nx-hero-lead {
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

.nx-badge-name,
.nx-badge-ep {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.nx-plat-link {
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

/* ========================================================
   1. CABECERA EDITORIAL COMPACTA
   ======================================================== */
.single-podcast .entry-header,
.single-podcast .ast-single-post-order,
.single-post .entry-header,
.single-post .ast-single-post-order {
  display: none !important;
}

.nx-hero-figure {
  max-width: 860px;
  margin: 0 auto 22px auto;
}

.nx-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nx-hero-header {
  max-width: 860px;
  margin: 10px auto 18px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nx-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nx-badge-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: lowercase;
  color: #ffffff !important;
  background: #BE1622 !important;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}

.nx-badge-ep {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #111827;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}

.nx-badge-date {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.nx-hero-title {
  font-size: clamp(30px, 4.5vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.nx-hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: #475569;
  font-weight: 400;
  margin: 0 0 12px 0;
}

/* ========================================================
   PLAYLIST ESTILO SPOTIFY CON ENLACES AUTOMÁTICOS
   ======================================================== */
.single-podcast .wp-block-table,
.single-post .wp-block-table,
.wp-block-table {
  max-width: 820px !important;
  margin: 36px auto !important;
  overflow: visible !important; /* Elimina la barra de scroll */
  border: none !important;
  background: transparent !important;
}

.single-podcast .wp-block-table table,
.single-post .wp-block-table table,
.wp-block-table table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  background: transparent !important;
  border: none !important;
  counter-reset: track-counter;
}

/* Cabecera */
.single-podcast .wp-block-table table thead th,
.single-podcast .wp-block-table table tr:first-child th,
.wp-block-table table thead th {
  background: transparent !important;
  color: #BE1622 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 0 6px 10px 6px !important;
  border: none !important;
  border-bottom: 2px solid #BE1622 !important;
  text-align: left !important;
}

/* Tarjeta de cada canción */
.single-podcast .wp-block-table table tbody tr,
.wp-block-table table tbody tr {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover sin translateX para no provocar desbordamiento ni scroll */
.single-podcast .wp-block-table table tbody tr:hover,
.wp-block-table table tbody tr:hover {
  background: #fafafa !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Contenido de la fila: alto contraste */
.single-podcast .wp-block-table table td,
.wp-block-table table td {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border: none !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important; /* Contraste oscuro nítido */
  line-height: 1.4 !important;
}

/* Contenedor del título a la izquierda */
.nx-track-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

/* Píldora del número (01, 02...) */
.nx-track-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.single-podcast .wp-block-table table tbody tr:hover .nx-track-num {
  background: #BE1622;
  color: #ffffff;
}

/* Botón Spotify */
.nx-spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.15s ease;
}

.nx-spotify-btn svg {
  width: 16px;
  height: 16px;
  fill: #1DB954; /* Verde Spotify */
}

.nx-spotify-btn:hover {
  background: #1DB954;
  color: #ffffff !important;
  border-color: #1DB954;
}

.nx-spotify-btn:hover svg {
  fill: #ffffff;
}

/* ========================================================
   BANNER DE PLATAFORMAS (PODCAST APPS)
   ======================================================== */
.nx-platforms-card {
  max-width: 860px;
  margin: 20px auto 32px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nx-platforms-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nx-platforms-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #BE1622;
}

.nx-platforms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nx-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b !important;
  transition: all 0.15s ease;
}

.nx-platform-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Colores específicos en hover */
.nx-platform-chip.nx-spotify:hover {
  background: #1DB954;
  border-color: #1DB954;
  color: #ffffff !important;
}
.nx-platform-chip.nx-spotify:hover svg { fill: #ffffff; }

.nx-platform-chip.nx-apple:hover {
  background: #872EC4;
  border-color: #872EC4;
  color: #ffffff !important;
}
.nx-platform-chip.nx-apple:hover svg { fill: #ffffff; }

.nx-platform-chip.nx-amazon:hover {
  background: #00A8E1;
  border-color: #00A8E1;
  color: #ffffff !important;
}
.nx-platform-chip.nx-amazon:hover svg { fill: #ffffff; }

.nx-platform-chip.nx-ivoox:hover {
  background: #E7511E;
  border-color: #E7511E;
  color: #ffffff !important;
}
.nx-platform-chip.nx-ivoox:hover svg { fill: #ffffff; }

/* ========================================================
   BARRA EDITORIAL DE PLATAFORMAS (INTEGRADA Y LIMPIA)
   ======================================================== */
.nx-platforms-bar {
  max-width: 860px;
  margin: 14px auto 32px auto;
  padding: 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nx-platforms-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  flex-shrink: 0;
}

.nx-platforms-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Pastillas limpias con fondo claro y borde suave */
.nx-plat-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px; /* Formato cápsula elegante */
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.nx-plat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.nx-plat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Interacción moderna y natural */
.nx-plat-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* ========================================================
   ESTILO OTT PREMIUM (CALIDAD DE STREAMING NATIVO)
   ======================================================== */
.nx-ott-viewport {
  width: 100% !important;
  background: #0d0f12 !important; /* Tono grafito oscuro de streaming, no negro puro */
  color: #f1f5f9 !important;
  min-height: 100vh;
  margin: 0 !important;
  font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-sizing: border-box;
}

/* 1. BILLBOARD / HERO CINEMATOGRÁFICO */
.nx-billboard {
  position: relative;
  width: 100%;
  height: clamp(480px, 60vh, 640px);
  display: flex;
  align-items: flex-end;
  background: #07080a;
  overflow: hidden;
}

.nx-billboard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Brillo natural de la imagen de fondo */
.nx-billboard-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.85); /* Subido de 0.65 a 0.85 para que se distinga nítida */
}

/* Degradado cinematográfico que deja ver la imagen */
.nx-billboard-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,15,18,0.1) 0%, rgba(13,15,18,0.4) 50%, #0d0f12 100%),
              linear-gradient(90deg, rgba(13,15,18,0.9) 0%, rgba(13,15,18,0.4) 55%, transparent 100%);
}

.nx-billboard-empty-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, #1e222b 0%, #0d0f12 70%);
}

.nx-billboard-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 56px 32px;
  box-sizing: border-box;
}

.nx-billboard-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 14px;
}

.nx-meta-divider {
  color: #475569;
}

.nx-pill-brand {
  color: #ffffff;
  background: #BE1622;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: lowercase;
}

.nx-pill-latest {
  color: #f87171;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
}

.nx-billboard-title {
  font-size: clamp(32px, 4.5vw, 54px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  max-width: 780px;
}

.nx-billboard-synopsis {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 0 24px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nx-billboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-btn-ott-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #BE1622;
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 8px; /* Esquinas de UI nativa de TV / OTT */
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(190, 22, 34, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nx-btn-ott-primary svg {
  width: 17px;
  height: 17px;
}

.nx-btn-ott-primary:hover {
  background: #d41825;
  transform: scale(1.02);
}

/* 2. CATÁLOGO / REJILLA */
.nx-ott-main {
  width: 100%;
  padding-bottom: 80px;
}

.nx-ott-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.nx-ott-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.nx-ott-row-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  color: #ffffff !important;
  margin: 0 0 4px 0 !important;
}

.nx-ott-row-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.nx-season-pills {
  display: flex;
  gap: 8px;
}

.nx-season-pill {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nx-season-pill.is-active,
.nx-season-pill:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

/* Rejilla de episodios */
.nx-ott-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 28px 20px !important;
}

.nx-ott-item {
  display: flex;
  flex-direction: column;
}

/* Miniatura 16:9 con corte limpio */
.nx-ott-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #15181e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nx-ott-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nx-ott-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181b22;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 900;
  font-size: 20px;
}

/* Icono Play en hover */
.nx-ott-hover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(190, 22, 34, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.nx-ott-hover-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.nx-ott-poster-tags {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
}

.nx-tag-ep {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #f1f5f9;
}

.nx-ott-item:hover .nx-ott-poster {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.nx-ott-item:hover .nx-ott-poster img {
  transform: scale(1.04);
}

.nx-ott-item:hover .nx-ott-hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Textos de la tarjeta */
.nx-ott-info {
  padding-top: 12px;
}

.nx-ott-submeta {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nx-ott-season-name {
  color: #BE1622;
  font-weight: 700;
}

.nx-ott-item-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 6px 0 !important;
}

.nx-ott-item-title a {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.nx-ott-item:hover .nx-ott-item-title a {
  color: #BE1622 !important;
}

.nx-ott-item-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .nx-billboard {
    height: 440px;
  }
  .nx-billboard-container {
    padding: 0 20px 36px 20px;
  }
  .nx-ott-shell {
    padding: 0 20px;
  }
  .nx-ott-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================
   SECCIÓN DE NOTICIAS EDITORIAL & MODERNA
   ======================================================== */
.nx-news-wrap {
  width: 100% !important;
  background: #ffffff !important;
  padding: 44px 20px 80px 20px !important;
  font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
  box-sizing: border-box;
}

.nx-news-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Cabecera */
.nx-news-header {
  margin-bottom: 32px;
}

.nx-news-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #BE1622;
  margin-bottom: 8px;
}

.nx-news-main-title {
  font-size: clamp(34px, 4.5vw, 48px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
  margin: 0 0 8px 0 !important;
}

.nx-news-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

/* Toolbar de búsqueda y filtros */
.nx-news-toolbar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 40px;
}

.nx-news-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.nx-search-box {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}

.nx-search-box svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.nx-search-box input {
  width: 100%;
  padding: 9px 36px 9px 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  outline: none;
  transition: border-color 0.15s ease;
}

.nx-search-box input:focus {
  border-color: #BE1622 !important;
}

.nx-clear-search {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.nx-select-wrapper select {
  padding: 9px 32px 9px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer;
  outline: none;
}

.nx-select-wrapper select:focus {
  border-color: #BE1622 !important;
}

/* Indicadores de filtros activos */
.nx-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 12.5px;
}

.nx-filter-label {
  color: #64748b;
  font-weight: 700;
}

.nx-pill-tag {
  background: #e2e8f0;
  color: #0f172a;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
}

.nx-reset-link {
  color: #BE1622;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

/* 1. Tarjeta Destacada */
.nx-news-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 48px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nx-news-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.nx-featured-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.nx-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.nx-news-featured:hover .nx-featured-img-wrap img {
  transform: scale(1.03);
}

.nx-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 10px;
}

.nx-cat-tag {
  color: #BE1622;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
}

.nx-featured-news-title {
  font-size: clamp(24px, 2.5vw, 32px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px 0 !important;
}

.nx-featured-news-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.nx-featured-news-title a:hover {
  color: #BE1622 !important;
}

.nx-featured-news-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 18px 0;
}

.nx-read-more {
  color: #BE1622 !important;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none !important;
}

/* 2. Rejilla de Tarjetas */
.nx-news-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 32px 24px !important;
}

.nx-news-card {
  display: flex;
  flex-direction: column;
}

.nx-news-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 12px;
}

.nx-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nx-news-card:hover .nx-news-card-media img {
  transform: scale(1.04);
}

.nx-card-cat-float {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 8px;
  border-radius: 5px;
}

.nx-news-card-date {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.nx-news-card-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 6px 0 !important;
}

.nx-news-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.nx-news-card:hover .nx-news-card-title a {
  color: #BE1622 !important;
}

.nx-news-card-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.nx-news-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 900;
  font-size: 22px;
}

/* 3. Paginación */
.nx-news-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nx-news-pagination .page-numbers {
  padding: 8px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.nx-news-pagination .page-numbers.current,
.nx-news-pagination .page-numbers:hover {
  background: #BE1622;
  border-color: #BE1622;
  color: #ffffff;
}

.nx-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.nx-reset-btn {
  display: inline-block;
  margin-top: 12px;
  background: #BE1622;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nx-news-featured {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
}


/* ========================================================
   OTT: CARGAR MÁS, ESTADO VACÍO Y ACCESIBILIDAD
   ======================================================== */
.nx-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.nx-load-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nx-load-more-btn:hover:not(:disabled) {
  background: #BE1622;
  border-color: #BE1622;
  color: #ffffff;
  transform: scale(1.02);
}

.nx-load-more-btn:disabled {
  cursor: default;
  opacity: 0.8;
}

.nx-load-more-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: nx-spin 0.7s linear infinite;
}

.nx-load-more-btn.is-loading .nx-load-more-spinner {
  display: inline-block;
}

.nx-load-status {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
}

@keyframes nx-spin {
  to { transform: rotate(360deg); }
}

@keyframes nx-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nx-ott-item.nx-fade-in {
  animation: nx-fade-in 0.35s ease both;
}

/* Estado vacío (antes estaba en estilos inline) */
.nx-ott-empty {
  padding: 100px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 16px;
}

/* Foco visible para teclado */
.nx-ott-poster:focus-visible,
.nx-ott-item-title a:focus-visible,
.nx-btn-ott-primary:focus-visible,
.nx-load-more-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Respetar "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .nx-ott-poster,
  .nx-ott-poster img,
  .nx-ott-hover-play,
  .nx-load-more-btn,
  .nx-btn-ott-primary {
    transition: none !important;
  }
  .nx-ott-item.nx-fade-in,
  .nx-load-more-spinner {
    animation: none !important;
  }
}


/* ========================================================
   PROGRAMACIÓN EN RADIOS  ·  [nx_programacion]  (v8)
   Borra el bloque anterior de .nx-sched y pega este al final de style.css
   ======================================================== */
.nx-sched {
  --nx-s-brand:  #BE1622;
  --nx-s-band:   #111827;   /* mismo tono que .nx-badge-ep */
  --nx-s-bg:     #ffffff;
  --nx-s-text:   #0f172a;
  --nx-s-body:   #475569;
  --nx-s-muted:  #64748b;
  --nx-s-faint:  #cbd5e1;
  --nx-s-line:   #e2e8f0;
  --nx-s-tint:   rgba(190, 22, 34, 0.06);

  width: calc(100% - 40px);
  max-width: 1000px !important;
  margin: 28px auto 40px auto !important;
  box-sizing: border-box;
  color: var(--nx-s-text);
  font-family: 'Funnel Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Tema oscuro: mismos tonos que el catálogo OTT */
.nx-sched--dark {
  --nx-s-bg:    #0d0f12;
  --nx-s-band:  #1c2029;
  --nx-s-text:  #ffffff;
  --nx-s-body:  #cbd5e1;
  --nx-s-muted: #94a3b8;
  --nx-s-faint: rgba(255, 255, 255, 0.28);
  --nx-s-line:  rgba(255, 255, 255, 0.14);
  --nx-s-tint:  rgba(190, 22, 34, 0.18);
  padding: 40px 36px 28px;
  background: var(--nx-s-bg);
  border-radius: 20px;
}

.nx-sched *,
.nx-sched *::before,
.nx-sched *::after { box-sizing: border-box; }

.nx-sched [hidden] { display: none !important; }

@keyframes nx-sched-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Cabecera ---------- */
.nx-sched-head { margin-bottom: 28px; }

.nx-sched .nx-sched-title {
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  color: var(--nx-s-text) !important;
  margin: 0 0 10px 0 !important;
}
.nx-sched .nx-sched-sub { margin: 0; font-size: 16px; color: var(--nx-s-muted); }

/* ---------- Banda: próxima emisión (oscura) / en directo (roja) ---------- */
.nx-sched-next {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px 28px;
  overflow: hidden;
  background: var(--nx-s-band);
  color: #ffffff;
  border-radius: 6px;
}
.nx-sched-next.is-live { background: var(--nx-s-brand); color: #ffffff; }

.nx-sched .nx-sched-next .nx-sched-logo { width: 84px; height: 84px; padding: 5px; border: 0; border-radius: 6px; font-size: 26px; }
.nx-sched .nx-sched-next .nx-sched-logo--ph { background: #ffffff; color: #111827; }
.nx-sched .nx-sched-next.is-live .nx-sched-logo--ph { background: #ffffff; color: var(--nx-s-brand); }

.nx-sched-next-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.nx-sched-next-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.nx-sched-next.is-live .nx-sched-next-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  animation: nx-sched-pulse 1.6s ease-in-out infinite;
}

.nx-sched-next-name {
  margin-top: 4px;
  font-size: clamp(28px, 3.8vw, 24px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.nx-sched-next-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.nx-sched-next-count { font-weight: 600; opacity: .72; }

.nx-sched-next .nx-sched-btn { flex: none; margin-left: auto; }
.nx-sched-next.is-live a.nx-sched-btn { background: #ffffff; color: var(--nx-s-brand) !important; }
.nx-sched-next.is-live a.nx-sched-btn:hover { background: #111111; color: #ffffff !important; }

.nx-sched-next-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.28); }
.nx-sched-next-progress i { display: block; width: 0; height: 100%; background: #ffffff; }

/* ---------- Días: pestañas con subrayado ---------- */
.nx-sched-days { display: none; }
.nx-sched.is-js .nx-sched-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--nx-s-line);
}

.nx-sched button.nx-sched-day {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 0 -1px;
  padding: 14px 4px;
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--nx-s-faint);
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.nx-sched .nx-sched-day-wd  { font-size: 13.5px; font-weight: 700; line-height: 1; color: inherit; }
.nx-sched .nx-sched-day-num { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: inherit; }

.nx-sched button.nx-sched-day.has-shows { color: var(--nx-s-text); }
.nx-sched button.nx-sched-day.has-shows .nx-sched-day-wd { color: var(--nx-s-muted); }
.nx-sched button.nx-sched-day.is-today .nx-sched-day-wd { color: var(--nx-s-brand); }
.nx-sched button.nx-sched-day:hover { color: var(--nx-s-text); }
.nx-sched button.nx-sched-day[aria-pressed="true"],
.nx-sched button.nx-sched-day[aria-pressed="true"] .nx-sched-day-wd { color: var(--nx-s-brand); }
.nx-sched button.nx-sched-day[aria-pressed="true"] { border-bottom-color: var(--nx-s-brand); }

/* ---------- Título del día ---------- */
.nx-sched-dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 30px 0 14px; }
.nx-sched h3.nx-sched-daytitle {
  margin: 0 !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--nx-s-text) !important;
}
.nx-sched-daycount { font-size: 14.5px; font-weight: 700; color: var(--nx-s-muted); white-space: nowrap; }

/* ---------- Lista: regla gruesa arriba, líneas finas entre filas ---------- */
.nx-sched ul.nx-sched-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--nx-s-text); }

.nx-sched li.nx-sched-row {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--nx-s-line);
}
.nx-sched li.nx-sched-row.is-done { opacity: .45; }

.nx-sched-time { line-height: 1; }
.nx-sched-start {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--nx-s-text);
}
.nx-sched-end { display: block; margin-top: 9px; font-size: 14px; font-weight: 600; color: var(--nx-s-muted); font-variant-numeric: tabular-nums; }

.nx-sched-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; align-items: center; }

/* En directo: franja roja a la izquierda y fondo tenue */
.nx-sched li.nx-sched-row.is-live {
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--nx-s-tint);
  box-shadow: inset 4px 0 0 var(--nx-s-brand);
}
.nx-sched li.nx-sched-row.is-live .nx-sched-start { color: var(--nx-s-brand); }

.nx-sched-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(190, 22, 34, 0.18); }
.nx-sched-progress i { display: block; width: 0; height: 100%; background: var(--nx-s-brand); transition: width .6s ease; }

/* ---------- Logo ---------- */
.nx-sched .nx-sched-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--nx-s-line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
}
.nx-sched .nx-sched-logo img,
.nx-sched .nx-sched-logo-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 0 !important;
}
/* Sin logo: ficha sólida con las iniciales */
.nx-sched .nx-sched-logo--ph { background: var(--nx-s-text); border-color: var(--nx-s-text); color: var(--nx-s-bg); }

/* ---------- Texto ---------- */
.nx-sched-info { min-width: 0; }

.nx-sched .nx-sched-radio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--nx-s-text);
}
.nx-sched .nx-sched-meta { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--nx-s-body); }
.nx-sched .nx-sched-note { margin: 2px 0 0; font-size: 14.5px; color: var(--nx-s-muted); }

/* Días de la emisión: solo se muestran sin JS (con JS ya están las pestañas) */
.nx-sched .nx-sched-daytext { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--nx-s-muted); }
.nx-sched.is-js .nx-sched-daytext { display: none; }

.nx-sched .nx-sched-livetag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--nx-s-brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.3;
}
.nx-sched .nx-sched-livetag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: nx-sched-pulse 1.6s ease-in-out infinite;
}

/* ---------- Botón Escuchar ---------- */
.nx-sched a.nx-sched-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px 15px 19px;
  border-radius: 6px;
  border: 0;
  background: var(--nx-s-text);
  color: var(--nx-s-bg) !important;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nx-sched a.nx-sched-btn svg { width: 20px; height: 20px; fill: currentColor; }
.nx-sched a.nx-sched-btn:hover { background: var(--nx-s-brand); color: #ffffff !important; }
.nx-sched-next:not(.is-live) a.nx-sched-btn { background: #ffffff; color: #111827 !important; }
.nx-sched-next:not(.is-live) a.nx-sched-btn:hover { background: var(--nx-s-brand); color: #ffffff !important; }

/* ---------- Día sin emisiones ---------- */
.nx-sched .nx-sched-empty { padding: 64px 0; text-align: center; border-bottom: 1px solid var(--nx-s-line); }
.nx-sched .nx-sched-empty p { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--nx-s-muted); }
.nx-sched button.nx-sched-next-day {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--nx-s-brand);
  border-radius: 0;
  box-shadow: none;
  color: var(--nx-s-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color .15s ease;
}
.nx-sched button.nx-sched-next-day:hover { border-bottom-color: var(--nx-s-text); }

.nx-sched-admin-note {
  max-width: 1000px;
  margin: 20px auto;
  padding: 12px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  color: #475569;
}

/* ---------- Foco de teclado ---------- */
.nx-sched button.nx-sched-day:focus-visible,
.nx-sched button.nx-sched-next-day:focus-visible,
.nx-sched a.nx-sched-btn:focus-visible { outline: 3px solid var(--nx-s-brand); outline-offset: 3px; }

/* ---------- Móvil ---------- */
@media (max-width: 680px) {
  .nx-sched { width: calc(100% - 24px); }
  .nx-sched--dark { padding: 24px 14px 10px; border-radius: 16px; }
  .nx-sched-head { margin-bottom: 18px; }

  /* Banda: logo, texto y botón en una sola fila */
  .nx-sched-next { flex-direction: row; align-items: center; gap: 14px; margin-bottom: 26px; padding: 16px; }
  .nx-sched .nx-sched-next .nx-sched-logo { flex: none; width: 58px; height: 58px; padding: 3px; font-size: 18px; }
  .nx-sched-next-txt { flex: 1; width: auto; }
  .nx-sched-next-label { font-size: 12.5px; }
  .nx-sched-next-name { margin-top: 2px; font-size: 22px; line-height: 1.1; }
  .nx-sched-next-meta { margin-top: 6px; font-size: 13.5px; }
  .nx-sched-next .nx-sched-btn { margin-left: 0; width: 48px; }

  /* Botón Escuchar: círculo con el play (el texto queda para lectores de pantalla) */
  .nx-sched a.nx-sched-btn { position: relative; justify-content: center; width: 48px; height: 48px; padding: 0; gap: 0; border-radius: 50%; }
  .nx-sched a.nx-sched-btn svg { width: 18px; height: 18px; margin-left: 2px; }
  .nx-sched a.nx-sched-btn span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* Los 7 días caben sin scroll */
  .nx-sched.is-js .nx-sched-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; overflow: visible; }
  .nx-sched button.nx-sched-day { flex: none; padding: 11px 0; }
  .nx-sched .nx-sched-day-wd { font-size: 12.5px; }
  .nx-sched .nx-sched-day-num { font-size: 24px; }

  .nx-sched-dayhead { padding: 22px 0 10px; }

  /* Filas del día */
  .nx-sched li.nx-sched-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .nx-sched li.nx-sched-row.is-live { margin: 0 -12px; padding-left: 14px; padding-right: 12px; }
  .nx-sched-time { display: flex; align-items: baseline; gap: 8px; }
  .nx-sched-start { font-size: 28px; }
  .nx-sched-end { margin-top: 0; }

  .nx-sched-card { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; }
  .nx-sched .nx-sched-logo { width: 56px; height: 56px; padding: 0px; font-size: 18px; }
  .nx-sched .nx-sched-radio { font-size: 20px; }
  .nx-sched .nx-sched-meta { font-size: 14px; }
}

.nx-platforms-bar--home {
  display: block !important;
  background: #c01822;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 3.5rem 1.5rem;
}
.nx-platforms-bar--home .nx-platforms-title {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  margin: 0 0 2.2rem;
}
.nx-platforms-bar--home .nx-platforms-title::after { content: none; }

.nx-platforms-bar--home .nx-platforms-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 3rem;
}
.nx-platforms-bar--home .nx-plat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: #fff !important;
  text-decoration: none;
  transition: opacity .2s;
}
.nx-platforms-bar--home .nx-plat-link:hover { opacity: .7; transform: none; }

.nx-platforms-bar--home .nx-plat-icon,
.nx-platforms-bar--home .nx-plat-icon svg {
  width: 52px !important;
  height: 52px !important;
}
/* iconos en blanco (Podimo ya va con trazo, se queda como está) */
.nx-platforms-bar--home .nx-plat-icon svg:not([stroke]) path { fill: #fff !important; }

.nx-platforms-bar--home .nx-plat-text {
  color: #fff !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
  white-space: nowrap;
}

/* iVoox: cuadrado blanco y la "S" en rojo (único icono con varios paths) */
.nx-platforms-bar--home .nx-plat-icon svg:not([stroke]) path:not(:first-child) {
  fill: #c01822 !important;
}

/* Amazon Music: cuadrado blanco (las letras ya salen rojas por la regla de iVoox) */
.nx-platforms-bar--home .nx-plat-icon svg rect { fill: #fff !important; }
.nx-platforms-bar--home .nx-platforms-items { gap: 2rem 2.2rem; }


@media (max-width: 600px) {
  .nx-platforms-bar--home {
    padding: 2rem 1rem;
    margin: 0;
  }
  .nx-platforms-bar--home .nx-platforms-title {
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
  }
  .nx-platforms-bar--home .nx-platforms-items {
    gap: 1.4rem 3%;
    align-items: flex-start;
  }
  .nx-platforms-bar--home .nx-plat-link {
    width: 22%;
    gap: .4rem;
  }
  .nx-platforms-bar--home .nx-plat-icon,
  .nx-platforms-bar--home .nx-plat-icon svg {
    width: 36px !important;
    height: 36px !important;
  }
  .nx-platforms-bar--home .nx-plat-text {
    font-size: .62rem;
    letter-spacing: .03em;
    white-space: normal;   /* "Apple Podcasts" y "Amazon Music" pasan a dos líneas */
    line-height: 1.2;
  }
}

/* ========================================================
   SLIDER DE NOTICIAS DE LA PORTADA  →  [nx_noticias]
   (inc/nx-news-slider.php)
   Estilos propios: no depende de las clases de la plantilla OTT del podcast.
   ======================================================== */
.nx-ns {
  --nx-ns-w:clamp(260px,26vw,360px);
  background:#0d0f12;
  color:#f1f5f9;
  font-family:"Funnel Display",-apple-system,BlinkMacSystemFont,sans-serif;
  box-sizing:border-box;
}

.nx-ns.nx-ns--full {
  width:100vw!important;
  max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  position:relative;
  left:auto;
  right:auto;
}

body {
  overflow-x:clip;
}

.nx-ns-main {
  width:100%;
  padding:24px 0;
}

.nx-ns-shell {
  max-width:1320px;
  margin:0 auto;
  padding:0 32px;
  box-sizing:border-box;
}

.nx-ns-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nx-ns-heading {
  font-family:"Funnel Display",-apple-system,BlinkMacSystemFont,sans-serif !important;
  font-weight:800 !important;
  letter-spacing:-0.015em !important;
  color:#ffffff !important;
  margin:0 !important;
}

.nx-ns-sub {
  font-size:13.5px;
  color:#ffffff;
  margin:0;
}

.nx-ns-all {
  font-size:13px;
  font-weight:800;
  color:#f1f5f9!important;
  text-decoration:none!important;
  padding:7px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:6px;
  white-space:nowrap;
  transition:background .15s,border-color .15s;
}

.nx-ns-all:hover {
  background:#BE1622;
  border-color:#BE1622;
}

.nx-ns-slider {
  position:relative;
}

.nx-ns-track {
  display:flex;
  gap:20px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  padding:10px 2px 18px;
  -webkit-overflow-scrolling:touch;
}

.nx-ns-track::-webkit-scrollbar {
  display:none;
}

.nx-ns-card {
  flex:0 0 var(--nx-ns-w);
  min-width:0;
  scroll-snap-align:start;
}

.nx-ns-link {
  position:relative;
  display:block;
  aspect-ratio:4/5;
  border-radius:14px;
  overflow:hidden;
  background:#161a20;
  color:#fff!important;
  text-decoration:none!important;
  isolation:isolate;
  border:1px solid rgba(255,255,255,.08);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}

.nx-ns-link:hover,.nx-ns-link:focus-visible {
  transform:translateY(-4px);
  border-color:rgba(190,22,34,.75);
  box-shadow:0 14px 30px rgba(0,0,0,.5);
}

.nx-ns-link:focus-visible {
  outline:2px solid #fff;
  outline-offset:2px;
}

.nx-ns-media {
  position:absolute;
  inset:0;
}

.nx-ns-media img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}

.nx-ns-link:hover .nx-ns-media img {
  transform:scale(1.06);
}

.nx-ns-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:24px;
  font-weight:900;
  color:rgba(255,255,255,.16);
}

.nx-ns-link::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(13,15,18,0) 35%,rgba(13,15,18,.6) 62%,rgba(13,15,18,.96) 100%);
}

.nx-ns-cat {
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  background:#BE1622;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  line-height:1;
  padding:6px 10px;
  border-radius:6px;
}

.nx-ns-body {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:18px;
}

.nx-ns-date {
  display:block;
  font-size:12px;
  font-weight:700;
  color:#cbd5e1;
  margin-bottom:6px;
}

.nx-ns-title {
  margin:0!important;
  font-size:19px!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
  color:#fff!important;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.nx-ns-arrow {
  position:absolute;
  top:0;
  bottom:18px;
  z-index:5;
  width:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:#fff!important;
  cursor:pointer;
  transition:opacity .2s ease;
}

.nx-ns-arrow svg {
  width:44px;
  height:44px;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.8));
  transition:transform .2s ease;
}

.nx-ns-arrow:hover svg {
  transform:scale(1.15);
}

.nx-ns-prev {
  left:-2px;
  background:linear-gradient(90deg,#0d0f12 0%,rgba(13,15,18,.8) 40%,rgba(13,15,18,0) 100%)!important;
}

.nx-ns-next {
  right:-2px;
  background:linear-gradient(270deg,#0d0f12 0%,rgba(13,15,18,.8) 40%,rgba(13,15,18,0) 100%)!important;
}

.nx-ns-arrow:disabled,.nx-ns-slider:not(.has-overflow) .nx-ns-arrow {
  opacity:0;
  pointer-events:none;
}

.nx-ns-arrow:focus-visible {
  outline:2px solid #fff;
  outline-offset:-4px;
}

@media (max-width:768px) {
  .nx-ns {
    --nx-ns-w:72vw;
  }
  .nx-ns-arrow {
    display:none;
  }
  .nx-ns-track {
    gap:14px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nx-ns-link,.nx-ns-media img,.nx-ns-arrow,.nx-ns-arrow svg {
    transition:none;
  }
}