/* Highpass SoundCloud Player (clean UI) */

.axp{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: none;

  background: rgba(12, 13, 16, 0.78);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  padding: 12px 12px;
  color: #fff;
}

.axp.is-open{ display:block; }

.axp__row{
  display:flex;
  align-items:center;
  gap:12px;
}

.axp__btn{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#fff;
  border-radius: 14px;
  padding: 10px 10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.axp__btn:hover{ background: rgba(255,255,255,0.10); }
.axp__btn:active{ transform: translateY(1px); }

.axp__btn--round{
  width:46px;
  height:46px;
  border-radius: 999px;
  padding:0;
}

.axp__ico{
  width:18px;
  height:18px;
  fill: rgba(255,255,255,0.92);
}

.axp__ico--pause{ display:none; }
.axp.is-playing .axp__ico--play{ display:none; }
.axp.is-playing .axp__ico--pause{ display:block; }

.axp__muteline{
  stroke: rgba(255,255,255,0.92);
  opacity: 0;
}
.axp.is-muted .axp__muteline{ opacity: 1; }
.axp.is-muted .axp__volWave{ opacity: .15; }

.axp__meta{
  flex: 1;
  min-width: 0;
}

.axp__title{
  color:#fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.axp__progress{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 8px;
}

.axp__time{
  width: 42px;
  text-align:center;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-variant-numeric: tabular-nums;
}

.axp__tools{
  display:flex;
  align-items:center;
  gap:10px;
}

.axp__range{
  -webkit-appearance:none;
  appearance:none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  outline: none;
}

.axp__range--seek{ width: 100%; }
.axp__range--vol{ width: 120px; }

.axp__range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(12,13,16,0.8);
  cursor:pointer;
}

.axp__range::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(12,13,16,0.8);
  cursor:pointer;
}

.axp__bar{
  height: 2px;
  border-radius: 999px;
  margin-top: 10px;
  background: rgba(255,255,255,0.10);
  overflow:hidden;
  display:none;
}
.axp__bar::after{
  content:"";
  display:block;
  height:100%;
  width: 40%;
  background: rgba(255,255,255,0.55);
  transform: translateX(-120%);
  animation: axpLoading 0.9s infinite ease-in-out;
}
.axp.is-loading .axp__bar{ display:block; }

@keyframes axpLoading{
  0%{ transform: translateX(-120%); }
  100%{ transform: translateX(260%); }
}

/* Critical: keep the iframe real-sized (avoid width:0 / 1px issues) */
.axp__iframe{
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 500px;
  height: 166px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.axp__iframe iframe{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

@media (max-width: 640px){
  .axp__range--vol{ width: 84px; }
  .axp__time{ width: 38px; }
}

/* Desktop: slightly narrower, centered */
@media (min-width: 900px){
  .axp{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 36px));
  }
}

/* --- Vinyl spin effect on Elementor loop cover ---
   We can't rotate a background-image directly, so we render the same cover
   via a pseudo-element and rotate that.
*/
.circle-thumb.hp-vinyl{
  /* keep layout identical */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.circle-thumb.hp-vinyl::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--hp-cover);
  background-position: center;
  background-size: cover;
  transform-origin: 50% 50%;
  animation: hpVinylSpin 6.5s linear infinite;
  will-change: transform;
}

@keyframes hpVinylSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .circle-thumb.hp-vinyl::before{ animation: none; }
}

/* hide the play button inside the thumb while playing */
.circle-play.hp-hide-play{
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
