I am a youth and when I think about arousing scenes, semen is discharged from me. Does this action (only thinking about this) with the aim of having semen discharged fall into the category of masturbation?

No but Ghusl will be wajib. Also watching such arousing scenes if intentional is a sin.