/* ================================================================
   RADYO MODA V2.9 — SPEAKER COLUMNS & MOTION ORNAMENTS
   .rm-v29-col-left / .rm-v29-col-right (Desktop only, hidden < 1200px)
   ================================================================ */

/* ── Column Container ─────────────────────────────────── */
.rm-v29-col {
  width: 120px;
  min-width: 100px;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 8px 20px;
  position: relative;
  user-select: none;
}
.rm-v29-col-left  { padding-right: 4px; }
.rm-v29-col-right { padding-left: 4px; }

/* ── Ambient Glow ─────────────────────────────────────── */
.rm-v29-ambient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%,
    rgba(200, 16, 46, 0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 16px;
  transition: opacity 0.6s ease;
}
body.rm-playing .rm-v29-ambient {
  opacity: 1;
  background: radial-gradient(ellipse 80% 70% at 50% 40%,
    rgba(200, 16, 46, 0.16) 0%, transparent 70%);
}
body:not(.rm-playing) .rm-v29-ambient { opacity: 0.4; }

/* ── Speaker Unit ─────────────────────────────────────── */
.rm-v29-speaker {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    #2a2a2a 0%, #181818 40%, #0d0d0d 100%);
  border: 3px solid #1a1a1a;
  box-shadow:
    0 0 0 4px #111,
    0 0 20px rgba(200, 16, 46, 0.12),
    inset 0 3px 8px rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.4s ease;
}
body.rm-playing .rm-v29-speaker {
  box-shadow:
    0 0 0 4px #111,
    0 0 28px rgba(200, 16, 46, 0.35),
    inset 0 3px 8px rgba(255,255,255,0.04);
}

/* Speaker Cone */
.rm-v29-cone {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    #3a3a3a 0%, #1a1a1a 50%, #0d0d0d 100%);
  border: 2px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.08s ease;
}
.rm-v29-cone-inner {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    #444 0%, #111 100%);
  border: 1px solid #333;
}

/* Vibration ring */
.rm-v29-vibring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
}
body.rm-playing .rm-v29-vibring {
  border-color: rgba(200, 16, 46, 0.3);
  animation: rm-v29-vibring 2s ease-in-out infinite;
}

/* ── Vinyl Disc ───────────────────────────────────────── */
.rm-v29-vinyl {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1a1a2e 0%, #111 20%, #1d1d1d 38%,
    #111 55%, #1e1e1e 70%, #111 85%, #090909 100%);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5),
    0 0 16px rgba(200, 16, 46, 0.1);
  flex-shrink: 0;
  transform-origin: center;
}
/* Groove lines */
.rm-v29-vinyl::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.02),
    0 0 0 12px rgba(255,255,255,0.015),
    0 0 0 18px rgba(255,255,255,0.01);
}
.rm-v29-vinyl-center {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--rm-red, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.rm-v29-vinyl-center img {
  width: 14px; height: 14px;
  border-radius: 50%;
  object-fit: cover;
}
body.rm-playing .rm-v29-vinyl {
  animation: rm-v29-vinyl-spin 5s linear infinite;
}

/* ── LED Equalizer ────────────────────────────────────── */
.rm-v29-led-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 52px;
  width: 68px;
  justify-content: center;
}
.rm-v29-led-eq span {
  flex: 1;
  max-width: 9px;
  height: 8px;
  background: linear-gradient(to top, var(--rm-red, #c8102e) 0%, #ff6b6b 60%, #fbbf24 100%);
  border-radius: 2px 2px 0 0;
  transition: height 0.12s ease;
}
body.rm-playing .rm-v29-led-eq span:nth-child(1) { animation: rm-v29-eq1 0.85s ease-in-out infinite; }
body.rm-playing .rm-v29-led-eq span:nth-child(2) { animation: rm-v29-eq2 0.65s ease-in-out infinite; }
body.rm-playing .rm-v29-led-eq span:nth-child(3) { animation: rm-v29-eq3 0.95s ease-in-out infinite; }
body.rm-playing .rm-v29-led-eq span:nth-child(4) { animation: rm-v29-eq4 0.72s ease-in-out infinite; }
body.rm-playing .rm-v29-led-eq span:nth-child(5) { animation: rm-v29-eq5 0.88s ease-in-out infinite; }
/* External analyser override (set via JS dataset) */
.rm-v29-led-eq[data-driven="true"] span {
  animation: none !important;
  transition: height 0.08s linear;
}

/* ── Music Notes ──────────────────────────────────────── */
.rm-v29-note {
  font-size: 1.2rem;
  color: rgba(200, 16, 46, 0.5);
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.3));
  opacity: 0;
  transition: opacity 0.3s;
}
body.rm-playing .rm-v29-note {
  opacity: 1;
  animation: rm-v29-note-float 3s ease-in-out infinite;
}
body.rm-playing .rm-v29-note:nth-child(2) {
  animation-delay: 1.1s;
  color: rgba(45, 107, 196, 0.5);
}

/* ── Studio Light Bar ─────────────────────────────────── */
.rm-v29-studio-light {
  width: 68px; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200, 16, 46, 0.6) 40%,
    rgba(200, 16, 46, 0.8) 50%,
    rgba(200, 16, 46, 0.6) 60%,
    transparent 100%);
  flex-shrink: 0;
  transition: opacity 0.4s;
}
body.rm-playing .rm-v29-studio-light {
  opacity: 1;
  animation: rm-v29-light-pulse 1.8s ease-in-out infinite;
}
body:not(.rm-playing) .rm-v29-studio-light { opacity: 0.25; }

/* ── Keyframes ────────────────────────────────────────── */
@keyframes rm-v29-vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rm-v29-vibring {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.04); }
}
@keyframes rm-v29-eq1 { 0%,100%{height:10px} 50%{height:46px} }
@keyframes rm-v29-eq2 { 0%,100%{height:28px} 50%{height:12px} }
@keyframes rm-v29-eq3 { 0%,100%{height:44px} 50%{height:8px} }
@keyframes rm-v29-eq4 { 0%,100%{height:20px} 50%{height:48px} }
@keyframes rm-v29-eq5 { 0%,100%{height:36px} 50%{height:14px} }
@keyframes rm-v29-light-pulse {
  0%,100%{ opacity:0.6; } 50%{ opacity:1; }
}
@keyframes rm-v29-note-float {
  0%   { transform: translateY(0)   rotate(-5deg); opacity: 0.6; }
  50%  { transform: translateY(-10px) rotate(5deg);  opacity: 1; }
  100% { transform: translateY(0)   rotate(-5deg); opacity: 0.6; }
}

/* ── prefers-reduced-motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rm-v29-vinyl, .rm-v29-led-eq span,
  .rm-v29-note, .rm-v29-studio-light, .rm-v29-vibring {
    animation: none !important;
  }
  .rm-v29-led-eq span { height: 24px; }
}

/* ── Responsive: hide < 1200px ────────────────────────── */
@media (max-width: 1199px) {
  .rm-v29-col { display: none; }
}
