/* =====================================================================
   Sticky Video Player — video-player.css
   All styles scoped under .vp or .vp-restore. No global side effects.
   Design tokens mapped to site colors:
     --ac-hair        → #E5E5E5  (--color-border)
     --ac-accent      → #F6A623  (--color-accent)
     --ac-accent-hover → #E0951E (--color-accent-hover)
     --ac-font-body   → system-ui, sans-serif
   ===================================================================== */

:root {
  --ac-hair:         #E5E5E5;
  --ac-accent:       #F6A623;
  --ac-accent-hover: #E0951E;
  --ac-font-body:    system-ui, -apple-system, sans-serif;
}

/* ── Outer container ─────────────────────────────────────────────────── */
.vp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 160px;
  border: 4px solid var(--ac-hair);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  background: #000;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vp.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ── Video ───────────────────────────────────────────────────────────── */
.vp__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

/* ── Play/pause flash overlay ────────────────────────────────────────── */
.vp__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vp__overlay.is-visible {
  opacity: 1;
}

.vp__overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

/* ── Icon buttons (hide + mute) ──────────────────────────────────────── */
.vp__icon-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.50);
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background 0.15s ease;
}

.vp__icon-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.vp__icon-btn:focus-visible {
  outline: 2px solid var(--ac-accent);
  outline-offset: 2px;
}

.vp__hide-btn {
  top: 8px;
  right: 8px;
}

.vp__mute-btn {
  bottom: 8px;
  left: 8px;
}

/* ── Restore pill ────────────────────────────────────────────────────── */
.vp-restore {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--ac-accent);
  color: #fff;
  font-family: var(--ac-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  white-space: nowrap;
}

.vp-restore.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vp-restore:hover {
  background: var(--ac-accent-hover);
}

.vp-restore:focus-visible {
  outline: 2px solid var(--ac-accent);
  outline-offset: 3px;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .vp {
    width: 110px;
    bottom: 12px;
    right: 12px;
  }

  .vp__icon-btn {
    width: 24px;
    height: 24px;
  }

  .vp__overlay-icon {
    width: 32px;
    height: 32px;
  }

  .vp-restore {
    bottom: 12px;
    right: 12px;
    font-size: 12px;
    padding: 7px 12px;
  }
}
