/* ============================================================
   SOUNDNOTE — Perlisten Continuous Rotator
   Single-image luxury 3D turntable animation · About · Our Story
   ============================================================ */

/* Override global editorial image constraints */
.sn-editorial-image .sn-perlisten-rotator img {
  aspect-ratio: unset !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sn-editorial-image .sn-perlisten-rotator {
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.sn-editorial-image {
  overflow: visible;
  align-self: center;
}

/* ── Container ── */
.sn-perlisten-rotator {
  --pr-gold: #C8A15A;
  --pr-gold-soft: rgba(200, 161, 90, 0.3);
  --pr-ease: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  perspective: 1100px;
  isolation: isolate;
}

/* ── Ambient glow ── */
.sn-perlisten-rotator__aura {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 130%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(200, 161, 90, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: prAuraPulse 5s ease-in-out infinite;
}

@keyframes prAuraPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Outer gold orbit ring (counter-rotates) ── */
.sn-perlisten-rotator__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% + 36px);
  height: calc(100% - 60px);
  transform: translate(-50%, -52%);
  border: 1px solid var(--pr-gold-soft);
  pointer-events: none;
  z-index: 4;
  animation: prOrbitSpin 24s linear infinite reverse;
}

.sn-perlisten-rotator__orbit::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pr-gold), transparent);
  transform: translateX(-50%);
}

.sn-perlisten-rotator__orbit::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 18%;
  width: 32px;
  height: 2px;
  background: var(--pr-gold);
  opacity: 0.6;
}

@keyframes prOrbitSpin {
  to { transform: translate(-50%, -52%) rotate(360deg); }
}

/* ── 3D stage — match wide Perlisten image ratio (1024×451) ── */
.sn-perlisten-rotator__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 451;
  margin: 0 auto;
  transform-style: preserve-3d;
  z-index: 2;
}

/* ── Rotating disc — infinite luxury turntable sway ── */
.sn-perlisten-rotator__disc {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: prTurntable 9s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes prTurntable {
  from { transform: rotateY(-22deg) rotateX(4deg) translateZ(0); }
  to   { transform: rotateY(22deg)  rotateX(4deg) translateZ(0); }
}

/* ── Image frame ── */
.sn-perlisten-rotator__frame {
  position: absolute;
  inset: 0;
  background: #080808;
  border: 1px solid rgba(200, 161, 90, 0.2);
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow:
    0 36px 72px -24px rgba(0, 0, 0, 0.6),
    0 0 60px -12px rgba(200, 161, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sn-perlisten-rotator__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Light sweep across the speaker */
.sn-perlisten-rotator__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(200, 161, 90, 0.12) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: prLightSweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes prLightSweep {
  0%, 65%  { transform: translateX(-120%); }
  100%     { transform: translateX(120%); }
}

/* ── Pedestal base ── */
.sn-perlisten-rotator__base {
  position: relative;
  width: 72%;
  height: 6px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--pr-gold-soft), var(--pr-gold), var(--pr-gold-soft), transparent);
  z-index: 3;
  opacity: 0.7;
}

.sn-perlisten-rotator__base::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 85%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(200, 161, 90, 0.2), transparent);
}

/* ── Floor reflection ── */
.sn-perlisten-rotator__reflection {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 0.25rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
  z-index: 1;
  animation: prReflectionSway 9s ease-in-out infinite alternate;
}

@keyframes prReflectionSway {
  from { transform: scaleX(0.88) skewX(3deg);  opacity: 0.22; }
  to   { transform: scaleX(1)    skewX(-3deg); opacity: 0.34; }
}

.sn-perlisten-rotator__reflection img {
  width: 100%;
  aspect-ratio: 1024 / 451;
  object-fit: contain;
  object-position: center center;
  transform: scaleY(-1) translateY(-100%);
  filter: blur(3px);
  opacity: 0.45;
}

/* ── Brand label ── */
.sn-perlisten-rotator__brand {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pr-gold);
  opacity: 0.85;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sn-perlisten-rotator__disc,
  .sn-perlisten-rotator__orbit,
  .sn-perlisten-rotator__aura,
  .sn-perlisten-rotator__frame::after,
  .sn-perlisten-rotator__reflection {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .sn-perlisten-rotator {
    padding: 1.25rem 0 2rem;
  }
}
