/* ==========================================================================
   WOLFMEDIA — VHS & SCANLINE EFFECT SYSTEM
   Applied to media thumbnails and showreel only
   ========================================================================== */

.vhs-wrap {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  border-radius: 4px;
}

/* Scanlines overlay */
.vhs-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  pointer-events: none;
}

/* Colour bleed / aberration drift */
.vhs-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 60, 0.05) 0%,
    transparent 30%,
    rgba(0, 207, 255, 0.06) 70%,
    transparent 100%
  );
  animation: vhs-drift 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vhs-drift {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateX(-3px);
    opacity: 0.9;
  }
  75% {
    transform: translateX(3px);
    opacity: 0.7;
  }
}

/* RGB Glitch triggered on hover or active */
.vhs-wrap.vhs-glitch img,
.vhs-wrap:hover img {
  animation: rgb-split 0.25s steps(2, end) 1;
}

@keyframes rgb-split {
  0% {
    filter: none;
    transform: scale(1);
  }
  25% {
    filter: drop-shadow(-3px 0 0 rgba(255, 0, 80, 0.8)) drop-shadow(3px 0 0 rgba(0, 207, 255, 0.8));
    transform: translate(2px, -1px) scale(1.02);
  }
  50% {
    filter: drop-shadow(3px 0 0 rgba(255, 0, 80, 0.8)) drop-shadow(-3px 0 0 rgba(0, 207, 255, 0.8));
    transform: translate(-2px, 1px) scale(1.01);
  }
  75% {
    filter: drop-shadow(-2px 0 0 rgba(123, 47, 255, 0.8));
    transform: translate(1px, 1px);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

/* VHS HUD recording overlays */
.vhs-hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

.vhs-rec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FF3344;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.vhs-rec-dot {
  width: 10px;
  height: 10px;
  background-color: #FF3344;
  border-radius: 50%;
  animation: rec-blink 1s ease-in-out infinite alternate;
}

@keyframes rec-blink {
  from { opacity: 1; }
  to { opacity: 0.2; }
}

.vhs-timecode {
  color: #FFFFFF;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

/* ─── AGENCY REEL VIDEO PLAYER ENHANCEMENTS ──────────────── */
#reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Container active state when video is playing */
.vhs-wrap.is-playing {
  border-color: rgba(30, 144, 255, 0.85);
  box-shadow: 0 0 50px rgba(30, 144, 255, 0.35);
}

.vhs-wrap.is-playing .vhs-rec-dot {
  background-color: #00FF66;
  box-shadow: 0 0 12px #00FF66;
  animation: rec-blink 0.5s ease-in-out infinite alternate;
}

.vhs-wrap.is-playing .vhs-rec {
  color: #00FF66;
}

/* ─── MOBILE VIDEO PLAY BUTTON OVERLAY ──────────────────── */
.vhs-mobile-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.85);
  border: 2px solid var(--color-neon-hot, #00CFFF);
  box-shadow: 0 0 25px rgba(0, 207, 255, 0.6), inset 0 0 15px rgba(0, 207, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.vhs-mobile-play-btn i,
.vhs-mobile-play-btn svg {
  width: 28px;
  height: 28px;
  color: var(--color-neon-hot, #00CFFF);
  margin-left: 3px; /* visual center for play icon */
  filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.8));
}

.vhs-mobile-play-btn:active {
  transform: translate(-50%, -50%) scale(0.92);
}

/* When video is playing, hide play button overlay smoothly */
.vhs-wrap.is-playing .vhs-mobile-play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

/* Hide mobile overlay on desktop devices with hover support */
@media (hover: hover) and (pointer: fine) {
  .vhs-mobile-play-btn {
    display: none;
  }
}

/* Show on touch devices or screens <= 1024px */
@media (hover: none), (max-width: 1024px) {
  .vhs-mobile-play-btn {
    display: flex;
  }
}

