/* ═══════════════════════════════════════════════════════════════════
   GLOSSI MEDIA — Video player & GIF components
   Shared across all pages (get-started, blog, changelog, etc.)
   ═══════════════════════════════════════════════════════════════════ */

.glossi-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

.glossi-video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.glossi-video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.glossi-video-poster:hover .glossi-video-play {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.06);
}

.glossi-video-play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.glossi-video-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.glossi-video-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.glossi-video-el {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  object-fit: cover;
}

/* Compact variant for inline use (changelog, cards) */
.glossi-video-sm {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  max-width: 640px;
}

.glossi-video-sm .glossi-video-play {
  width: 48px;
  height: 48px;
}

.glossi-video-sm .glossi-video-play svg {
  width: 20px;
  height: 20px;
}

/* GIF component */
.glossi-gif {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  max-width: 640px;
}

.glossi-gif img {
  width: 100%;
  height: auto;
  display: block;
}

.glossi-gif-caption {
  font-size: 13px;
  color: var(--text-tertiary, #737373);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* Autoplay loop (muted, no controls, like a GIF but as video) */
.glossi-video-loop {
  border-radius: 10px;
  overflow: hidden;
  max-width: 640px;
}

.glossi-video-loop video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .glossi-video {
    border-radius: 8px;
  }

  .glossi-video-play {
    width: 52px;
    height: 52px;
  }

  .glossi-video-play svg {
    width: 22px;
    height: 22px;
  }

  .glossi-video-sm {
    border-radius: 8px;
    max-width: 100%;
  }

  .glossi-gif,
  .glossi-video-loop {
    max-width: 100%;
    border-radius: 8px;
  }
}
