/* HOTMAGIC+ spinner: one shared loading ring for the whole platform.
   A thin arc with a fading tail and a bright round head. The colour runs along the logo's pink to orange gradient and keeps changing. */
.hm-spin,
.loading-spinner {
  --hm-size: 40px;
  --hm-w: 3px;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--hm-size);
  height: var(--hm-size);
  margin: 24px auto;
  border-radius: 50%;
  animation: hm-rot .9s linear infinite;
}
.hm-spin::before,
.loading-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* The arc and its 80deg gap are one conic sweep of colour: transparent over the
     gap, then pink to orange around the rest of the ring. The ring thickness is a
     single radial mask layer. Nothing here uses mask-composite, which iOS Safari
     drops (two composited mask layers made the whole arc disappear on iPhone). */
  background: conic-gradient(from 0deg,
    rgba(230, 0, 92, 0) 0deg 80deg,
    #E6005C 80deg,
    #F0128F 150deg,
    #F26A55 235deg,
    #F7B500 320deg,
    #E6005C 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--hm-w) - 1px), #000 calc(100% - var(--hm-w)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--hm-w) - 1px), #000 calc(100% - var(--hm-w)));
  animation: hm-hue 2.4s linear infinite;
}
.hm-spin::after,
.loading-spinner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--hm-w) * .5);
  width: calc(var(--hm-w) * 1.9);
  height: calc(var(--hm-w) * 1.9);
  margin: calc(var(--hm-w) * -.95) 0 0 calc(var(--hm-w) * -.95);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(var(--hm-w) * 2) calc(var(--hm-w) * .4) rgba(255, 140, 110, .85);
  animation: hm-glow 2.4s linear infinite;
}
.hm-spin--lg { --hm-size: 56px; --hm-w: 4px; }
.hm-spin--xs { --hm-size: 16px; --hm-w: 2px; display: inline-block; margin: 0 6px 0 0; vertical-align: -3px; }
#preloader .hm-spin,
.steady-loading-indicator .hm-spin,
#mp4-loading-overlay .hm-spin { margin: 0; }
.popup-panel-loading .loading-spinner { --hm-size: 34px; margin: 0; }
@keyframes hm-rot { to { transform: rotate(360deg); } }
@keyframes hm-hue {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(-18deg); }
}
@keyframes hm-glow {
  0%, 100% { box-shadow: 0 0 calc(var(--hm-w) * 2) calc(var(--hm-w) * .4) rgba(255, 60, 140, .85); }
  50% { box-shadow: 0 0 calc(var(--hm-w) * 2) calc(var(--hm-w) * .4) rgba(255, 190, 40, .85); }
}
@media (prefers-reduced-motion: reduce) { .hm-spin, .loading-spinner { animation-duration: 2.4s; } }
