/* ============================================================
   ASMON JEWELRY — Product video overlay + modal
   ============================================================ */

/* ── Play-button overlay docked on the gallery main image ── */
.asmon-video-trigger {
  position: absolute;
  z-index: 4;
  top: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 0;
  border-radius: var(--r-pill, 999px);
  background: linear-gradient(135deg, var(--gold, #C8A464), var(--gold-2, #B0884A));
  color: var(--midnight, #0B0F14);
  font: 600 .9rem/1 var(--font-sans, system-ui);
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(200,164,100,.35),
    0 1px 2px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  backdrop-filter: blur(4px);
}
.asmon-video-trigger:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 22px rgba(200,164,100,.50), 0 2px 4px rgba(0,0,0,.10);
  filter: brightness(1.04);
}
.asmon-video-trigger:active { transform: translateY(0) scale(.98); }
.asmon-video-trigger:focus-visible {
  outline: 2px solid var(--gold-soft, #E2C896);
  outline-offset: 3px;
}
.asmon-video-trigger-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(11,15,20,.10);
  display: inline-flex; align-items: center; justify-content: center;
}
.asmon-video-trigger-icon svg { width: 14px; height: 14px; padding-inline-start: 2px; }
@media (max-width: 540px) {
  .asmon-video-trigger { padding: 8px; top: 12px; inset-inline-end: 12px; }
  .asmon-video-trigger-label { display: none; }
}

/* ── Optional "video tile" in the gallery thumb strip ─────── */
.asmon-video-thumb {
  list-style: none;
  display: inline-block;
}
.asmon-video-thumb button {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid rgba(200,164,100,.30);
  background: linear-gradient(135deg, var(--midnight, #0B0F14), var(--midnight-2, #131922));
  color: var(--gold-soft, #E2C896);
  border-radius: var(--r, 12px);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  font: 600 .72rem/1 var(--font-sans, system-ui);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.asmon-video-thumb button:hover {
  transform: scale(1.02);
  border-color: var(--gold, #C8A464);
  box-shadow: 0 6px 14px rgba(200,164,100,.20);
}
.asmon-video-thumb button svg { width: 22px; height: 22px; }
.asmon-video-thumb button span { letter-spacing: -.01em; }

/* ── Modal ────────────────────────────────────────────────── */
.asmon-video-modal {
  position: fixed; inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.asmon-video-modal.is-open { display: flex; }

.asmon-video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, .80);
  backdrop-filter: blur(6px);
  animation: asmonVideoFade .25s ease;
}

.asmon-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  max-height: 90vh;
  animation: asmonVideoPop .28s cubic-bezier(.4, 0, .2, 1);
}

.asmon-video-modal-close {
  position: absolute;
  top: -48px;
  inset-inline-end: 0;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.asmon-video-modal-close:hover {
  background: rgba(200,164,100,.30);
  transform: scale(1.08);
}
.asmon-video-modal-close svg { width: 20px; height: 20px; }

.asmon-video-modal-frame {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.50);
  border: 1px solid rgba(200,164,100,.30);
}
.asmon-video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@keyframes asmonVideoFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes asmonVideoPop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 540px) {
  .asmon-video-modal-close { top: -42px; width: 34px; height: 34px; }
}
