@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
#main-content{
  margin-top:0 !important;
}
h4{
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
div#sin_margen{
  margin:0 !important;
}
.window {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  max-height: 80vh;
  transform: translate(-50%, -50%) scale(0.7) !important;
  top: 50%;
  left: 50%;
  overflow: auto !important;
}

.window.active, div#ventana-dinamica.activo {
  opacity: 1;
  pointer-events: auto;
	transform: translate(-50%, -50%) scale(1) !important;
  z-index: auto;
}
.menu-window {
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  max-height: 80vh;
  transform: translate(-50%,40%) scale(0.9)!important;
  top: 50%;
  left: 50%;
  overflow: auto !important;
}

.menu-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-5%) scale(1)!important;
}
/* Scroll estilizado */
.dw-body::-webkit-scrollbar, .menu-window::-webkit-scrollbar, .iptv-scroll::-webkit-scrollbar, #iptv-grid::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.dw-body::-webkit-scrollbar-thumb, .menu-window::-webkit-scrollbar-thumb, .iptv-scroll::-webkit-scrollbar-thumb, #iptv-grid::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 43%);
  border-radius: 4px;
}
.dw-body::-webkit-scrollbar-track, .menu-window::-webkit-scrollbar-track, .iptv-scroll::-webkit-scrollbar-track, #iptv-grid::-webkit-scrollbar-track{
  background:transparent;
}
div.alinear_vertical{
  display: flex;
	align-items: center;
}
.ventana_interna{
  max-height: 70vh;
	overflow-y: auto !important;
}
@media (max-width: 980px){
  .ventana_interna{
  max-height: 62vh;
	overflow-y: auto !important;
}
}
/* ===== Ventana única (estilo win11) ===== */
/* Ajustes: quitar el translate fijo porque ahora usaremos top/left */
  .archivos-cat{
    font-size: 13px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 300;
  }
  .icono-carpeta {
  display: inline-flex;
}
  .archivos-sidebar{
    min-height: 450px;
  }
  .archivos-cat:hover{
    background: rgb(255 255 255 / 8%) !important;
  }
  input.apps-search{
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    padding: 13px 15px;
    background: #0000003d;
    color: #fff !important;
  }
  .dw-extra{
    display: flex;
    margin-left: auto;
  }
.dynamic-window, div#ventana-dinamica {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 720px;
  max-width: 95vw;
  max-height: 75vh;
  background: #0f0f16ad;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);

  /* Solo animar transform y opacity */
  transition: transform 240ms cubic-bezier(.2,.9,.3,1), opacity 240ms cubic-bezier(.2,.9,.3,1);

  /* Quita la animación de left/top */
  transform: translate(-50%, -40%) scale(0.55);
}


.dynamic-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}


/* Header (barra) */
.dw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.dw-title {
  font-size: 16px; /* título de la ventana (configurable por JS) */
}

/* Botón cerrar siempre en top-right */
.dw-close {
  background: transparent;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dw-close:hover {
  background: rgba(255,255,255,0.06);
}

/* Body con scroll interno */
.dw-body {
  padding: 14px;
  overflow: auto;
  flex: 1 1 auto;
}

/* ===== Diseño para lista de sitios ===== */
.site-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 10px;
  min-width: 200px;
  color: #fff;
  text-decoration: none;
  transition: background .18s;
  flex-basis: 310px;
    flex-grow: 4;
}
.site-item:hover {
  background: rgba(255,255,255,0.04);
}

/* icono circular (blanco dentro) */
.site-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
  .azul .site-item .icon{
    background: #0073e6;
    border: 1px solid #07e3ff;
    box-shadow: 0px 0px 17px -5px #03A9F4;
  }
  .verde .site-item .icon{
    background: #45c313;
    border: 1px solid #9aff24;
    box-shadow: 0px 0px 17px -5px #9aff24;
  }
  .rojo .site-item .icon{
    background: #c30f0f;
    border: 1px solid #ff0101;
    box-shadow: 0px 0px 17px -5px #ff2717;
  }
  .violeta .site-item .icon{
    background: #400cd9;
    border: 1px solid #523add;
    box-shadow: 0px 0px 17px -3px #4a0fff;
  }
  .amarillo .site-item .icon{
    background: #FFC107;
    border: 1px solid #FFEB3B;
    box-shadow: 0px 0px 17px -3px #FFC107;
  }
  .gris .site-item .icon{
    background: #607D8B;
    border: 1px solid #8ccfef;
    box-shadow: 0px 0px 17px -3px #607D8B;
  }
  .negro .site-item .icon{
    background: #000000;
    border: 1px solid #7f7f7f;
    box-shadow: 0px 0px 17px -3px #000000;
  }

