Hey greyphoenix,
I’ve been trying to replicate what you’re describing with no luck. With default render settings (I rendered to both a PNG and MP4) layer opacity and layer masking is rendering just fine. Could you send some screen shots comparing your viewport to your render and your render settings? Or if you are able, send your Blend file. Would be happy to help you trouble shoot it and get you moving forward.