:root {
    --youtube-red: #fe0900;
    --background-color-main: #eee;
    --active-elements-color: rgba(9, 53, 92, 0.9);
    --timeline-active-color: rgba(9, 53, 92, 0.9);
    --timeline-inactive-color: rgba(3, 3, 3, 0.9);
    --main-text-color: #222;
    --borders-color: rgba(9, 53, 92, 0.7);
    /* --seek-track-color: #1C1B82; */
    /* --seek-track-color: rgb(42, 173, 228, 0.9); */
    --seek-track-color: #6EC1E4;
    --ntv-red-color: #dc3545;
    --aztv-overlay-color: rgba(9, 53, 92, 0.9);
    --meden-overlay-color: rgba(255, 51, 51, 0.9);
    --idman-overlay-color: rgba(75, 175, 79, 0.9);
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

body {
    font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    /* background-color: var(--background-color-main); */
    margin: 0;
}

.vid-container {
    width: 100%;
    position: relative;
    /* height: 500px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#webplayer, #webplayer2 {
    background: black;
    height: 700px;
    object-fit: fill;
}

#webplayer2 {
    position: absolute;
    z-index : -1;
    object-fit: contain;
}


#webplayer video {
    /*    object-fit: fill; */
}

.timer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--borders-color);
    border-radius: 5px;
    min-width: 90px;
    z-index: 1;
}