/* Si usas SVG inline, la prop stroke/fill será blanca */
.site-item .icon svg { width: 20px; height: 20px; display:block; }

/* titulo / dominio */
.site-item .info { display:flex; flex-direction:column; }
.site-item .info .title { font-size: 14px; font-weight:700; line-height:1.1; }
.site-item .info .domain { font-size: 12px; color: rgba(255,255,255,0.65); }
  
  a.site-item:hover .icon{
    transform: translateY(-7px);
  }

/* ===== Diseño para grid de apps (accesos directos pequeños) ===== */
.app-grid {
  gap: 12px;
    align-items: start;
    display: flex;
    flex-wrap: wrap;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: transform .12s, background .12s;
  width: 60px;
}
.app-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.02); }

/* icono app */
.app-item .app-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 6px;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.app-item img { max-width: 36px; max-height:36px; display:block; }

/* texto pequeño (10px) */
.app-item .app-name { font-size: 10px; line-height: 1.1; color: #fff; }

/* Subtítulos / títulos de secciones */
.dw-section-title {
  font-size: 16px;
  margin: 6px 0 10px 0;
  color: #fff;
  font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .dw-header { padding: 8px; }
  .dw-title { font-size: 14px; }
  .dynamic-window { width: 96vw; }
}
  a.donar-btn{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 7px 20px;
    color: #000;
    border-radius: 9px;
    margin: 6px auto;
  }
  span.donar-icon img{
    width: 42px;
    height: 42px;
    object-fit: contain;
    vertical-align: middle;
  }
  .donar-redes{
    gap: 10px;
    display: flex;
  }
  p.donar-desc{
    font-size: 14px;
  }
  a.donar-btn:hover{
        background: #1c7ef6;
  }
  .donar-container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* Switch */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

/* Ocultar checkbox nativo */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #B0B0B0;
  border: 1px solid #b0b0b000;
  transition: .4s;
  border-radius: 32px;
  outline: none;
}

.slider:before {
  position: absolute;
  content: "";
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  outline: 2px solid #B0B0B0;
  left: -1px;
  bottom: 0;
  background-color: #fff;
  transition: transform .25s ease-in-out 0s;
}

.slider-icon {
  opacity: 0;
  height: 12px;
  width: 12px;
  stroke-width: 3;
  position: absolute;
  z-index: 999;
  stroke: #10c117;
  right: 60%;
  top: 30%;
  transition: right ease-in-out .3s, opacity ease-in-out .15s;
}

input:checked + .slider {
  background-color: #10c117;
}

input:checked + .slider .slider-icon {
  opacity: 1;
  right: 20%;
}

input:checked + .slider:before {
  transform: translateX(1.5em);
  outline-color: #10c117;
}

/* Texto al lado del switch */
.menu-text {
  margin-left: 10px;
  vertical-align: middle;
  font-size: 15px;
  color: #fff;
}

div#widgets-container{
display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: fixed;
    right: 40px;
    top: 40px;
    width: 500px;
    align-items: flex-end;
    color: #fff;
}
.hora{
    font-size: 6em;
    line-height: 1;
    font-weight: bold;
}
div#widget-clock{
   display: flex;
    align-items: center;
    flex-direction: column-reverse;
    text-shadow: 0px 1px 1px #00000040;
}
div#widgets-ryb{
position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: #fff;
}
form.google-form{
width: 420px;
    max-width: 95vw;
    max-height: 75vh;
    background: #0f0f16ad;
    color: #fff;
    border-radius: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    transition: transform 240ms cubic-bezier(.2, .9, .3, 1), opacity 240ms cubic-bezier(.2, .9, .3, 1);
}

input::placeholder{
color: #ffffff82;
}
button.flech{
background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
}
/* Panel lateral oculto */
  #fondo-pantalla {
  transition: opacity 0.8s ease-in-out;
}

.bg-thumb.active {
  border: 3px solid #0078D7; /* azul tipo Windows */
  box-shadow: 0 0 10px rgba(0,120,215,0.7);
}

#bg-panel {
  position: fixed;
    top: 50%;
    left: -220px;
    transform: translateY(-50%);
    width: 220px;
    background: #0f0f16ad;
    color: #fff;
    border-radius: 0 10px 10px 0;
    padding: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease;
    z-index: 9999;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

#bg-panel.open {
  left: 0;
}

