/* Bottom Persistent Mini Player Bar */
.player-bar {
  grid-row: 2;
  grid-column: 1 / -1;
  background: rgba(16, 21, 32, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 290px 1fr 310px;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.player-bar-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.player-track-info,
.player-center-controls,
.player-right-tools {
  position: relative;
  z-index: 2;
}

/* Left: Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-thumb-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.player-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.2s;
  color: #FFF;
  font-size: 16px;
}

.player-thumb-wrapper:hover .thumb-hover-overlay {
  opacity: 1;
}

.player-meta {
  min-width: 0;
  flex: 1;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-active-pill {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFF;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  animation: pulseGlow 2s infinite;
  white-space: nowrap;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 6px var(--primary); }
  50% { box-shadow: 0 0 14px var(--secondary); }
}

.btn-like-icon {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-like-icon.liked {
  color: var(--secondary);
}

.player-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Center: Controls & Seekbar */
.player-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  color: var(--text-secondary);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}

.btn-icon:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-icon.active {
  color: var(--primary-light);
  background-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.btn-play-main {
  width: 38px;
  height: 38px;
  background-color: #FFF;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-play-main:hover {
  transform: scale(1.08);
}

.seekbar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 36px;
  text-align: center;
}

.seekbar-container {
  flex: 1;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.seekbar-track {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: visible;
  transition: height 0.15s;
}

.seekbar-container:hover .seekbar-track {
  height: 6px;
}

.seekbar-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  width: 0%;
}

.seekbar-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  width: 0%;
}

.seekbar-handle {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  background-color: #FFF;
  border-radius: 50%;
  transition: transform 0.15s;
}

.seekbar-container:hover .seekbar-handle {
  transform: translateY(-50%) scale(1);
}

/* Right Tools */
.player-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-box input[type="range"] {
  width: 70px;
  height: 4px;
  accent-color: var(--primary);
}

/* ============================================================= */
/* 🌟 IMMERSIVE FULL-WINDOW STAGE (전체창 2/3 디스크 + 1/3 하단 스펙트럼 + 유튜브 자막) */
/* ============================================================= */
.now-playing-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  background: radial-gradient(circle at 50% 30%, #151D2A 0%, #0B0E14 65%, #05070A 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* Top Floating Nav Bar */
.fullscreen-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.8) 0%, transparent 100%);
}

.np-title-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.np-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-1px) scale(1.05);
}

.btn-icon-pill.active {
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
}

.btn-close-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-close-circle:hover {
  background: var(--danger);
  transform: scale(1.1);
}

/* Immersive Stage Layout */
.immersive-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 1. TOP 2/3: Giant Rotating Vinyl Disc & Stage */
.top-vinyl-section {
  flex: 68;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding-top: clamp(80px, 10vh, 105px); /* Clear top navigation bar completely */
  padding-bottom: 8px;
  box-sizing: border-box;
}

.vinyl-halo-wrapper {
  position: relative;
  width: clamp(400px, 50vh, 640px);
  height: clamp(400px, 50vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.vinyl-pulse-glow {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.22) 50%, transparent 72%);
  filter: blur(35px);
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.giant-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: 
    repeating-radial-gradient(circle, #1a1a1a 0, #1a1a1a 2px, #0f0f0f 3px, #0f0f0f 5px),
    radial-gradient(circle, #252525 0%, #121212 60%, #050505 100%);
  border: 12px solid #141414;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  animation: rotateDisc 20s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.giant-vinyl-disc.playing,
.now-playing-modal:not(.hidden) #vinyl-disc.playing {
  animation-play-state: running !important;
}

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

/* Center Spindle Hole */
.giant-vinyl-disc::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  z-index: 10;
  box-shadow: inset 0 0 4px #000;
}

/* Vinyl Sheen Light Reflection */
.giant-vinyl-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
}

