/* Adblock */

#page-content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

body.ad-ok #page-content {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

/* Adblock */

body {
  background: #181c24;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #e3e6eb;
  box-sizing: border-box;
  width: 100vw;
  overflow-x: hidden;
}
header {
  background: transparent;
  padding: 32px 0 12px 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  margin: 0 0 18px 0;
  font-size: 2.4rem;
  color: #7ecbff;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}
.buscador-wrapper {
  position: relative;
  width: 320px;
  max-width: 90vw;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  background: #23273a;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0002;
}
#buscador {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #7ecbff;
  font-size: 1rem;
  outline: none;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.buscador-wrapper .fa-magnifying-glass {
  position: absolute;
  right: 12px;
  color: #4eaaff;
  font-size: 1.1rem;
  pointer-events: none;
}
#buscador::placeholder {
  color: #5ea0ff99;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.main-content {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: hidden;
}
.canal-list {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 8px 40px 8px;
  box-sizing: border-box;
}
.canal-card {
  background: #23273a;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(30,40,80,0.13);
  padding: 24px 5vw 22px 5vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 5px solid #4eaaff;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
.canal-nombre {
  font-size: 1.13rem;
  font-weight: 700;
  color: #7ecbff;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  text-shadow: 0 1px 4px #1a223355;
}
.canal-link-row {
  background: #1a1e2a;
  padding: 8px 12px;
  border-radius: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.99rem;
  border: 1px solid #232a36;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  box-sizing: border-box;
}
.acestream-link {
  color: #4eaaff;
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
}
.acestream-link:hover {
  color: #90caf9;
  text-decoration: underline;
}
.acestream-link,
.acestream-link:hover,
.acestream-link:active,
.acestream-link:focus {
  text-decoration: none !important;
  outline: none;
}
.canal-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.canal-btn {
  background: #4eaaff;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 4px rgba(78,170,255,0.08);
  letter-spacing: 0.2px;
}
.canal-btn:hover {
  background: #388be0;
  box-shadow: 0 2px 8px rgba(78,170,255,0.18);
  transform: translateY(-1px) scale(1.04);
}
.canal-btn .fa-solid {
  font-size: 1em;
}
.notification {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(90deg, #232a36 70%, #4eaaff 130%);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  z-index: 1000;
  box-shadow: 0 6px 32px rgba(30,40,80,0.22), 0 2px 8px rgba(30,40,80,0.10);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(40px) scale(0.98);
  border: 1.5px solid #4eaaff;
}
.notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.notification .fa-check-circle {
  color: #7ecbff;
  font-size: 1.4em;
}

/* Theme toggle button - nuevo estilo tipo material */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  cursor: pointer;
  user-select: none;
}
.theme-toggle .fa-moon {
  color: #4eaaff;
  font-size: 1.2em;
  transition: color 0.2s;
}
.theme-toggle .fa-sun {
  color: #ffd700;
  font-size: 1.2em;
  transition: color 0.2s;
}
.toggle-slider {
  width: 44px;
  height: 22px;
  background: #bdbdbd;
  border-radius: 11px;
  position: relative;
  transition: background 0.3s;
  box-shadow: 0 1px 4px #0001;
  flex-shrink: 0;
}
.toggle-ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #f3f3f3;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0002;
  transition: left 0.25s cubic-bezier(.4,2,.6,1), background 0.25s;
}
.theme-toggle.active .toggle-slider {
  background: #4eaaff;
}
.theme-toggle.active .toggle-ball {
  left: 24px;
  background: #fff;
}
.theme-toggle .fa-moon {
  opacity: 1;
}
.theme-toggle .fa-sun {
  opacity: 1;
}
@media (max-width: 600px) {
  .theme-toggle {
    gap: 5px;
  }
  .toggle-slider {
    width: 34px;
    height: 16px;
  }
  .toggle-ball {
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
  }
  .theme-toggle.active .toggle-ball {
    left: 16px;
  }
  .theme-toggle .fa-moon,
  .theme-toggle .fa-sun {
    font-size: 1em;
  }
  .form-btn {
    font-size: 0.93rem;
    padding: 7px 10vw;
    min-width: 0;
    width: 90vw;
    max-width: 100%;
    margin: 10px auto 0 auto;
    justify-content: center;
    box-sizing: border-box;
  }
  .form-btn .fa-bug {
    font-size: 1.1em;
  }
}
/* Light theme */
.light-theme {
  --bg: #f3f6fb;         /* Fondo general, un poco más oscuro que blanco */
  --header-bg: #f3f6fb;  /* Fondo del header igual que el fondo general */
  --text: #23273a;
  --card-bg: #fff;       /* Tarjetas blancas */
  --card-border: #b3d1ff;
  --link: #1976d2;
  --link-hover: #388be0;
  --input-bg: #e3e6eb;
  --input-text: #23273a;
  --btn-bg: #1976d2;
  --btn-hover: #388be0;
  --notif-bg: #e3e6eb;
  --notif-border: #1976d2;
  --notif-text: #23273a;
}
.light-theme body {
  background: var(--bg) !important;
  color: var(--text);
}
.light-theme header {
  background: var(--header-bg) !important;
}
.light-theme .main-content {
  background: var(--bg) !important;
}
.light-theme .canal-card {
  background: var(--card-bg); /* Blanco puro para las tarjetas */
  border-left: 5px solid var(--card-border);
  color: var(--text);
  box-shadow: 0 4px 24px #b3d1ff33;
}
.light-theme .canal-nombre {
  color: var(--text);
  text-shadow: none;
}
.light-theme .canal-link-row {
  background: var(--input-bg);
  border: 1px solid #b3d1ff;
}
.light-theme .acestream-link {
  color: var(--link);
}
.light-theme .acestream-link:hover {
  color: var(--link-hover);
}
.light-theme .canal-btn {
  background: var(--btn-bg);
  color: #fff;
}
.light-theme .canal-btn:hover {
  background: var(--btn-hover);
}
.light-theme .form-btn {
  background: var(--btn-bg);
  color: #fff;
}
.light-theme .form-btn:hover {
  background: var(--btn-hover);
}
.light-theme .buscador-wrapper {
  background: var(--input-bg);
  box-shadow: 0 2px 8px #b3d1ff33;
}
.light-theme #buscador {
  background: transparent;
  color: var(--input-text);
}
.light-theme #buscador::placeholder {
  color: #1976d299;
}
.light-theme .notification {
  background: linear-gradient(90deg, var(--notif-bg) 70%, #b3d1ff 130%);
  color: var(--notif-text);
  border: 1.5px solid var(--notif-border);
}
.light-theme .notification .fa-check-circle {
  color: var(--btn-bg);
}

/* Dark theme (default) */
.dark-theme body {
  background: #181c24;
  color: #e3e6eb;
}
.dark-theme header {
  background: transparent;
}
.dark-theme .canal-card {
  background: #23273a;
  border-left: 5px solid #4eaaff;
  color: #e3e6eb;
  box-shadow: 0 4px 24px rgba(30,40,80,0.13);
}
.dark-theme .canal-nombre {
  color: #7ecbff;
  text-shadow: 0 1px 4px #1a223355;
}
.dark-theme .canal-link-row {
  background: #1a1e2a;
  border: 1px solid #232a36;
}
.dark-theme .acestream-link {
  color: #4eaaff;
}
.dark-theme .acestream-link:hover {
  color: #90caf9;
}
.dark-theme .canal-btn {
  background: #4eaaff;
  color: #fff;
}
.dark-theme .canal-btn:hover {
  background: #388be0;
}
.dark-theme .form-btn {
  background: #4eaaff;
  color: #fff;
}
.dark-theme .form-btn:hover {
  background: #388be0;
}
.dark-theme .buscador-wrapper {
  background: #23273a;
  box-shadow: 0 2px 8px #0002;
}
.dark-theme #buscador {
  background: transparent;
  color: #7ecbff;
}
.dark-theme #buscador::placeholder {
  color: #5ea0ff99;
}
.dark-theme .notification {
  background: linear-gradient(90deg, #232a36 70%, #4eaaff 130%);
  color: #fff;
  border: 1.5px solid #4eaaff;
}
.dark-theme .notification .fa-check-circle {
  color: #7ecbff;
}
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.logo-circular {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 2px 8px #0002;
  background: #fff;
}
.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px auto 0 auto;
  padding: 8px 18px;
  background: #4eaaff;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.form-btn:hover {
  background: #388be0;
  box-shadow: 0 4px 16px #4eaaff33;
  transform: translateY(-1px) scale(1.04);
}
.form-btn .fa-bug {
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .form-btn {
    font-size: 0.93rem;
    padding: 7px 10vw;
    min-width: 0;
    width: 90vw;
    max-width: 100%;
    margin: 10px auto 0 auto;
    justify-content: center;
    box-sizing: border-box;
  }
  .form-btn .fa-bug {
    font-size: 1.1em;
  }
  .kofi-button {
    font-size: 0.93rem;
    padding: 7px 10vw;
    min-width: 0;
    width: 90vw;
    max-width: 100%;
    margin: 10px auto 0 auto;
    justify-content: center;
    box-sizing: border-box;
  }
  .kofi-button .kofitext {
    font-size: 1.1em;
  }
}

