/* ==========================================================================
   SoundWave Light - Modern Dark Studio Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #12131c;
  --bg-tertiary: #1a1c29;
  --bg-glass: rgba(18, 19, 28, 0.75);
  --bg-glass-hover: rgba(26, 28, 41, 0.85);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(168, 85, 247, 0.5);
  
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(168, 85, 247, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-neon: 0 0 25px var(--accent-glow);
  --player-height: 90px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Glassmorphism Utility */
.glassmorphism {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Modals & Auth
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; /* CACHE TOTALEMENT PAR DEFAUT POUR NE JAMAIS BLOQUER LES CLICS */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex !important; /* AFFICHE UNIQUEMENT QUAND ACTIF */
}

.modal-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 10000;
}

.logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.pulse-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-neon);
}

.logo-area h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-area .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 6px;
}

.auth-switch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s ease;
}

.link-btn:hover {
  color: #67e8f9;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.modal-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: var(--text-primary);
}

.modal-tab-btn.active {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  font-weight: 600;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.existing-users-box {
  margin-top: 16px;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

.existing-users-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.existing-users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.btn-delete-user {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-delete-user:hover {
  background: rgba(239, 68, 68, 0.15);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.error-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* ==========================================================================
   App Layout
   ========================================================================== */

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--player-height);
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.lib-path {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.header-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 38px 10px 42px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-action.scanning svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.user-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.btn-icon-subtle, .btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Alert Banner */
.alert-banner {
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.btn-small {
  background: var(--warning);
  color: black;
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.75rem;
}

/* View Tabs */
.view-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 28px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  position: relative;
  z-index: 10;
}

.tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-glow);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 20px 28px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.results-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #e9d5ff;
}

.filter-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

/* Tracks Table */
.tracks-table-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.tracks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tracks-table thead th {
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.tracks-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.tracks-table tbody tr:hover {
  background: var(--bg-glass-hover);
}

.tracks-table tbody tr.active-track {
  background: rgba(168, 85, 247, 0.15);
  border-left: 3px solid var(--accent-purple);
}

.tracks-table td {
  padding: 10px 16px;
  font-size: 0.9rem;
  vertical-align: middle;
}

.col-play {
  width: 48px;
  text-align: center;
  color: var(--text-muted);
}

.track-index {
  display: block;
}

.row-play-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
}

.tracks-table tbody tr:hover .track-index {
  display: none;
}

.tracks-table tbody tr:hover .row-play-btn {
  display: inline-block;
}

.col-cover {
  width: 48px;
}

.table-cover-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-tertiary);
  display: block;
}

.col-title {
  font-weight: 500;
  color: var(--text-primary);
}

.active-track .col-title {
  color: var(--accent-purple);
  font-weight: 600;
}

.col-artist, .col-album {
  color: var(--text-secondary);
}

.col-duration {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.85rem;
  width: 70px;
}

.col-actions {
  width: 50px;
  text-align: right;
}

.btn-add-queue {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.tracks-table tbody tr:hover .btn-add-queue {
  opacity: 1;
}

.btn-add-queue:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Grid Cards (Dossiers / Artistes / Albums) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 10;
}

.media-card {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.media-card:hover {
  transform: translateY(-4px);
  background: var(--bg-glass-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(168, 85, 247, 0.3);
}

.card-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Queue Drawer */
.queue-drawer {
  position: fixed;
  right: 24px;
  bottom: calc(var(--player-height) + 16px);
  width: 380px;
  max-height: 480px;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-subtle-small {
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
}

.queue-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.queue-item.active {
  background: rgba(168, 85, 247, 0.2);
  border-left: 2px solid var(--accent-purple);
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Fixed Bottom Player Bar
   ========================================================================== */

.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-top: 1px solid var(--border-glass);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

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

.cover-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.sound-wave-bars {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 12px;
}

.sound-wave-bars span {
  width: 3px;
  height: 14px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: equalize 0.8s ease-in-out infinite alternate;
}

.sound-wave-bars span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave-bars span:nth-child(3) { animation-delay: 0.4s; }
.sound-wave-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes equalize {
  0% { height: 4px; }
  100% { height: 22px; }
}

.meta-wrapper {
  min-width: 0;
}

.track-title {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.track-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Center: Controls & Timeline */
.player-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 600px;
}

.controls-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-player {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-player:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.btn-player-subtle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-player-subtle:hover {
  color: var(--text-secondary);
}

.btn-player-subtle.active {
  color: var(--accent-cyan);
}

.btn-play-main {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-play-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-play-main:active {
  transform: scale(0.96);
}

/* Progress Seekbar */
.progress-bar-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: monospace;
  width: 35px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: white;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
  pointer-events: none;
}

.progress-bar:hover .progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Right: Volume & Queue */
.player-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 240px;
  justify-content: flex-end;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.btn-queue-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-queue-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.queue-badge {
  background: var(--accent-purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  .col-album, .col-duration {
    display: none;
  }
  .player-actions-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 6px;
  }
  .view-tabs {
    padding: 12px 16px 6px;
  }
  .main-content {
    padding: 14px 16px;
  }
  .col-artist {
    display: none;
  }
  .player-bar {
    padding: 0 16px;
  }
  .player-track-info {
    width: 140px;
  }
  .cover-wrapper {
    width: 44px;
    height: 44px;
  }
  .controls-buttons {
    gap: 10px;
  }
  #btnShuffle, #btnRepeat {
    display: none;
  }
}
