/* ==========================================================
   MOOSE TAPE - 90'S AUDIO REEL CASSETTE & ROTATING REEL
   Theme: Vintage Chrome Type II / Obsidian Acrylic Glass
   ========================================================== */

.cassette-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: min(820px, 57vh);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.15rem auto 0.25rem;
  flex-shrink: 1;
}

/* Cassette Outer Body (Obsidian Smoked Polycarbonate Shell) */
.cassette-body {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  background: linear-gradient(155deg, #1f212b 0%, #13141b 45%, #0a0b0f 100%);
  border-radius: 20px;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 25px 55px rgba(0, 0, 0, 0.9), 
    inset 0 1.5px 3px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(229, 185, 84, 0.15);
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.cassette-body:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 
    0 32px 70px rgba(0, 0, 0, 0.95), 
    0 0 40px var(--accent-gold-glow);
}

/* Diagonal glass sheen reflection */
.cassette-body::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Cassette Corner Screws (High-detail slotted metallic screws) */
.cassette-screw {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9aa0a6, #2d3038);
  border: 1px solid #0e1014;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 1px 3px rgba(0,0,0,0.9);
  z-index: 5;
}

.cassette-screw::before {
  content: '';
  position: absolute;
  top: 50%; left: 15%; width: 70%; height: 1.5px;
  background: #111;
  transform: translateY(-50%) rotate(45deg);
}

.screw-tl { top: 12px; left: 14px; }
.screw-tr { top: 12px; right: 14px; }
.screw-bl { bottom: 12px; left: 14px; }
.screw-br { bottom: 12px; right: 14px; }
.screw-tc { top: 12px; left: 50%; transform: translateX(-50%); }

/* Vintage Matte Paper Label */
.cassette-label {
  background: linear-gradient(180deg, #1e212b 0%, #151722 65%, #10121a 100%);
  border-radius: 14px;
  border: 1px solid rgba(229, 185, 84, 0.4);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7), 0 3px 8px rgba(0,0,0,0.5);
  padding: 8px 14px 10px;
  height: 77%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Slim Brand Header at top of label */
.label-header-slim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 4px 5px;
  border-bottom: 1.5px solid rgba(229, 185, 84, 0.35);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.label-header-slim .label-side {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 0 10px var(--accent-gold-glow);
}

.label-brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(229, 185, 84, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.label-brand-meta .brand-emboss {
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  white-space: nowrap;
}

.label-brand-meta .brand-divider {
  color: rgba(255, 255, 255, 0.25);
}

.label-stereo-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-crimson);
  letter-spacing: 1px;
}

/* Central Transparent Smoked Window & Spools (Takes full vertical height) */

/* Central Transparent Smoked Window & Spools */
.cassette-window {
  flex: 1;
  background: radial-gradient(circle at 50% 50%, rgba(15, 17, 24, 0.75) 0%, rgba(5, 6, 9, 0.92) 100%);
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 3px 15px rgba(0, 0, 0, 0.95);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  overflow: hidden;
}

/* Vintage Tape Counter Scale (0 - 50 - 100) */
.tape-scale-marks {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(229, 185, 84, 0.5);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 2;
}

.scale-tick {
  width: 1px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
}

/* Magnetic Tape Bridge Behind Reels */
.tape-bridge {
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 36px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #443022 0%, #291b13 50%, #170e0a 100%);
  border-top: 1px solid #6b4d37;
  border-bottom: 1px solid #1a100a;
  opacity: 0.9;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Left & Right Tape Spool Hubs (Enlarged & Detailed) */
.tape-spool {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #323542 0%, #171822 65%, #0b0c12 100%);
  border: 2.5px solid #4a4e61;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85), inset 0 2px 5px rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simulated wound brown magnetic tape around left spool */
.spool-tape-pack {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d291d 55%, #251810 85%, transparent 95%);
  z-index: 1;
  pointer-events: none;
}

/* Mechanical 6-teeth gear sprockets */
.spool-teeth {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  border-radius: 50%;
  animation: rotateReel 7s linear infinite;
  animation-play-state: paused;
}

.spinning .spool-teeth {
  animation-play-state: running;
}

.spool-teeth::before,
.spool-teeth::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  width: 5px;
  height: 70%;
  background: #cbd3dc;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.spool-teeth::after {
  transform: translateX(-50%) rotate(60deg);
}

.spool-teeth-extra {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 5px;
  height: 70%;
  background: #cbd3dc;
  border-radius: 2px;
  transform: translateX(-50%) rotate(-60deg);
  box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.spool-center-hole {
  position: relative;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  border: 2px solid #5a5f70;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.95);
}

/* ==========================================================
   ANIMATED INFINITY SIGN (OVER BOTH SPOOLS, BEHIND CENTER REEL)
   ========================================================== */
.cassette-infinity-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3; /* Above spools (z-index: 2), BEHIND center reel (z-index: 5) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.cassette-infinity-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Wide Radiant Ambient Aura */
.infinity-path-aura {
  fill: none;
  stroke: url(#infinityGlowGrad);
  stroke-width: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.32;
  filter: url(#infinityNeonGlow);
  transition: opacity 0.5s ease;
}

/* Magnetic Tape Ribbon Body */
.infinity-path-tape {
  fill: none;
  stroke: url(#infinityTapeGrad);
  stroke-width: 13px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

/* Glowing Neon Flow Boundary */
.infinity-path-glow {
  fill: none;
  stroke: url(#infinityGlowGrad);
  stroke-width: 3.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
  filter: drop-shadow(0 0 6px var(--accent-gold));
}

/* Flowing Dashed Energy Pulse */
.infinity-path-dashed {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 22 18;
  opacity: 0.92;
  animation: infinityDashFlow 5s linear infinite;
}

/* Enhanced glow & accelerated flow when audio is spinning/playing */
.spinning .infinity-path-dashed {
  animation-duration: 2.6s;
  stroke: #fff9e6;
  filter: drop-shadow(0 0 4px #fff);
}

.spinning .infinity-path-aura {
  opacity: 0.52;
}

.spinning .infinity-path-glow {
  stroke-width: 4.5px;
  filter: drop-shadow(0 0 8px var(--accent-gold)) drop-shadow(0 0 16px var(--accent-crimson));
}

@keyframes infinityDashFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -360;
  }
}

/* Radiant Embers / Sparks traveling along the infinity track */
.infinity-particle {
  pointer-events: none;
  opacity: 0.95;
}

.particle-gold {
  filter: drop-shadow(0 0 6px #ffd700) drop-shadow(0 0 14px var(--accent-gold));
}

.particle-white {
  filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 10px #fff2b2);
}

.particle-crimson {
  filter: drop-shadow(0 0 6px var(--accent-crimson)) drop-shadow(0 0 14px #ff4d6d);
}

/* ==========================================================
   CENTER ROTATING REEL (ENLARGED TO 172PX - MAXIMUM HERO PRESENCE)
   ========================================================== */
.center-rotating-reel {
  position: relative;
  z-index: 5; /* In front of infinity sign (z-index: 3) & spools (z-index: 2) */
  width: 172px;
  height: 172px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #3e3321 40%, #151720 70%, var(--accent-crimson) 100%);
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.95), 
    0 0 25px var(--accent-gold-glow),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.center-rotating-reel:hover {
  transform: scale(1.04);
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.95), 
    0 0 32px rgba(229, 185, 84, 0.65);
}

/* The rotating vinyl disc element */
.reel-image-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    #0c0d12 0px,
    #0c0d12 2px,
    #141620 3px,
    #0c0d12 4px
  );
  border: 2px solid rgba(229, 185, 84, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateReel 8s linear infinite;
  animation-play-state: paused;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* Rotation is active when playing */
.spinning .reel-image-disc {
  animation-play-state: running;
}

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

/* Photo inside rotating disc (Crystal-clear Sidhu Moosewala archive portrait) */
.reel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.45s ease;
  filter: contrast(1.05) brightness(0.98);
}

/* Center Gold/Brass Spindle Hub */
.reel-center-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2b2, #ffd700 45%, #b8860b 80%, #3d2b00 100%);
  border: 2px solid #141005;
  box-shadow: 0 0 8px rgba(0,0,0,0.9), inset 0 1px 3px rgba(255,255,255,0.7);
  z-index: 4;
}

.reel-center-spindle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08090d;
}

/* Instagram Tag Pill inside cassette */
.reel-insta-pill {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 9, 14, 0.94);
  border: 1px solid var(--glass-border-gold);
  border-radius: 12px;
  padding: 1.5px 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-gold);
  z-index: 5;
  white-space: nowrap;
  letter-spacing: 0.6px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Cassette Bottom Trapezoid Notch (Houses song title for maximum reel space) */
.cassette-bottom-notch {
  height: 22%;
  background: linear-gradient(180deg, #14161f 0%, #0c0d12 100%);
  border-radius: 0 0 16px 16px;
  border-top: 1.5px solid rgba(229, 185, 84, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 10px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.85);
  box-sizing: border-box;
}

/* Tape guides / roller holes */
.notch-hole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.95);
  flex-shrink: 0;
}

.notch-roller {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #9d845e, #3e3220);
  border: 1px solid #14110b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

/* Sleek Golden Plaque for Song Title in the Notch */
.notch-title-strip {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 10px;
  background: linear-gradient(90deg, rgba(8, 9, 14, 0.95) 0%, rgba(26, 22, 14, 0.95) 50%, rgba(8, 9, 14, 0.95) 100%);
  border: 1px solid rgba(229, 185, 84, 0.45);
  border-radius: 7px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.9), 0 0 12px rgba(229, 185, 84, 0.2);
  overflow: hidden;
  box-sizing: border-box;
}

.notch-rec-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-crimson);
  flex-shrink: 0;
  animation: recPulse 2s infinite ease-in-out;
}

@keyframes recPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 12px var(--accent-crimson); }
}