.giant-vinyl-disc img {
  width: 44%;
  height: 44%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #181818;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.hero-track-info {
  text-align: center;
  margin-top: 8px;
  max-width: 800px;
  padding: 0 20px;
}

.hero-track-info h1 {
  font-size: clamp(16px, 2.2vh, 24px);
  font-weight: 800;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-track-info p {
  font-size: clamp(12px, 1.5vh, 15px);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.hero-action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-action-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #FFF;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-action-round:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ============================================================= */
/* 2. YouTube-Style Floating Subtitle Overlay (유튜브 자막 스타일) */
/* ============================================================= */
.youtube-cc-overlay {
  position: absolute;
  bottom: calc(30% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 85%;
  pointer-events: none;
}

.cc-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.cc-badge {
  background: #000;
  color: #FFF;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cc-text-box {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  min-width: 280px;
}

.cc-line {
  font-size: clamp(15px, 2vh, 21px);
  font-weight: 700;
  color: #FFF;
  line-height: 1.4;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.9), 0 0 25px rgba(236, 72, 153, 0.6);
  transition: all 0.2s ease;
}

.cc-line.secondary {
  font-size: clamp(12px, 1.5vh, 14px);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 3px;
  text-shadow: none;
}

/* ============================================================= */
/* 3. BOTTOM 1/3: Full-Width Graphic Spectrum Canvas */
/* ============================================================= */
.bottom-spectrum-section {
  flex: 30;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 10;
  cursor: pointer;
}

.fullscreen-spectrum-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.45));
}

/* Easy-Access Top Visualizer Glassmorphism Dock */
.fullscreen-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.88) 0%, rgba(11, 14, 20, 0.4) 80%, transparent 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.viz-top-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 28, 42, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  padding: 4px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.viz-top-dock:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.25);
}

.viz-modes-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.viz-mode-btn {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.viz-mode-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: translateY(-1px);
}

.viz-mode-btn.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.6);
  font-weight: 700;
}

.viz-dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 2px;
  flex-shrink: 0;
}

.viz-palettes-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.viz-palette-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.viz-palette-btn:hover {
  transform: scale(1.18);
  border-color: #FFF;
  background: rgba(255, 255, 255, 0.18);
}

.viz-palette-btn.active {
  border: 2px solid #FFF;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  transform: scale(1.22);
}

/* Modals & Helpers */
.mini-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mini-modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mini-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mini-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #FFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.btn-close-sm:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 1);
  color: #FFF;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.btn-close-sm:active {
  transform: scale(0.95);
}

.mini-modal-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.eq-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.eq-preset-btn {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
}

.eq-preset-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: transparent;
}

.eq-sliders-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 170px;
  padding: 10px 0;
}

.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.eq-band input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 110px;
  width: 24px;
  accent-color: var(--primary);
}

.eq-band-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Settings Modal Styles */
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  padding-right: 4px;
  margin: 0;
}

/* Custom Sleek Scrollbar for modal */
.settings-content::-webkit-scrollbar {
  width: 5px;
}

.settings-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: border-color 0.2s;
}

.setting-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.setting-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.setting-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.setting-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-text-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  color: #FFF;
  width: 180px;
}

.setting-text-input:focus {
  border-color: var(--primary);
}

/* iOS/Glassmorphism Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.switch-toggle .slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFF;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.switch-toggle input:checked + .slider-round {
  background: linear-gradient(135deg, #6366F1, #EC4899);
  border-color: rgba(236, 72, 153, 0.6);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(22px);
}

/* Remote Mode & IP Settings Cards */
.remote-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
}

.remote-ip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.remote-ip-badge {
  font-family: 'SF Mono', 'Roboto Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  word-break: break-all;
}

.remote-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.remote-auth-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.remote-auth-inputs input {
  flex: 1;
  min-width: 130px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: #FFF;
}

