/* CSSBEST hero gameplay, scoped to the homepage media card. */
.hero-modern-image.cssbest-hero-video {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #121821;
  box-shadow: 0 20px 60px var(--color-shadow), 0 0 36px rgba(217,113,39,.12);
}
.hero-modern-image.cssbest-hero-video::before,
.hero-modern-image.cssbest-hero-video::after { content: none; }
.cssbest-hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
}
.cssbest-hero-video__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: rgba(15,20,28,.82);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  cursor: pointer;
}
.cssbest-hero-video__toggle[hidden] { display: none; }
.cssbest-hero-video__toggle:hover { background: var(--color-primary); }
.cssbest-hero-video__toggle:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.cssbest-hero-video__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.cssbest-hero-video__toggle .hero-video-pause { display: none; }
.cssbest-hero-video__toggle[data-playing="true"] .hero-video-pause { display: block; }
.cssbest-hero-video__toggle[data-playing="true"] .hero-video-play { display: none; }
@media (max-width: 600px) {
  .hero-modern-image.cssbest-hero-video { border-radius: 14px; }
  .cssbest-hero-video__toggle { right: 10px; bottom: 10px; }
}
