/* ============================================================
   Harmonix — Context Menu v2.0
   Menu contextuel clic droit sur une piste
   ============================================================ */

#hx-context-menu {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 8000;
  min-width: 200px;
  overflow: hidden;
  animation: hx-ctx-in 0.12s ease forwards;
}

#hx-context-menu[hidden] { display: none; }

@keyframes hx-ctx-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.hx-ctx-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.hx-ctx-track-title {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-ctx-track-artist {
  font-size: var(--fs-100);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hx-ctx-items { padding: 4px 0; }

.hx-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: var(--fs-200);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  text-align: left;
}

.hx-ctx-item:hover { background: var(--bg-hover); }
.hx-ctx-item i { width: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.hx-ctx-item:hover i { color: var(--gold); }

.hx-ctx-item.active i { color: var(--gold); }

.hx-ctx-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
