/* ═══════════════════════════════════════════════════
   BOSCO PODCASTS — CSS Principal
   Colores: blanco #fff | negro #010101 | azul #0173bc
            rojo #ff010d | fondo oscuro #1a1a1a / #111
   ═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bosco-black:   #010101;
  --bosco-white:   #ffffff;
  --bosco-blue:    #0173bc;
  --bosco-red:     #ff010d;
  --bosco-bg:      #141414;
  --bosco-surface: #1e1e1e;
  --bosco-border:  #2c2c2c;
  --bosco-text:    #e8e8e8;
  --bosco-muted:   #888;
  --bosco-font:    'Georgia', 'Times New Roman', serif;
  --bosco-sans:    'Helvetica Neue', Arial, sans-serif;
  --bosco-radius:  6px;
  --bosco-shadow:  0 4px 24px rgba(0,0,0,.45);
}

/* ── Reset base ── */
.bosco-wrapper,
.bosco-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bosco-wrapper {
  background: var(--bosco-bg);
  color: var(--bosco-text);
  font-family: var(--bosco-sans);
  -webkit-font-smoothing: antialiased;
}

body.bosco-podcasts-archive,
body.bosco-single-podcast {
  background: var(--bosco-bg);
  margin: 0;
}

/* ── Container ── */
.bosco-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bosco-container--narrow {
  max-width: 860px;
}

/* ═══════════════════════════
   BANNER
═══════════════════════════ */
.bosco-banner {
  background: var(--bosco-black);
  border-bottom: 3px solid var(--bosco-red);
  overflow: hidden;
  position: relative;
}

.bosco-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

/* Lado izquierdo */
.bosco-banner__left {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.bosco-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bosco-red);
  margin-bottom: 16px;
}

.bosco-dot {
  width: 8px;
  height: 8px;
  background: var(--bosco-red);
  border-radius: 50%;
  display: inline-block;
  animation: bosco-pulse 1.8s ease-in-out infinite;
}

@keyframes bosco-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.bosco-banner__title {
  font-family: var(--bosco-font);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--bosco-white);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.bosco-banner__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  max-width: 440px;
  margin-bottom: 24px;
}

.bosco-banner__wave svg {
  width: 280px;
  height: 36px;
  display: block;
}

/* Lado derecho */
.bosco-banner__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bosco-banner__img {
  width: 100%;
  max-width: 500px;
  height: 340px;
  object-fit: cover;
  display: block;
  opacity: .85;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

.bosco-banner__mic-placeholder {
  width: 120px;
  opacity: .3;
}

.bosco-banner__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(1,115,188,.25) 0%, transparent 70%);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ═══════════════════════════
   FILTROS
═══════════════════════════ */
.bosco-filters {
  background: var(--bosco-surface);
  border-bottom: 1px solid var(--bosco-border);
  padding: 0;
}

.bosco-filters__list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bosco-filters__list::-webkit-scrollbar { display: none; }

.bosco-filter-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bosco-muted);
  background: transparent;
  border: 1.5px solid var(--bosco-border);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}

.bosco-filter-btn:hover {
  border-color: var(--bosco-blue);
  color: var(--bosco-blue);
}

.bosco-filter-btn--active {
  background: var(--bosco-blue);
  border-color: var(--bosco-blue);
  color: var(--bosco-white);
}

/* ═══════════════════════════
   SECCIÓN EPISODIOS
═══════════════════════════ */
.bosco-episodes {
  padding: 48px 0 64px;
}

.bosco-episodes__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.bosco-section-title {
  font-family: var(--bosco-font);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--bosco-white);
  letter-spacing: -.01em;
  position: relative;
  padding-left: 16px;
}

.bosco-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bosco-red);
  border-radius: 2px;
}

.bosco-episodes__count {
  font-size: 13px;
  color: var(--bosco-muted);
  white-space: nowrap;
}

/* ═══════════════════════════
   GRILLA DE CARDS
═══════════════════════════ */
.bosco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bosco-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Card ── */
.bosco-card {
  background: var(--bosco-surface);
  border: 1px solid var(--bosco-border);
  border-radius: var(--bosco-radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.bosco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bosco-shadow);
  border-color: var(--bosco-blue);
}

