Max Martin, Pope of Pop by BringMoreLegos

Question 13

In this 2002 film, a song by Martin, frequent collaborator Rami Yacoub, and Dido appears as a lyric in the main character's journal, discovered by her love interest and set to music for her climactic performance. The singer who played this character would include the song on her next album when no soundtrack for the film was released. What was this MOVIE, written by a young Shonda Rhimes?