/* AURALIS — speaker visualization (stylized, not photographic) */

.sp-visual {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #f7f3ec 0%, #eae2d3 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sp-photo {
  position: relative;
  max-width: 82%; max-height: 90%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(47,54,64,0.18));
  transition: transform 0.5s ease;
}
.sp-visual:hover .sp-photo { transform: translateY(-4px) scale(1.02); }
.sp-visual::before {
  /* mayan step-fret watermark */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24'><path d='M0 12 L10 12 L10 6 L20 6 L20 18 L30 18 L30 12 L40 12 L40 6 L50 6 L50 18 L60 18 L60 12 L80 12' fill='none' stroke='%232F3640' stroke-width='0.8'/></svg>");
  background-repeat: repeat-x;
  background-size: 120px 36px;
  background-position: center 88%;
  opacity: 0.07;
  pointer-events: none;
}
.sp-room {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14%;
}
.sp-body {
  position: relative;
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    inset 0 2px 6px rgba(255,220,180,0.18),
    inset 0 -14px 28px rgba(0,0,0,0.28),
    0 14px 30px -10px rgba(47,54,64,0.25);
}
.sp-grille {
  position: absolute;
  left: 14%; right: 14%;
  top: 12%; bottom: 28%;
  border-radius: 40% / 8%;
  background:
    repeating-linear-gradient(90deg,
      rgba(230,210,170,0.9) 0 2px,
      rgba(160,130,90,0.5) 2px 4px);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.35);
}
.sp-driver {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 44%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, #2a2622 0%, #1a1714 45%, #0a0806 100%);
  box-shadow: inset 0 1px 2px rgba(255,220,180,0.15), 0 0 0 1px rgba(0,0,0,0.35);
}
.sp-driver::after {
  content: '';
  position: absolute; inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a332d 0%, #15110e 80%);
}
.sp-driver.upper { top: 74%; width: 24%; }
.sp-driver.lower { top: 74%; width: 24%; display: none; }
.sp-base {
  position: absolute;
  bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 60%; height: 3%;
  background: linear-gradient(180deg, #4a6f5f 0%, #2f4a3e 100%);
  border-radius: 1px;
  box-shadow: 0 6px 14px rgba(47,54,64,0.25);
}
.sp-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 8%;
  background: linear-gradient(180deg, rgba(47,54,64,0.08), rgba(47,54,64,0.18));
}
.sp-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ash);
  padding: 5px 10px;
  background: rgba(240,235,227,0.85);
  border: 1px solid rgba(47,54,64,0.1);
}

/* Detail view — larger */
.speaker-detail .sp-visual { aspect-ratio: 4/5; }

/* Multi-photo cross-fade (used by TZ'IKIN powered pair) */
.sp-visual.multi .sp-photo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  animation: sp-photo-cycle 8s ease-in-out infinite;
}
.sp-visual.multi .sp-photo-0 { animation-delay: 0s; }
.sp-visual.multi .sp-photo-1 { animation-delay: 4s; }
.sp-visual.multi:hover .sp-photo {
  transform: translate(-50%, calc(-50% - 4px)) scale(1.02);
}
@keyframes sp-photo-cycle {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-visual.multi .sp-photo { animation: none; }
  .sp-visual.multi .sp-photo-1 { opacity: 0; }
}
