/* Keep landing-page play buttons centered after the player skin loads. */
/* One highlight travels around the collateral CTA while its border stays visible. */
#app.landing-media .btn.collateral-cta,
#app.landing-media .btn.collateral-cta:hover,
#app.landing-media .btn.collateral-cta:focus-visible {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

#app.landing-media .collateral-cta .collateral-border-light {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  border-radius: inherit;
  pointer-events: none;
}

#app.landing-media .collateral-border-light path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9));
}

#app.landing-media .collateral-cta:is(:hover, :focus-visible) .collateral-border-light path {
  animation:
    collateral-border-lap .55s linear 1 both,
    collateral-border-blend .78s linear 1 both;
}

@keyframes collateral-border-lap {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes collateral-border-blend {
  0% { opacity: 0; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
  10% { opacity: 1; }
  42% { opacity: 1; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
  65% { opacity: .48; stroke-width: 1.6; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .4)); }
  84% { opacity: .12; stroke-width: 1.15; filter: drop-shadow(0 0 .4px rgba(255, 255, 255, .12)); }
  100% { opacity: 0; stroke-width: 1; filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
}

@media (prefers-reduced-motion: reduce) {
  #app.landing-media .collateral-cta:is(:hover, :focus-visible) .collateral-border-light path {
    animation: none;
  }
}

#app.landing-media .video-js .vjs-big-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  width: 64px;
  height: 64px;
  min-width: 0;
  min-height: 0;
  line-height: 64px;
  font-size: 32px;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
}

#app.landing-media .video-js .vjs-big-play-button .vjs-icon-placeholder::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1;
  font-size: inherit;
}

@media (max-width: 640px) {
  #app.landing-media .video-js .vjs-big-play-button {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 28px;
  }
}
