/* 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;
}

.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);
  }
}
