/**
 * Ambient Vinyl Music Player Styles
 * Emerald / Green Liquid Glass Aesthetic (ported from wonderful-lovelace)
 * Positioned in Bottom-Right Corner of Screen
 */

/* ==========================================================================
   1. Vinyl Disc Dock Container (Fixed Bottom Right)
   ========================================================================== */
.music-vinyl-container {
  --disk-size: 200px;
  --disk-radius: 100px;
  --bucket-radius: 104px;
  position: fixed;
  bottom: 0;
  right: 36px;
  left: auto;
  transform: translateY(50%);
  z-index: 100030;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.music-vinyl-container:hover,
.music-vinyl-container:focus-within,
.music-vinyl-container.is-hovered {
  transform: translateY(34%);
}

/* ==========================================================================
   2. Emerald Liquid Glass Spinning Vinyl Disc Button
   ========================================================================== */
.music-vinyl-button {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0.8;
  z-index: 99995;
  pointer-events: auto !important;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
}

.music-vinyl-container:hover .music-vinyl-button,
.music-vinyl-container:focus-within .music-vinyl-button,
.music-vinyl-button:focus-visible {
  opacity: 1;
}

.music-vinyl-button:active {
  transform: scale(0.95);
}

/* Vinyl Disc Wrapper (Hosts spinning disc button & hover track navigation) */
.music-vinyl-wrapper {
  position: relative;
  width: var(--disk-size, 200px);
  height: var(--disk-size, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* Translucent Next / Back Track Buttons on Hover */
.music-disc-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 20, 14, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-top: 1px solid rgba(167, 243, 208, 0.7);
  color: #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100035;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 12px rgba(16, 185, 129, 0.25);
  transition: 
    opacity 0.25s ease, 
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
    background 0.2s ease, 
    border-color 0.2s ease, 
    box-shadow 0.2s ease, 
    color 0.2s ease;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.music-disc-prev {
  left: 14px;
}

.music-disc-next {
  right: 14px;
}

.music-vinyl-container:hover .music-disc-nav-btn,
.music-vinyl-container:focus-within .music-disc-nav-btn,
.music-vinyl-container.is-hovered .music-disc-nav-btn {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.music-disc-nav-btn:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.14) !important;
  background: rgba(16, 185, 129, 0.42) !important;
  border-color: rgba(52, 211, 153, 0.95) !important;
  border-top-color: rgba(167, 243, 208, 1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 18px rgba(52, 211, 153, 0.65) !important;
}

.music-disc-nav-btn:active {
  transform: translateY(-50%) scale(0.94) !important;
}

.music-disc-nav-btn svg {
  display: block;
  pointer-events: none;
}

/* Vinyl Outer Disc Body with Emerald Liquid Glass Rim & Concentric Grooves */
.music-vinyl-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, #0e1e17 0%, #08150f 55%, #040c08 85%, #010403 100%);
  border: 3.5px solid rgba(52, 211, 153, 0.45);
  border-top: 3.5px solid rgba(167, 243, 208, 0.65);
  box-shadow: 
    0 -10px 32px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(16, 185, 129, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 0 18px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: music-vinyl-spin 8s linear infinite;
  animation-play-state: paused;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.music-vinyl-container.is-playing .music-vinyl-disc {
  animation-play-state: running;
  border-color: rgba(52, 211, 153, 0.85);
  border-top-color: rgba(167, 243, 208, 0.9);
  box-shadow: 
    0 -12px 35px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(16, 185, 129, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 0 18px rgba(0, 0, 0, 0.85);
}

/* Outer Ambient Emerald Pulse Ring when Playing */
.music-vinyl-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(52, 211, 153, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.music-vinyl-container.is-playing .music-vinyl-pulse-ring {
  opacity: 1;
  animation: music-vinyl-pulse 2.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Concentric Vinyl Grooves */
.music-vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.music-vinyl-groove-1 { inset: 8px; opacity: 0.45; }
.music-vinyl-groove-2 { inset: 17px; opacity: 0.35; border-color: rgba(255, 255, 255, 0.06); }
.music-vinyl-groove-3 { inset: 26px; opacity: 0.30; border-color: rgba(52, 211, 153, 0.15); }
.music-vinyl-groove-4 { inset: 35px; opacity: 0.25; border-color: rgba(255, 255, 255, 0.05); }
.music-vinyl-groove-5 { inset: 44px; opacity: 0.20; border-color: rgba(255, 255, 255, 0.04); }
.music-vinyl-groove-6 { inset: 53px; opacity: 0.15; border-color: rgba(52, 211, 153, 0.1); }

/* Glossy Liquid Glass Light Reflections */
.music-vinyl-reflection {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%, rgba(52, 211, 153, 0.08) 60%, transparent 100%);
  pointer-events: none;
}

/* Center Album Art / Liquid Glass Label */
.music-vinyl-center {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(52, 211, 153, 0.6);
  border-top: 2.5px solid rgba(167, 243, 208, 0.85);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  background: #08150f;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.music-vinyl-center-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
  pointer-events: none;
}

/* Center Metallic Spindle Hole */
.music-vinyl-spindle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #020604;
  border: 2px solid rgba(167, 243, 208, 0.9);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(52, 211, 153, 0.8);
  pointer-events: none;
  z-index: 2;
}


/* ==========================================================================
   3. Floating Ambient Details Card (Sleek Compact Controller)
   ========================================================================== */
.music-track-card {
  position: absolute;
  bottom: calc(100% + 18px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 0;
  max-width: min(90vw, 360px);
  /* Translucent dark with subtle amber/gold sheen (10% more transparency) */
  background: linear-gradient(
    135deg,
    rgba(22, 20, 16, 0.78) 0%,
    rgba(15, 18, 16, 0.82) 50%,
    rgba(8, 12, 10, 0.85) 100%
  );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-top: 1px solid rgba(245, 222, 179, 0.35);
  border-left: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 10px 18px 10px 10px;
  box-shadow: 
    0 16px 40px -8px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(212, 175, 55, 0.08),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 100035 !important;
  text-align: left;
  color: #f8fafc;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: 
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.3s ease,
    width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.38s ease;
  overflow: visible;
}

/* Subtle Specular Sheen Overlay */
.music-track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 175, 55, 0.03) 40%, transparent 60%);
  pointer-events: none;
}

.music-track-card.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.music-track-card.is-fading {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: 
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s ease;
}

/* Tail pointer pointing down to vinyl spindle */
.music-track-card-caret {
  position: absolute;
  bottom: -6px;
  right: 94px;
  left: auto;
  width: 12px;
  height: 12px;
  background: rgba(12, 15, 13, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transform: rotate(45deg);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Unified Single-Row Layout */
.music-track-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Artist Avatar Thumbnail Wrap (Circular 70x70) */
.music-card-thumb-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(52, 211, 153, 0.65);
  border-top: 2px solid rgba(167, 243, 208, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(16, 185, 129, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.music-track-card:hover .music-card-thumb-wrap {
  transform: scale(1.04);
  border-color: rgba(52, 211, 153, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.35);
}

.music-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
}

.music-card-thumb-fallback {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(52, 211, 153, 0.85);
  background: radial-gradient(circle, rgba(14, 30, 23, 0.95) 0%, rgba(4, 12, 8, 0.95) 100%);
}

/* Track Info: Title on line 1, Artist & Album on line 2 */
.music-card-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-right: 4px;
}

.music-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 215px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
  transition: max-width 0.38s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.music-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 215px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-card-artist {
  font-size: 0.88rem;
  font-weight: 600;
  color: #34d399;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.95;
}

.music-card-sep,
.music-card-album {
  display: none !important;
}

/* ==========================================================================
   Wikipedia Entry Panel & Expand State
   ========================================================================== */
.music-track-card.is-expanded {
  width: min(92vw, 440px);
  max-width: 440px;
  cursor: default;
  padding: 13px 15px 14px 13px;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 
    0 24px 56px -8px rgba(0, 0, 0, 0.88),
    0 0 28px rgba(52, 211, 153, 0.18),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
}

.music-track-card.is-expanded .music-card-title,
.music-track-card.is-expanded .music-card-meta {
  max-width: 330px;
}

.music-track-card-inner {
  cursor: pointer;
}

.music-track-card:hover .music-card-title {
  color: #6ee7b7;
}

/* Expandable Wikipedia panel: buttery-smooth CSS Grid accordion */
.music-card-wiki-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  position: relative;
  z-index: 2;
  cursor: default;
  transition: 
    grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s ease,
    margin-top 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    padding-top 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.music-track-card.is-expanded .music-card-wiki-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 11px;
  padding-top: 11px;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.music-card-wiki-panel-inner {
  min-height: 0;
  overflow: hidden;
}

/* Nice 6-line Shimmer Skeleton Loader */
.music-card-wiki-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 8px;
}

.music-wiki-loader-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}

.music-wiki-loader-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399, 0 0 16px rgba(52, 211, 153, 0.6);
  animation: musicWikiPulseDot 1.2s ease-in-out infinite;
}

@keyframes musicWikiPulseDot {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.music-wiki-loader-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #34d399;
  opacity: 0.85;
}

.music-wiki-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 6.5px;
}

.music-wiki-skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(52, 211, 153, 0.18) 45%,
    rgba(255, 255, 255, 0.24) 55%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 260% 100%;
  animation: musicWikiShimmer 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes musicWikiShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Wiki Content Header */
.music-card-wiki-content {
  display: flex;
  flex-direction: column;
}

.music-card-wiki-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  overflow: hidden;
}

