#originalView .pdf-athlete-search-focus {
  position: absolute;
  z-index: 6;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1.5px dashed #0066be;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px #00a4e4;
  pointer-events: none;
  user-select: none;
}

/* In portrait the live card and broadcast stay above the bracket; align the
   found name in the remaining reading area rather than behind the video. */
@media (orientation: portrait) and (max-width: 899px) {
  #publicWatchLayout.mobile-watch-overview.mobile-watch-bracket {
    --athlete-search-sticky-top: calc(var(--watch-site-header-offset, var(--watch-header-height, 60px)) + var(--live-panel-height, 7.5rem) + 12px);
    --athlete-search-video-height: min(30vh, calc((100vw - 12px) * .5625));
  }
  @supports (height: 1dvh) {
    #publicWatchLayout.mobile-watch-overview.mobile-watch-bracket {
      --athlete-search-video-height: min(30dvh, calc((100vw - 12px) * .5625));
    }
  }
  #publicWatchLayout.mobile-watch-overview.mobile-watch-bracket :is(.pdf-athlete-search-focus, .pdf-page) {
    scroll-margin-block-start: var(--athlete-search-sticky-top);
  }
  #publicWatchLayout.mobile-watch-overview.mobile-watch-bracket:has(#publicBroadcast:not([hidden])) :is(.pdf-athlete-search-focus, .pdf-page) {
    scroll-margin-block-start: calc(var(--athlete-search-sticky-top) + var(--athlete-search-video-height));
  }
}

@media print {
  #originalView .pdf-athlete-search-focus { display: none; }
}
