Remaining silent behind the Imaam

Q: I have a question regarding joining the jamaat for salah late. What is the ruling regarding the situation if I join the jamaat while it was in qiyam. And soon after my joing the jamaat (after 2-3 secs) the Imam goes into ruku. I didn't get enough time to recite surah fatiha. Will I get that rakat as I couldn't recite the Fatiha or I need to repeat it by myself after tasleem of Imam?

Listening to tilaawat on one's headphones when music is being played in a gym

Q: If music is being played somewhere and a person doesn't want to listen to the music and he plays tilawat in his headphones to avoid the sound of the music, is it a correct thing if he has no authority to stop that music?

I go to the gym and they play music there. So I listen to tilawat in a loud voice in my headphones to avoid the music. Is it a correct thing ?