html,
body {
    background-color: #12141a;
    padding: 0;
    margin: 0;
    height: 100%;
    font-family: Helvetica-Neue, Helvetica, Arial, sans-serif;
    overflow: hidden;
    overscroll-behavior: none;
    color: #ccc;
    cursor: default;
}


/* LOGIN STYLES */

#loginContainer {
    display: flex;
    justify-content:center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}
#loginBox {
    display: block;
    width: 20vw;
    height: 42vh;
    border: 0.2vh solid #333;
    border-radius: 1vmin;
    box-shadow: 0 0 50px #000;
    padding: 3vw;
}
#loginLogo {
    height: 30%;
    text-align: center;
}
#loginLogo img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}
#loginForm {
    height: calc(70% - 3vw);
    padding-top: 3vw;
}
#loginForm input,
#loginForm button {
    font-size: 3vmin;
    outline: none;
    border: 0.15vw solid #666;
    background-color: #363c4d;
    color: #ccc;
    padding: 1vmin;
    width: calc(100% - 2vmin);
    border-radius: 0.5vmin;
    text-align: center;
    margin: 0;
}
#loginForm input:hover,
#loginForm button:hover {
    border-color: #999;
    color: #CCC;
}
#loginForm input:focus {
    border-color: #e6007e;
}
#loginForm button {
    width: calc(100% + 0.5vmin);
    margin-top: 2vh;
    font-size: 2vmin;
    font-weight: bold;
    background-color: #23262f;
    color: #999;
}



/* PLAYER STYLES */

#defaultScreen {
    display: flex;
    justify-content:center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #000;
}
#defaultScreen img {
    width: 30%;

}
#playerBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    overflow: hidden;
}
#playerBackground.pip {
    top: 4vh;
    right: 4vh;
    left: auto;
    background-color: transparent;
    aspect-ratio: 16 / 9;
    height: calc(32vh - 2px);
    width: auto;
    transform: none;
    border: 1px solid #333;
    box-shadow: 0 0 50px #000;
    transition: all 0.3s ease;
    cursor: pointer;
}
#playerBackground.pip:hover {
    border-color: #666;
}
#playerContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    aspect-ratio: 16 / 9;
    height: min(100vh, 100vw * 9 / 16);
    width: min(100vw, 100vh * 16 / 9);
    transform: translate(-50%, -50%);
    background-color: #000;
    z-index: 99999;
    overflow: hidden;
}
#playerBackground.pip #playerContainer {
    width: min(100%, 100% * 16 / 9);
}
#player {
    border: 0;
    margin: 0;
    padding: 0;
    scale: 101%;
}
#playerBackground.pip #player {
    scale: 104%;
}
#overlay {
    position: absolute;
    bottom: 6vh;
    height: 82%;
    width: 100%;
    z-index: 8;
}
#playerBackground.pip #overlay {
    bottom: 0;
    height: 100%;
}
#nanContainer {
    position: absolute;
    display: flex;
    justify-content:left;
    align-items: center;
    bottom: 6vh;
    height: 18%;
    width: 100%;
    background-color: rgb(18 20 26 / 90%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    opacity: 0;
    z-index: 9
}
#nanContainer:hover {
    opacity: 1;
    transition: opacity 0.5s ease;
}
#playerBackground.pip #nanContainer {
    display: none;
}
.spacerCol {
    float: left;
    width: 2%;
    height: 100%;
    overflow: hidden;
}
#channelLogo {
    float: left;
    width: 20%;
    height: 100%;
    display: flex;
    justify-content:center;
    align-items: center;
}
#channelLogo img {
    max-height: 60%;
    width: 60%;
    object-fit: contain;
}
#streamCol {
    float: left;
    height: 100%;
    width: 25%;
    display: flex;
    justify-content:center;
    align-items: center;
}
#streamList {
    width: 100%;
    height: 55%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 0.5fr repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0.5vmin;
    grid-row-gap: 0.5vmin;
}
#channelPrev,
#channelNext,
#epgButton,
.streamButton {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    color: #999;
    cursor: pointer;
    border: 0.15vw solid #363c4d;
    border-radius: 0.5vmin;
    font-size: 2vmin;
    text-align: center;
    font-weight: bold;
    background-color: #363c4d;
    transition: all 0.5s ease;
}
.streamButton.active {
    border-color: #e6007e;
}
.streamButton:hover {
    color: #FFF;
}

