Direct calque of Greek-derived 'rhapsody':
狂 kuáng (wild, unrestrained) +
想 xiǎng (thought, imagination) +
曲 qǔ (musical piece). The character math literally renders 'wild-imagination-piece' — a free-form composition with shifts in mood. Used for Liszt's 《
匈牙利狂想曲》, Gershwin's 《
蓝色狂想曲》 (Rhapsody in Blue), and Queen's 《
波西米亚狂想曲》 (Bohemian Rhapsody).