* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: openSans;
    src: url(/fonts/OpenSans-Regular.ttf);
}

@font-face {
    font-family: openSansBold;
    src: url(/fonts/OpenSans-Bold.ttf);
}

@font-face {
    font-family: openSansItalic;
    src: url(/fonts/OpenSans-Italic.ttf);
}

@font-face {
    font-family: zenTokyoZoo;
    src: url(/fonts/ZenTokyoZoo-Regular.ttf);
}

body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-color: transparent transparent;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #fff;
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #D0925C;
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: #fff;
}

.d-none {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.close {
    border-radius: 50%;
    background-color: #818181;
    width: 20px;
    height: 20px;
    text-align: center;
    border: 1px solid #fff;
    line-height: 18px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1;
}

#overlay {
    background-image: url("/img/mainBackground.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0 10px;
    min-height: 100vh;
}

#epg-table {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #000;
    z-index: 4;
}

#epg-table::-webkit-scrollbar {
    width: 0px !important;
    /* Remove scrollbar space */
    height: 0px !important;
    -webkit-appearance: none;
    background: transparent !important;
    /* Optional: just make scrollbar invisible */
}

#epg-table .topic-title {
    font-size: 14px;
    padding: 5px 0;
    text-align: center;
    background-color: grey;
    margin-top: 3px;
}

#epg-table .epg-row, #epg-table .header {
    display: flex;
}

#epg-table .header {
    position: sticky;
    top: 0;
}

#epg-table .epg-row {
    cursor: pointer;
    width: 100%;
}

#epg-table .epg-row:hover .epg-info {
    background-color: #D0925C;
    color: #000;
}

#epg-table .header .spacer {
    min-width: 130px;
    background-color: #000;
}

#epg-table .header .time {
    flex-shrink: 0;
    background-color: #202020;
    border-right: 3px solid #000;
    color: #D0925C;
    font-family: openSansBold;
    padding: 5px;
    font-size: 14px;
    width: calc((100vw - 130px) / 2);
}

#epg-table .channel-logo {
    min-width: 130px;
    min-height: 60px;
    border-right: 3px solid #000;
    background-color: #3d3d3d;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 3px solid #000;
}

#epg-table .channel-logo img {
    max-width: 100px;
    max-height: 30px;
}

#epg-table .epg-info {
    background-color: #202020;
    height: 60px;
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border-top: 3px solid #000;
}

#epg-table .epg-info .program {
    padding: 3px;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid #000;
    flex-shrink: 0;
    width: calc((100vw - 130px) / 2);
}

#epg-table .epg-info .program.full {
    width: 100%;
}

#epg-table .epg-info .program .title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 17px;
    font-family: openSansBold;
    line-height: 28px;
}

#epg-table .epg-info .program .time {
    font-family: openSansItalic;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1000px;
    font-size: 17px;
}

#epg-table .topics-dropdown-icon {
    position: fixed;
    left: 0;
    top: 0;
    padding: 3px 5px;
    z-index: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #D0925C;
}

#epg-table .topics-dropdown-icon span {
    font-size: 17px;
    margin-right: 3px;
    font-weight: 700;
}

#epg-table .topics-dropdown-icon i {
    font-size: 24px;
}

#epg-table .topics-list {
    position: absolute;
    left: 0;
    top: 24px;
    z-index: 1;
    background-color: #3d3d3d;
    max-height: calc(100vh - 24px);
    overflow-y: scroll;
}

#epg-table .topics-dropdown {
    position: absolute;
    left: 0;
    top: 4px;
    width: 130px;
    background-color: #000;
    color: #D0925C;
    z-index: 1;
    font-family: openSansBold;
    font-size: 14px;
    border: none;
}

#epg-table .topics-dropdown:focus, #epg-table .topics-dropdown:focus-visible {
    border: none;
}

#epg-table .topics-list .item {
    padding: 8px 15px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
}

#epg-table .topics-list .item:hover {
    background-color: #D0925C;
    color: #000;
}

#show-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: scroll;
    z-index: 2;
}

