@Xanina,
Quote: He is mainly famous for having a successful acting career.
Is he famous, or mainly famous?
He is famous.
Why is he famous?
He is famous because of his acting, principally.
He is famous, mainly because of his acting career.
He is famous mainly for having a successful acting career.
Since " mainly" does not modify "famous", I would, strictly speaking, reject A and B although of course you will often see this construct in everyday speech.