/* ==============================================================================
   nsaOG_ 24/7 DISCORD MUSIC SYSTEM - COMPLETE STYLESHEET
   Cyberpunk Glassmorphism • Modern Dark Theme • Neon Accents
   ============================================================================== */

:root {
  --bg-main: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(15, 20, 32, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.5);

  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-blurple: #5865f2;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.3);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Glowing Background Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.glow-1 {
  top: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.glow-2 {
  bottom: 5%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}
.glow-3 {
  top: 40%;
  left: 45%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  opacity: 0.2;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.navbar {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.equalizer-bars span {
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite;
}
.equalizer-bars span:nth-child(1) { height: 14px; animation-delay: 0.1s; }
.equalizer-bars span:nth-child(2) { height: 20px; animation-delay: 0.3s; }
.equalizer-bars span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.equalizer-bars span:nth-child(4) { height: 16px; animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.brand-title {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #c4b5fd 60%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

/* Nav Health Metrics */
.nav-metrics {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.metric-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
.status-dot.connecting {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

.chip-label {
  color: var(--text-muted);
  font-size: 0.7rem;
}
.chip-val {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-nav-invite {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-nav-invite:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.btn-discord-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-blurple);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
  transition: var(--transition);
}
.btn-discord-login:hover {
  background: #4752c4;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-full);
}

.avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  object-fit: cover;
}

.user-meta {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
}
.user-tag {
  font-size: 0.65rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.btn-logout:hover {
  color: var(--accent-red);
}

/* ==========================================================================
   MAIN DUAL-PANE LAYOUT
   ========================================================================== */
.main-layout {
  max-width: 1520px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   SIDEBAR: SERVERS LIST
   ========================================================================== */
.sidebar {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-card);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.sidebar-title-icon {
  color: var(--accent-purple);
  display: flex;
  align-items: center;
}
.sidebar-title-row h3 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  flex: 1;
}
.server-count {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: #38bdf8;
}

.sidebar-search {
  width: 100%;
}
.sidebar-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: white;
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}
.sidebar-search input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.guild-list {
  flex: 1;
  overflow-y: auto;
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 4px;
}
.guild-list::-webkit-scrollbar {
  width: 5px;
}
.guild-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.guild-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.guild-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.08);
}
.guild-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.12));
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.guild-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #c4b5fd;
  object-fit: cover;
  flex-shrink: 0;
}

.guild-meta {
  flex: 1;
  overflow: hidden;
}
.guild-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guild-status-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.status-tag.active {
  color: var(--accent-emerald);
  font-weight: 600;
}
.status-tag.pending {
  color: var(--text-muted);
}

.btn-item-invite {
  background: rgba(88, 101, 242, 0.15);
  color: #818cf8 !important;
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition);
}
.btn-item-invite:hover {
  background: var(--accent-blurple);
  color: white !important;
}

.sidebar-prompt {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.prompt-icon {
  font-size: 2rem;
}
.btn-sidebar-login {
  background: var(--accent-blurple);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
}
.btn-sidebar-login:hover {
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}
.sidebar-invite-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15)) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  padding: 10px 12px !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  color: white !important;
  transition: var(--transition);
}
.sidebar-invite-card:visited,
.sidebar-invite-card:active,
.sidebar-invite-card:hover {
  text-decoration: none !important;
  color: white !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}
.invite-icon {
  font-size: 1.25rem;
}
.invite-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.invite-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}
.invite-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.invite-arrow {
  color: var(--accent-cyan);
}

/* ==========================================================================
   WORKSPACE & HERO BANNER
   ========================================================================== */
.workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.guest-banner {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.guest-content {
  position: relative;
  z-index: 2;
}
.hero-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.5);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.guest-content h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #c4b5fd 70%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.85rem;
}
.guest-content p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}
.guest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blurple));
  color: white !important;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transition: var(--transition);
}
.btn-glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-glow-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: var(--transition);
}
.btn-glow-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ACTIVE GUILD BANNER & TABS
   ========================================================================== */
.guild-banner {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}

.guild-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.guild-avatar-wrap {
  position: relative;
}
.guild-icon-lg {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-purple);
  object-fit: cover;
  background: #1e293b;
  display: block;
}

