#hbp-recap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--hb-ink);
}

/* A square or tall recap in the wide frame: mount it whole on the soft panel, never between black bars. */
@media (min-width: 561px) {
  #hbp-recap.hbp-recap--mounted {
    box-sizing: border-box;
    padding: clamp(12px, 2.2vw, 28px);
    background: var(--hb-soft);
  }
}

.hbp-shot--live #hbp-recap,
#hbp-recap[hidden],
.hbp-recap-toggle[hidden] {
  display: none;
}

.hbp-recap-toggle {
  font: inherit;
  font-weight: 600;
  color: var(--hb-ink);
  background: var(--hb-paper);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 16px;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 560px) {
  /* The static mobile shot is portrait. Give a playing recap or its poster its native proportions. */
  .hbp-shot:not(.hbp-shot--live):has(> #hbp-recap:not([hidden])) {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
  }

  .hbp-shot--text:has(> #hbp-recap:not([hidden])) .hbp-shot__text {
    position: absolute;
  }

  .hbp-shot:not(.hbp-shot--live) > #hbp-recap:not([hidden]) {
    position: relative;
    display: block;
    height: auto;
  }
}