.music-card-wiki-subject {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Translated from English Notice */
.music-card-wiki-notice {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px 0;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.32);
  color: #fde047;
  font-size: 0.73rem;
  line-height: 1.35;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.music-card-wiki-notice i {
  font-size: 0.78rem;
  color: #facc15;
  flex-shrink: 0;
  font-style: normal;
}

/* Wikipedia Excerpt Paragraph Clamped to Exactly 6 Lines */
.music-card-wiki-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.835rem;
  line-height: 1.54;
  color: rgba(241, 245, 249, 0.94);
  margin: 0 0 10px 0;
  user-select: text;
  -webkit-user-select: text;
}

/* Footer Link & Collapse Action */
.music-card-wiki-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.music-card-wiki-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-card-wiki-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.music-card-wiki-collapse-btn i {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

/* Wikipedia Link Pill Button (moved down from top header) */
.music-card-wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #34d399;
  text-decoration: none;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  border-radius: 999px;
  padding: 3px 11px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.music-card-wiki-link:hover {
  background: rgba(52, 211, 153, 0.26);
  border-color: rgba(52, 211, 153, 0.85);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.music-card-wiki-link i.fa-wikipedia-w {
  font-size: 0.76rem;
  color: #34d399;
  transition: color 0.2s ease;
}

.music-card-wiki-link:hover i.fa-wikipedia-w {
  color: #ffffff;
}

.music-card-wiki-link i.fa-external-link-alt {
  font-size: 0.66rem;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.music-card-wiki-link:hover i.fa-external-link-alt {
  opacity: 1;
  transform: translate(1px, -1px);
}

.music-card-wiki-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px;
  color: rgba(245, 222, 179, 0.75);
  font-size: 0.8rem;
}

/* Hide legacy card spectrograph & old dummy hud waveform */
.music-card-spectrograph,
.music-vinyl-button .hud-audio-waveform {
  display: none !important;
}

/* ==========================================================================
   Spinning Disk Spectrograph HUD (Integrated on Vinyl Disc Top Arc)
   ========================================================================== */
.music-vinyl-spectrograph {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  background: rgba(4, 14, 10, 0.82);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  border-top: 1.5px solid rgba(167, 243, 208, 0.85);
  border-radius: 8px;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(16, 185, 129, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 99998;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.music-vinyl-spectrograph .music-spectrograph-canvas {
  display: block;
  width: 52px;
  height: 22px;
  border-radius: 4px;
}

.music-vinyl-container.is-playing .music-vinyl-spectrograph {
  opacity: 1;
  border-color: rgba(52, 211, 153, 0.9);
  border-top-color: rgba(167, 243, 208, 0.98);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(16, 185, 129, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.music-vinyl-container:hover .music-vinyl-spectrograph,
.music-vinyl-container:focus-within .music-vinyl-spectrograph,
.music-vinyl-container.is-hovered .music-vinyl-spectrograph {
  opacity: 1;
}

/* ==========================================================================
   Floating Smoky Music Mood Buckets (Orbiting Around Vinyl Disc Perimeter)
   ========================================================================== */
.music-smoky-buckets-bar {
  display: none !important;
  pointer-events: none !important;
}

/* Expanded hover bridge disabled: strictly vinyl disc triggers hover */
.music-smoky-buckets-bar::before {
  display: none !important;
  pointer-events: none !important;
}

/* Ambient smoky aura glow around perimeter when hovered */
.music-smoky-buckets-bar::after {
  content: '';
  position: absolute;
  top: -105px;
  left: -115px;
  right: -45px;
  bottom: 20px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(
    ellipse at 50% 75%,
    rgba(52, 211, 153, 0.12) 0%,
    rgba(16, 185, 129, 0.04) 50%,
    transparent 74%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.music-vinyl-container:hover:not(.buckets-dismissed) .music-smoky-buckets-bar::after,
.music-vinyl-container:focus-within:not(.buckets-dismissed) .music-smoky-buckets-bar::after,
.music-vinyl-container.is-hovered:not(.buckets-dismissed) .music-smoky-buckets-bar::after {
  opacity: 1;
}

.music-vinyl-container.buckets-dismissed .music-smoky-buckets-bar::before {
  pointer-events: none !important;
}

.music-vinyl-container.buckets-dismissed .music-smoky-buckets-bar::after {
  opacity: 0 !important;
  transition: opacity 0.15s ease;
}

.smoky-bucket-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  margin: 0;
  background: rgba(8, 20, 16, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  outline: none !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: rgba(226, 232, 240, 0.78);
  font-family: var(--font-heading, sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  pointer-events: none;
  /* Trickle-up origin: compact radius emerging from the spinning disc surface */
  transform: translate(-50%, -50%) 
             rotate(calc(90deg - var(--bucket-angle, 90deg))) 
             translateY(calc(-1 * var(--disk-radius, 100px) * 0.55)) 
             rotate(calc(var(--bucket-angle, 90deg) - 90deg + var(--pill-tilt, 0deg))) 
             scale(0.2);
  transition: 
    opacity 0.16s ease-in,
    transform 0.20s cubic-bezier(0.4, 0, 1, 1),
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    text-shadow 0.2s ease;
  transition-delay: 0s;
  will-change: transform, opacity;
}

.music-vinyl-container:hover:not(.buckets-dismissed) .smoky-bucket-pill,
.music-vinyl-container:focus-within:not(.buckets-dismissed) .smoky-bucket-pill,
.music-vinyl-container.is-hovered:not(.buckets-dismissed) .smoky-bucket-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) 
             rotate(calc(90deg - var(--bucket-angle, 90deg))) 
             translateY(calc(-1 * var(--pill-radius, var(--bucket-radius, 132px)) * var(--pill-radius-scale, 1))) 
             rotate(calc(var(--bucket-angle, 90deg) - 90deg + var(--pill-tilt, 0deg))) 
             scale(1);
  transition: 
    opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.44s cubic-bezier(0.34, 1.48, 0.64, 1),
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    text-shadow 0.2s ease;
  transition-delay: calc(var(--smoke-index, 0) * 42ms);
}

.music-vinyl-container.buckets-dismissed .smoky-bucket-pill {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) 
             rotate(calc(90deg - var(--bucket-angle, 90deg))) 
             translateY(calc(-1 * var(--disk-radius, 100px) * 0.55)) 
             rotate(calc(var(--bucket-angle, 90deg) - 90deg + var(--pill-tilt, 0deg))) 
             scale(0.2) !important;
  transition: opacity 0.14s ease-out, transform 0.16s ease-out !important;
  transition-delay: 0s !important;
}

.smoky-bucket-pill:hover {
  transform: translate(-50%, -50%) 
             rotate(calc(90deg - var(--bucket-angle, 90deg))) 
             translateY(calc(-1 * var(--pill-radius, var(--bucket-radius, 132px)) * var(--pill-radius-scale, 1))) 
             rotate(calc(var(--bucket-angle, 90deg) - 90deg + var(--pill-tilt, 0deg))) 
             scale(1.12) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(52, 211, 153, 0.4) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.smoky-bucket-pill.is-active {
  color: #34d399 !important;
  background: rgba(5, 150, 105, 0.35) !important;
  border-color: rgba(52, 211, 153, 0.75) !important;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.8), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.smoky-bucket-pill.smoky-pill-quiet {
  color: rgba(148, 163, 184, 0.55);
  text-shadow: 
    0 0 8px rgba(148, 163, 184, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.9);
}

.smoky-bucket-pill.smoky-pill-quiet:hover {
  color: #f1f5f9 !important;
  text-shadow: 
    0 0 12px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(148, 163, 184, 0.45);
  filter: drop-shadow(0 0 10px rgba(148, 163, 184, 0.4));
}

.smoky-bucket-pill.smoky-pill-quiet.is-active {
  color: #e2e8f0 !important;
  text-shadow: 
    0 0 10px rgba(226, 232, 240, 0.9),
    0 0 22px rgba(148, 163, 184, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.95);
  filter: drop-shadow(0 0 12px rgba(203, 213, 225, 0.65));
}

.smoky-bucket-title {
  display: inline-block;
  line-height: 1.2;
}

/* ==========================================================================
   4. Keyframe Animations
   ========================================================================== */
@keyframes music-vinyl-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes music-vinyl-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.18;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@media (max-height: 760px) {
  .music-vinyl-container {
    right: 24px;
    transform: translateY(54%);
  }

  .music-vinyl-container:hover,
  .music-vinyl-container:focus-within,
  .music-vinyl-container.is-hovered {
    transform: translateY(44%);
  }

  .music-vinyl-button {
    width: 140px;
    height: 140px;
  }

  .music-vinyl-center {
    width: 56px;
    height: 56px;
  }

  .music-track-card {
    padding: 7px 12px;
    bottom: calc(100% + 12px);
  }

  .music-track-card-caret {
    right: 64px;
  }
}

@media (max-height: 560px) {
  .music-vinyl-container {
    right: 14px;
    transform: translateY(58%);
  }

  .music-vinyl-button {
    width: 110px;
    height: 110px;
  }

  .music-vinyl-center {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .music-vinyl-container {
    --disk-size: 80px !important;
    --disk-radius: 40px !important;
    --bucket-radius: 44px !important;
    left: 50% !important;
    right: auto !important;
    align-items: center !important;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 100030 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  .music-vinyl-container:hover,
  .music-vinyl-container:focus-within,
  .music-vinyl-container.is-hovered {
    transform: translateX(-50%) translateY(-6px) !important;
  }

  .music-vinyl-button {
    width: 80px !important;
    height: 80px !important;
  }

  .music-vinyl-center {
    width: 32px !important;
    height: 32px !important;
  }

  .music-vinyl-spindle {
    width: 6px !important;
    height: 6px !important;
  }

  .music-track-card {
    padding: 8px 16px 8px 8px;
    border-radius: 15px;
    width: max-content;
    max-width: calc(100vw - 32px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(100% + 20px);
  }

  .music-track-card-caret {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .music-track-card-inner {
    gap: 12px;
  }

  .music-card-thumb-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }

  .music-card-thumb-fallback {
    font-size: 24px;
  }

  .music-card-info {
    min-width: 0;
  }

  .music-card-title {
    font-size: 0.95rem;
    max-width: 170px;
  }

  .music-card-meta {
    max-width: 170px;
    gap: 4px;
  }

  .music-card-artist {
    font-size: 0.80rem;
    max-width: 90px;
  }

  .music-card-album {
    font-size: 0.75rem;
    max-width: 80px;
  }

  .music-vinyl-spectrograph {
    top: 12px;
    padding: 2px 4px;
    border-radius: 6px;
  }

  .music-vinyl-spectrograph .music-spectrograph-canvas {
    width: 44px;
    height: 18px;
  }

  .music-disc-nav-btn {
    width: 28px;
    height: 28px;
  }

  .music-disc-prev {
    left: 8px;
  }

  .music-disc-next {
    right: 8px;
  }

  .smoky-bucket-pill {
    --pill-radius-scale: 0.72;
    padding: 2px 5px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .music-vinyl-container {
    --disk-size: 80px !important;
    --disk-radius: 40px !important;
    --bucket-radius: 44px !important;
    left: 50% !important;
    right: auto !important;
    align-items: center !important;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 100030 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  .music-vinyl-container:hover,
  .music-vinyl-container:focus-within,
  .music-vinyl-container.is-hovered {
    transform: translateX(-50%) translateY(-6px) !important;
  }

  .music-vinyl-button {
    width: 80px !important;
    height: 80px !important;
  }

  .music-vinyl-center {
    width: 32px !important;
    height: 32px !important;
  }

  .music-vinyl-spindle {
    width: 6px !important;
    height: 6px !important;
  }

  .smoky-bucket-pill {
    --pill-radius-scale: 0.58;
    padding: 2px 4px;
    font-size: 9px;
  }

  .music-vinyl-spindle {
    width: 8px;
    height: 8px;
  }

  .music-track-card {
    padding: 7px 14px 7px 7px;
    border-radius: 13px;
    width: max-content;
    max-width: calc(100vw - 20px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(100% + 10px);
  }

  .music-track-card-caret {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .music-card-thumb-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .music-card-thumb-fallback {
    font-size: 20px;
  }

  .music-card-title {
    font-size: 0.88rem;
    max-width: 140px;
  }

  .music-card-meta {
    max-width: 140px;
    gap: 3px;
  }

  .music-card-artist {
    font-size: 0.75rem;
    max-width: 75px;
  }

  .music-card-album {
    font-size: 0.70rem;
    max-width: 65px;
  }

  .music-vinyl-spectrograph {
    padding: 2px 3px;
    border-radius: 5px;
  }

  .music-vinyl-spectrograph .music-spectrograph-canvas {
    width: 36px;
    height: 15px;
  }
}

/* ==========================================================================
   Music Player - Light Mode Overrides
   ========================================================================== */
[data-theme="light"] .music-track-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .music-track-card-caret {
  background: rgba(255, 255, 255, 0.84);
  border-right-color: rgba(15, 23, 42, 0.12);
  border-bottom-color: rgba(15, 23, 42, 0.12);
  box-shadow: 2px 2px 5px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .music-card-thumb-wrap {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(5, 150, 105, 0.45);
  border-top-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 0 10px rgba(5, 150, 105, 0.15);
}

[data-theme="light"] .music-card-thumb-fallback {
  color: #059669;
  background: #f1f5f9;
}

[data-theme="light"] .music-card-title {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .music-card-sep {
  color: rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .music-card-artist {
  color: #047857;
}

[data-theme="light"] .music-ctrl-btn {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .music-ctrl-btn:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

[data-theme="light"] .music-ctrl-btn.btn-play-pause.is-dominant {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .music-ctrl-btn.btn-play-pause.is-dominant:hover {
  background: #047857;
}

[data-theme="light"] .music-ctrl-btn.btn-mute.is-secondary {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
}

[data-theme="light"] .music-ctrl-btn.btn-mute.is-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

[data-theme="light"] .music-disc-nav-btn {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(5, 150, 105, 0.4);
  border-top-color: rgba(16, 185, 129, 0.7);
  color: #047857;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15), 0 0 8px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .music-disc-nav-btn:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: rgba(5, 150, 105, 0.85) !important;
  border-top-color: rgba(5, 150, 105, 0.95) !important;
  color: #065f46 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2), 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

/* ==========================================================================
   5. Dynamic Bucket Themes (Subtle, Tailored, Restricted to Music Player)
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME: 80s (Compact Disc / CD-ROM & Subtle Disco Lights)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-disc {
  background: 
    radial-gradient(circle at 50% 50%, #f8fafc 0%, #cbd5e1 32%, #94a3b8 58%, #64748b 80%, #334155 100%) !important;
  border: 3.5px solid rgba(226, 232, 240, 0.85) !important;
  border-top: 3.5px solid #ffffff !important;
  box-shadow: 
    0 -10px 32px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(244, 63, 94, 0.35),
    0 0 45px rgba(6, 182, 212, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.95),
    inset 0 0 16px rgba(71, 85, 105, 0.55) !important;
}

.music-vinyl-container[data-music-theme="80s"].is-playing .music-vinyl-disc {
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    0 -12px 35px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(244, 63, 94, 0.5),
    0 0 50px rgba(6, 182, 212, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 1),
    inset 0 0 16px rgba(71, 85, 105, 0.7) !important;
}

/* Holographic Rainbow Prism Diffraction of an Optical CD */
.music-cd-rainbow-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2;
}

.music-vinyl-container[data-music-theme="80s"] .music-cd-rainbow-sheen {
  opacity: 0.7;
  visibility: visible;
  background: conic-gradient(
    from 45deg at 50% 50%,
    transparent 0deg,
    rgba(244, 63, 94, 0.45) 40deg,
    rgba(234, 179, 8, 0.45) 75deg,
    rgba(16, 185, 129, 0.45) 110deg,
    rgba(6, 182, 212, 0.45) 150deg,
    transparent 180deg,
    rgba(168, 85, 247, 0.45) 220deg,
    rgba(244, 63, 94, 0.45) 260deg,
    rgba(56, 189, 248, 0.45) 300deg,
    transparent 360deg
  );
  mix-blend-mode: color-dodge;
  filter: blur(1.5px);
}

.music-vinyl-container[data-music-theme="80s"].is-playing .music-cd-rainbow-sheen {
  opacity: 0.88;
}

/* CD Data Micro-Tracks / Optical Grooves */
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-groove {
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.18) !important;
}
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-groove-2 { border-color: rgba(6, 182, 212, 0.3) !important; }
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-groove-3 { border-color: rgba(244, 63, 94, 0.3) !important; }
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-groove-4 { border-color: rgba(168, 85, 247, 0.3) !important; }

/* CD Inner Clear Polycarbonate Clamp Ring */
.music-cd-clamp-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5), 0 0 6px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(203, 213, 225, 0.12) 70%, transparent 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.music-vinyl-container[data-music-theme="80s"] .music-cd-clamp-ring {
  opacity: 1;
  visibility: visible;
}

.music-vinyl-container[data-music-theme="80s"] .music-vinyl-center {
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.9) !important;
  border-top-color: #ffffff !important;
  background: radial-gradient(circle, #e2e8f0 0%, #94a3b8 100%) !important;
  box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 8px rgba(0, 0, 0, 0.35) !important;
}

.music-vinyl-container[data-music-theme="80s"] .music-vinyl-spindle {
  border-color: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(244, 63, 94, 0.8) !important;
}

/* Subtle Disco Lights (strictly restricted inside the spinning disc) */
.music-disco-lights {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 3;
}

.music-vinyl-container[data-music-theme="80s"] .music-disco-lights,
.music-vinyl-container[data-music-theme="80s-dance"] .music-disco-lights,
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .music-disco-lights {
  opacity: 0.65;
  visibility: visible;
}

.music-vinyl-container[data-music-theme="80s"].is-playing .music-disco-lights,
.music-vinyl-container[data-music-theme="80s-dance"].is-playing .music-disco-lights,
.music-vinyl-container[data-music-theme="upbeat-90s-dance"].is-playing .music-disco-lights {
  opacity: 0.95;
}

.music-disco-lights .disco-beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, opacity;
}

.music-disco-lights .beam-1 {
  top: 10%;
  left: 15%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.55) 0%, rgba(244, 63, 94, 0.15) 50%, transparent 75%);
  animation: disco-beam-dance-1 5s ease-in-out infinite alternate;
}

.music-disco-lights .beam-2 {
  bottom: 12%;
  right: 14%;
  width: 65px;
  height: 65px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.55) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 75%);
  animation: disco-beam-dance-2 6s ease-in-out infinite alternate;
}

.music-disco-lights .beam-3 {
  top: 25%;
  right: 20%;
  width: 55px;
  height: 55px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0.12) 50%, transparent 75%);
  animation: disco-beam-dance-3 4.2s ease-in-out infinite alternate;
}

.music-disco-lights .beam-4 {
  bottom: 25%;
  left: 20%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(168, 85, 247, 0.12) 50%, transparent 75%);
  animation: disco-beam-dance-4 5.5s ease-in-out infinite alternate;
}

.music-disco-lights .disco-center-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(244, 63, 94, 0.16) 35%, rgba(6, 182, 212, 0.12) 55%, transparent 72%);
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: disco-flare-pulse 3s ease-in-out infinite;
}

@keyframes disco-beam-dance-1 {
  0%   { transform: translate(0, 0) scale(0.9); opacity: 0.5; }
  50%  { transform: translate(35px, 25px) scale(1.15); opacity: 0.75; }
  100% { transform: translate(15px, 45px) scale(1); opacity: 0.6; }
}

@keyframes disco-beam-dance-2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%  { transform: translate(-30px, -20px) scale(1.2); opacity: 0.8; }
  100% { transform: translate(-10px, -35px) scale(0.95); opacity: 0.55; }
}

@keyframes disco-beam-dance-3 {
  0%   { transform: translate(0, 0) scale(0.85); opacity: 0.45; }
  50%  { transform: translate(-25px, 20px) scale(1.1); opacity: 0.7; }
  100% { transform: translate(-15px, -15px) scale(0.95); opacity: 0.5; }
}

@keyframes disco-beam-dance-4 {
  0%   { transform: translate(0, 0) scale(1.05); opacity: 0.5; }
  50%  { transform: translate(25px, -25px) scale(0.9); opacity: 0.75; }
  100% { transform: translate(35px, 10px) scale(1.15); opacity: 0.6; }
}

@keyframes disco-flare-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.35; }
  50%      { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.music-vinyl-container[data-music-theme="80s"] .music-vinyl-pulse-ring {
  border-color: rgba(244, 63, 94, 0.65) !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45), 0 0 28px rgba(6, 182, 212, 0.3) !important;
}

.music-vinyl-container[data-music-theme="80s"] .hud-wave-bar {
  background: linear-gradient(to top, #f43f5e, #a855f7, #06b6d4) !important;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.7) !important;
}

.music-vinyl-container[data-music-theme="80s"] .smoky-bucket-pill[data-bucket-id="80s"].is-active {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.28) !important;
  border-color: rgba(244, 63, 94, 0.75) !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95) !important;
}

/* --------------------------------------------------------------------------
   THEME: TECHNO / TECHNO FEEL GOOD (Emerald Cyberpunk)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="techno"] .music-vinyl-disc,
.music-vinyl-container[data-music-theme="techno-feel-good"] .music-vinyl-disc {
  background: radial-gradient(circle, #0e1e17 0%, #08150f 55%, #040c08 85%, #010403 100%) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(16, 185, 129, 0.35) !important;
}
.music-vinyl-container[data-music-theme="techno"] .music-vinyl-pulse-ring,
.music-vinyl-container[data-music-theme="techno-feel-good"] .music-vinyl-pulse-ring {
  border-color: rgba(52, 211, 153, 0.65) !important;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.4) !important;
}
.music-vinyl-container[data-music-theme="techno"] .hud-wave-bar,
.music-vinyl-container[data-music-theme="techno-feel-good"] .hud-wave-bar {
  background: #34d399 !important;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.7) !important;
}

/* --------------------------------------------------------------------------
   THEME: CHILL (Warm Sunset Amber / Rose Gold)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="chill"] .music-vinyl-disc {
  background: radial-gradient(circle, #1f140e 0%, #170d08 55%, #0c0704 85%, #040201 100%) !important;
  border-color: rgba(251, 146, 60, 0.65) !important;
  border-top-color: rgba(254, 215, 170, 0.85) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(251, 146, 60, 0.3) !important;
}
.music-vinyl-container[data-music-theme="chill"] .music-vinyl-groove {
  border-color: rgba(251, 146, 60, 0.15) !important;
}
.music-vinyl-container[data-music-theme="chill"] .music-vinyl-pulse-ring {
  border-color: rgba(251, 146, 60, 0.65) !important;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.35) !important;
}
.music-vinyl-container[data-music-theme="chill"] .hud-wave-bar {
  background: linear-gradient(to top, #ea580c, #f59e0b) !important;
  box-shadow: 0 0 6px rgba(251, 146, 60, 0.7) !important;
}
.music-vinyl-container[data-music-theme="chill"] .smoky-bucket-pill[data-bucket-id="chill"].is-active {
  color: #fb923c !important;
  background: rgba(251, 146, 60, 0.28) !important;
  border-color: rgba(251, 146, 60, 0.75) !important;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.5) !important;
}

/* --------------------------------------------------------------------------
   THEME: TECHNO-CHILL (Deep Violet / Indigo)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="techno-chill"] .music-vinyl-disc {
  background: radial-gradient(circle, #140e24 0%, #0d0918 55%, #06040c 85%, #020104 100%) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  border-top-color: rgba(216, 180, 254, 0.85) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(168, 85, 247, 0.3) !important;
}
.music-vinyl-container[data-music-theme="techno-chill"] .music-vinyl-groove {
  border-color: rgba(168, 85, 247, 0.15) !important;
}
.music-vinyl-container[data-music-theme="techno-chill"] .music-vinyl-pulse-ring {
  border-color: rgba(168, 85, 247, 0.65) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35) !important;
}
.music-vinyl-container[data-music-theme="techno-chill"] .hud-wave-bar {
  background: linear-gradient(to top, #7c3aed, #a855f7) !important;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.7) !important;
}
.music-vinyl-container[data-music-theme="techno-chill"] .smoky-bucket-pill[data-bucket-id="techno-chill"].is-active {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.28) !important;
  border-color: rgba(168, 85, 247, 0.75) !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5) !important;
}

/* --------------------------------------------------------------------------
   THEME: AMBIENT (Deep Space Aurora Sapphire / Teal)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="ambient"] .music-vinyl-disc {
  background: radial-gradient(circle, #0b1928 0%, #06101c 55%, #03080e 85%, #010305 100%) !important;
  border-color: rgba(56, 189, 248, 0.65) !important;
  border-top-color: rgba(186, 230, 253, 0.85) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.3) !important;
}
.music-vinyl-container[data-music-theme="ambient"] .music-vinyl-groove {
  border-color: rgba(56, 189, 248, 0.15) !important;
}
.music-vinyl-container[data-music-theme="ambient"] .music-vinyl-pulse-ring {
  border-color: rgba(56, 189, 248, 0.65) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}
.music-vinyl-container[data-music-theme="ambient"] .hud-wave-bar {
  background: linear-gradient(to top, #0284c7, #38bdf8) !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7) !important;
}
.music-vinyl-container[data-music-theme="ambient"] .smoky-bucket-pill[data-bucket-id="ambient"].is-active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.28) !important;
  border-color: rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5) !important;
}

/* --------------------------------------------------------------------------
   THEME: FEEL GOOD ROCK (Vintage Brass & Warm Sunburst)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="feel-good-rock"] .music-vinyl-disc {
  background: radial-gradient(circle, #241607 0%, #170d04 55%, #0b0602 85%, #030100 100%) !important;
  border-color: rgba(245, 158, 11, 0.75) !important;
  border-top-color: rgba(253, 230, 138, 0.9) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.35) !important;
}
.music-vinyl-container[data-music-theme="feel-good-rock"] .music-vinyl-groove {
  border-color: rgba(245, 158, 11, 0.18) !important;
}
.music-vinyl-container[data-music-theme="feel-good-rock"] .music-vinyl-pulse-ring {
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}
.music-vinyl-container[data-music-theme="feel-good-rock"] .hud-wave-bar {
  background: linear-gradient(to top, #d97706, #fbbf24) !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7) !important;
}
.music-vinyl-container[data-music-theme="feel-good-rock"] .smoky-bucket-pill[data-bucket-id="feel-good-rock"].is-active {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5) !important;
}

/* --------------------------------------------------------------------------
   THEME: SOMBRE (Moody Charcoal / Platinum Noir)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="sombre"] .music-vinyl-disc,
.music-vinyl-container[data-music-theme="somber"] .music-vinyl-disc {
  background: radial-gradient(circle, #1a1a1e 0%, #111114 55%, #0a0a0c 85%, #040405 100%) !important;
  border-color: rgba(148, 163, 184, 0.55) !important;
  border-top-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(148, 163, 184, 0.2) !important;
}
.music-vinyl-container[data-music-theme="sombre"] .music-vinyl-groove,
.music-vinyl-container[data-music-theme="somber"] .music-vinyl-groove {
  border-color: rgba(148, 163, 184, 0.12) !important;
}
.music-vinyl-container[data-music-theme="sombre"] .music-vinyl-pulse-ring,
.music-vinyl-container[data-music-theme="somber"] .music-vinyl-pulse-ring {
  border-color: rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.25) !important;
}
.music-vinyl-container[data-music-theme="sombre"] .hud-wave-bar,
.music-vinyl-container[data-music-theme="somber"] .hud-wave-bar {
  background: linear-gradient(to top, #475569, #94a3b8) !important;
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.5) !important;
}
.music-vinyl-container[data-music-theme="sombre"] .smoky-bucket-pill[data-bucket-id="sombre"].is-active,
.music-vinyl-container[data-music-theme="somber"] .smoky-bucket-pill[data-bucket-id="sombre"].is-active,
.music-vinyl-container[data-music-theme="sombre"] .smoky-bucket-pill[data-bucket-id="somber"].is-active,
.music-vinyl-container[data-music-theme="somber"] .smoky-bucket-pill[data-bucket-id="somber"].is-active {
  color: #e2e8f0 !important;
  background: rgba(148, 163, 184, 0.25) !important;
  border-color: rgba(148, 163, 184, 0.7) !important;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.4) !important;
}

/* --------------------------------------------------------------------------
   THEME: ELECTRONIC (Cyberpunk Cyan & Ultraviolet)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="electronic"] .music-vinyl-disc {
  background: radial-gradient(circle, #081a24 0%, #041018 55%, #02080c 85%, #010305 100%) !important;
  border-color: rgba(6, 182, 212, 0.75) !important;
  border-top-color: rgba(103, 232, 249, 0.95) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65), 0 0 30px rgba(6, 182, 212, 0.45) !important;
}
.music-vinyl-container[data-music-theme="electronic"] .music-vinyl-groove {
  border-color: rgba(6, 182, 212, 0.2) !important;
}
.music-vinyl-container[data-music-theme="electronic"] .music-vinyl-pulse-ring {
  border-color: rgba(6, 182, 212, 0.7) !important;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45), 0 0 30px rgba(168, 85, 247, 0.3) !important;
}
.music-vinyl-container[data-music-theme="electronic"] .hud-wave-bar {
  background: linear-gradient(to top, #0891b2, #22d3ee) !important;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.8) !important;
}
.music-vinyl-container[data-music-theme="electronic"] .smoky-bucket-pill[data-bucket-id="electronic"].is-active {
  color: #22d3ee !important;
  background: rgba(6, 182, 212, 0.28) !important;
  border-color: rgba(6, 182, 212, 0.75) !important;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.5) !important;
}

/* --------------------------------------------------------------------------
   THEME: QUIET (Frosted Glass Smoke)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="quiet"] .music-vinyl-disc {
  background: radial-gradient(circle, #0f172a 0%, #0a0f1d 55%, #050810 85%, #020307 100%) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6) !important;
}
.music-vinyl-container[data-music-theme="quiet"] .music-vinyl-groove {
  border-color: rgba(148, 163, 184, 0.08) !important;
}

/* Theme overrides for spectrograph on spinning disk */
.music-vinyl-container[data-music-theme="80s"] .music-vinyl-spectrograph {
  border-color: rgba(244, 63, 94, 0.65);
  border-top-color: rgba(6, 182, 212, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(244, 63, 94, 0.4);
}
.music-vinyl-container[data-music-theme="chill"] .music-vinyl-spectrograph {
  border-color: rgba(251, 146, 60, 0.65);
  border-top-color: rgba(254, 215, 170, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(251, 146, 60, 0.4);
}
.music-vinyl-container[data-music-theme="techno-chill"] .music-vinyl-spectrograph {
  border-color: rgba(168, 85, 247, 0.65);
  border-top-color: rgba(216, 180, 254, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(168, 85, 247, 0.4);
}
.music-vinyl-container[data-music-theme="ambient"] .music-vinyl-spectrograph {
  border-color: rgba(56, 189, 248, 0.65);
  border-top-color: rgba(186, 230, 253, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(56, 189, 248, 0.4);
}
.music-vinyl-container[data-music-theme="feel-good-rock"] .music-vinyl-spectrograph {
  border-color: rgba(245, 158, 11, 0.65);
  border-top-color: rgba(253, 230, 138, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(245, 158, 11, 0.4);
}
.music-vinyl-container[data-music-theme="sombre"] .music-vinyl-spectrograph,
.music-vinyl-container[data-music-theme="somber"] .music-vinyl-spectrograph {
  border-color: rgba(148, 163, 184, 0.55);
  border-top-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 12px rgba(148, 163, 184, 0.25);
}
.music-vinyl-container[data-music-theme="electronic"] .music-vinyl-spectrograph {
  border-color: rgba(6, 182, 212, 0.65);
  border-top-color: rgba(103, 232, 249, 0.85);
}

/* Theme overrides for translucent hover navigation buttons */
.music-vinyl-container[data-music-theme="80s"] .music-disc-nav-btn {
  border-color: rgba(244, 63, 94, 0.55);
  border-top-color: rgba(6, 182, 212, 0.85);
  color: #fca5a5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(244, 63, 94, 0.35);
}
.music-vinyl-container[data-music-theme="80s"] .music-disc-nav-btn:hover {
  background: rgba(244, 63, 94, 0.35) !important;
  border-color: rgba(244, 63, 94, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(244, 63, 94, 0.6) !important;
}

.music-vinyl-container[data-music-theme="chill"] .music-disc-nav-btn {
  border-color: rgba(251, 146, 60, 0.55);
  border-top-color: rgba(254, 215, 170, 0.85);
  color: #fed7aa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(251, 146, 60, 0.35);
}
.music-vinyl-container[data-music-theme="chill"] .music-disc-nav-btn:hover {
  background: rgba(251, 146, 60, 0.35) !important;
  border-color: rgba(251, 146, 60, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(251, 146, 60, 0.6) !important;
}

.music-vinyl-container[data-music-theme="techno-chill"] .music-disc-nav-btn {
  border-color: rgba(168, 85, 247, 0.55);
  border-top-color: rgba(216, 180, 254, 0.85);
  color: #e9d5ff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(168, 85, 247, 0.35);
}
.music-vinyl-container[data-music-theme="techno-chill"] .music-disc-nav-btn:hover {
  background: rgba(168, 85, 247, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(168, 85, 247, 0.6) !important;
}

.music-vinyl-container[data-music-theme="ambient"] .music-disc-nav-btn {
  border-color: rgba(56, 189, 248, 0.55);
  border-top-color: rgba(186, 230, 253, 0.85);
  color: #bae6fd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 12px rgba(56, 189, 248, 0.35);
}
.music-vinyl-container[data-music-theme="ambient"] .music-disc-nav-btn:hover {
  background: rgba(56, 189, 248, 0.35) !important;
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 16px rgba(56, 189, 248, 0.6) !important;
}

/* --------------------------------------------------------------------------
   THEME: 80s-ROCK (Crimson Arena Rock)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="80s-rock"] .music-vinyl-disc {
  background: radial-gradient(circle, #240c12 0%, #17070b 55%, #0d0305 85%, #040102 100%) !important;
  border-color: rgba(251, 113, 133, 0.7) !important;
  border-top-color: rgba(254, 205, 211, 0.9) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 28px rgba(244, 63, 94, 0.4) !important;
}
.music-vinyl-container[data-music-theme="80s-rock"] .music-vinyl-groove {
  border-color: rgba(251, 113, 133, 0.16) !important;
}
.music-vinyl-container[data-music-theme="80s-rock"] .music-vinyl-pulse-ring {
  border-color: rgba(251, 113, 133, 0.7) !important;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.45) !important;
}
.music-vinyl-container[data-music-theme="80s-rock"] .hud-wave-bar {
  background: linear-gradient(to top, #e11d48, #fb7185) !important;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.75) !important;
}
.music-vinyl-container[data-music-theme="80s-rock"] .music-vinyl-spectrograph {
  border-color: rgba(251, 113, 133, 0.7);
  border-top-color: rgba(254, 205, 211, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(244, 63, 94, 0.4);
}

/* --------------------------------------------------------------------------
   THEME: 80s-DANCE (Retro Disco Neon Fuchsia & Cyan)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="80s-dance"] .music-vinyl-disc {
  background: radial-gradient(circle, #240c1e 0%, #170713 55%, #0b0309 85%, #030103 100%) !important;
  border-color: rgba(244, 114, 182, 0.75) !important;
  border-top-color: rgba(251, 207, 232, 0.95) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 32px rgba(236, 72, 153, 0.45) !important;
}
.music-vinyl-container[data-music-theme="80s-dance"] .music-vinyl-groove {
  border-color: rgba(244, 114, 182, 0.18) !important;
}
.music-vinyl-container[data-music-theme="80s-dance"] .music-vinyl-pulse-ring {
  border-color: rgba(244, 114, 182, 0.75) !important;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.5) !important;
}
.music-vinyl-container[data-music-theme="80s-dance"] .hud-wave-bar {
  background: linear-gradient(to top, #db2777, #f472b6) !important;
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.8) !important;
}
.music-vinyl-container[data-music-theme="80s-dance"] .music-vinyl-spectrograph {
  border-color: rgba(244, 114, 182, 0.75);
  border-top-color: rgba(6, 182, 212, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 16px rgba(236, 72, 153, 0.45);
}

/* --------------------------------------------------------------------------
   THEME: UPBEAT-90s-DANCE (Eurodance Cyber Gold / Electric Lemon)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .music-vinyl-disc {
  background: radial-gradient(circle, #242007 0%, #171404 55%, #0b0902 85%, #030300 100%) !important;
  border-color: rgba(250, 204, 21, 0.8) !important;
  border-top-color: rgba(254, 240, 138, 0.95) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 179, 8, 0.4) !important;
}
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .music-vinyl-groove {
  border-color: rgba(250, 204, 21, 0.18) !important;
}
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .music-vinyl-pulse-ring {
  border-color: rgba(250, 204, 21, 0.75) !important;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.45) !important;
}
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .hud-wave-bar {
  background: linear-gradient(to top, #ca8a04, #fde047) !important;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.85) !important;
}
.music-vinyl-container[data-music-theme="upbeat-90s-dance"] .music-vinyl-spectrograph {
  border-color: rgba(250, 204, 21, 0.75);
  border-top-color: rgba(254, 240, 138, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(234, 179, 8, 0.45);
}

/* --------------------------------------------------------------------------
   THEME: 70s-ROCK (Vintage Tube Amp Warm Amber)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="70s-rock"] .music-vinyl-disc {
  background: radial-gradient(circle, #221405 0%, #150c03 55%, #0a0601 85%, #030200 100%) !important;
  border-color: rgba(245, 158, 11, 0.75) !important;
  border-top-color: rgba(253, 230, 138, 0.9) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 28px rgba(245, 158, 11, 0.35) !important;
}
.music-vinyl-container[data-music-theme="70s-rock"] .music-vinyl-groove {
  border-color: rgba(245, 158, 11, 0.16) !important;
}
.music-vinyl-container[data-music-theme="70s-rock"] .music-vinyl-pulse-ring {
  border-color: rgba(245, 158, 11, 0.7) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}
.music-vinyl-container[data-music-theme="70s-rock"] .hud-wave-bar {
  background: linear-gradient(to top, #b45309, #f59e0b) !important;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.75) !important;
}
.music-vinyl-container[data-music-theme="70s-rock"] .music-vinyl-spectrograph {
  border-color: rgba(245, 158, 11, 0.7);
  border-top-color: rgba(253, 230, 138, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(245, 158, 11, 0.35);
}

/* --------------------------------------------------------------------------
   THEME: 70s-FEEL-GOOD-ROCK (Pacific Retro Turquoise)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="70s-feel-good-rock"] .music-vinyl-disc {
  background: radial-gradient(circle, #071c1f 0%, #041215 55%, #02090b 85%, #010304 100%) !important;
  border-color: rgba(34, 211, 238, 0.7) !important;
  border-top-color: rgba(165, 243, 252, 0.9) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 28px rgba(6, 182, 212, 0.35) !important;
}
.music-vinyl-container[data-music-theme="70s-feel-good-rock"] .music-vinyl-groove {
  border-color: rgba(34, 211, 238, 0.16) !important;
}
.music-vinyl-container[data-music-theme="70s-feel-good-rock"] .music-vinyl-pulse-ring {
  border-color: rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4) !important;
}
.music-vinyl-container[data-music-theme="70s-feel-good-rock"] .hud-wave-bar {
  background: linear-gradient(to top, #0891b2, #22d3ee) !important;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.8) !important;
}
.music-vinyl-container[data-music-theme="70s-feel-good-rock"] .music-vinyl-spectrograph {
  border-color: rgba(34, 211, 238, 0.7);
  border-top-color: rgba(165, 243, 252, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(6, 182, 212, 0.35);
}

/* --------------------------------------------------------------------------
   THEME: 70s-LOVE-SONGS (Velvet Sunset Rose)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="70s-love-songs"] .music-vinyl-disc {
  background: radial-gradient(circle, #240f17 0%, #17090f 55%, #0b0407 85%, #030102 100%) !important;
  border-color: rgba(251, 113, 133, 0.65) !important;
  border-top-color: rgba(254, 205, 211, 0.88) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 28px rgba(244, 63, 94, 0.35) !important;
}
.music-vinyl-container[data-music-theme="70s-love-songs"] .music-vinyl-groove {
  border-color: rgba(251, 113, 133, 0.16) !important;
}
.music-vinyl-container[data-music-theme="70s-love-songs"] .music-vinyl-pulse-ring {
  border-color: rgba(251, 113, 133, 0.65) !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35) !important;
}
.music-vinyl-container[data-music-theme="70s-love-songs"] .hud-wave-bar {
  background: linear-gradient(to top, #e11d48, #fda4af) !important;
  box-shadow: 0 0 6px rgba(251, 113, 133, 0.7) !important;
}
.music-vinyl-container[data-music-theme="70s-love-songs"] .music-vinyl-spectrograph {
  border-color: rgba(251, 113, 133, 0.65);
  border-top-color: rgba(254, 205, 211, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(244, 63, 94, 0.35);
}

/* --------------------------------------------------------------------------
   THEME: 80s-LOVE-SONGS (Synthwave Ruby Heart)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="80s-love-songs"] .music-vinyl-disc {
  background: radial-gradient(circle, #270b14 0%, #19060c 55%, #0c0205 85%, #030001 100%) !important;
  border-color: rgba(244, 63, 94, 0.75) !important;
  border-top-color: rgba(254, 205, 211, 0.95) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 32px rgba(225, 29, 72, 0.45) !important;
}
.music-vinyl-container[data-music-theme="80s-love-songs"] .music-vinyl-groove {
  border-color: rgba(244, 63, 94, 0.18) !important;
}
.music-vinyl-container[data-music-theme="80s-love-songs"] .music-vinyl-pulse-ring {
  border-color: rgba(244, 63, 94, 0.75) !important;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.5) !important;
}
.music-vinyl-container[data-music-theme="80s-love-songs"] .hud-wave-bar {
  background: linear-gradient(to top, #be123c, #f43f5e) !important;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.8) !important;
}
.music-vinyl-container[data-music-theme="80s-love-songs"] .music-vinyl-spectrograph {
  border-color: rgba(244, 63, 94, 0.75);
  border-top-color: rgba(254, 205, 211, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 16px rgba(225, 29, 72, 0.45);
}

/* --------------------------------------------------------------------------
   THEME: ROBERT GROWLER'S GREATEST HITS (Wild Punk Magenta & Laser Purple)
   -------------------------------------------------------------------------- */
.music-vinyl-container[data-music-theme="robert-growler-s-greatest-hits"] .music-vinyl-disc {
  background: radial-gradient(circle, #2b0821 0%, #1a0414 55%, #0c0109 85%, #030002 100%) !important;
  border-color: rgba(236, 72, 153, 0.85) !important;
  border-top-color: rgba(251, 207, 232, 1) !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.7), 0 0 35px rgba(236, 72, 153, 0.6), inset 0 0 20px rgba(168, 85, 247, 0.25) !important;
}
.music-vinyl-container[data-music-theme="robert-growler-s-greatest-hits"] .music-vinyl-groove {
  border-color: rgba(236, 72, 153, 0.22) !important;
}
.music-vinyl-container[data-music-theme="robert-growler-s-greatest-hits"] .music-vinyl-pulse-ring {
  border-color: rgba(236, 72, 153, 0.85) !important;
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.6), 0 0 35px rgba(168, 85, 247, 0.4) !important;
}
.music-vinyl-container[data-music-theme="robert-growler-s-greatest-hits"] .hud-wave-bar {
  background: linear-gradient(to top, #db2777, #f472b6, #c084fc) !important;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.9) !important;
}
.music-vinyl-container[data-music-theme="robert-growler-s-greatest-hits"] .music-vinyl-spectrograph {
  border-color: rgba(236, 72, 153, 0.85);
  border-top-color: rgba(168, 85, 247, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 20px rgba(236, 72, 153, 0.55);
}

/* ==========================================================================
   Mobile Pocket Player / Collapsed Audio Player (Zen Mode)
   ========================================================================== */

/* When collapsed to audio player mode on mobile */
body.sb-mobile-player-collapsed,
html.sb-mobile-player-collapsed {
  overflow: hidden !important;
  height: 100% !important;
  height: 100dvh !important;
  touch-action: manipulation;
}

body.sb-mobile-player-collapsed #sb-spa-content,
body.sb-mobile-player-collapsed .site-header,
body.sb-mobile-player-collapsed .sb-visitor-switcher,
body.sb-mobile-player-collapsed .visitor-switcher-dock,
body.sb-mobile-player-collapsed .sb-master-control-dock,
body.sb-mobile-player-collapsed .site-control-dock,
body.sb-mobile-player-collapsed .reality-tuner-dock,
body.sb-mobile-player-collapsed .sb-curator-preview-dock,
body.sb-mobile-player-collapsed .welcome-modal-backdrop,
body.sb-mobile-player-collapsed .sb-visitor-welcome-overlay,
body.sb-mobile-player-collapsed #sbVisitorWelcomeOverlay,
body.sb-mobile-player-collapsed .newsletter-prompt-backdrop,
body.sb-mobile-player-collapsed .command-palette-backdrop,
body.sb-mobile-player-collapsed .companion-speech-bubble,
body.sb-mobile-player-collapsed .enzo-speech-bubble,
body.sb-mobile-player-collapsed .deck-copyright,
body.sb-mobile-player-collapsed .companion-dog,
body.sb-mobile-player-collapsed .dog-summon-dock,
body.sb-mobile-player-collapsed .guest-star-character,
body.sb-mobile-player-collapsed .deck-nav-wrapper,
body.sb-mobile-player-collapsed .deck-progress,
body.sb-mobile-player-collapsed .mobile-nav-drawer,
body.sb-mobile-player-collapsed .mobile-nav-overlay,
body.sb-mobile-player-collapsed .music-vinyl-container:not(.sb-mobile-pocket-player) {
  display: none !important;
  pointer-events: none !important;
}

/* Fullscreen Pocket Player Container */
.sb-mobile-pocket-player {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 26%, #132238 0%, #090e17 58%, #03060a 100%);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: max(14px, env(safe-area-inset-top, 14px)) 16px max(18px, env(safe-area-inset-bottom, 18px)) 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
}

body.sb-mobile-player-collapsed .sb-mobile-pocket-player {
  display: flex !important;
  animation: pocketPlayerEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pocketPlayerEntrance {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Pocket Player Top Bar */
.pocket-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  padding-bottom: 6px;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pocket-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100% - 54px);
}

.pocket-brand-header:active {
  transform: scale(0.96);
  opacity: 0.85;
}

.pocket-brand-header .site-brand {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: clamp(0.88rem, 2.9vw, 1.02rem);
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: none;
  white-space: nowrap;
}

.pocket-brand-header .brand-name-prefix {
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pocket-brand-header .brand-name-suffix {
  color: #38bdf8;
  font-size: 1.05rem;
}

.pocket-brand-header .brand-dot-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  overflow: hidden;
  background: #000;
}

.pocket-brand-header .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pocket-exit-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pocket-exit-btn:active {
  transform: translateY(-50%) scale(0.92);
  background: rgba(255, 255, 255, 0.18);
}

/* Vinyl Stage (Centerpiece) */
.pocket-vinyl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: clamp(6px, 1.8vh, 18px) 0;
  flex-shrink: 0;
}

.pocket-vinyl-disc-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pocket-vinyl-pulse-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.sb-mobile-pocket-player.is-playing .pocket-vinyl-pulse-aura {
  opacity: 1;
  animation: pocketPulseAura 3s ease-in-out infinite alternate;
}

@keyframes pocketPulseAura {
  0% { transform: scale(0.94); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 0.85; }
}

.pocket-vinyl-disc {
  position: relative;
  width: clamp(160px, 44vw, 210px);
  height: clamp(160px, 44vw, 210px);
  border-radius: 50%;
  background: radial-gradient(circle, #22252a 0%, #111317 48%, #08090b 82%, #000000 100%);
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), inset 0 0 20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sb-mobile-pocket-player.is-playing .pocket-vinyl-disc {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 28px rgba(16, 185, 129, 0.35);
  animation: pocketSpinVinyl 12s linear infinite;
}

@keyframes pocketSpinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Vinyl concentric grooves */
.pocket-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.pocket-groove-1 { inset: 12%; }
.pocket-groove-2 { inset: 22%; }
.pocket-groove-3 { inset: 32%; }
.pocket-groove-4 { inset: 40%; }

/* Specular vinyl reflection */
.pocket-vinyl-reflection {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    rgba(255, 255, 255, 0.12) 0deg,
    transparent 45deg,
    rgba(255, 255, 255, 0.15) 90deg,
    transparent 135deg,
    rgba(255, 255, 255, 0.12) 180deg,
    transparent 225deg,
    rgba(255, 255, 255, 0.15) 270deg,
    transparent 315deg,
    rgba(255, 255, 255, 0.12) 360deg
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Central rotating album artwork container */
.pocket-vinyl-center {
  position: relative;
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.pocket-center-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pocket-vinyl-spindle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #f1f5f9 20%, #64748b 80%, #0f172a 100%);
  border: 1.5px solid #000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  z-index: 3;
}

/* Realtime Spectrograph in Pocket Player */
.pocket-spectrograph-wrap {
  margin-top: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pocket-spectrograph-canvas {
  width: 64px;
  height: 20px;
  display: block;
}

/* Track Metadata */
.pocket-track-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
  gap: 4px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.pocket-track-title {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.pocket-track-artist {
  font-size: clamp(0.85rem, 3.2vw, 0.98rem);
  color: #34d399;
  font-weight: 600;
  max-width: 85vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pocket-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

.pocket-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Scrub Bar */
.pocket-scrub-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  margin: 4px 0;
  flex-shrink: 0;
}

.pocket-time {
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
  min-width: 32px;
}
.pocket-time-cur { text-align: right; }
.pocket-time-dur { text-align: left; }

.pocket-scrub-bar {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.pocket-scrub-rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.pocket-scrub-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
}

.pocket-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 2px 4px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s ease;
}

/* Playback Controls Row */
.pocket-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4.5vw, 24px);
  width: 100%;
  max-width: 360px;
  margin: 4px 0;
  flex-shrink: 0;
}

.pocket-ctrl-btn {
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.pocket-ctrl-btn:active {
  transform: scale(0.90);
}

.pocket-btn-mute,
.pocket-btn-shuffle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
}

.pocket-btn-prev,
.pocket-btn-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pocket-btn-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.45rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 24px rgba(16, 185, 129, 0.55);
}

/* Mood Buckets Chooser */
.pocket-buckets-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  gap: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.pocket-buckets-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 600;
}

.pocket-buckets-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 8px 8px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent 100%);
}

.pocket-buckets-scroll::-webkit-scrollbar {
  display: none;
}

.pocket-bucket-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.pocket-bucket-pill:active {
  transform: scale(0.95);
}

.pocket-bucket-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25));
  border-color: #10b981;
  color: #34d399;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

/* Bottom Bar: Back to Firehose Action */
.pocket-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding-top: 4px;
  flex-shrink: 0;
}

.pocket-firehose-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 290px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.pocket-firehose-pill-btn:active {
  transform: scale(0.96);
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.45);
}

.pocket-firehose-pill-btn i.fa-arrow-right {
  transition: transform 0.2s ease;
}

.pocket-firehose-pill-btn:active i.fa-arrow-right {
  transform: translateX(3px);
}

/* Entry Button on Mobile Track Card */
.music-card-pocket-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  white-space: nowrap;
}

.music-card-pocket-btn:active {
  transform: scale(0.95);
  background: rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
  .music-card-pocket-btn {
    display: inline-flex;
  }
}

/* Floating Mobile Pill Button on Vinyl Player Dock */
.music-disc-pocket-pill-btn {
  display: none;
  position: absolute;
  top: -38px;
  right: 14px;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  z-index: 50;
  white-space: nowrap;
  animation: sbPocketPillPulse 2.5s infinite alternate ease-in-out;
  transition: all 0.2s ease;
}

@keyframes sbPocketPillPulse {
  0% { transform: translateY(0); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(16, 185, 129, 0.25); }
  100% { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(16, 185, 129, 0.5); }
}

.music-disc-pocket-pill-btn:active {
  transform: scale(0.95);
  background: rgba(16, 185, 129, 0.25);
}

@media (max-width: 768px) {
  .music-vinyl-container {
    --disk-size: 80px !important;
    --disk-radius: 40px !important;
    --bucket-radius: 44px !important;
    left: 50% !important;
    right: auto !important;
    align-items: center !important;
    bottom: calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 100030 !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }
  .music-vinyl-container:hover,
  .music-vinyl-container:focus-within,
  .music-vinyl-container.is-hovered {
    transform: translateX(-50%) translateY(-6px) !important;
  }
  .music-vinyl-button {
    width: 80px !important;
    height: 80px !important;
  }
  .music-vinyl-center {
    width: 32px !important;
    height: 32px !important;
  }
  .music-vinyl-spindle {
    width: 6px !important;
    height: 6px !important;
  }
  .music-vinyl-spectrograph {
    top: -14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .music-track-card {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(100% + 12px) !important;
  }
  .music-track-card-caret {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  .music-disc-pocket-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    top: -12px !important;
    right: -10px !important;
    font-size: 0.72rem !important;
    gap: 0 !important;
  }
  .music-disc-pocket-pill-btn span {
    display: none !important;
  }
  /* When article reader is open, hide floating pocket pill completely so it never overlaps reader content or footer */
  body.is-article-open .music-disc-pocket-pill-btn,
  .blog-reader-view.is-active ~ * .music-disc-pocket-pill-btn {
    display: none !important;
  }
}

/* Pocket Player Theme Adaptations */
.sb-mobile-pocket-player[data-music-theme="80s"] .pocket-track-artist,
.sb-mobile-pocket-player[data-music-theme="80s-rock"] .pocket-track-artist {
  color: #fb7185;
}
.sb-mobile-pocket-player[data-music-theme="80s"] .pocket-btn-play,
.sb-mobile-pocket-player[data-music-theme="80s-rock"] .pocket-btn-play {
  background: linear-gradient(135deg, #e11d48, #be123c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 24px rgba(225, 29, 72, 0.6);
}
.sb-mobile-pocket-player[data-music-theme="80s"] .pocket-scrub-fill,
.sb-mobile-pocket-player[data-music-theme="80s-rock"] .pocket-scrub-fill {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.sb-mobile-pocket-player[data-music-theme="80s"] .pocket-badge-dot,
.sb-mobile-pocket-player[data-music-theme="80s-rock"] .pocket-badge-dot {
  background: #e11d48;
  box-shadow: 0 0 6px #e11d48;
}
.sb-mobile-pocket-player[data-music-theme="80s"] .pocket-bucket-pill.active,
.sb-mobile-pocket-player[data-music-theme="80s-rock"] .pocket-bucket-pill.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.35), rgba(190, 18, 60, 0.25));
  border-color: #e11d48;
  color: #fb7185;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.35);
}

.sb-mobile-pocket-player[data-music-theme="70s-rock"] .pocket-track-artist,
.sb-mobile-pocket-player[data-music-theme="70s-feel-good-rock"] .pocket-track-artist {
  color: #22d3ee;
}
.sb-mobile-pocket-player[data-music-theme="70s-rock"] .pocket-btn-play,
.sb-mobile-pocket-player[data-music-theme="70s-feel-good-rock"] .pocket-btn-play {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 24px rgba(2, 132, 199, 0.6);
}
.sb-mobile-pocket-player[data-music-theme="70s-rock"] .pocket-scrub-fill,
.sb-mobile-pocket-player[data-music-theme="70s-feel-good-rock"] .pocket-scrub-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}
.sb-mobile-pocket-player[data-music-theme="70s-rock"] .pocket-badge-dot,
.sb-mobile-pocket-player[data-music-theme="70s-feel-good-rock"] .pocket-badge-dot {
  background: #0284c7;
  box-shadow: 0 0 6px #0284c7;
}
.sb-mobile-pocket-player[data-music-theme="70s-rock"] .pocket-bucket-pill.active,
.sb-mobile-pocket-player[data-music-theme="70s-feel-good-rock"] .pocket-bucket-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(3, 105, 161, 0.25));
  border-color: #0284c7;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Admin Curated Bucket Song Removal ("X" button when playing)
   ========================================================================== */
.music-card-remove-track-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
  position: relative;
  z-index: 4;
}

.music-card-remove-track-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.music-card-remove-track-btn.is-confirming {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.8) !important;
  animation: pulse-remove-btn 1s infinite alternate;
}

.music-card-remove-track-btn.is-deleting {
  opacity: 0.5;
  pointer-events: none;
}

/* On the floating vinyl dock */
.music-disc-remove-track-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  font-size: 11px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 8px rgba(239, 68, 68, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-disc-remove-track-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
}

.music-disc-remove-track-btn.is-confirming {
  background: #dc2626;
  border-color: #f87171;
  color: #ffffff;
  width: auto;
  border-radius: 9999px;
  padding: 0 8px;
  height: 24px;
  right: -12px;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  animation: pulse-remove-btn 0.9s infinite alternate;
}

/* Pocket player remove button */
.pocket-remove-track-btn {
  display: none;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pocket-remove-track-btn:hover {
  background: rgba(239, 68, 68, 0.32);
  color: #fff;
  border-color: #ef4444;
}

.pocket-remove-track-btn.is-confirming {
  background: #dc2626;
  border-color: #ef4444;
  color: #fff;
  animation: pulse-remove-btn 1s infinite alternate;
}

@keyframes pulse-remove-btn {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.9);
  }
}



