html {
  --background-color-main: #141414;
  --active-elements-color: #f91b3d;
  --main-button-color: #505050;
  --timeline-inactive-color: #505050;
  --main-text-color: #fff;
  --borders-color: #505050;
  --timer-bg: rgba(0, 0, 0, 0.7);
  --active-channel-color: #303030;
  --active-channel-borders-color: #f91b3d;
}

/* @import url("font/codec/stylesheet.css"); */

*,
*:before,
*:after {
  box-sizing: border-box;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  background-color: var(--background-color-main);
  margin: 0;
  padding-top: 0.1rem;
}

a {
  text-decoration: none;
}

.AdviadNativeVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Header styles */

.header {
  width: 100%;
}

.header-container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
  margin: auto;
}

.head-logo-cont {
  margin-right: 1rem;
  padding-top: 5px;
}

.head-logo {
  font-family: "Codec Pro Ultra", "Montserrat", sans-serif;
  color: var(--main-text-color);
}

.head-logo text {
  fill: var(--main-text-color);
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-item {
  color: var(--main-text-color);
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 1.5rem;
}

.menu-item a {
  color: var(--main-text-color);
}

.menu-item a:hover {
  color: var(--active-elements-color);
}

.menu-toggle {
  display: none;
  outline: none;
  color: var(--main-text-color);
  background: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
}

.fa-bars {
  line-height: inherit;
}
/* Share functional */
.share-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.3rem;
  width: 100%;
  position: relative;
}

.share-input {
  background: #fff;
  border: 1px solid var(--borders-color);
  width: 100%;
  color: #000;
  padding: 0.1rem;
  height: 25px;
  margin: 0;
}

.share-tooltip {
  position: absolute;
  background-color: var(--borders-color);
  color: #fff;
  padding: 0.2rem 0.4rem;
  bottom: -110%;
  left: 0;
  right: 0;
  margin: auto;
  transform: scale(0, 0);
  max-width: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
}

/* Main container for both video and left panel */
.player-container {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(270px, 1.7fr) 4fr 170px;
  grid-template-rows: 1fr;
  align-items: stretch;
  padding: 1rem 0;
  margin-bottom: 1rem;
  column-gap: 5px;
  margin-top: 120px;
  position: relative;
}

.right-ad-banner {
  display: flex;
  justify-content: center;
}

.mobile-ad-banner {
  display: none;
}

/* Container for video tag and controls */
.vid-container {
  width: 100%;
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Video tag props */
#webplayer,
.ads-container,
.ima-ads-container {
  background: black;
  width: 100%;
  height: 600px;
}

#webplayer {
  object-fit: fill;
}

.ads-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.ima-ads-container {
  position: absolute;
  top: 0;
  left: 0;
  /* z-index: -1; */
}

.content-container {
  width: 100%;
  height: 100%;
}

/* Onscreen timer */

.timercont {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%);
  color: var(--main-text-color);
  background-color: var(--timer-bg);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  min-width: 90px;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: row;
  /* align-content: ; */
  /* margin-right: 1rem; */
}

.timercont .head-logo {
  /* margin-right: 1rem; */
  /* margin-top: 0.2rem; */
  scale: 0.6;
  
}

.timer {
  padding: 0.2rem 0.6rem;
  /* position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%);
  color: var(--main-text-color);
  background-color: var(--timer-bg);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  min-width: 90px;
  text-align: center;
  z-index: 1; */
  
}

/* Video controls */
.extra-controls {
  position: relative;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  z-index: 2;
  transition: opacity 0.5s;
}

/* Buttons styling */
.control-btn {
  outline: none;
  border: none;
  background-color: var(--main-button-color);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  margin-right: 0.2rem;
  transition: all 0.2s;
  cursor: pointer;
}

.control-btn:hover {
  background-color: var(--active-elements-color);
}

.share-btn {
  height: 25px;
  border-radius: 0px 10px 10px 0;
}

.fb-btn-mobile {
  display: none;
}

.fb-btn {
  background-color: var(--active-elements-color);
}

.login-btn {
  background-color: var(--active-elements-color);
  margin-left: auto;
}

.login-text {
  margin: 0;
}

.fa-user {
  display: none !important;
}

.play-button,
.volume-mute,
.btn-fullscreen {
  background: none;
  color: var(--main-text-color);
}