.notch-title-strip .label-track-title {
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 0 12px rgba(229, 185, 84, 0.35);
  flex: 1;
  text-align: center;
  min-width: 0;
}

.notch-artist-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(229, 185, 84, 0.16);
  border: 1px solid rgba(229, 185, 84, 0.45);
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ==========================================================
   RESPONSIVE SCALING FOR CASSETTE
   ========================================================== */
@media (max-width: 600px) {
  .cassette-wrapper {
    max-width: min(360px, 92vw, 34dvh);
    margin: 0.1rem auto 0.15rem;
  }

  .label-brand-meta {
    gap: 4px;
    font-size: clamp(0.5rem, 1.8vw, 0.62rem);
    letter-spacing: 0.8px;
  }

  .label-brand-meta .brand-spec {
    display: none; /* Hide Chrome Type II on narrow mobile so MOOSE TAPE doesn't wrap */
  }

  .label-brand-meta .brand-divider:first-of-type {
    display: none;
  }

  .cassette-body {
    padding: 8px 10px 8px;
    border-radius: 14px;
  }

  .tape-spool {
    width: clamp(38px, 11vw, 48px);
    height: clamp(38px, 11vw, 48px);
  }

  /* Responsive mobile center reel */
  .center-rotating-reel {
    width: clamp(86px, 26vw, 110px);
    height: clamp(86px, 26vw, 110px);
  }

  .reel-center-spindle {
    width: 20px;
    height: 20px;
  }

  .label-side {
    font-size: 1.15rem;
  }

  .cassette-bottom-notch {
    height: 24%;
    padding: 0 8px;
    gap: 6px;
  }

  .notch-roller {
    width: 10px;
    height: 10px;
  }

  .notch-hole {
    width: 12px;
    height: 12px;
  }

  .notch-title-strip {
    height: 28px;
    padding: 1px 6px;
    gap: 5px;
  }

  .notch-title-strip .label-track-title {
    font-size: 0.8rem;
    letter-spacing: 0.8px;
  }

  .notch-artist-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .infinity-path-aura {
    stroke-width: 15px;
  }

  .infinity-path-tape {
    stroke-width: 8px;
  }

  .infinity-path-glow {
    stroke-width: 2.5px;
  }

  .infinity-path-dashed {
    stroke-width: 1.5px;
  }
}
