/* Canonical thumbnail play indicator; loaded after the shared shape policy. */
:root {
  --ms-video-play-size: 56px;
  --ms-video-play-label-gap: 10px;
}

/* Opt-in hosts establish containment in the same paint as their play overlay,
 * even when a module stylesheet has not arrived yet. */
:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) [data-video-play-host] {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) [data-video-play-host][hidden] {
  display: none !important;
}

/* Match the shape policy's specificity so module rules cannot square the icon. */
:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) .ms-video-play-overlay {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  width: var(--ms-video-play-size) !important;
  height: var(--ms-video-play-size) !important;
  min-width: var(--ms-video-play-size) !important;
  min-height: var(--ms-video-play-size) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  display: block !important;
  transform: translate(-50%, -50%) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #fff !important;
  opacity: 1 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24) !important;
  pointer-events: none !important;
  z-index: 7 !important;
  transition: background-color 160ms ease !important;
}

/* Loading hosts cannot expose a play circle. No timer or delayed visual hide. */
:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) [data-video-play-host][aria-busy="true"] > .ms-video-play-overlay {
  display: none !important;
}

:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) .ms-video-play-overlay::before {
  content: none !important;
}

:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) .ms-video-play-overlay::after {
  content: "" !important;
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  width: 18px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  clip-path: polygon(0 0, 100% 50%, 0 100%) !important;
  transform: translate(-50%, -50%) !important;
}

:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) :is(a, button, [tabindex]):is(:hover, :focus-visible) .ms-video-play-overlay {
  background: rgba(15, 23, 42, 0.9) !important;
}

:root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) :is(a, button, [tabindex]):focus-visible .ms-video-play-overlay {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

/* Labels remain independent of the play circle, sharing its diameter and gap. */
:is(.media-post-card__media, .watch-library__thumb-wrap):has(> .ms-video-play-overlay) > :is(.media-post-card__placeholder-label, .watch-library__status) {
  top: calc(50% + var(--ms-video-play-size) / 2 + var(--ms-video-play-label-gap)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (prefers-reduced-motion: reduce) {
  :root:not(#square-corner-policy-1):not(#square-corner-policy-2):not(#square-corner-policy-3):not(#square-corner-policy-4) .ms-video-play-overlay { transition: none !important; }
}

/* Compact Faves thumbnails still keep the module pill and lock off the circle. */
.faves-rail-card__media:has(> .ms-video-play-overlay) > .feed-card-post-type-overlay {
  bottom: 2px;
  min-height: 24px;
  padding: 3px 8px;
}
.faves-rail-card__media:has(> .ms-video-play-overlay) > .faves-rail-card__lock {
  inset: auto 8px 8px auto;
  transform: none;
}
