/* =========================================================================
   Media band
   ========================================================================= */
.media-band {
  background: var(--syn-green-800);
  color: #fff;
  border-radius: 0 0 var(--r-band) var(--r-band);
}
.media-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 70px;
}
.media-band__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
}
.media-band__title .hl { color: var(--syn-green-400); }
.media-band__intro { max-width: 434px; color: rgba(255, 255, 255, 0.86); font-size: 1.125rem; line-height: 1.55; }
.media-band__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Feature row: the first tile is wide; hovering another tile hands the width
   over to it (Figma Component 69, 290:2055). */
.media-band--feature .media-band__items { display: flex; }
.media-band--feature .media-band__item {
  flex: 1 1 0;
  min-width: 0;
  transition: flex-grow 0.5s ease;
}
.media-band--feature .media-band__item:first-child { flex-grow: 1.92; }
.media-band--feature .media-band__items:has(.media-band__item:hover) .media-band__item { flex-grow: 1; }
/* Same selector plus :hover, so it outranks the reset above. */
.media-band--feature .media-band__items:has(.media-band__item:hover) .media-band__item:hover { flex-grow: 1.92; }
@media (prefers-reduced-motion: reduce) {
  .media-band--feature .media-band__item { transition: none; }
}
.media-tile { margin: 0; }
.media-tile__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.25);
}
.media-band--feature .media-tile__media { aspect-ratio: auto; height: 479px; }
.media-tile__media iframe { border: 0; }

/* Thumbnails are stills, so the play affordance is drawn here. */
.media-band--feature .media-tile__media::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25) var(--icon-play) center / 26px no-repeat;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Once a video plays (its player replaced the poster), nothing is drawn
   over it: no play button and no tint, whatever the band variant. */
.media-band .media-tile__media:has(iframe)::before,
.media-band .media-tile__media:has(iframe)::after { content: none; }

/* Click-to-play poster: the button covers the thumbnail, and the CSS play
   affordance above stands in for tiles whose still has none. */
.media-tile__play {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.media-tile__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.media-tile--video .media-tile__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* A lone video fills the row; its thumbnail already carries a play button. */
.media-band--feature.media-band--single .media-band__item { flex-grow: 1; }
/* Recette: a taller frame for a lone video. */
.media-band--feature.media-band--single .media-tile__media { height: auto; aspect-ratio: 16 / 7; }
.media-band--feature.media-band--single .media-tile__media::after { content: none; }
/* Captions are part of the thumbnails in the design; keep them for screen readers. */
.media-band--feature .media-tile__label {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.media-tile__label {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
