YouTube is facing a potentially huge bill for music royalties after the Google-owned website lost a key court battle in Germany over copyrighted content. On Friday, a court in Hamburg ruled that YouTube must take responsibility for all the content that users post on its site. Gema, a royalty collection group in Germany, had called on the online service to install term-based filters that can detect when users post clips of music from its artists.