/* ── Popup Vidéo Publicité ARINWA ── */

#arinwa-video-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#arinwa-video-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.avp-dialog {
  position: relative;
  width: min(92vw, 860px);
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#arinwa-video-popup.is-open .avp-dialog {
  transform: scale(1) translateY(0);
}

.avp-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.avp-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bouton fermer */
.avp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.avp-close:hover { background: rgba(141, 31, 22, 0.85); }

/* Bouton son */
.avp-sound {
  position: absolute;
  bottom: 50px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.avp-sound:hover { background: rgba(0, 0, 0, 0.8); }

/* Pied avec titre + bouton ignorer */
.avp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #1a1a1a;
}

.avp-footer .avp-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avp-skip {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.avp-skip:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

@media (max-width: 575.98px) {
  .avp-dialog { border-radius: 8px; }
  .avp-footer { padding: 0.6rem 1rem; }
  .avp-footer .avp-title { font-size: 0.8rem; }
}
