div#hlsplayer
{
    position: relative;
}
 
div#hlsplayer div#loader 
{
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
}

div#hlsplayer div#loader img 
{
    margin: auto;
}

div#hlsplayer div#poster
{
    width: 100%;
    height: 100%;
    position: absolute;
}

div#hlsplayer div#poster img 
{
    width: 100%;
    height: 100%;
    z-index: 3;
}

div#error
{
    display: none;
    color: red;
}