/* In the Media page (/media/). Tokens only from styles.css :root. */
.media-hero { background-image: url('../assets/images/hero-two-chairs.webp'); }
/* The cream fog image needs a heavier navy wash than the stock overlay for AA text. */
.media-hero.page-hero-image::before {
  background: linear-gradient(to right, rgba(12,24,64,0.90) 0%, rgba(12,24,64,0.80) 60%, rgba(12,24,64,0.70) 100%);
}
.media-hero .eyebrow { color: var(--white); }
.media-hero .lead { color: rgba(255,255,255,0.92); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
@media (max-width: 1024px) {
  .media-grid { grid-template-columns: minmax(0, 1fr); }
}

.media-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.media-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.media-type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
}
.media-when {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.media-show {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}
.media-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.media-takeaway {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 12px;
  max-width: 62ch;
}
.media-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: none;
}
.media-player { margin: 0 0 20px; }
.media-player iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: var(--snow);
}
.media-player-video iframe { aspect-ratio: 16 / 9; height: auto; }
.media-player-apple iframe { height: 175px; }
.media-player-buzzsprout iframe { height: 200px; }

.media-actions {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.btn.media-play { padding: 10px 18px; min-height: 44px; }
.media-play.is-playing { display: none; }
.media-services { min-height: 44px; }

@media (max-width: 640px) {
  .media-card { padding: 24px 20px; }
  .media-actions { flex-direction: column; align-items: stretch; }
  .media-actions .btn { justify-content: center; text-align: center; white-space: normal; min-width: 0; }
}

/* Episode artwork: a 16:9 frame at the top of the card. Clicking it plays like the button. */
.media-thumb {
  position: relative;
  display: block;
  margin: -32px -28px 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-deep);
  border-radius: 0 4px 0 0;
}
.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.media-thumb-square img { object-fit: contain; }
.media-thumb:hover img { transform: scale(1.02); }
.media-thumb-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(12,24,64,0.35);
}
.media-thumb-badge-left .media-thumb-badge { right: auto; left: 14px; }
.media-thumb.is-playing { display: none; }
@media (max-width: 640px) {
  .media-thumb { margin: -24px -20px 18px; }
}
