The current flowing in the wire is in the X direction and the magnetic field is in the Y direction. In what direction is the electromagnetic force?

‘Homopolar motor’ refers to a motor operated by using only one polarity of the magnet. The homopolar motor has a very simple structure. It operates with only three parts: battery, magnet, and lead. Homo-polar motors are easy to make and are often used in schools to learn the principles of an electric motor.
If you search for ‘homopolar motor’ on YouTube, you can see many videos about homopolar motor.