/* English home / 2026-11-17
   Mobile measurement-consent placement and the lightweight platform preview. */

/* Measurement consent prompt ------------------------------------------------
   acquisition.js appends this prompt to <body>. Keep it above the ZhiYun
   host (z-index 2147483000) on every viewport. */
.measurement-prompt {
  z-index: 2147483100;
}

@media (max-width: 767px) {
  .measurement-prompt {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .measurement-prompt p {
    margin-bottom: 12px;
  }

  .measurement-prompt > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .measurement-prompt button {
    flex: 1 1 142px;
    min-height: 44px;
    padding: 10px 14px;
    line-height: 1.35;
    white-space: normal;
    touch-action: manipulation;
  }
}

@media (min-width: 570px) and (max-width: 767px) and (orientation: landscape) {
  .measurement-prompt {
    right: auto;
    width: min(400px, calc(100vw - 220px));
  }
}

/* Home platform preview -----------------------------------------------------
   A normal link to the full demo on the ZhiCloud AI page. It deliberately
   has no video element or player chrome on the home page. */
.platform-video-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--platform-video-line);
  border-radius: 6px;
  background: var(--platform-video-media-bg);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.platform-video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.platform-video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 20, 35, 0) 42%, rgba(5, 20, 35, 0.74) 100%);
  pointer-events: none;
}

.platform-video-preview-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(7, 30, 41, 0.72);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 32px rgba(2, 14, 24, 0.3);
  pointer-events: none;
}

.platform-video-preview-play svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.platform-video-preview-label {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(2, 14, 24, 0.6);
  pointer-events: none;
}

.platform-video-preview-label span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #d7e7f4;
}

.platform-video-preview:hover img {
  transform: scale(1.025);
}

.platform-video-preview:focus-visible {
  outline: 3px solid var(--platform-video-focus);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .platform-video-preview-play {
    width: 64px;
    height: 64px;
  }

  .platform-video-preview-play svg {
    width: 24px;
    height: 24px;
  }

  .platform-video-preview-label {
    font-size: 0.82rem;
  }

  .platform-video-preview-label span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-video-preview img {
    transition: none;
  }

  .platform-video-preview:hover img {
    transform: none;
  }
}