#bg-toggle-btn {
  position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    color: #fff;
    border-radius: 0 26px 26px 0;
    padding: 47px 4px;
    cursor: pointer;
    font-size: 22px;
    background-color: rgba(40, 40, 40, 0.56);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.bg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bg-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.bg-thumb:hover {
  border: 2px solid #0073e6;
}

/* Toggle automático */
.auto-toggle {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.auto-toggle input {
  accent-color: #0073e6;
}
div#recientes{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
  }
  div#recientes h3{
    color: #fff;
    font-size: 14px;
  }
  #recientes button{
    overflow: hidden;
    text-overflow: ellipsis;
    width: 80%;
    white-space: nowrap;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px dashed #0ced8c !important;
    background: transparent !important;
    color: #fff !important;
  }
.status-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: gray; /* por defecto */
  }
  .iptv-card {
    position: relative; /* para que el círculo se posicione dentro */
  }

  .player-overlay{
    transition: all .3s ease;
  }
  input[type="file"] {
      display: none;
    }

    label#iptv-file-label {
      display: flex;
    color: white;
    padding: 0px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px dashed #fff;
    height: 100%;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    }
/* ===== Overlay centrado ===== */
#iptv-modal {
position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
}
#iptv-container {
    width: 90%;
    max-width: 1500px;
    height: 90vh;
    background: #43435347;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
}

/* Pantalla bienvenida */
#iptv-welcome {
      flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    background: #000000d9;
    background-size: cover;
    background-blend-mode: color-dodge;
    background-image: url(https://sevengrapp.com.ar/wp-content/uploads/2019/01/famili.jpg) !important;
    background-repeat: no-repeat;
      gap: 10px;
}
#iptv-welcome input {
  padding: 0px 10px;
    border-radius: 6px;
    border: none;
    height: 100%;
}
  #iptv-welcome button{
    border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #0ced8c;
  color: #000;
  font-weight: bold;
  }
.boton-gl {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #0ced8c;
  color: #000;
  font-weight: bold;
  margin: 4px;
}
  .welcome-input button{
    height: 100%;
  }
  .welcome-input{
    padding: 0px 20px;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    width: 100%;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 210px;
  }
#iptv-error {
  margin-top: 10px;
  color: #ff0000;
}
#iptv-close-welcome {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0ced8c;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  display: flex;
    justify-content: center;
    align-items: center;
}
  input#iptv-url::placeholder{
        color: #a1a1a1;
  }
/* ===== Layout principal ===== */
#iptv-main {
  flex: 1;
  display: flex;
  height: 90%;
}
#iptv-sidebar {
  width: 250px;
  background: #111830ba;
  overflow-y: auto;
  padding: 10px;
  overflow-x: hidden;
}
#iptv-sidebar div {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #070e2585;
  border-radius: 6px;
  cursor: pointer;
  -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
#iptv-sidebar div.active {
  background: #0ced8c;
    color: #000;
}

.iptv-card:hover { transform: scale(1.05); }
.iptv-card img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
}
.iptv-card span {
  display: block;
  text-align: center;
  padding: 6px;
  font-size: 13px;
}

/* ===== Reproductor ===== */
#iptv-player-screen {
  flex: 1;
  background: #000000b0;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
}
#iptv-topbar-general{
  gap: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px;  
}
#iptv-topbar {
    gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  z-index: 10;
}
  div#iptv-topbar-general div{
    display: flex;
    justify-content: flex-end;
  }
  div#iptv-topbar-general h2, div#iptv-topbar h2{
    color: #fff;
    padding: 0;
    margin-left: 20px;
    font-weight: 800;
  }
#iptv-video {
  flex: 1;
  background: #000000a3;
  width: 100%;
  max-height: 100vh;
  height: 100%;
}
#iptv-controls {
  display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    width: 100%;
  gap: 10px;
}
  #iptv-controls .left-controls,
#iptv-controls .right-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
  #btn-playpause {
  background: rgba(255,255,255,0.15);
  width: 50px;
  height: 50px;
}
  div#volume-container{
  display: flex;
    width: 170px;
    align-items: center;
    gap: 10px;
  }

  
  div#iptv-bottombar{
   position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    flex-direction: column;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
  }
  
  /* ================================
   SLIDER DE PROGRESO
   ================================ */
#iptv-progress-container {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#iptv-progress {
    width: 100%;
}
  .player-overlay input#seekbar, input#volume-slider{
    width: 100%;
    height: 5px;
    background: rgb(255 255 255 / 54%);
    cursor: pointer;
    appearance: none;
    border-radius: 500px;
  }
#iptv-progress::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff !important;
  cursor: pointer;
}