.bosco-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Imagen */
.bosco-card__image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0a;
}

.bosco-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.bosco-card:hover .bosco-card__image {
  transform: scale(1.04);
}

.bosco-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.bosco-card__image--placeholder svg {
  width: 48px;
  height: 48px;
}

.bosco-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bosco-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.bosco-card__episode-num {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.65);
  color: var(--bosco-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* Body */
.bosco-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 16px;
  flex: 1;
}

.bosco-card__info-col {
  flex: 1;
  min-width: 0;
}

.bosco-card__title {
  font-family: var(--bosco-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--bosco-white);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bosco-card__participants {
  font-size: 12px;
  color: var(--bosco-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bosco-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bosco-card__date,
.bosco-card__duration {
  font-size: 11px;
  color: var(--bosco-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.bosco-card__sep {
  color: var(--bosco-border);
  font-size: 11px;
}

/* ── Botón PLAY circular ── */
.bosco-play-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bosco-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s, transform .2s;
  padding: 0;
  align-self: center;
}

.bosco-play-btn svg {
  width: 22px;
  height: 22px;
}

.bosco-play-btn:hover {
  background: var(--bosco-red);
  transform: scale(1.1);
}

.bosco-play-btn--large {
  width: 72px;
  height: 72px;
}

.bosco-play-btn--large svg {
  width: 36px;
  height: 36px;
}

/* ═══════════════════════════
   PAGINACIÓN
═══════════════════════════ */
.bosco-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.bosco-pagination .page-numbers {
  padding: 8px 14px;
  background: var(--bosco-surface);
  border: 1px solid var(--bosco-border);
  border-radius: var(--bosco-radius);
  color: var(--bosco-text);
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}

.bosco-pagination .page-numbers.current,
.bosco-pagination .page-numbers:hover {
  background: var(--bosco-blue);
  border-color: var(--bosco-blue);
  color: #fff;
}

/* ═══════════════════════════
   EMPTY STATE
═══════════════════════════ */
.bosco-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--bosco-muted);
  font-size: 16px;
}

/* ═══════════════════════════
   SINGLE — BREADCRUMB
═══════════════════════════ */
.bosco-breadcrumb {
  background: var(--bosco-surface);
  border-bottom: 1px solid var(--bosco-border);
  padding: 12px 0;
}

.bosco-breadcrumb a {
  color: var(--bosco-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.bosco-breadcrumb a:hover { color: var(--bosco-blue); }

.bosco-breadcrumb__sep {
  color: var(--bosco-border);
  margin: 0 6px;
  font-size: 13px;
}

.bosco-breadcrumb__current {
  color: var(--bosco-text);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
  vertical-align: bottom;
}

/* ═══════════════════════════
   SINGLE — ARTÍCULO
═══════════════════════════ */
.bosco-single {
  padding: 48px 0 64px;
}

/* Header */
.bosco-article-header {
  margin-bottom: 32px;
}

.bosco-article-header__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bosco-article-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bosco-white);
  background: var(--bosco-red);
  padding: 3px 10px;
  text-decoration: none;
  transition: background .2s;
}

.bosco-article-cat:hover { background: #c2000b; }

.bosco-article-ep {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bosco-blue);
}

.bosco-article-title {
  font-family: var(--bosco-font);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--bosco-white);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}

.bosco-article-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
  font-family: var(--bosco-font);
  font-style: italic;
  margin-bottom: 20px;
  border-left: 3px solid var(--bosco-blue);
  padding-left: 16px;
}

/* Meta estilo Infobae */
.bosco-article-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.bosco-article-meta__left,
.bosco-article-meta__right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bosco-article-participants,
.bosco-article-datetime,
.bosco-article-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.bosco-article-participants {
  color: var(--bosco-text);
  font-weight: 600;
}

.bosco-article-datetime {
  color: var(--bosco-muted);
  font-size: 12px;
}

.bosco-article-duration {
  background: var(--bosco-surface);
  border: 1px solid var(--bosco-border);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bosco-text);
  align-self: flex-start;
}

