/* ==========================================================================
   Store Video Hero - Detail Page
   Design tokens from design_system.md
   ========================================================================== */

.store-video-hero {
  width: 100%;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-neutral-900);
  box-shadow: var(--shadow-md);
}

.store-video-hero__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Self-hosted video (mp4/webm) */
.store-video-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube / Vimeo iframe */
.store-video-hero__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mute toggle button */
.store-video-hero__mute-toggle {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-neutral-0);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  z-index: var(--z-base);
  backdrop-filter: blur(4px);
}

.store-video-hero__mute-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.08);
}

/* Fade-in animation */
.store-video-hero {
  animation: videoFadeIn 0.6s ease forwards;
}

@keyframes videoFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .store-video-hero {
    border-radius: 0;
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    width: calc(100% + var(--space-4) * 2);
  }

  .store-video-hero__inner {
    aspect-ratio: 4 / 3;
  }

  .store-video-hero__mute-toggle {
    bottom: var(--space-3);
    right: var(--space-3);
    width: 38px;
    height: 38px;
  }
}
