/* Copyright Ayers Electronics Inc. All rights reserved. */
/* Your Requests on On Demand: each requested title's poster stays grey under a ring that fills with
   the download's percent, pulses while the title gets ready, and lets the poster's colour back in once
   it is ready to play. */

.card.request .card-art .poster {
  filter: grayscale(1);
  opacity: 0.55;
}
.card.request[data-stage="ready"] .card-art .poster {
  filter: none;
  opacity: 1;
}
.request-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.card.request[data-stage="ready"] .request-ring {
  display: none;
}
.request-ring svg {
  position: absolute;
  width: 56%;
  height: auto;
  transform: rotate(-90deg);
}
.request-ring circle {
  fill: none;
  stroke-width: 3;
}
.request-ring-track {
  stroke: var(--track);
}
.request-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
}
.card.request[data-stage="looking"] .request-ring-fill {
  stroke: none;
}
@media (prefers-reduced-motion: no-preference) {
  .request-ring-fill {
    transition: stroke-dasharray var(--ask-fill-ms) linear;
  }
  .card.request[data-stage="gettingReady"] .request-ring-fill {
    animation: request-ring-pulse 1.2s ease-in-out infinite;
  }
}
@keyframes request-ring-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.request-ring-middle {
  position: relative;
  font-size: var(--type-label);
  font-weight: 700;
  color: var(--text);
}
