How can I use earphones if I’m only comfortable lying on my stomach or side? And, what about getting tangled in the wires?

You may wish to try SleepPhones, which are designed to be used while lying down in any position. You can also try earbuds, which are designed to fit comfortably inside the ear. Alternatively, use conventional speakers placed on either side of your bed, or try a stereo sleep pillow.