.livestream-component {
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.livestream-component > .flex-vertical > .flex-left {
    width: 100%;
}

.livestream-component > .flex-vertical.chat > .flex-left {
    width: 50%;
    margin-right: 20px;
}

.livestream-component > .flex-vertical.chat.max > .flex-left {
    width: 70%;
}

.livestream-component > .flex-horizontal > .flex-top {
    height: 100%;
}

.livestream-component > .flex-horizontal.chat > .flex-top {
    height: 60%;
    /*margin-bottom: 20px;*/
}

.livestream-component .video-container {
    height: 100%;
    position: relative;
}

.livestream-component .video-container .stream-label {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 3em;
    color: white;
    z-index: 3;
}

.livestream-component.maximized .video-container .stream-label {
    font-size: 3.2em !important;
}

.livestream-component .video-container .loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    font-size: 5em;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #ECECEC;
}

.livestream-component .video-container .loading:not(.hidden) {
    display: flex;
}

.livestream-component .video-container .loaded {
    position: relative;
    height: 100%;
    text-align: center;
}

.livestream-component .video-container .top {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 60px;
    z-index: 3;
    overflow: hidden;
}

.livestream-component.hoverable .video-container:hover .top {
    display: block;
}

.livestream-component .video-container .loaded video {
    position: relative;
    z-index: 2;
    height: calc(100% - 6px); /* avoid vertical scrollbar */
    width: 100%;
    object-fit: scale-down;
    object-position: 0 0;
}

.livestream-component .video-container .loaded scoreboard-play {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 14px;
}

.livestream-component .livestream-select-container {
    text-align: center;
    z-index: 4;
}

.livestream-component .livestream-select-container button {
    font-size: 2em;
    z-index: 10;
}

.livestream-component.maximized .livestream-select-container button {
    font-size: 2em !important;
}

.livestream-component .chat-container {
    background-color: #F8F8F8;
}