#show-modal::-webkit-scrollbar {
    width: 0px !important;
    /* Remove scrollbar space */
    height: 0px !important;
    -webkit-appearance: none;
    background: transparent !important;
    /* Optional: just make scrollbar invisible */
}

#show-modal .container {
    width: 90%;
    max-width: 600px;
    margin: auto;
    padding-top: 30px;
    background-color: #26201B;
}

#show-modal .container .top {
    position: relative;
    width: 100%;
    min-height: calc(100vw / 2 * 9 / 16);
}

#show-modal .container .show-img-wrapper {
    width: 100%;
    margin-left: 5px;
}

#show-modal .container .show-img {
    width: 50%;
    height: auto;
    float: right;
}

#show-modal .close {
    position: fixed;
    top: 10px;
    right: 10px;
}

#show-modal .show-more {
    font-size: 14px;
    text-decoration: underline;
    padding: 5px 0;
    cursor: pointer;
    margin-left: 10px;
}

#show-modal .bottom {
    padding: 20px;
}

#show-modal .show-info {
    padding: 0 10px;
}

#show-modal .show-title {
    font-family: openSansBold;
    font-size: 20px;
    padding: 10px 0;
}

#show-modal .episodes {
    border-left: 3px #000 solid;
    border-right: 3px #000 solid;
    border-bottom: 3px #000 solid;
}

#show-modal .epg-item {
    display: flex;
    border-top: 3px #000 solid;
    background-color: #202020;
    position: relative;
}

#show-modal .epg-item .time {
    width: 100px;
    padding: 10px;
    border-right: 3px #000 solid;
    background-color: #3d3d3d;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

#show-modal .epg-item .info {
    padding: 10px;
}

#show-modal .epg-item .title {
    font-size: 18px;
    font-family: openSansBold;
    margin-bottom: 10px;
}

#show-modal .epg-item .description {
    font-family: openSansItalic;
}

.scroll-btns {
    position: fixed;
    z-index: 1;
}

#dtv-content .scroll-btns {
    bottom: 10px;
    right: 15px;
}

.scroll-btns i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 0.5;
}

.scroll-btns i:hover {
    opacity: 0.8;
}

.scroll-btns .fa-times {
    position: fixed;
    top: 13px;
    right: 15px;
}

#ad-content .scroll-btns {
    top: 10px;
    left: 10px;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    background-image: url("/img/splash.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#splash .loading-text {
    position: absolute;
    font-size: 20px;
    top: 78vh;
    width: 100%;
    text-align: center;
}

#splash .version {
    position: absolute;
    font-size: 20px;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

#logo {
    position: fixed;
    z-index: 1;
    left: 10px;
    bottom: 5px;
    opacity: 0.8;
}

#logo img {
    height: 20px;
    width: auto;
}

#menu {
    position: fixed;
    z-index: 1;
    right: 10px;
    top: 10px;
    padding: 8px 15px;
    border-radius: 999px;
    cursor: pointer;
    background-color: #fff;
    font-family: 'openSansBold';
    font-size: 15px;
    color: #444;
}

#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
}

#video {
    cursor: none;
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 16 / 9);
    max-height: calc(100vw * 9 / 16);
    border: none;
}

#now-playing {
    position: relative;
    padding-top: 120px;
    height: 100vh;
}

#now-playing .logo {
    height: 50px;
    width: auto;
    position: absolute;
    top: 10px;
    left: 0;
}

#now-playing .now-playing-text {
    color: #A5A4A3;
    text-shadow: 2px 2px 3px #000000;
}

#now-playing .playing-ep {
    margin: 5px 0;
}

#now-playing .description {
    margin-bottom: 5px;
    line-height: 20px;
    max-width: 480px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#now-playing .rating {
    display: inline-block;
    padding: 2px 5px;
    border: 2px solid #fff;
    border-radius: 5px;
    margin: 4px 0;
    font-size: 12px;
    text-shadow: 2px 2px 3px #000000;
}

#now-playing .icons {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    right: 0;
}

#now-playing .icons i {
    font-size: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    color: #A39E99;
    cursor: pointer;
}

