/* ================================================================
   RADIO FEATURE — drop-in section (#listen)
   ================================================================
   Uses the design tokens, .section, .container and .btn rules from
   styles.css, so load it after that file.

   To feature a different episode, edit the #listen section in
   index.html: the heading/copy/date, the iframe src + title, and
   the episode link. Player colors are set in the iframe URL
   (skin and btn-skin; hex without the #).
   ================================================================ */

.radio {
  background: linear-gradient(115deg, var(--navy) 45%, var(--navy-mid) 100%);
  border-top: 4px solid var(--red);
  overflow: hidden;
}

/* Waveform running along the bottom of the band */
.radio__wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 170px;
  color: var(--sky-light);
  opacity: 0.11;
  pointer-events: none;
}

.radio__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, clamp(220px, 26vw, 320px)) minmax(0, 720px);
  justify-content: center;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

/* Photo with the hero's offset red frame */
.radio__photo-wrap { position: relative; }

.radio__photo-wrap::before {
  content: '';
  position: absolute;
  inset: 16px 16px -16px -16px;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  opacity: 0.6;
}

.radio__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 66% top;
  border-radius: var(--radius-lg);
}

.radio__label { color: var(--sky-light); }

.radio__heading {
  color: var(--white);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.radio__body {
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  margin-bottom: var(--space-8);
}

/* Player card */
.radio__player {
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.radio__player iframe {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

.radio__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.radio__date {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.radio :focus-visible { outline-color: var(--white); }

@media (max-width: 768px) {
  .radio { padding-block: var(--space-16); }
  .radio__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .radio__photo-wrap { width: min(240px, 70%); margin-inline: auto; }
  .radio__photo { aspect-ratio: 1; }
  .radio__actions .btn { width: 100%; }
}

@media print {
  .radio { display: none; }
}
