Giant resonances under extreme conditions