/* Top page video. It sits in the image slot of the solutions section and stays still until pressed. */
.ptv {
  position: relative;
  margin-bottom: 0;
  aspect-ratio: 16 / 9;
  background: #0b1121;
}
.ptv [hidden] {
  display: none !important;
}
.ptv__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1121;
}
.ptv button {
  font: inherit;
  color: #fff;
  cursor: pointer;
}

/* The whole picture is the button. The visible part is a small pill below the avatar's face. */
.ptv__play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.ptv__pill {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(40px, 4.6vw, 52px);
  padding: 0 clamp(16px, 1.8vw, 22px) 0 clamp(13px, 1.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(11, 17, 33, 0.66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease;
}
.ptv__time {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ptv__play:hover .ptv__pill {
  background: rgba(11, 17, 33, 0.86);
}

/* Shown only while the video plays without sound. */
.ptv__sound {
  position: absolute;
  top: clamp(8px, 1.4vw, 16px);
  right: clamp(8px, 1.4vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(11, 17, 33, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.ptv__sound:hover {
  background: rgba(11, 17, 33, 0.94);
}
/* After a few seconds only the icon stays, so the button does not cover the video's text. */
.ptv__sound.is-compact {
  justify-content: center;
  width: 44px;
  padding: 0;
}
.ptv__sound.is-compact .ptv__sound-text {
  display: none;
}
.ptv__play:focus-visible,
.ptv__sound:focus-visible {
  outline: 3px solid #F0A062;
  outline-offset: 2px;
}

@media (max-width: 719px) {
  .ptv__sound {
    gap: 6px;
    padding: 0 12px 0 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptv__pill { transition: none; }
}