.bosco-article-divider {
  height: 1px;
  background: var(--bosco-border);
}

/* Imagen */
.bosco-article-figure {
  margin: 28px 0 32px;
}

.bosco-article-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--bosco-radius);
  display: block;
}

.bosco-article-img-caption {
  font-size: 12px;
  color: var(--bosco-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ═══════════════════════════
   PLAYER BLOCK
═══════════════════════════ */
.bosco-player-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.bosco-player-block__section {
  background: var(--bosco-surface);
  border: 1px solid var(--bosco-border);
  border-radius: var(--bosco-radius);
  overflow: hidden;
  padding: 16px;
}

.bosco-player-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bosco-muted);
  margin-bottom: 12px;
}

.bosco-spotify-player {
  display: block;
  border-radius: 8px;
}

.bosco-spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: #1DB954;
  text-decoration: none;
  transition: opacity .2s;
}
.bosco-spotify-link:hover { opacity: .75; }

/* Video embed */
.bosco-player-block__section--video { padding: 16px; }

.bosco-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.bosco-video-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Placeholder sin Spotify */
.bosco-player-placeholder {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bosco-surface);
  border: 1px solid var(--bosco-border);
  border-radius: var(--bosco-radius);
  padding: 20px 24px;
}

.bosco-player-placeholder__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bosco-player-placeholder__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--bosco-white);
}

.bosco-player-placeholder__dur {
  font-size: 13px;
  color: var(--bosco-muted);
}

/* ═══════════════════════════
   CONTENIDO EDITORIAL
═══════════════════════════ */
.bosco-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
  border-top: 1px solid var(--bosco-border);
  padding-top: 28px;
  margin: 28px 0;
}

.bosco-article-content p { margin-bottom: 1.2em; }
.bosco-article-content h2,
.bosco-article-content h3 {
  font-family: var(--bosco-font);
  color: var(--bosco-white);
  margin: 1.5em 0 .6em;
}

.bosco-article-content a { color: var(--bosco-blue); }

/* ═══════════════════════════
   FOOTER DEL ARTÍCULO
═══════════════════════════ */
.bosco-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--bosco-border);
  flex-wrap: wrap;
}

.bosco-article-footer__share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bosco-muted);
}

.bosco-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.bosco-share-btn:hover { transform: scale(1.1); opacity: .85; }
.bosco-share-btn--fb { background: #1877f2; }
.bosco-share-btn--tw { background: #000; }
.bosco-share-btn--wa { background: #25D366; }

.bosco-back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--bosco-blue);
  text-decoration: none;
  transition: color .2s;
}
.bosco-back-link:hover { color: var(--bosco-white); }

/* ═══════════════════════════
   RELACIONADOS
═══════════════════════════ */
.bosco-related {
  background: var(--bosco-surface);
  border-top: 3px solid var(--bosco-blue);
  padding: 48px 0 64px;
}

/* ═══════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════ */
@media (max-width: 900px) {
  .bosco-banner__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bosco-banner__right {
    display: none;
  }
  .bosco-banner__left {
    padding: 44px 0;
  }
  .bosco-grid,
  .bosco-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
  .bosco-article-meta {
    flex-direction: column;
  }
}

/* ═══════════════════════════
   RESPONSIVE — MÓVIL (≤ 580px)
═══════════════════════════ */
@media (max-width: 580px) {
  .bosco-container { padding: 0 16px; }

  .bosco-banner__left { padding: 32px 0; }
  .bosco-banner__wave svg { width: 200px; }

  .bosco-grid,
  .bosco-grid--related {
    grid-template-columns: 1fr;
  }

  .bosco-card__body { padding: 12px; }
  .bosco-card__title { font-size: 14px; }

  .bosco-filters__list { padding: 10px 0; }

  .bosco-article-title { font-size: 26px; }
  .bosco-article-subtitle { font-size: 16px; }

  .bosco-player-placeholder {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .bosco-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bosco-breadcrumb__current { max-width: 120px; }

  .bosco-episodes__header { flex-direction: column; gap: 4px; }
}
