One think I would say is that although it’s OK to use Ids…it’d generally considered a better idea to only use them when required.
It’s much better to use a class which enables that ‘reference’ to be re-used.
As for your specific issue there are multiple options but they will all require extra CSS.
The best option for you here is to give each
li a class of it’s own as @kwerty has indicated.