#now-playing .icons i:hover {
    color: #fff;
}

#now-playing .icons .volume {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#now-playing .icons .volume:hover {
    height: 145px;
}

#now-playing .icons .volume #volume-slider {
    position: absolute;
    bottom: 35px;
    height: 50px;
    width: 6px;
    background: #A39E99;
    border-radius: 15px;
    border: none;
    display: none;
}

#volume-slider .ui-slider-range-min {
    height: 50px;
    width: 6px;
    position: absolute;
    background: #fff;
    border: none;
    border-radius: 10px;
    outline: none;
}

#volume-slider .ui-slider-handle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    cursor: pointer;
    outline: none;
    transform: translate(2.8px, -4px);
}

#volume-slider .ui-slider-handle:focus {
    border-color: #A39E99;
}

#now-playing .icons .volume:hover #volume-slider {
    display: block;
}

#now-playing .info-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#now-playing .info-icon img {
    width: 100%;
}

#now-playing .info-icon .white {
    display: none;
}

#now-playing .info-icon:hover .grey {
    display: none;
}

#now-playing .info-icon:hover .white {
    display: block;
}

#now-playing .fa-expand:hover {
    color: #fff;
}

/* loading animation */
.lds-ellipsis {
    position: relative;
    width: 80px;
    height: 80px;
    margin: auto;
    margin-top: 80vh;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    background-color: #fff;
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

@media (max-width: 560px) {
    #now-playing {
        padding-top: 48px;
    }

    #now-playing .logo {
        height: 28px;
    }

    #now-playing .now-playing-text {
        font-size: 8px;
    }

    #now-playing .playing-ep {
        margin: 3px 0;
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #now-playing .description {
        font-size: 10px;
        line-height: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #now-playing .rating {
        border: 1px solid #fff;
        font-size: 8px;
    }

    #now-playing .info-icon {
        width: 20px;
        height: 20px;
        transform: translate(0, -2px);
    }

    #now-playing .icons i {
        font-size: 20px;
        width: 20px;
        line-height: 20px;
    }

    #now-playing .icons .volume:hover #volume-slider {
        display: none;
    }

    #menu {
        font-size: 12px;
        padding: 6px 13px;
    }

    #epg-table .channel-logo {
        min-width: 90px;
        min-height: 23px;
    }

    #epg-table .channel-logo img {
        max-width: 77px;
        max-height: 20px;
    }

    #epg-table .epg-info .program, #epg-table .header .time {
        width: calc(100vw - 90px);
    }

    #epg-table .epg-info {
        height: 40px;
    }

    #epg-table .epg-info .program .title, #epg-table .epg-info .program .time {
        font-size: 10px;
        line-height: 16px;
    }

    #epg-table .topics-dropdown-icon span, #epg-table .header .time, #epg-table .topic-title {
        font-size: 12px;
    }

    #epg-table .header .spacer {
        min-width: 90px;
    }

    #epg-table .topics-dropdown {
        width: 90px;
        font-size: 12px;
    }

    #show-modal .container {
        width: 96%;
        padding-top: 10px;
    }

    #show-modal .show-title {
        font-size: 12px;
        padding-top: 0;
        padding-bottom: 5px;
    }

    #show-modal .show-description {
        font-size: 10px;
    }

    #show-modal .show-description.truncated {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #show-modal .bottom {
        padding: 5px;
    }

    #show-modal .epg-item .title, #show-modal .epg-item .time {
        font-size: 10px;
    }

    #show-modal .epg-item .time {
        padding: 5px;
        width: auto;
        min-width: 60px;
        position: absolute;
        right: 0;
        background-color: transparent;
    }

    #show-modal .epg-item .info {
        padding: 5px;
    }

    #show-modal .epg-item .title {
        margin-bottom: 3px;
    }

    #show-modal .epg-item .description {
        font-size: 8px;
    }

    #show-modal .show-more {
        font-size: 10px;
    }

    #splash .loading-text {
        font-size: 12px;
    }

    .lds-ellipsis {
        margin-top: 70vh;
        transform: scale(0.6);
    }
}