/*
 * player.css — Static brand styles for JWPlayer + custom overlays.
 *
 * Brands override the accent color by setting `--player-accent` on `:root`
 * (or any ancestor of `.jwplayer`). Default matches aesportz.
 *
 * Imported via PlayerLayout / BaseLayout on player-bearing pages.
 */

:root {
  --player-accent: #00D4FF;
}

/* ── Brand color accents on JWPlayer UI ────────────────────── */
.jwplayer .jw-progress,
.jwplayer .jw-buffer {
  background-color: var(--player-accent) !important;
}
.jwplayer .jw-knob {
  background-color: var(--player-accent) !important;
}
.jwplayer .jw-rail {
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.jwplayer .jw-slider-volume .jw-progress {
  background-color: var(--player-accent) !important;
}
.jwplayer .jw-button-color:hover {
  color: var(--player-accent) !important;
}
.jwplayer .jw-icon-tooltip.jw-open .jw-overlay {
  border-color: var(--player-accent) !important;
}

/* Hide JWPlayer's built-in live indicator — we render our own branded one. */
.jwplayer .jw-text-live,
.jwplayer .jw-icon-live {
  display: none !important;
}

/* ── LIVE badge (pulsing red dot + label) ──────────────────── */
.aes-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.aes-live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: aes-live-pulse 1.5s ease-in-out infinite;
}
.aes-live-badge > span {
  font-size: 11px;
  font-weight: 700;
  color: #ff3b3b;
  letter-spacing: 1.5px;
}
@keyframes aes-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* ── Match title overlay (auto-fades after matchTitleFadeDelayMs) ── */
.aes-match-title {
  position: absolute;
  top: 16px;
  z-index: 5;
  left: 16px; /* offset by JS if LIVE badge also present */
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  opacity: 1;
}
.aes-match-title.aes-hidden {
  opacity: 0;
  transform: translateY(-10px);
}
