/* The /web3 promo player, ported from 45b-website/src/components/VideoPlayer
   (styles.module.css) on 2026-09-24 so it looks and behaves exactly as it does
   on 45b.io/web3. Class names are the module's, prefixed vp-. The hex/rgba
   values are the website's, kept verbatim rather than mapped to tokens, so a
   change there can be copied here line for line. Keep the two in step. */

.vp-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2rem 0 1rem;
}

/* Same geometry as on the website: at most 960px, edge-to-edge below that. */
.vp-wrap {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0b0b0b;
}

.vp-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-wrap:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.vp-wrap:fullscreen .vp-video { object-fit: contain; }

/* ---- The cover ---- */
.vp-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2%;
  background-color: #0b0b0b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-in-out, visibility 0s linear 0.25s;
  pointer-events: none;
}
.vp-cover-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.vp-cover[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease-in-out, visibility 0s;
}
.vp-cover-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.vp-cover-glyph[data-over-image="true"] { background-color: rgba(0, 0, 0, 0.55); }
.vp-cover-glyph svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
  fill: currentColor;
  display: block;
}

/* ---- Controls ---- */
.vp-click {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vp-top {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.vp-btn,
.vp-yt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vp-yt {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
}
.vp-click:focus-visible,
.vp-btn:focus-visible,
.vp-yt:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.vp-glyph {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}
.vp-yt-glyph {
  width: 21.6px;
  height: 15.3px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}
.vp-yt {
  opacity: 0.45;
  box-sizing: border-box;
  padding: 2.2px;
  background-clip: content-box;
}
@media (hover: hover) and (pointer: fine) {
  .vp-btn {
    opacity: 0.65;
    transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out;
  }
  .vp-wrap:hover .vp-btn,
  .vp-btn:focus-visible { opacity: 1; }
  .vp-wrap:hover .vp-btn:hover { background-color: rgba(0, 0, 0, 0.8); }
}