#iptv-time {
  margin-top: 5px;
  font-size: 12px;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  width: 35px;
}

/* ================================
   OCULTAR CONTROLES CUANDO NO SE USA
   ================================ */
#iptv-player-screen.hide-ui #iptv-topbar,
#iptv-player-screen.hide-ui #iptv-controls,
#iptv-player-screen.hide-ui #iptv-progress-container {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
  .boton-repro{
    border: none;
    background: transparent;
    margin: 0;
    height: 34px;
    width: 34px;
    padding: 0;
    fill: #fff;
    cursor: pointer;
    color: #fff;
  }
  .boton-repro2{
        border: none;
    background: transparent;
    margin: 0 10px;
    height: 34px;
    width: 34px;
    padding: 0;
    fill: #fff;
    color: #fff;
    cursor: pointer;
  }
  
#iptv-grid {
        flex: 1;
    background: #0f14258a;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    overflow-y: auto;
    align-content: space-between;
    height: 100%;
}
.iptv-card {
      background: #1c24406b;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    flex: 1 1 200px;
    max-width: 215px;
    max-height: 225px;
    aspect-ratio: 1 / 2;
    display: flex;
    flex-direction: column;
  width: 213px;
    height: 213px;
  border: 1px solid rgb(66 107 255 / 27%);
}
.iptv-card img {
    width: 100%;
    height: auto;
    flex: 1;
    object-fit: contain;
}
  .iptv-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 20px 0px 20px;
  }

  .iptv-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  div#canales{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  #paginass button{
    border: none;
    border-radius: 5px;
    min-width: 40px;
    padding: 7px;
    cursor: pointer;
    background: #0000007a;
    color: #fff;
  }
  #paginass button:hover{
    background: #0ced8c;
    color: #fff;
  }
  div#paginass{
        display: flex;
    width: 100%;
    padding: 5px;
  }
  button#btn-volver{
    padding: 3px 20px;
    color: #fff;
    background: transparent;
  }
  button#btn-apagar{
    display: flex;
    background: transparent;
    align-items: center;
    color:#fff;
  }
  button#btn-apagar:hover svg g path, button#btn-volver:hover svg path, .boton-repro2:hover svg path{
    fill: #0ced8c;
}
  #iptv-welcome button:hover, .boton-gl:hover{
        background: #06b76b;
  }
  span#iptv-live{
font-size: 10px;
    padding: 0px 11px;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
}
span#iptv-live:hover{
background: #fff;
    color: #000;
    font-weight: bold;
}
  
  /*sliders barras*/
  /* Estilo base para ambos sliders */
input[type="range"] {
  -webkit-appearance: none; /* quitar estilo por defecto */
  width: 100%;
  height: 5px;
  border-radius: 500px;
  background: rgb(255 255 255 / 54%); /* fondo actual */
  cursor: pointer;
}

/* Chrome, Edge, Safari */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ced8c; /* color del punto indicador */
  border: none;
  margin-top: -4.5px; /* centrar el thumb con la barra */
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 500px;
  background: linear-gradient(to right, #0ced8c 0%, #0ced8c var(--seek-percent, 0%), rgba(0,0,0,0.54) var(--seek-percent, 0%), rgba(0,0,0,0.54) 100%);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ced8c;
  border: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 500px;
  background: rgba(0,0,0,0.54);
}

/* IE */
input[type="range"]::-ms-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0ced8c;
  border: none;
  cursor: pointer;
}

input[type="range"]::-ms-track {
  height: 5px;
  border-radius: 500px;
  background: rgba(0,0,0,0.54);
  border-color: transparent;
  color: transparent;
}
#volume-display{
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
}
  #iptv-player-screen:fullscreen .player-overlay,
#iptv-player-screen:-webkit-full-screen .player-overlay,
#iptv-player-screen:-moz-full-screen .player-overlay {
    opacity: 1 !important;
    z-index: 9999 !important; /* asegurarte que esté sobre el video */
}

