idiom
be a good sport
Meaning
to be fair and positive in difficult situations
Example
Even when she lost the game, she was **a good sport** and congratulated the winner.