#str1 { grid-area: 1 / 1 / 2 / 2; }
#str2 { grid-area: 1 / 2 / 2 / 3; }
#str3 { grid-area: 1 / 3 / 2 / 4; }
#str4 { grid-area: 2 / 1 / 3 / 2; }
#str5 { grid-area: 2 / 2 / 3 / 3; }
#str6 { grid-area: 2 / 3 / 3 / 4; }
#epgButton { grid-area: 1 / 5 / 3 / 7; }
#channelNext { grid-area: 1 / 7 / 2 / 9; }
#channelPrev { grid-area: 2 / 7 / 3 / 9; }

#epgButton svg {
    fill: #999;
    margin: 3vmin;
}
#channelNext svg,
#channelPrev svg {
    fill: #999;
    height: 2.5vh;
    width: auto;
}
#epgButton:hover svg,
#channelNext:hover svg,
#channelPrev:hover svg {
    fill: #FFF;
}

#nanCol {
    float: left;
    width: 50%;
    color: #CCC;
    line-height: 5vmin;
    font-size: 2.8vmin;
    font-weight: bold;
}
.nanRow {
    width: 100%;
}
#nowTime,
#nextTime {
    float: left;
    width: calc(20% - 3vmin);
    margin-right: 3vmin;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#nowTitle,
#nextTitle {
    float: left;
    width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#nextTime,
#nextTitle {
    color: #666;
}


/* EPG STYLES */

#guideContainer {
    display: block;
    width: 100vw;
    height: 100vh;
}
#infoBar {
    width: 100%;
    height: 40%;
    background-color: #12141a;
    box-shadow: 0 -50px 50px -30px #000 inset;
    overflow: hidden;
}
#menuContainer {
    display: flex;
    justify-content: left;
    align-items: center;
    width: calc(60% - 8vh);
    height: calc(25% - 4vh);
    margin-top: 4vh;
    margin-left: 4vh;
    margin-right: 4vh;
}
#logo {
    float: left;
    width: 15%;
    height: 100%;
}
#logo img {
    height: 100%;
}
#dateTime {
    float: left;
    font-size: 2.2vmin;
    font-weight: bold;
    color: #999;
}
#menu {
    float: left;
    width: 85%;
    text-align: left;
    color: #999;
}
.menuItem {
    /* background-color: #222; */
    padding: 1vmin 2vmin 1vmin 2vmin;
    border-radius: 10vmin;
}
#infoProgContainer {
    width: calc(60% - 8vh);
    height: calc(55% - 6vh);
    margin-top: 6vh;
    margin-left: 4vh;
    margin-right: 4vh;
}
#infoProgName {
    font-size: 3vmin;
    font-weight: bold;
    margin-bottom: 1vmin;
}
#infoProgTime {
    font-size: 2vmin;
    font-weight: bold;
    color: #e6007e;
    margin-bottom: 2vmin;
}
#infoProgDesc {
    font-size: 2vmin;
    font-weight: normal;
    line-height: 3vmin;
    width: 90%;
    color: #999;
    margin-bottom: 3vmin;
}
.shortKey {
    font-size: 1.8vmin;
    margin-right: 2vw;
    color: #999;
    cursor: pointer;
}
.key {
    background-color: #000;
    border: 1px solid #999;
    padding: 0.5vmin 0.8vmin 0.5vmin 0.8vmin;
    border-radius: 0.5vmin;
    margin-right: 0.6vw;
}
.shortKey:hover {
    color: #ccc;
}
.shortKey:hover .key {
    border: 1px solid #ccc;
}
#timescaleContainer {
    width: 100%;
    height: calc(5% - 0.4vh);
    border-top: 0.2vh solid #333;
    border-bottom: 0.2vh solid #000;
    overflow: hidden;
    background-color: #12141a;
}
#timeScaleRow {
    font-size: 0px;
    width: 1485vw;
    height: 100%;
}
#epgBack,
#epgFwd {
    position: absolute;
    z-index: 9;
    width: 5vh;
    height: 5vh;
    padding-left: 4vh;
    padding-right: 4vh;
    display: flex;
    align-items: center;
    cursor: pointer;
}
#epgBack {
    left: calc(15vw - 10vh);
    justify-content: left;
}
#epgFwd {
    right: 0;
    justify-content: right;
}
#arrowBack,
#arrowFwd {
    width: 0;
    height: 0;
    border-top: 1.2vh solid transparent;
    border-bottom: 1.2vh solid transparent;
}
#arrowBack {
    border-right: 2vh solid #999;
}
#arrowFwd {
    border-left: 2vh solid #999;
}
#epgBack:hover #arrowBack {
    border-right-color: #ccc;
}
#epgFwd:hover #arrowFwd {
    border-left-color: #ccc;
}
#epgNow {
    position: absolute;
    z-index: 9;
    left: 3vh;
    width: 5vh;
    height: 5vh;
    cursor: pointer;
}
#epgNow svg {
    fill: #999;
    margin: 1vh;
}
#epgNow:hover svg {
    fill: #CCC;
}
#categoryBlock,
.timeBlock {
    display: inline-block;
    width: 30vw;
    height: 100%;
    text-align: left;
    font-size: 2vmin;
    font-weight: bold;
    color: #999;
}
.timeContainer {
    display: flex;
    justify-content: left;
    align-items: center;
    width: calc(100% - 1.5vmin - 0.2vw);
    height: calc(100% - 2vmin);
    border-left: 0.2vw solid #333;
    padding-left: 1.5vmin;
    margin-top: 1vmin;
    margin-bottom: 1vmin;
}
#categoryBlock {
    position: sticky;
    left: 0;
    z-index: 2; 
    width: calc(15vw - 2px);
}
#epgContainer {
    width: 100%;
    height: 55%;
    overflow-y: scroll;
    overflow-x: hidden;
    white-space: nowrap;
}
#epgLoad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 3vmin;
    font-weight: bold;
}
#indicatorContainer {
    height: 0.1vh;
    width: 1455vw;
    z-index:3;
    position:relative;
}
#indicator {
    position: relative;
    height: auto;
    width: 0.15vw;
    background-color: #FFF;
    box-shadow: 0 0 10px #000;
    /* margin-top: 0.2vh; */
}
.listingsRow {
    font-size: 0px;
    height: 10vh;
    width: 1480vw;
    background: #000;
}
.channelBlock {
    position: sticky;
    left: 0;
    z-index: 9; 
    display: inline-block;
    overflow: hidden;
    height: 100%;
    width: 15vw;
    background-color: #000;
    cursor: pointer;
}
.channelLogo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 0.3vw);
    height: calc(100% - 0.3vw);
    border: 0.15vw solid #000;
    background-color: #12141a;
    border-radius: 1vmin;
    transition: all 0.3s ease;
}
.channelBlock:hover .channelLogo {
    background-color: #222;
}
.channelBlock img {
    width: 50%;
    max-height: 60%;
    object-fit: contain;
}
.progBlock {
    display: inline-block;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}
