The European elections explained: how does the voting system work?

The European elections explained: how does the voting system work?