.remote-auth-inputs input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.header-desktop-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-mode-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.header-mode-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(236, 72, 153, 0.3));
  border-color: rgba(99, 102, 241, 0.6);
  color: #A5B4FC;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.header-mode-pill .mode-icon {
  font-size: 15px;
}

.btn-mobile-tool.active,
.btn-glass-square.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.35)) !important;
  border-color: rgba(99, 102, 241, 0.7) !important;
  color: #FFF !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5) !important;
}

/* Remote Server Discovery & Connection Modal */
.discover-modal-box {
  width: 90%;
  max-width: 480px;
  background: rgba(18, 22, 34, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalScaleIn 0.25s ease-out;
}

.discover-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.discover-header-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFF;
}

.discover-header-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.discover-scan-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.scan-spinner-ring {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.scan-spinner-ring.hidden {
  display: none;
}

.btn-rescan-sm {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFF;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-rescan-sm:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

.discovered-servers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.server-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-card-item:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.server-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-card-icon {
  font-size: 24px;
}

.server-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
}

.server-card-url {
  font-size: 12px;
  color: #818CF8;
  font-family: monospace;
}

.server-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.server-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.server-badge.auth {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.server-badge.self {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-connect-server {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border: none;
  color: #FFF;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-connect-server:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

.discover-manual-section {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.manual-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-input-group input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFF;
  font-size: 13px;
  font-family: monospace;
}

.manual-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Remote Login Modal */
.login-modal-box {
  width: 90%;
  max-width: 400px;
  background: rgba(18, 22, 34, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalScaleIn 0.25s ease-out;
}

.login-modal-header {
  text-align: center;
}

.login-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-modal-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.login-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-inputs input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: #FFF;
}

.login-inputs input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.dlna-device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 14px;
}

.dlna-device-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.dlna-device-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateX(4px);
}

.dlna-device-card.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
}

.device-icon {
  font-size: 24px;
}

.device-info {
  flex: 1;
}

.device-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.device-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.device-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.device-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.device-badge.local {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10B981;
}

.device-badge.lg_webos, .device-badge.samsung_tv, .device-badge.sony_tv, .device-badge.smart_tv {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.35);
  color: #F472B6;
}

.device-badge.chromecast {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60A5FA;
}

.device-badge.dlna_speaker {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818CF8;
}

.device-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
}

.dlna-empty-notice {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sub-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.queue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 88px;
  width: 420px;
  background: rgba(14, 18, 28, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 900;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(25px);
  animation: slideDrawer 0.25s ease;
  box-sizing: border-box;
}

@keyframes slideDrawer {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
  flex-wrap: nowrap;
}

.drawer-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.drawer-title-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin: 0;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #A5B4FC;
  white-space: nowrap;
  flex-shrink: 0;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Compact Glassmorphism Icon Buttons for Queue Header */
.btn-drawer-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-drawer-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFF;
  transform: translateY(-1px);
}

.btn-drawer-icon:active {
  transform: scale(0.92);
}

.btn-drawer-save {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #818CF8;
}

.btn-drawer-save:hover {
  background: rgba(99, 102, 241, 0.4);
  color: #FFF;
}

.btn-drawer-viz {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.45);
  color: #C084FC;
}

.btn-drawer-viz:hover {
  background: rgba(168, 85, 247, 0.4);
  color: #FFF;
}

.btn-drawer-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.btn-drawer-danger:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #EF4444;
  color: #FFF;
}

.btn-drawer-close {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.queue-sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
}

.toggle-autoplay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.toggle-autoplay-pill input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Wi-Fi LAN Mobile Access Banner */
.network-access-box {
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.net-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.net-badge {
  font-size: 11px;
  font-weight: 700;
  color: #818CF8;
  letter-spacing: 0.5px;
}

.btn-copy-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-chip:hover {
  background: var(--primary);
  border-color: transparent;
}

.net-url-display {
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 6px;
  word-break: break-all;
  user-select: all;
  border: 1px dashed rgba(56, 189, 248, 0.3);
}

.net-sub-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
}

