@emilycarabutler
You can do both ways. The hard-coded one (which will not be so flexible) or use a database for colors (which would be more comfortable on my opinion).
Yes this could work, but you will have to modify/correct the code.
if item.genre = [Jazz] {
then.
$item('#BOX').style.backgroundColor = "#00000";
Perhaps this can help you too…
https://www.media-junkie.com/one-way-selection-tags