/* Orus Video Module — Minimal styling */

/* Product page: injected video slide — force 1:1 to match product image square */
.orus-injected-video .wvg-single-gallery-video-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
}

.orus-injected-video .wvg-single-gallery-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  display: block;
}

/* WVG-native video slides (not injected by us) */
.wvg-gallery-video-slider:not(.orus-injected-video) .wvg-single-gallery-video-container video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* Gallery lock: disable navigation while video plays */
.orus-video-playing .slick-arrow,
.orus-video-playing .slick-dots,
.orus-video-playing .woo-variation-gallery-thumbnail-slider,
.orus-video-playing .wvg-gallery-thumbnail-image {
  pointer-events: none;
  opacity: 0.4;
}

.orus-video-playing .slick-track {
  pointer-events: none;
}

/* Video thumbnail in the gallery thumbnail strip.
   .orus-video-thumb is on the .slick-slide element itself. */
.orus-video-thumb {
  position: relative !important;
  overflow: hidden !important;
  background: #111 !important;
  cursor: pointer;
}

/* The WVG Pro inner wrapper — make it fill the slide and be transparent */
.orus-video-thumb .wvg-gallery-thumbnail-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  display: block !important;
}

/* Logo: use !important to override WVG Pro's inline "width:100%;display:inline-block" */
.orus-video-thumb .orus-thumb-logo {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 72% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Play indicator as pseudo-element */
.orus-video-thumb::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

/* Archive page: video overlay on product thumbnail */
.orus-archive-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  background: #000;
  pointer-events: none; /* clicks pass through to the product link */
}

/* Archive page: variation image overlay (no video) */
.orus-archive-hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  pointer-events: none; /* clicks pass through to the product link */
}

/* Product page: professional mute/unmute toggle button */
.orus-unmute-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.12s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.orus-unmute-btn:hover {
  background: rgba(0, 0, 0, 0.82);
  transform: scale(1.09);
}

.orus-unmute-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

/* Default state: muted — show icon-off, hide icon-on */
.orus-unmute-btn .icon-on  { display: none; }

/* Unmuted state */
.orus-unmute-btn.orus-unmuted .icon-off { display: none; }
.orus-unmute-btn.orus-unmuted .icon-on  { display: block; }

/* ==========================================================================
   Video Bubbles — Product page circular thumbnails
   ========================================================================== */

.orus-video-bubbles {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.orus-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  max-width: 84px;
  -webkit-tap-highlight-color: transparent;
}

.orus-bubble:hover .orus-bubble-circle {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

.orus-bubble-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(120, 120, 120, 0.35);
  background: #111;
  transition: border-color 0.2s, transform 0.15s;
}

.orus-bubble-circle img,
.orus-bubble-circle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orus-bubble-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orus-bubble-play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.orus-bubble-title {
  margin-top: 6px;
  font-size: 11px;
  text-align: center;
  color: #999;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Video Reel Modal — Full-screen overlay
   ========================================================================== */

.orus-reel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.orus-reel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.orus-reel-container {
  position: relative;
  max-width: 400px;
  width: 88vw;
  max-height: 88vh;
  border-radius: 18px;
  overflow: visible;
  background: #000;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.72) translateY(24px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.orus-reel-overlay.active .orus-reel-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Header: title only */
.orus-reel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 10px 44px 10px 14px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
  border-radius: 18px;
}

.orus-reel-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: block;
}

/* Close button: top-right inside container */
.orus-reel-close {
  position: absolute;
  top: 8px;
  right: -8px;
  z-index: 11;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.orus-reel-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Video wrapper */
.orus-reel-video-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
  cursor: pointer;
  overflow: hidden;
  border-radius: inherit;
}

.orus-reel-video-wrap video {
  width: 100%;
  max-height: 85vh;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Pause indicator (center) */
.orus-reel-pause-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.orus-reel-pause-icon.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.orus-reel-pause-icon svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

/* Mute button: bottom-right inside video wrap */
.orus-reel-mute {
  position: absolute;
  bottom: -8px;
  right: -8px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.orus-reel-mute:hover {
  background: rgba(0, 0, 0, 0.8);
}

.orus-reel-mute svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* Mobile: full-width container */
@media (max-width: 560px) {
  .orus-reel-container {
    max-width: 96vw;
    width: 96vw;
    border-radius: 12px;
  }
}
