/* Portfolio-wide video buffering indicator. Subsidy loop video is intentionally excluded by JS. */
.video-buffer-host {
  position: relative !important;
}

.video-buffer-indicator {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.video-buffer-indicator::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(241, 239, 233, 0.18);
  border-top-color: var(--accent, #d6ff4b);
  border-right-color: rgba(214, 255, 75, 0.55);
  box-shadow: 0 0 20px rgba(214, 255, 75, 0.12);
  animation: portfolio-buffer-spin 0.78s linear infinite;
}

.video-buffer-indicator.is-visible {
  opacity: 1;
  visibility: visible;
}

@keyframes portfolio-buffer-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .video-buffer-indicator::before {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-buffer-indicator::before {
    animation-duration: 1.6s;
  }
}
