The power cord or earphones cable is made a high impedance at FM requencies with a small inductor in series so the signal isn't shorted, then a small capacitor couples the signal that is picked-up. The small capacitor is frequently just the wires close together side-by-side.