/* AVISO FLOTANTE DE PRUEBAS */
.aviso-pruebas {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(30, 40, 80, 0.82);
  color: #fff;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 1.01rem;
  font-weight: 500;
  box-shadow: 0 4px 24px #0005, 0 1px 8px #4eaaff33;
  z-index: 2000;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none; /* No bloquea clics en la web */
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}
.aviso-pruebas .fa-flask {
  color: #ffd700;
  font-size: 1.3em;
  filter: drop-shadow(0 1px 4px #23273a88);
}
@media (max-width: 600px) {
  .aviso-pruebas {
    font-size: 0.93rem;
    padding: 10px 8vw;
    border-radius: 10px;
    bottom: 12px;
    max-width: 96vw;
    left: 2vw;
    right: 2vw;
    transform: none;
  }
}
/* FIN AVISO FLOTANTE DE PRUEBAS */

/* Boton Telegram */
.telegram-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4eaaff;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.telegram-link:hover {
  background: #3896e5;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.telegram-link i {
  font-size: 1.2rem;
}

/* Temas claros/oscuro */
.light-theme .telegram-link {
  background: var(--btn-bg, #007bff);
}

.dark-theme .telegram-link {
  background: #4eaaff;
}

/* Responsive: nada que tocar para posición fija, solo ajuste de tamaño */
@media (max-width: 768px) {
  .telegram-link {
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .telegram-link {
    font-size: 0.75rem;
    padding: 7px 12px;
    border-radius: 8px;
  }

  .telegram-link i {
    font-size: 1rem;
  }
}

/* Botón Ko-Fi */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');

  .kofiimg {
    display: inline !important;
    vertical-align: middle;
    height: 15px !important;
    width: 22px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-right: 5px !important;
    margin-bottom: 3px !important;
    animation: kofi-wiggle 3s infinite;
  }

  .kofi-button {
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
    line-height: 36px !important;
    min-width: 150px;
    display: inline-block !important;
    background-color: #4eaaff; /* tu color personalizado */
    padding: 2px 12px !important;
    text-align: center !important;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    border: 0 none #fff !important;
    font-family: 'Quicksand', Helvetica, sans-serif !important;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 14px !important;
  }

  .kofi-button:hover {
    opacity: 0.85;
    color: #f5f5f5 !important;
    text-decoration: none !important;
  }

  .kofitext {
    color: #fff !important;
    letter-spacing: -0.15px !important;
    vertical-align: middle;
    line-height: 33px !important;
    text-align: center;
    text-decoration: none !important;
  }

  @keyframes kofi-wiggle {
    0% { transform: rotate(0) scale(1); }
    60% { transform: rotate(0) scale(1); }
    75% { transform: rotate(0) scale(1.12); }
    80% { transform: rotate(0) scale(1.1); }
    84% { transform: rotate(-10deg) scale(1.1); }
    88% { transform: rotate(10deg) scale(1.1); }
    92% { transform: rotate(-10deg) scale(1.1); }
    96% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
  }

.dark-theme .kofi-button {
  background: #4eaaff;
  color: #fff;
}

.light-theme .kofi-button {
  background: var(--btn-bg);
  color: #fff;
}
/* Botones de acciones en el header: fuego + tema */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 10;
}
@media (max-width: 600px) {
  .header-actions {
    top: 10px;
    right: 10px;
    gap: 5px;
  }
}
