/* Hide the whole section on mobile */
@media (max-width: 768px) {
  .video-section {
    display: none;
  }
}

/* Layout */
.video-section {
  text-align: center;
  margin: 60px auto;
  max-width: 1800px;
}

.video-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.video-block {
  flex: 1 1 45%;
  text-align: center;
}

.video-block h3 {
  margin-bottom: 10px;
  font-family: sans-serif;
  color: #fff;
}

/* Video container styling */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid black;
  border-radius: 4px; /* 👈 slight rounding */
  overflow: hidden;
  box-sizing: border-box;
}

/* Iframe fills the box */
.video-container iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px; /* 👈 ensures corners match container */
  z-index: 0;
}

/* CRT scanline overlay */
.video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
  z-index: 2;
  border-radius: 4px; /* 👈 match curvature */

  /* Optional flicker — comment this out to disable */
  animation: crt-flicker 0.12s infinite;
}

/* Subtle glow / phosphor layer */
.video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.4)
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  border-radius: 4px; /* 👈 match curvature */
}

/* CRT flicker animation */
@keyframes crt-flicker {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.55; }
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .video-container {
    height: 0;
    padding-bottom: 56.25%;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }
}

/* Unmute button overlay */
.unmute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9em;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}

.unmute-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