.bg-img {
    /* background-image: url("./bg.webp");
  background-repeat: no-repeat;
  background-size: cover; */
    filter: blur(7px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.overlay-container {
    background-color: var(--background-color-main);
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.player-container {
    width: 100%;
    /* display: grid;
    grid-template-columns: minmax(180px, 1.5fr) 5fr;
    grid-template-rows: 90px 1fr; */
    align-items: stretch;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.switch-btn {
    outline: none;
    border: none;
    background-color: transparent;
    color: #000;
    font-size: 1.2rem;
    padding: 0.5rem;
    /* border-radius: 5px; */
    text-transform: uppercase;
    width: 80%;
}

.channel-switch,
.program-switch {
    /* height: 100%; */
    display: none;
    text-align: center;
    /* background-color: var(--background-color-main); */
    color: var(--main-text-color);
    border: 1px solid var(--borders-color);
    border-radius: 5px;
    transition: all 0.3s;
    height: 700px;
    overflow: hidden;
    padding: 0.5rem 0;
    margin-left: 0.3rem;
}

.channel-switch {
    grid-column: 1 / span 2;
    display: flex;
    /* flex-direction: row;
  justify-content: flex-start;
  align-items: center; */
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) 5fr;
    height: 85px;
    border: none;
    margin-bottom: 0.6rem;
    padding: 0;
    display: none;
}

.channel-switch .switch-btn {
    /* margin-right: 1rem; */
    font-size: 1.5rem;
    font-weight: 600;
    background-color: transparent;
    justify-self: center;
    height: 65px;
    border-bottom: 3px solid var(--ntv-red-color);
}

.channel-list,
.program-list {
    color: var(--main-text-color);
    margin-top: 0.5rem;
    transition: all 0.3s;
    height: 90%;
    overflow-y: scroll;
    text-align: left;
    padding-bottom: 0.5rem;
}

.channel-list {
    height: 75px;
    display: flex;
    flex-direction: row;
    padding-bottom: 0;
    margin-top: 0;
    align-items: center;
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--main-text-color);
    height: 5px;
}

.program-list-timestamp {
    margin-right: 0.5rem;
}

.channel-list-item,
.program-list-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 0.2rem;
}

.channel-list-item {
    min-width: 150px;
    /* box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7); */
    margin-right: 2.5rem;
    /* background-color: #bbb; */
    height: 80%;
    padding: 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 400;
    border-radius: 10px;
    border: 1px dashed var(--ntv-red-color);
}

.active-channel {
    box-shadow: 2px 2px 3px var(--ntv-red-color);
    background: #dc354518;
    color: #000;
}

.metal {
    position: relative;
    /* margin: 40px auto; */
    outline: none;

    /* font: bold 6em/2em "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; */
    /* text-align: center; */
    /* color: hsla(0, 0%, 20%, 1); */
    /* text-shadow: hsla(0, 0%, 40%, 0.5) 0 -1px 0, */
    /* hsla(0, 0%, 100%, 0.6) 0 2px 1px; */

    background-color: hsl(0, 0%, 90%);
    /* box-shadow: inset hsla(0, 0%, 15%, 1) 0 0px 0px 4px,
    /* border inset hsla(0, 0%, 15%, 0.8) 0 -1px 5px 4px, */
    /* soft SD inset hsla(0, 0%, 0%, 0.25) 0 -1px 0px 7px, */
    /* bottom SD inset hsla(0, 0%, 100%, 0.7) 0 2px 1px 7px, */
    /* top HL hsla(0, 0%, 0%, 0.15) 0 -5px 6px 4px, */
    /* outer SD hsla(0, 0%, 100%, 0.5) 0 5px 6px 4px; outer HL */

    transition: color 0.2s;
}

.metal.linear {
    /* width: 100px; */
    /* font-size: 4em; */
    /* height: 80px; */
    /* border-radius: 0.5em; */
    background-image: -webkit-repeating-linear-gradient(
            left,
            hsla(0, 0%, 90%, 0) 0%,
            hsla(0, 0%, 90%, 0) 6%,
            hsla(0, 0%, 90%, 0.1) 7.5%
        ),
        -webkit-repeating-linear-gradient(left, hsla(0, 0%, 0%, 0) 0%, hsla(
                        0,
                        0%,
                        0%,
                        0
                    )
                    4%, hsla(0, 0%, 0%, 0.03) 4.5%),
        -webkit-repeating-linear-gradient(left, hsla(0, 0%, 90%, 0) 0%, hsla(
                        0,
                        0%,
                        90%,
                        0
                    )
                    1.2%, hsla(0, 0%, 90%, 0.15) 2.2%),
        linear-gradient(
            180deg,
            hsl(0, 0%, 58%) 0%,
            hsl(0, 0%, 70%) 47%,
            hsl(0, 0%, 58%) 53%,
            hsl(0, 0%, 50%) 100%
        );
}

.channel-list-item:hover {
    /* background-color: var(--main-text-color); */
    cursor: pointer;
    /* box-shadow: 3px 3px 5px var(--active-elements-color); */
    border: 2px dashed var(--ntv-red-color);
}

.pr-list-name {
    padding: 0.4rem 0.7rem;
    background-color: rgba(250, 250, 250);
    border-radius: 15px;
}

.program-list-item:hover .pr-list-name {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.ch-list-name {
    display: none;
}

.active-program .pr-list-name {
    background-color: var(--ntv-red-color);
    color: #fff;
}

.logo {
    /* background-image: url("./clogo.jpg"); */
    /* width: 50px; */

    margin-right: 0.5rem;
    margin-left: 0.2rem;
    background-position: center;
    background-size: cover;
    height: 80%;
    margin: 0 auto;
}

.extra-controls {
    position: relative;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.control-btn {
    outline: none;
    border: none;
    /* background-color: var(--active-elements-color); */
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    border: 1px solid var(--background-color-main);
    margin-right: 0.2rem;
    transition: all 0.2s;
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ntv-red-color);
}

.date-picker {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.date-picker-item {
    display: flex;
    align-items: flex-start;
    /* border: 1px solid var(--background-color-main); */
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--background-color-main);
    background-color: rgba(0, 0, 0, 0.5);
}

.date-picker-item:hover {
    box-shadow: 2px 2px 3px rgba(9, 53, 92, 0.7);
}

.date-picker-item .day-num {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.date-picker .day {
    font-size: 1rem;
}

.weekday,
.month {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.month {
    font-size: 0.8rem;
}

.active-date {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.video-progress {
    width: 100%;
    position: relative;
    height: 0.5rem;
    margin-bottom: 1rem;
}

progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 2px;
    width: 100%;
    height: 5px;
    pointer-events: none;
    position: absolute;
    top: 0;
}

progress::-webkit-progress-bar {
    background-color: #474545;
    border-radius: 2px;
}

progress::-webkit-progress-value {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

progress::-moz-progress-bar {
    border: 1px solid rgba(100, 100, 100, 1);
    background: rgb(95, 75, 75);
}

.seekbar-container {
    position: relative;
    width: 100%;
    background: var(--main-text-color);
    height: 8px;
    margin-bottom: 2rem;
    z-index: 3;
}

.seekbar-click {
    background: var(--seek-track-color);
    height: 8px;
    width: 0;
    position: relative;
    z-index: 3;
}

.hint {
    display: none;
    position: absolute;
    top: 12px;
    background: black;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.3rem 0.2rem;
    text-align: center;
}

.seek {
    position: absolute;
    top: 0;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 5px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    cursor: pointer;
    border-radius: 1.3px;
    -webkit-appearance: none;
    transition: all 0.4s ease;
}

input[type="range"]::-webkit-slider-thumb {
    height: 10px;
    width: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    -webkit-appearance: none;
    margin-left: -1px;
    margin-top: 1px;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
    background: transparent;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 1.3px;
}

input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    margin-top: 5px;
}

input[type="range"]:focus::-moz-range-track {
    outline: none;
    background: transparent;
}

.ruler {
    display: flex;
    width: 100%;
    color: var(--main-text-color);
    margin-bottom: 2px;
    align-items: flex-end;
    position: relative;
    z-index: 3;
}

.stick {
    height: 0.6rem;
    border-left: 1px solid var(--borders-color);
    position: relative;
    width: 2.083%;
}

.stick:nth-child(even) {
    height: 0.4rem;
}

.ruler-timestamp {
    position: absolute;
    left: 0px;
    top: -15px;
    font-size: 0.6rem;
}

.volume-controls {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.volume-mute {
    margin-left: 3px;
}

input[type="range"].volume {
    width: 100px;
}

.hidden {
    display: none !important;
}

input[type="range"].volume::-webkit-slider-thumb {
    border-radius: 50%;
    background-color: var(--background-color-main);

    height: 10px;
    width: 10px;
    margin-top: -3px;
    margin-left: 1px;
}

input[type="range"].volume::-webkit-slider-runnable-track {
    background-color: var(--background-color-main);

    height: 3px;
}

input[type="range"].volume::-moz-range-track {
    background-color: var(--background-color-main);

    height: 3px;
}

input[type="range"].volume::-moz-range-thumb {
    height: 8px;
    width: 8px;
    background-color: var(--background-color-main);
}

video::-webkit-media-controls {
    display: none !important;
}

.time-input {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.input-time {
    width: 40px;
    /* background-color: var(--active-elements-color); */
    background: transparent;
    border: 1px solid var(--background-color-main);
    padding: 0.2rem;
    color: #fff;
}

::placeholder {
    color: #ccc;
}

.input-minutes {
    margin-right: 0.5rem;
}

@media only screen and (max-width: 1600px) {
    #webplayer {
        height: 550px;
    }

    #webplayer2 {
        height: 550px;
    }

    .channel-switch,
    .program-switch {
        height: 600px;
    }

    .channel-switch {
        height: auto;
    }
}

@media only screen and (max-width: 1366px) {
    .program-list-item,
    .channel-list-item {
        font-size: 1rem;
    }

    .channel-switch,
    .program-switch {
        height: 500px;
    }
    .channel-switch {
        height: auto;
    }

    #webplayer {
        height: 450px;
    }

    #webplayer2 {
        height: 450px;
    }
}

@media only screen and (max-width: 1290px) {
    input[type="range"].volume {
        width: 70px;
    }

    .channel-switch {
        height: auto;
    }
}

@media only screen and (max-width: 1130px) {
    .logo {
        /* display: none; */
        height: 90%;
    }

    .player-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        grid-template-columns: none;
        padding-top: 0;
    }

    .channel-switch,
    .program-switch {
        background: transparent;
        border: none;
        /* height: auto; */
        z-index: 3;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ch-list-name {
        display: none;
    }
    /* .program-switch {
    right: 0;
  } */

    .channel-switch {
        order: 1;
    }

    .vid-container {
        order: 2;
    }

    .program-switch {
        order: 3;
        margin: 0;
    }

    .switch-btn {
        /* background-color: var(--active-elements-color); */
        /* border-radius: 5px; */
        color: var(--main-text-color);
        font-size: 1rem;
    }

    .program-switch {
        height: 300px;
    }

    .channel-switch {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 80px;
        margin: 0;
    }

    .channel-switch .switch-btn {
        font-size: 1rem;
        font-weight: normal;
        height: auto;
        border: none;
        align-self: center;
        display: none;
    }

    .channel-list,
    .program-list {
        /* background-color: var(--background-color-main); */
        border: 1px solid var(--main-text-color);
        /* transform: scale(0); */
        max-height: 80vh;
    }

    .program-list {
        width: 100%;
    }

    .channel-list {
        display: flex;
        flex-direction: row;
        height: 90%;
        margin-top: 0.5rem;
        align-items: stretch;
        border: none;
        justify-content: space-around;
        width: 100%;
    }

    .channel-list-item {
        min-width: 80px;
        height: 80%;
        padding: 0.5rem 0.3rem;
        background-color: transparent;
        /* width: 19%; */
    }

    .channel-list-item:first-child {
        margin-left: 2rem;
    }

    .channel-list-tem:last-child {
        margin-right: 0;
    }

    .active-channel {
        box-shadow: 2px 2px 3px var(--ntv-red-color);
        background: #dc354518;
        color: #000;
    }

    .vid-container {
        grid-column: span 2;
        margin-top: 0.5rem;
    }

    .btn-rewind,
    .btn-forward {
        display: none;
    }

    .ruler,
    .video-progress,
    .volume {
        display: none;
    }

    .seekbar-container {
        display: none;
    }

    .date-picker {
        justify-content: flex-start;
        padding: 0.5rem 0.5rem;
        width: 100%;
        overflow-x: auto;
        /* flex-direction: row-reverse; */
        /* -webkit-overflow-scrolling: touch; */
        box-sizing: border-box;
        position: relative;
        z-index: 15;
    }

    /* .date-picker-item {
    flex-shrink: 1;
  } */

    .date-picker-item {
        display: block;
        margin: 0.3rem;
        min-width: 115px;
    }

    /* #webplayer {
    height: auto;
  } */
}

@media only screen and (max-width: 360px) {
    .logo {
        height: 80%;
    }
}


.channel-switch {
    display: none;
}

.program-switch{
    display: none;  
}
