@import '../../style/variable';

@keyframes loadingRotate {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes loadingDashOffset {
  0% {
    stroke-dashoffset: 236;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
xg-loading-inner {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: center;
  animation: loadingRotate 1s 0.1s linear infinite;
}
.xgplayer-loading {
  display: none;
  width: 70px;
  height:  70px;
  overflow: hidden;
  // transform: scale(0.7);
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  svg, img {
    width: 100%;
    height: 100%;
  }
}

.xgplayer-mobile {
  .xgplayer-loading {
    width: 50px;
    height:  50px;
  }
}

.xgplayer-isloading {
  .xgplayer-loading{
    display: block;
  }
}

.xgplayer-nostart,.xgplayer-pause,.xgplayer-is-enter, .xgplayer-is-ended,.xgplayer-is-error {
  .xgplayer-loading{
    display: none;
  }
}
