/* ================================
   Vinyl record (CSS-built, with live cover art in label)
   ================================ */

.vinyl-container {
  position: relative;
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
  will-change: transform;
}

.vinyl-disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.06) 0%, transparent 25%),
    radial-gradient(circle, #1a1a1a 0%, #050505 100%);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.9),
    0 0 80px rgba(212, 175, 55, 0.12);
  overflow: hidden;
}

/* Concentric grooves drawn with a repeating radial gradient */
.vinyl-grooves {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      rgba(0,0,0,0.4) 1px,
      rgba(0,0,0,0.4) 4px
    );
  pointer-events: none;
}

/* Subtle highlight sheen so the disk catches light */
.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.08) 30deg,
    transparent 90deg,
    transparent 180deg,
    rgba(212, 175, 55, 0.06) 220deg,
    transparent 280deg,
    transparent 360deg
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Center label — holds the live cover art */
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #D4AF37;
  background: linear-gradient(135deg, #D4AF37, #A8862A);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    inset 0 2px 8px rgba(255,255,255,0.15),
    inset 0 -2px 8px rgba(0,0,0,0.4);
}

.vinyl-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vinyl-label img.loaded {
  opacity: 1;
}

/* Spindle hole in the dead center */
.vinyl-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: #050505;
  border-radius: 50%;
  border: 1px solid #D4AF37;
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  z-index: 3;
}

/* Static gold glow halo behind the spinning disk (does not rotate) */
.vinyl-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Cover image: hide fallback when real image loads, show when missing */
.cover-fallback { display: none; }
.cover-missing .cover-fallback { display: grid; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .animate-vinyl { animation-duration: 60s; }
  .vinyl-glow { animation: none; }
}