.progBlock.disabled {
    cursor: default;
}
.progText {
    display: flex;
    justify-content: left;
    align-items: center;
    width: calc(100% - 1.3vw);
    height: calc(100% - 0.3vw);
    border: 0.15vw solid #000;
    background-color: #23262f;
    border-radius: 1vmin;
    padding-left: 1vw;
    color: #ccc;
    font-weight: bold;
    overflow: hidden;
    transition: all 0.3s ease;
}
.blockFade {
    height: 100%;
    width: 5vw;
    margin-left: -5vw;
    float: right;
    z-index: 2;
    background: linear-gradient(90deg,rgba(35, 38, 47, 0) 0%, rgba(35, 38, 47, 1) 80%);
}
.progBlock:hover .progText {
    border-color: #363c4d;
}
.progBlock.selected .progText {
    background-color: #363c4d;
}
.progBlock.selected .blockFade {
    background: linear-gradient(90deg,rgba(54, 60, 77, 0) 0%, rgba(54, 60, 77, 1) 80%);
}
.progBlock.playing .progText {
    border-color: #e6007e;
}
.progBlock.disabled .progText {
    background-color: #191b22;
}
.progTime,
.progTitle {
    display: block;
    width: 100%;
    white-space: nowrap;
}
.progTime {
    font-size: 1.8vmin;
    color: #666;
    margin-bottom: 0.8vmin;
}
.progTitle {
    position: relative;
    font-size: 2vmin;
}
.progTitle.noprogs {
    color: #999;
    font-style: italic;
}
.live {
    display: inline-block;
    background-color: #600000;
    border: 2px solid #000;
    color: #999;
    font-size: 1.8vmin;
    line-height: 1.8vmin;
    padding: 0.3vmin 0.8vmin 0.3vmin 0.8vmin;
    margin-right: 0.6vmin;
    border-radius: 0.5vmin;
}