A jury unanimously ruled that singer and songwriter Katy Perry’s 2013 hit single “Dark horse” improperly copied Christian rapper Flame’s 2009 song “Joyful Noise.” The nine-member federal jury in a Los Angeles determined that Perry and her co-writers and producers will owe unspecified damages for copyright infringement. “Dark horse,” which has sold more than 13 million copies worldwide, credits several songwriters, including Katy Perry and Sarah Hudson, who wrote the lyrics and rapper Juicy J, who wrote his verse. The track was produced by Dr Luke, Max Martin and Cirkut, who created the beat in question during the week-long trial. Flame, born Marcus Gray, and Emanuel Lambert and Chike Ojukwuhis, two co-authors on “Joyful Noise,” first sued in 2014, alleging that “Dark Horse” stole the song’s memorable beat. A rep for Perry declined to comment. Reps for Dr. Luke and Juicy J did not reply to requests for comment. ‘Dark horse,’ which has sold more than 13 million copies worldwide, credits several songwriters, including Katy Perry and Sarah Hudson, who wrote the lyrics and rapper Juicy J Perry’s lawyers argued that if the “commonplace” beats in question were subject to copyright it could hurt all songwriters and have potential implications for music down the road. “They are trying to own basic building blocks of music, the alphabet of music that should be available to everyone,” Perry’s lawyer Christine Lepera said during closing arguments of the trial. Lepera did not reply to a request for comment. Perry, who was not present when the verdict was read, testified that she had never heard “Joyful Noise,” nor heard of Flame, before the lawsuit. Her co-writers testified similarly. Flame’s lawyers responded that the song was widely distributed, with millions of plays on YouTube and Spotify, and reminded the jury of Perry’s origins in the Christian music scene. His team argued that Perry and her team had ripped off the main beat and instrumental line of “Joyful Noise.” During the trial, Perry even offered to perform “Dark Horse” live when her lawyers were unable to play the song due to a broken speaker system. The issue was eventually fixed, so no impromptu concert was necessary. Capitol Records, Perry’s label, which distributed the single, was also found liable in the lawsuit verdict. “Dark Horse” appeared on Perry’s fourth album, Prism, released by Capitol on October 18, 2013. The track was nominated for a Grammy nomination and Perry also performed the song during her 2015 Super Bowl halftime show. The jury will decide this week how much “Flame” is owed in damages by Perry and the other defendants.