Unified approach to cyclotron and plasmon resonances in a periodic two-dimensional GaAs electron gas hosting the Hofstadter butterfly