Same-sex sexual harassment is unlawful in California
https://edwinfsvq109.cavandoragh.org/what-is-considered-sexual-harassment-in-california-clear-examples-and-standards
Same-sex sexual harassment is unlawful in California, and a victim does not need to be the direct target to have a viable claim.