.play-button:hover,
.volume-mute:hover,
.btn-fullscreen:hover {
  background: none;
  color: var(--active-elements-color);
}

/* Volume styling */
.volume-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
}

input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 5px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"].volume {
  width: 100px;
}

.hidden {
  display: none !important;
}

input[type="range"].volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  cursor: pointer;
  background-color: var(--active-elements-color);
  border: 1px solid var(--borders-color);
  height: 10px;
  width: 10px;
  margin-top: -3px;
  box-shadow: -100px 0 0 100px var(--active-elements-color);
}

input[type="range"].volume::-webkit-slider-runnable-track {
  background-color: var(--main-text-color);
  height: 3px;
}

input[type="range"].volume::-moz-range-track {
  background-color: var(--main-text-color);
  height: 3px;
}

input[type="range"].volume::-moz-range-thumb {
  height: 8px;
  width: 8px;
  background-color: var(--active-elements-color);
  border: 1px solid var(--borders-color);
}

input[type="range"].volume::-moz-range-progress {
  background-color: var(--active-elements-color);
}

.noUi-connect {
  background-color: var(--active-elements-color) !important;
}

.noUi-horizontal .noUi-handle {
  border-radius: 50% !important;
  background-color: var(--active-elements-color) !important;
  box-shadow: none !important;
  border: none !important;
  height: 15px !important;
  width: 15px !important;
  right: -8px !important;
  top: -4px !important;
}

.noUi-handle::after,
.noUi-handle::before {
  display: none !important;
}

.noUi-target {
  background-color: var(--borders-color) !important;
  height: 7px !important;
  border: none !important;
  box-shadow: none !important;
  width: 100px !important;
}

/* Remove default video controls */
#webplayer::-webkit-media-controls {
  display: none !important;
}

/* Styling the direct time input */
.time-input {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.input-time {
  width: 40px;
  background-color: var(--background-color-main);
  border: 1px solid var(--borders-color);
  padding: 0.2rem;
  color: var(--main-text-color);
}

.input-minutes {
  margin-right: 0.5rem;
}

/* Left panel styles */
.monitoring-top {
  display: flex;
}

.switch-btn {
  display: block;
  outline: none;
  border: none;
  background-color: var(--background-color-main);
  color: var(--main-text-color);
  font-family: "Montserrat";
  font-size: 1rem;
  padding: 0.5rem;
  text-transform: uppercase;
  width: 100%;
  border-bottom: 1px solid var(--borders-color);
  font-weight: 600;
  text-align: left;
}

.channel-switch,
.program-switch {
  /* height: 100%; */
  position: relative;
  text-align: center;
  background-color: var(--background-color-main);
  color: var(--main-text-color);
  border: 1px solid var(--borders-color);
  transition: all 0.3s;
  height: 400px;
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
  width: 100%;
}

.channel-list,
.program-list {
  color: var(--main-text-color);
  transition: all 0.3s;
  overflow-y: auto;
  text-align: left;
  height: 100%;
}

.c-switch-btn {
  display: none;
}

.channel-switch {
  position: absolute;
  width: 99.9%;
  top: -110px;
  left: 0;
  flex-direction: row;
  height: 110px;
  margin: 0;
}

.channel-list {
  display: flex;
  flex-direction: row;
  height: 110px;
  padding: 0.3rem;
  padding-left: 0.6rem;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: var(--borders-color);
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #737373;
  height: 5px;
}

.program-list-timestamp {
  font-family: 'Roboto', monospace, sans-serif;
  margin-right: 0.3rem;
  font-weight: 600;
  min-width: 40px;
}

.channel-list-item,
.program-list-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 0.5rem 1rem 0.5rem 0.2rem;
}

.channel-list-item {
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  margin-right: 0.5rem;
  min-width: 140px;
}

.channel-list-item:hover,
.program-list-item:hover {
  background-color: var(--borders-color);
  border-radius: 15px 15px 15px 15px;
  color: #fff;
  cursor: pointer;
}

.program-list-item:hover {
  border-radius: 0 15px 15px 0;
}

.channel-list-item p,
.program-list-item p {
  margin: 0;
  margin-top: 0.4rem;
}

.program-list-item p {
  padding-left: 0.5rem;
  width: 100%;
}

.channel-list-item p {
  text-align: center;
}

