/* Caption position belongs to VideoPlayerModal's visible-picture stage.
 * Do not override its top/bottom offsets with vh or fullscreen screen insets:
 * in portrait fullscreen those lift captions into the middle of a short,
 * letterboxed picture. The player also accounts for controls and safe areas.
 */
#video-player-modal #subtitle-overlay {
  padding-inline: clamp(0px, 1%, 12px);
}

#video-player-modal #subtitle-overlay > div {
  min-width: 0;
}

/* Give Myanmar combining marks room above and below each line, while keeping
 * the black backplate close to the text rather than making one large block.
 */
#video-player-modal #subtitle-overlay p {
  line-height: 1.55 !important;
  padding: 0.08em 0.32em !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

