/* ============================================================
   CUSTOM HTML5 VIDEO PLAYER + COUNTDOWN — Additional CSS
   Paste into: Appearance → Customize → Additional CSS
   (Replace the previous version entirely)
   ============================================================ */

/* --- Outer wrapper --- */
.nax-video-wrapper {
  max-width: 860px;
  margin: 0 auto 2rem;
  font-family: inherit;
}

/* --- Utility: hide any section --- */
.nax-hidden {
  display: none !important;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.nax-countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.nax-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nax-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 64px;
}

.nax-count-value {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;                  /* ← change to match your site palette */
  font-variant-numeric: tabular-nums;
}

.nax-count-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;                  /* ← change to match your site palette */
}

.nax-count-sep {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #555;
  margin-bottom: 1.4rem;       /* aligns colon with the numbers, above label */
  line-height: 1;
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */

.nax-video-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 0.6rem;
  padding: 0;
}

.nax-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .nax-video-container {
    padding-top: 56.25%;
    height: 0;
  }
  .nax-video-container > * {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
}

.nax-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nax-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, opacity 0.25s ease;
}

.nax-play-overlay:hover {
  background: rgba(0, 0, 0, 0.18);
}

.nax-play-icon {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  color: #fff;
  opacity: 0.92;
  transition: transform 0.18s ease, opacity 0.18s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nax-play-overlay:hover .nax-play-icon {
  transform: scale(1.08);
  opacity: 1;
}

.nax-play-overlay.nax-hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .nax-countdown-unit { min-width: 48px; }
  .nax-countdown { gap: 0.25rem; }
  .nax-video-wrapper { margin-bottom: 1.25rem; }
}