/* bdn-video-highlight — facade pattern for helizones video embed.
 * Deploy: copy to WP theme assets/css/, enqueue on match-report posts.
 */

.bdn-video-highlight {
  margin: 0 0 24px;
}
.bdn-video-highlight h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.bdn-video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a1929 0%, #173a5e 100%);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdn-vs-poster {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bdn-vs-poster img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.bdn-vs-divider {
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.bdn-video-facade .bdn-play,
button.bdn-play {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #0a1929;
  font-size: 44px;
  line-height: 1;
  padding: 0 0 0 6px; /* nudge the ▶ glyph optically center */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}
.bdn-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 12px rgba(255, 255, 255, 0.2);
}
.bdn-play:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 4px;
}
@keyframes bdn-play-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.15); }
  50%      { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 16px rgba(255, 255, 255, 0.08); }
}
.bdn-video-facade:not([data-loaded]) .bdn-play {
  animation: bdn-play-pulse 2s ease-in-out infinite;
}

/* Sponsor badge — top-right (static). Event banner — bottom-center.
 * Both injected by assets/js/bdn-video-highlight.js using BDN_VIDEO_SPONSOR
 * config from class-bdn-video-highlight.php. */

/* Common pill styling */
.bdn-video-sponsor,
.bdn-video-event {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: rgba(10, 25, 41, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.bdn-video-sponsor:hover,
.bdn-video-event:hover {
  transform: translateY(-1px);
  background: rgba(10, 25, 41, 0.92);
}

.bdn-video-sponsor { top: 12px; right: 12px; }

/* Event banner — bottom-center, shows on BOTH desktop and mobile. */
.bdn-video-event {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  font-weight: 600;
  /* Slight emphasis so the call-to-action stands out from the sponsor chip. */
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
}
.bdn-video-event:hover {
  transform: translateX(-50%) translateY(-1px);
  background: rgba(185, 28, 28, 0.96);
}
.bdn-video-event .bdn-video-sponsor-label {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.bdn-video-sponsor-label { display: inline-block; }
.bdn-video-sponsor-logo {
  height: 22px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (max-width: 480px) {
  .bdn-video-sponsor {
    top: 8px;
    right: 8px;
    padding: 5px 8px 5px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .bdn-video-sponsor .bdn-video-sponsor-label {
    display: none; /* keep just the logo top-right on tiny screens */
  }
  .bdn-video-sponsor-logo {
    height: 18px;
  }
  /* Event banner stays visible on mobile per operator rule. */
  .bdn-video-event {
    bottom: 8px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

.bdn-video-pending {
  padding: 32px 20px;
  background: #f6f8fa;
  border: 1px dashed #c8d1da;
  border-radius: 12px;
  text-align: center;
  margin: 0 0 24px;
}
.bdn-video-pending .bdn-icon-clock {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.bdn-video-pending p {
  margin: 4px 0;
  color: #424a53;
}
.bdn-video-pending strong {
  color: #0969da;
}

@media (max-width: 480px) {
  .bdn-vs-poster img {
    width: 56px;
    height: 56px;
  }
  .bdn-play {
    width: 72px;
    height: 72px;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.15);
  }
}