.guild-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guild-title-row h2 {
  font-size: 1.35rem;
  font-weight: 800;
}
.badge-role {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.channel-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-247 {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.badge-247.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.guild-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  color: white;
}
.tab-btn.active {
  background: var(--bg-card-hover);
  color: #c4b5fd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   NOW PLAYING HERO CARD
   ========================================================================== */
.player-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.artwork-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinning Vinyl Disc Effect */
.vinyl-disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.35);
  border: 4px solid #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-disc.spinning {
  animation: spinVinyl 12s linear infinite;
}
@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.track-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vinyl-center-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #0f172a;
  border: 3px solid #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
}

/* Animated Frequency Visualizer Overlay */
.visualizer {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  opacity: 0.8;
}
.v-bar {
  width: 4px;
  background: linear-gradient(180deg, #38bdf8, #8b5cf6);
  border-radius: 2px;
  height: 6px;
  transition: height 0.15s ease;
}
.visualizer.active .v-bar {
  animation: visualizerPulse 0.8s ease-in-out infinite alternate;
}
.visualizer.active .v-bar:nth-child(2n) { animation-delay: 0.15s; }
.visualizer.active .v-bar:nth-child(3n) { animation-delay: 0.3s; }
.visualizer.active .v-bar:nth-child(4n) { animation-delay: 0.45s; }

@keyframes visualizerPulse {
  0% { height: 4px; }
  100% { height: 28px; }
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.pulse-indicator.playing {
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: blink 1.5s infinite;
}
@keyframes blink {
  50% { opacity: 0.4; }
}

.source-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.track-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 650px;
}
.track-artist {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.track-artist code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c4b5fd;
}

/* Dynamic Progress Bar */
.progress-section {
  margin: 0.6rem 0;
}
.time-display {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: width 0.2s linear;
}

/* Cyber Playback Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.ctrl-btn.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-purple);
  color: #c4b5fd;
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.btn-play-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: white;
  border: none;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.btn-play-main:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}

.btn-danger {
  color: #f87171;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.loop-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-purple);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Volume Control */
.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-left: auto;
}
.btn-mute {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.btn-mute:hover {
  color: white;
}
.volume-range {
  -webkit-appearance: none;
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
}
.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  cursor: pointer;
}
.vol-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  min-width: 32px;
}

/* ==========================================================================
   STREAM SEARCH & QUEUE LOADER
   ========================================================================== */
.search-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.play-form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.input-wrap svg {
  color: var(--text-muted);
}
.input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.channel-dropdown {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  min-width: 200px;
}
.channel-dropdown option {
  background: #0f172a;
}

.btn-search-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blurple));
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
  transition: var(--transition);
}
.btn-search-submit:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.55);
}

/* ==========================================================================
   QUEUE PANEL
   ========================================================================== */
.queue-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.queue-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
}
.queue-title-wrap h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.queue-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.btn-clear-queue {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-clear-queue:hover {
  background: rgba(239, 68, 68, 0.25);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.queue-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.08);
}

.queue-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
}
.queue-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.queue-track-meta {
  flex: 1;
  overflow: hidden;
}
.queue-track-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-track-artist {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.queue-duration-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.btn-queue-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.btn-queue-remove:hover {
  color: var(--accent-red);
}

.empty-queue {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}
.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   SETTINGS MATRIX
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.setting-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.setting-header {
  display: flex;
  gap: 12px;
}
.setting-icon {
  font-size: 1.5rem;
}
.setting-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.setting-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Toggle Switch */
.switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: var(--radius-full);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
input:checked + .slider:before {
  transform: translateX(24px);
}
.switch-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-dropdown {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: white;
  outline: none;
}
.select-dropdown option {
  background: #0f172a;
}

/* ==========================================================================
   SLASH COMMANDS REFERENCE
   ========================================================================== */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.command-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}
.command-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}
.cmd-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.command-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Toast Notifications */
.dashboard-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-purple);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}
.dashboard-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
  }
  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .artwork-container {
    margin: 0 auto;
  }
  .meta-header {
    justify-content: center;
    gap: 1rem;
  }
  .player-controls {
    justify-content: center;
  }
  .volume-container {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-metrics {
    display: none;
  }
  .play-form {
    flex-direction: column;
  }
  .channel-dropdown {
    width: 100%;
  }
  .btn-search-submit {
    width: 100%;
    justify-content: center;
  }
}
