/*
***
*** SIMPLE TV CSS
*** @jacencor
***
*/
/* UNIVERSAL */

/* ROOT FONT STYLES */
:root {
    --bs-border-color: #495057;
    --bs-body-bg: black;
    --bd-pre-bg: #1b1f22;
}

/* ETIQUETAS */
html,
body {
    background: var(--bs-body-bg);
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

#mainStream {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    transform: translate(-50%, -50%);
}

#iPlayer {
    width: 100vw;
    height: 100vh;
    border: 0;
}

.none {
    display: none !important;
}

[data-shaka-player-container] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#video {
    width: auto;
    height: 100%;
    max-width: 100vw;
    max-height: calc(100vw * 9 / 16);
}

.playlist-show {
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    background: #fff;
    box-shadow: 0 1px 9px 0 rgba(0 0 0 / 40%);
    border-radius: 2px;
    max-height: 80vh;
    min-width: max-content;
    width: 180px;
    opacity: 1;
    transition: opacity cubic-bezier(.4, 0, .6, 1) .6s;
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 2;
    bottom: 15px;
    left: 30px;
}

.playlist-button i {
    padding-right: 20px;
}

.playlist-span-back {
    margin-left: 0;
}

.playlist-span-list {
    margin-left: 45px;
}

.playlist-show i {
    padding-left: 10px;
    padding-right: 10px;
}

.playlist-button {
    color: #fff;
    height: 32px;
    line-height: .5;
    margin: 1px;
    padding: 0 5px;
    background: 0 0;
    border: 0;
    cursor: pointer;
}

.playlist-show .playlist-button {
    font-size: 14px;
    background: 0 0;
    color: #000;
    border: none;
    min-height: 30px;
    padding: 3.5px 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.playlist-show .playlist-button:hover {
    background: #e0e0e0;
}

.playlist-show .playlist-button:focus {
    background: rgb(52, 168, 83);
}

/* ANIMACION DE CARGA */
.loader {
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: black;
    z-index: 1;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 8px solid;
    border-color: #afafaf transparent #afafaf transparent;
    border-radius: 50%;
    animation: spin-anim 1.2s linear infinite;
}

@keyframes spin-anim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}