.queue-track-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}


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


/* ============================================================= */

/* ============================================================= */
/* 🎛️ Ultra-Realistic SME/Technics S-Shaped Audiophile Tonearm */
/* Aligned to 20% enlarged vinyl disc; Stylus lands securely on sound grooves */
/* ============================================================= */
.turntable-tonearm {
  position: absolute;
  top: -36px;
  right: -130px; /* Aligned proportionally to disc size */
  width: clamp(300px, 38vh, 480px);
  height: clamp(380px, 48vh, 620px);
  z-index: 25;
  pointer-events: none;
  transform-origin: 66.7% 21.2%; /* Exact Gimbal Pivot Bearing center (200/300, 110/520) */
  transform: rotate(-30deg); /* Parked outside on Arm Rest */
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

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

/* When playing: tonearm glides onto the outer right-hand black vinyl grooves */
.turntable-tonearm.playing,
.giant-vinyl-disc.playing ~ .turntable-tonearm {
  transform: rotate(18deg) !important; /* Lands securely on the vinyl sound groove tracks */
}


/* ============================================================= */
/* 🎮 Large Glassmorphism Playback Control Dock */
/* ============================================================= */
.hero-player-controls {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  background: rgba(18, 24, 38, 0.88) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 12px 28px !important;
  border-radius: 9999px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(99, 102, 241, 0.3) !important;
  margin-top: 14px !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

/* Playback Control Buttons (Prev, Stop, Next) */
.btn-hero-ctrl {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  font-size: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.btn-hero-ctrl:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #FFFFFF !important;
  transform: scale(1.14) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
}

.btn-hero-ctrl:active {
  transform: scale(0.92) !important;
}

/* Big Center Play/Pause Button */
.btn-hero-primary {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  font-size: 30px !important;
  background: linear-gradient(135deg, #6366F1, #EC4899) !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.85), 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #EC4899, #6366F1) !important;
  box-shadow: 0 0 40px rgba(236, 72, 153, 1), 0 10px 28px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.16) !important;
}

.btn-hero-primary:active {
  transform: scale(0.94) !important;
}

/* Vertical Glass Divider */
.hero-ctrl-divider {
  width: 2px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  margin: 0 6px !important;
}

/* Secondary Action Buttons (Like, Download, Add Playlist) */
.btn-hero-tool {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4) !important;
}

.btn-hero-tool:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: var(--primary) !important;
  transform: scale(1.14) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6) !important;
}

.btn-hero-tool:active {
  transform: scale(0.92) !important;
}

/* ============================================================= */
/* 🎛️ Glassmorphism Square Utility Toolbar (Bottom Right Player) */
/* ============================================================= */
.player-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-glass-square {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.btn-glass-square:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-glass-square:active {
  transform: translateY(0) scale(0.95);
}

/* Featured Visualizer Fullscreen Opener Button */
.btn-glass-viz-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.28) 100%);
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.btn-glass-viz-hero:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45) 0%, rgba(168, 85, 247, 0.52) 100%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.65), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px) scale(1.06);
}

.viz-hero-icon {
  display: block;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.7));
  transition: transform 0.22s ease;
}

.btn-glass-viz-hero:hover .viz-hero-icon {
  transform: scale(1.12);
}

.btn-mute-icon {
  font-size: 14px;
}

/* Floating Badge on Queue Toggle Button */
#btn-queue-toggle {
  position: relative;
}

.queue-floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366F1, #EC4899);
  border: 1.5px solid #0B0E14;
  color: #FFF;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.6);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-bounce {
  animation: badgeBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Save Queue Button in Drawer Header */
.btn-queue-save {
  background: rgba(99, 102, 241, 0.22) !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  color: #818CF8 !important;
}

.btn-queue-save:hover {
  background: rgba(99, 102, 241, 0.4) !important;
  color: #FFF !important;
}