.logo {
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.2s;
}

.channel-logo {
  position: relative;
  width: 50px;
  height: 45px;
  margin-right: 0.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-text-color);
}

.logo-mono {
  display: none;
}

.channel-list-item:hover .channel-logo .logo-mono {
  display: block;
}

.channel-list-item:hover .channel-logo .logo-color {
  display: none;
}

.channel-list-item.active-channel .logo-mono {
  display: block;
}

.channel-list-item.active-channel .logo-color {
  display: none;
}

/* This container is for either video cut controls or advertisement */
.monitoring-bottom {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.ads {
  width: 100%;
  /* height: 250px; */
}

.download-link {
  margin-left: auto;
}

/* Styles for date picker */
.date-picker {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.date-picker-item {
  display: flex;
  align-items: flex-start;
  border-radius: 10px;
  background-color: var(--main-button-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #fff;
}

.date-picker-item .day-num {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.date-picker .day {
  font-size: 1rem;
  font-weight: 500;
}

.weekday,
.month {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.month {
  font-size: 0.8rem;
}

/* Active classes */
.active-channel {
  background-color: var(--active-channel-color);
  border: 2px solid var(--active-channel-borders-color);
  border-radius: 15px 15px 15px 15px;
  color: #fff;
}

.active-date {
  background-color: var(--active-elements-color);
  color: #fff;
}

.active-program {
  background-color: var(--active-elements-color);
  border-radius: 0 15px 15px 0;
  color: #fff;
}

/* Seekbar styles */

.seekbar-container {
  position: relative;
  width: 100%;
  background: var(--main-button-color);
  height: 8px;
  margin-bottom: 2rem;
}

.seekbar-click {
  background: var(--active-elements-color);
  height: 8px;
  width: 0;
  border-right: 1px solid #fff;
}

.hint {
  display: none;
  position: absolute;
  top: 12px;
  background: var(--main-button-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.3rem 0.2rem;
  text-align: center;
}

.ruler {
  display: flex;
  width: 100%;
  color: var(--main-text-color);
  margin-bottom: 2px;
  align-items: flex-end;
}

.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;
}

/* Modal window styles */
.record-modal {
  display: none;
  position: fixed;
  width: 80vw;
  height: 80vh;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background-color-main);
  z-index: 1000;
  padding: 0.5rem;
  padding-top: 1.3rem;
  border: 1px solid var(--borders-color);
}

.modal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#webplayer-modal {
  margin-top: 1rem;
}

.close-modal {
  position: absolute;
  right: 10px;
  top: 10px;
}

/* footer */

.footer {
  width: 100%;
  padding: 1.5rem 1rem 1rem 0.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--main-text-color);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.comp-logo {
  margin-right: 0.8rem;
}

.comp-logo svg {
  width: 120px;
}

.footer .cls {
  fill: var(--main-text-color);
}

.footer p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.azerizone-link {
  color: var(--main-text-color);
  border-bottom: 2px solid #f70000;
}

/* Theme toggler styles */
input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 50px;
  height: 25px;
  background: grey;
  display: block;
  border-radius: 12px;
  position: relative;
}

label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 10px;
  transition: 0.3s;
}

input:checked + label {
  background: var(--active-elements-color);
}

input:checked + label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

label:active:after {
  width: 40px;
}

.toggle-container {
  margin-left: auto;
  padding: 0.5rem;
  display: flex;
}

@media only screen and (max-width: 1600px) {
  .vid-container,
  #webplayer,
  .ads-container {
    height: 600px;
  }

  .channel-switch,
  .program-switch {
    height: 300px;
  }

  .channel-switch {
    height: 110px;
  }
}

@media only screen and (max-width: 1366px) {
  .player-container {
    grid-template-columns: minmax(168px, 310px) 65% 1fr;
  }

  .program-list-item,
  .channel-list-item {
    font-size: 0.8rem;
  }

  .channel-switch,
  .program-switch {
    height: 300px;
  }

  .vid-container,
  #webplayer,
  .ads-container {
    height: 500px;
  }
  .channel-switch {
    height: 110px;
  }
}

@media only screen and (max-width: 1290px) {
  input[type="range"].volume {
    width: 70px;
  }
}

@media only screen and (max-width: 1130px) {
  .header-container {
    position: relative;
  }

  .global-container {
    overflow: hidden;
  }

  .menu {
    flex-direction: column;
    background-color: var(--main-button-color);
    border-radius: 10px;
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateX(100%);
    z-index: 1000;
    transition: all 0.2s ease-in;
    padding: 0.5rem 1rem;
  }

  .menu-item {
    padding: 0.3rem 0.5rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .login-btn {
    margin-left: 1rem;
  }

  .toggle-container {
    margin-left: 1rem;
  }

  .fa-user {
    display: inline-block !important;
  }

  .login-text {
    display: none;
  }

  .logo {
    display: none;
  }

  .monitoring-bottom {
    display: none;
  }

  .player-container {
    display: block;
    position: relative;
    grid-template-columns: none;
    margin-top: 0.5rem;
  }

  .right-ad-banner {
    display: none;
  }

  .mobile-ad-banner {
    display: block;
    margin: 0 auto;
    width: 320px;
    height: 120px;
    
  }

  .switch-btn {
    position: static;
    transform: translateY(0);
  }

  .c-switch-btn {
    display: block;
  }

  .channel-switch,
  .program-switch {
    border: none;
    /* height: auto; */
    position: absolute;
    z-index: 0;
    width: 35%;
    top: 0;
    height: 50vh;
    color: var(--main-text-color);
  }

  .channel-switch {
    flex-direction: column;
    padding-left: 5px;
  }

  .program-switch {
    left: 36%;
  }

  .fb-btn-mobile {
    display: block;
    position: absolute;
    z-index: 0;
    width: 22%;
    top: 0;
    left: 75%;
    background-color: var(--active-elements-color);
    border-radius: 15px;
    font-family: "Montserrat";
    font-size: 1rem;
    padding: 0.5rem;
    text-transform: uppercase;
    text-align: center;
    height: auto;
  }

  .switch-btn {
    background-color: var(--main-button-color);
    border: none;
    border-radius: 15px;
    text-align: center;
    color: var(--main-text-color);
  }

  .channel-list,
  .program-list {
    background-color: var(--background-color-main);
    border: 1px solid var(--main-text-color);
    transform: scale(0);
    max-height: 80vh;
  }

  .channel-list {
    flex-direction: column;
    height: auto;
  }

  .channel-list-item {
    flex-direction: row;
    /* padding: 0.5rem 1rem 0.5rem 0.2rem; */
  }

  .channel-list-item p {
    margin: auto;
  }
  
  .program-list-item p {
    padding-left: 0;
  }

  .channel-logo {
    display: none;
  }

  .vid-container {
    grid-column: span 2;
    margin-top: 2rem;
    height: auto;
  }

  .btn-rewind,
  .btn-forward {
    display: none;
  }

  .ruler,
  .video-progress,
  .volume-slider {
    display: none;
  }

  .seekbar-container {
    display: none;
  }

  .date-picker {
    justify-content: flex-start;
    padding: 0.5rem 0.5rem;
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 15;
    margin-bottom: 0.5rem;
  }

  /* .date-picker-item {
    flex-shrink: 1;
  } */

  .date-picker-item {
    display: block;
    margin: 0.3rem;
    min-width: 115px;
  }

  #webplayer,
  .ads-container {
    height: auto;
  }

  .control-btn {
    padding: 0.2rem 0.4rem;
  }

  .volume-controls {
    padding: 0 0.3rem;
  }
}

html[data-theme="light"] {
  --background-color-main: #e7e7e7;
  --main-text-color: #141414;
  --timer-bg: rgba(200, 200, 200, 0.7);
}

html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
  transition: all 750ms !important;
  transition-delay: 0 !important;
}

@media (min-resolution: 120dpi) and (min-width: 1130px) {
  /*body {transform: scale(0.8);width: 125%;height: 125%;margin-left: -12.5%;}*/
  /* html {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
    height: 125%;
  } */
  .player-container {
    grid-template-columns: minmax(168px, 310px) 65% 1fr;
  }

  .program-list-item,
  .channel-list-item {
    font-size: 0.8rem;
  }

  .channel-switch,
  .program-switch {
    height: 300px;
  }

  .vid-container,
  #webplayer,
  .ads-container {
    height: 500px;
  }
  .channel-switch {
    height: 110px;
  }

  .extra-controls .control-btn {
    font-size: 0.7rem;
  }
}