video:fullscreen {
    outline: none; /* evita borde por defecto */
}
.loader {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader:before , .loader:after{
  content: '';
  border-radius: 50%;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}
.loader:after {
  box-shadow: 0 2px 0 #0ced8c inset;
  animation: rotate 2s linear infinite;
}
  .loader.error{
    width: auto;
  height: auto;
  font-size: 16px;
  padding: 10px;
  }
  .loader.error:after, .loader.error:before {
  border: none;
  animation: none;
  box-shadow: none;
}

@keyframes rotate {
  0% {  transform: rotate(0)}
  100% { transform: rotate(360deg)}
}
  
  #iptv-topbar-general #btn-menu{
    display:none;
  }
  span.logo-iptv{
        display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
  }
  /* ================================
    PARA CELULARES
  ================================ */
  @media (max-width: 479px){
    form.google-form{
      max-width: 85vw;
    }
    .hora{
      font-size: 5em;
    }
    .fecha{
      font-size: 16px;
    }
    div#widgets-container{
      top: 300px;
      right: 0;
      left: 0;
      align-items: center;
      width: 100%;
      transform: scale(0.8);
    }
    #iptv-topbar-general #btn-menu{
      display:block;
    }
    #iptv-controls{
      flex-wrap: wrap;
      justify-content: center;
    }
    div#iptv-topbar-general h2, div#iptv-topbar h2{
          font-size: 12px;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          overflow: hidden;
          text-overflow: ellipsis;
    }
    .iptv-card{
      flex: 75px;
      width: 82px;
      height: 82px;
      max-width: 82px;
    }
    .iptv-card span{
      display:none;
    }
    .iptv-img-container{
      padding: 0px;
    }
    .boton-gl{
          padding: 3px 10px;
      margin: 2px;
    }
    .boton-cel{
      background: transparent;
    border: none;
    fill: #fff;
    }
    div#canales{
      justify-content: center;
    }
    /* Sidebar móvil */
    #iptv-sidebar {
      position: fixed;
      top: 45px;
      left: -250px; /* oculto por defecto */
      width: 250px;
      height: 85vh;
      background: #000000e6;
      color: #fff;
      overflow-y: auto;
      transition: left 0.3s ease;
      z-index: 9999;
    }

    #iptv-sidebar.open {
      left: 0; /* visible cuando se abre */
    }

    /* Overlay cuando está abierto */
    #iptv-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 9998;
    }

    #iptv-overlay.active {
      display: block;
    }
    #hamburger-icon rect {
      transition: all 0.3s ease;
      transform-origin: center;
    }

    /* Estado "abierto" */
    #hamburger-icon.open #line1 {
      transform: translateY(3px) rotate(45deg);
    }
    #hamburger-icon.open #line2 {
      opacity: 0;
    }
    #hamburger-icon.open #line3 {
      transform: translate(-4px, -2px) rotate(-45deg);
    }
    span.logo-iptv{
      flex-direction: column;
    font-size: 24px;
    }
    span.logo-iptv img{
          width: 74px;
    }
  }
/* ================================
    fin PARA CELULARES
  ================================ */
  .icon-h{
  border-radius:5px;
  overflow:hidden;
}
.borroso{
  background:rgba(40,40,40,0.40);
  border-radius:20px !important;
  overflow:hidden;
  box-shadow:0 0 14px -8px #000;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
.icon_carpeta{
  float:left;
}
.final_icon{
  float:none;
}
/* Carpeta (ícono) */
.close-btn, .folder-icon {
  cursor: pointer;
}


button#cerrar-ventana{
      display: flex;
    width: fit-content;
    justify-content: flex-end;
    padding: 20px;
    margin: 0 0 0 auto;
    right: 0;
    position: relative;
}
div#contenedor-modulos{
      display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}


/*chat*/
  button#btn-chat{
    position: absolute;
    display: flex;
    top: 50%;
    width: max-content;
    background-color: #00000075;
    color: #fff;
    padding: 10px 30px;
    border-radius: 20px 20px 0 0;
    right: -68px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    transform: rotateZ(-90deg) translateY(-50%);
    backdrop-filter: blur(20px) !important;
  }
  #chat {
    position: relative;
    display: flex;
    bottom: 0;
    width: max-content;
    background-color: #ffffff17;
    color: #fff;
    padding: 2px 9px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    align-items: center;
    justify-content: center;
  }
  #chat:hover {
    background-color: #000;
  }

  #chatWindow {
    position: fixed;
    right: 20px;
    bottom: -100%;
    max-width: 370px;
    width: 95%;
    height: 500px;
    background: #0f0f16ad;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 0;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  #chatHeader {
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }

  #chatContent {
    width: 100%;
    height: calc(100% - 1px);
    overflow: hidden;
    position: relative;
  }

  #chatContent iframe {
    position: absolute;
    top: -37px;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    scrollbar-width: none;
  }

  #chatContent iframe::-webkit-scrollbar {
    display: none;
  }

  #chatWindow.open {
    bottom: 45px;
    opacity: 1;
    z-index: 99999999;
  }
  @media (max-width: 767px){
    #chatWindow {
      right: 0;
      left: 0;
      margin: auto;
    }
    #chatWindow.open {
    bottom: 0;
  }
  }