html,body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  background:#0e1117;
  color: #c9d1d9;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

code, pre{
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: normal;
  background:#1c2128;
  color:#58a6ff;
}

.main-header {
  background:#161b22;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.logodesktop{
  color:#d7fa5a;
  font-size:17px;
  font-family: "Ubuntu Mono", monospace;
  background:#1c2128;
  padding:2px 8px;
  border-radius:6px;
  margin-right:10px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 32px;
  width: auto;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
}

.layout-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar {
  padding: 0;
  width: 300px;
  height: 100%; 
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative; 
  background-color: #1c2128; 
  scrollbar-gutter: stable; 
}

.right-sidebar {
  
}

.main-content {
  flex: 1;
 
  box-sizing: border-box;
}

/* Footer */
.main-footer {
  background: #161b22;
  color: #8b949e;
  text-align: center;
  font-size: 14px;
  margin: 0;
}

.main-footer a {
  color: #58a6ff;
  text-decoration: none;
}

.main-footer a:hover {
  text-decoration: underline;
}

.visite{}

#player {
 
  margin: auto;
  display: block;
  background:#161b22;
  background-image: url("https://raw.githubusercontent.com/JonathanSanfilippo/RaspServerTV/refs/heads/main/frontend/img/logo.png");
  background-position: center top;
  background-size: 200px;
  background-repeat: no-repeat;
  background-position: center center;
}

.info p{
  font-size:15px;
  font-family: "Ubuntu Mono", monospace;
  background:#1c2128;
  padding:6px 6px;
  border-radius:8px;
  margin-right:10px;
  display: inline;
  color: #c9d1d9;
}

.stars{
  font-size:14px!important;
  font-family: "Ubuntu Mono", monospace;
  background:#1c2128;
  padding:6px 6px;
  border-radius:8px;
  margin-right:10px;
  display: inline;
  
}



.player-controls {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* opzionale, spazio tra elementi */
}




.progress-bar {
    width: 50%;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    height: 5px;
    margin-top: 4px;
  }

  .progress {
    height: 100%;
    background-color: #f9c855;
    transition: width 0.5s;
  }

.qualityinfo{
   font-size:17px;
}


.quality{
  font-size:14px;
  font-family: "Ubuntu Mono", monospace;
  background:#1c2128;
  color:#58a6ff;
  padding:6px 6px;
  border-radius:8px;
  margin-right:10px;
  display: inline;
}

.quality-options {
  margin-top:10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-family: "Ubuntu Mono", monospace;
  font-size: 16px;
  color: #c9d1d9;
}

.quality-option {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  background:#1c2128;
  transition: background 0.2s;
  border:2px solid #2c313a ;
  color: #c9d1d9;
}

.quality-option:hover {
  background:#2c313a;
  border:2px solid #2c313a ;
}

.quality-option.active {
  background:#2c313a;
  font-weight: bold;
  border:2px solid #58a6ff;
}

.maintenance{
  color:#ff7b72;
}

.listupdate{
  color:#58a6ff;
  
}

.date{
   font-size:;
}


.canali{
  color:#56d364;
}

.totchan{
  color:#f0b232;
  font-size:14px;
}

.skip{
  color:#ff7b72;
}

.ip{
 font-weight:bold;
}

.panel-box {
  width:960px;
  max-width: 960px;
  margin: 0px auto;
  padding: 30px 0px 0px 0px; 
  background:#1c2128;
}

.container-box {
 padding: 2px 30px 30px 30px; 
 font-size:14px;
 color: #c9d1d9;
}

.repo-language-color {
  position: relative;
  top: 1px;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius:50%;
  background-color: #89e051;
}

.flag {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.flag:hover,
.flag.selected {
  border-color: none;
}

.flag-sidebar {
  width: 300px;
  background: ;
  overflow-y: auto;
  padding: 0px;
  display: flex;
  flex-direction: column;
}

.flag-wrapper {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color:#1c2128;
  transition: background-color 0.2s;
  cursor: pointer;
}

.flag-wrapper:hover {
  background-color: #2c313a;
}

.flag {
  width: 28px;
  height: 28px;
}

.flag-label {
  font-size: 17px;
  padding-left:5px;
  color: #c9d1d9;
}

.flag-wrapper.selected {
  background-color: #2c313a;
  border-right: 4px solid #58a6ff;
}

.update-info{
  font-size: 17px;
  color:#555;
}

.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c2128;
  padding:10px ;
  cursor: pointer;
  transition: 0.3s;
}

.channel:hover {
  background: #2c313a;
}

.channel.selected {
  background-color: #2c313a;
  border-left: 4px solid #58a6ff;
}

.channel-name {
  font-size: 17px;
  color: #c9d1d9;
  flex-grow: 1;
  text-align: left;
  padding-left: 10px;
}

.channel img {
  width: 28px;
  height: auto;
}

.channel p {
  margin-top: 5px;
  font-size: 17px;
  text-align: center;
  color: #c9d1d9;
}

.channelCurrent{
  display: flex; 
  align-items: center; 
  width: 100%; 
  font-size:20px;
  color: #c9d1d9;
}

.channelCurrent {
  font-size: 16px;
  margin-bottom: 4px;
}


.channelCurrent img{
 width: 60px;
 height: auto;
 margin-right: 20px;
}

.firefox-style {
  background: #1c2128;
  color: #c9d1d9;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 16px;
  width: 100%;
  max-width: 200px;
  margin-top: 0px; 
  margin-bottom: 0px;
  transition: box-shadow 0.2s, background 0.2s;
}

.firefox-style:focus {
  outline: none;
  background: #2c313a;
}

@media (max-width: 768px) {
  .channel img {
    width: 20px;
    height: auto;
  }

  .channel-name {
    font-size: 12px;
  }

  .flag-label {
    font-size: 12px;
  }

  .flag {
    width: 22px;
    height: 22px
  }
}

.anim-rotate {
  animation: rotate 1s linear infinite;
}

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

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

.statusMessage{
   display: inline;
}

#player {
  width: 100%;
  max-width: 960px;
 
}


/* Su schermi più larghi */
@media (min-width: 2000px) {
  #player {
    max-width: 2200px;
  }
}



#epg-container {
 
  background: ;
  color: #f0f0f0;
  padding: 5px;
  margin-top: 1px;
}
.program {
  padding:20px;
  
}





.channel-epg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  width:95%;
}

.channel-info {
  
  align-items: center;
  font-size: 0px;
  flex-shrink: 0;
  gap: 10px;
  padding-right:10px;
  
}

.channel-info img {
  width: 60px;
  height: auto;
  padding-left:50px!important;
}

.epg-info {
  flex: 1;
  font-size: 14px;
  line-height: 1.2;
}

.epg-info .program {
  padding: 5px 0;
}

.progress-bar {
  height: 2px;
  margin-top: 2px;
  width:100%;
}

