.login-box h2 {
  color: transparent !important;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-align: center;
}

.login-box button[type="submit"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px #2563eb22, 0 1.5px 8px 0 #3b82f622;
}
.login-box button[type="submit"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px #2563eb33;
}
/* ===== HERO Y LOGIN AVANZADO ===== */
body {
  font-family: 'Inter', sans-serif;
  background: #0f171e;
  color: #ffffff;
  min-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}

body::-webkit-scrollbar {
  width: 8px;
  background: #1a1a1a;
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #555 0%, #222 100%);
  border-radius: 8px;
}

.main-container {
  display: flex;
  height: 100vh;
  background: linear-gradient(135deg, #0f171e 0%, #1a252f 50%, #0f171e 100%);
  flex-direction: row;
  border: none;
}

.login-section {
  width: 25%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
  position: relative;
  border: none;
}

.login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 136, 204, 0.02) 0%, rgba(0, 0, 0, 0.98) 100%);
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
}

.login-logo {
  width: 200px;
  display: block;
  margin: 0 auto 30px auto;
  transition: transform 0.3s cubic-bezier(.4,1.6,.6,1);
}
.login-logo:hover {
  transform: scale(1.12) rotate(-2deg);
  filter: drop-shadow(0 8px 24px #2563eb33);
}

.login-box {
  background: #fff;
  color: #23283a;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(60, 60, 120, 0.25), 0 1.5px 8px 0 rgba(59,130,246,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  border: none;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 136, 204, 0.15);
  padding: 0 10px;
}

.input-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.login-box input[type="text"],
.login-box input[type="text"],
.login-box input[type="password"] {
  background: transparent;
  border: none;
  outline: none;
  color: #23283a;
  padding: 12px 0;
  font-size: 1rem;
  width: 100%;
}

.login-box input::placeholder {
  color: rgba(255,255,255,0.4);
}

.login-box button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #b400cc 0%, #004d73 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.login-box button[type="submit"]:hover {
  background: linear-gradient(135deg, #dd00dd 0%, #005580 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.2);
}

.error-message {
  background: rgba(204, 102, 0, 0.1);
  border: 1px solid rgba(204, 102, 0, 0.2);
  color: #ffaa66;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
}

/* HERO SECTION */
.hero-section {
  width: 75%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
  border: none;
}

.hero-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85) blur(0.5px);
  transition: all 2s ease-in-out;
  z-index: 1;
  border: none;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, rgba(0, 136, 204, 0.08) 0%, rgba(15, 23, 30, 0.4) 40%, rgba(15, 23, 30, 0.5) 100%);
  z-index: 2;
  border: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0;
  padding-right: 50px;
  padding-bottom: 50px;
  padding-left: 50px;
  border: none;
}

.hero-main {
    padding-top: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
    padding-left: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none;
  width: calc(100% - 100px);
  border: none;
  margin-top: 0;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 220px;
  margin-bottom: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 40px;
  margin-bottom: 0;
  line-height: 1.4;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 0.8s forwards;
}

.trending-section {
  position: absolute;
  bottom: 0;
  padding-bottom: 80px;
  left: 50px;
  right: 50px;
  height: 280px;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 1.4s forwards;
  border: none;
}

.trending-header {
  margin-bottom: 18px;
}

.trending-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.movies-slider {
    margin-top: -60px;
  position: relative;
  height: 300px;
  overflow: visible;
  display: flex;
  align-items: center;
  mask: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  border: none;
}

.movies-track {
  /* sin borde */
  display: flex;
  gap: 12px;
  animation: scroll 35s linear infinite;
  width: max-content;
  border: none;
  min-width: 2000px;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.movie-card {
  min-width: 150px;
  height: 220px;
  position: relative;
  border-radius: 10px;
  overflow: visible;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: none;
}

.movie-card:hover {
  transform: scale(1.06) translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 136, 204, 0.25);
  z-index: 10;
  border-color: rgba(0, 136, 204, 0.3);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  border-radius: 8px;
  border: none;
}

.movie-card:hover .movie-poster {
  transform: scale(1.08);
}

.movie-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 30, 0.95));
  padding: 18px 12px 12px;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.4s;
}

.movie-card:hover .movie-overlay {
  transform: translateY(0);
  opacity: 1;
}

.movie-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  line-height: 1.2;
}

.movie-rating {
  font-size: 0.7rem;
  color: #c200cc;
  font-weight: 500;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .login-section { width: 35%; }
  .hero-section { width: 65%; }
}

@media (max-width: 768px) {
  .login-box input[type="text"],
  .login-box input[type="password"] {
    color: #23283a;
  }
  .main-container { flex-direction: column; }
  .login-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    background: rgba(0,0,0,0.97);
  }
  .login-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    padding: 0 12px;
  }
  .login-box {
    border-radius: 22px !important;
    box-shadow: 0 8px 32px 0 rgba(60, 60, 120, 0.30), 0 1.5px 8px 0 rgba(59,130,246,0.13);
    margin-top: 32px;
    margin-bottom: 32px;
    padding: 2.2rem 1.1rem 1.7rem 1.1rem;
    background: #fff;
  }
  .hero-section { width: 100%; height: 55vh; }
  .hero-content { padding: 30px 25px; }
  .hero-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .hero-section { display: none; }
  .login-container { padding: 0 8px; }
}
/* Estilo moderno para el buscador de series */
.tv-search-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0,0,0,0.95);
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1.2rem;
  margin-top: 1.2rem;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

#buscador-serie {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid #444;
  font-size: 1.1rem;
  background: rgba(30,30,30,0.9);
  color: #fff;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.3);
}
#buscador-serie:focus {
  border: 1.5px solid #888;
  box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}

#btn-buscar-serie, #btn-actualizar-serie {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
  color: #333;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1.5px 8px 0 rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  min-width: 44px;
  min-height: 44px;
}
/* Las siguientes líneas estaban fuera de un selector y causaban error de sintaxis. Si necesitas estos estilos, asígnalos a un selector válido. */
}
.search-icon, .refresh-icon {
  font-size: 1.2em;
  margin-right: 0.2em;
}
/* Scrollbar elegante para modales de series */
#modal-serie-temporadas, #modal-serie-episodios {
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}
#modal-serie-temporadas::-webkit-scrollbar, #modal-serie-episodios::-webkit-scrollbar {
  width: 8px;
  background: #1a1a1a;
  border-radius: 8px;
}
#modal-serie-temporadas::-webkit-scrollbar-thumb, #modal-serie-episodios::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #555 0%, #222 100%);
  border-radius: 8px;
}
/* Grid de películas en filas de 5 */
.peliculas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
.pelicula-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #3b82f611;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0.4rem 0.7rem 0.4rem;
  transition: box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  border: 1.2px solid #e0e6ed;
  overflow: hidden;
}
.pelicula-card:hover {
  box-shadow: 0 4px 24px #2563eb33;
  transform: translateY(-4px) scale(1.03);
}

.pelicula-card-selected {
  box-shadow: 0 0 0 3px #FFD700, 0 4px 24px rgba(255, 215, 0, 0.4);
  transform: translateY(-4px) scale(1.03);
  border: 1.2px solid #FFD700;
}
.pelicula-poster {
    width: 100%;
    max-width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: #f3f6fa;
    display: block;
}
.pelicula-titulo {
  color: #23283a;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
  min-height: 2.2em;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pelicula-titulo-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-titulo 6s linear infinite;
  min-width: 100%;
}
@keyframes scroll-titulo {
    0% { transform: translateX(0); }
    10% { transform: translateX(0); }
    90% { transform: translateX(calc(-100% + 180px)); }
    100% { transform: translateX(calc(-100% + 180px)); }
}
@media (max-width: 1200px) {
  .peliculas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .peliculas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .peliculas-grid {
    grid-template-columns: 1fr;
  }
}
.actualizar-texto {
  margin-left: 0.5em;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
  user-select: none;
}
/* Botón de actualizar junto al buscador */
/* Botón actualizar cuadrado azul moderno */
/* Estilo moderno para el buscador de películas */
.tv-search-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0,0,0,0.95);
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1.2rem;
  margin-top: 1.2rem;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

#buscador-pelicula {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid #444;
  font-size: 1.1rem;
  background: rgba(30,30,30,0.9);
  color: #fff;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.3);
}
#buscador-pelicula:focus {
  border: 1.5px solid #888;
  box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}

#btn-buscar-pelicula, #btn-actualizar-pelicula {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
  color: #333;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1.5px 8px 0 rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  min-width: 44px;
  min-height: 44px;
}
#btn-buscar-pelicula:hover, #btn-actualizar-pelicula:hover {
  background: linear-gradient(135deg, #F5F5F5 0%, #D0D0D0 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
#btn-actualizar-pelicula:active {
  transform: scale(0.96);
}
#btn-actualizar-pelicula:focus {
  box-shadow: 0 0 0 3px #3b82f699;
}
#btn-actualizar-pelicula:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 6px 24px #2563eb99;
}
.refresh-icon {
  font-size: 1.3em;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(.4,2.3,.3,1);
}
#btn-actualizar-canal.actualizando .refresh-icon {
  animation: girar 1s linear infinite;
}
@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Mensaje de error login */
.error-message {
  color: #fff;
  background: #e53935;
  padding: 10px;
  margin-top: 15px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}
/* Modal TV en Vivo */
/* Modal TV y Película */
.modal-tv, .modal-pelicula {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,36,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}
.modal-tv-content {
  background: #181c24;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(60,60,120,0.25);
  padding: 2.2rem 2.2rem 1.7rem 2.2rem;
  min-width: 600px;
  max-width: 98vw;
  min-height: 420px;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.modal-tv-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  transition: color 0.18s;
}
.modal-tv-close:hover {
  color: #3b82f6;
}
.modal-tv-info {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(24,28,36,0.85);
  border-radius: 18px;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 2px 12px #3b82f633;
}
.modal-tv-ver-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 2.2em;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.2em;
  transition: background 0.18s;
}
.modal-tv-ver-btn:hover {
  background: #2563eb;
}
.modal-tv-player-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
  min-width: 320px;
  min-height: 200px;
  max-width: 980px;
  aspect-ratio: 16 / 9;
}
.modal-tv-player {
  width: 540px;
  max-width: 92vw;
  height: 320px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 2px 12px #3b82f633;
}
.modal-tv-player-container .player-host {
  width: 100%;
  height: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.modal-tv-player-container .player-host .player-video,
.modal-tv-player-container .player-host video,
.modal-tv-player-container .player-host .video-js,
.modal-tv-player-container .player-host .plyr,
.modal-tv-player-container .player-host .plyr__video-wrapper,
.player-host .player-video,
.player-host video,
.player-host .video-js,
.player-host .plyr,
.player-host .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  min-width: 320px;
  min-height: 200px;
  max-width: 980px;
  max-height: 60vh;
  aspect-ratio: 16 / 9;
}

.modal-tv-player-container .player-host .plyr video,
.player-host .plyr video {
  width: 100% !important;
  height: 100% !important;
  min-width: 320px;
  min-height: 200px;
  max-width: 980px;
  max-height: 60vh;
  object-fit: contain !important;
  aspect-ratio: 16 / 9;
}

.modal-tv-content .player-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.modal-tv-content .player-switcher-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tv-content .player-switcher-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.modal-tv-content .player-switcher-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 6px 16px rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.modal-tv-content .player-switcher-btn.active::after {
  content: " ON";
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.modal-tv-content .player-notice {
  color: #ffbaba;
  text-align: center;
  font-size: 14px;
  padding: 8px 12px;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,186,186,0.4);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.modal-tv-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 0.5rem;
}
.modal-tv-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #3b82f622;
  transition: background 0.18s, box-shadow 0.18s;
}
.modal-tv-btn:hover {
  background: #2563eb;
}
.modal-tv-nombre {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .modal-tv-player {
    width: 98vw;
    height: 180px;
  }
  .modal-tv-content {
    min-width: 90vw;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
}
/* Fondo general oscuro y tipografía moderna */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 25%, #0f1420 50%, #1a1f35 75%, #0a0e1a 100%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: #f3f3f3;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255,255,255,0.8) !important;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(60, 60, 120, 0.25), 0 1.5px 8px 0 rgba(59,130,246,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  max-width: 90vw;
}

.login-logo {
  width: 200px;
  height: auto;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 2px 12px #0008);
}

.login-box h2 {
  color: #23283a;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.input-group {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f3f6fa;
  border-radius: 8px;
  margin-bottom: 1.1rem;
  border: 1.5px solid #e0e6ed;
  transition: border 0.2s;
  box-shadow: 0 1px 4px #0001;
}

.input-group:focus-within {
  border: 1.5px solid #3b82f6;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.9rem 0.7rem 0.9rem 0;
  font-size: 1rem;
  color: #23283a;
  width: 100%;
  border-radius: 8px;
}

.input-group input::placeholder {
  color: #8a94a6;
  opacity: 1;
}

.login-box button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(90deg, #3b82f6 60%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0003;
  letter-spacing: 0.04em;
}

.login-box button:hover {
  background: linear-gradient(90deg, #2563eb 60%, #3b82f6 100%);
  box-shadow: 0 4px 16px #2563eb44;
}

.dashboard-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.dashboard-item {
  background: rgba(255,255,255,0.56);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(60,60,120,0.13);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  user-select: none;
  min-width: 270px;
  min-height: 270px;
  margin: 0 0.5rem;
}

.dashboard-item:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 8px 32px rgba(59,130,246,0.18);
}

.dashboard-icon {
  font-size: 9rem;
  margin-bottom: 0.7rem;
}

.dashboard-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a237e;
  transition: color 0.18s;
}

.dashboard-item:hover .dashboard-label {
  color: #fff;
}

@media (max-width: 700px) {
  .dashboard-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
  .dashboard-item {
    min-width: 150px;
    min-height: 130px;
  }
  .sidebar {
    width: 100vw;
    height: auto;
    position: static;
    flex-direction: row;
    padding: 1rem 0.5rem;
    box-shadow: none;
  }
  .sidebar-section {
    flex-direction: row;
    align-items: center;
  }
  .sidebar-logo {
    width: 80px;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}

/* Estilos para el modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,36,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(60,60,120,0.18);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 300px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,1.6,.6,1) both;
}

@keyframes modalIn {
  0% { transform: scale(0.8) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.7rem auto;
  filter: drop-shadow(0 2px 12px #0004);
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.3s;
  cursor: pointer;
}

.modal-logo:hover {
  transform: scale(1.08) rotate(-8deg);
  filter: drop-shadow(0 6px 24px #1a237e88) brightness(1.1);
}

.modal-box h3 {
  margin-top: 0;
  color: #1a237e;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.modal-content {
  text-align: left;
  margin-left: 0.5rem;
}

.modal-content p {
  margin: 0.5rem 0;
  color: #23283a;
  font-size: 1.05rem;
}

.modal-close {
  margin-top: 1.5rem;
  padding: 0.7rem 2.2rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 8px #0002;
}

.modal-close:hover {
  background: #1a237e;
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #3b82f6;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.18s;
  z-index: 10;
}

.modal-close-x:hover {
  color: #1a237e;
}

.modal-logout {
  margin-top: 1.5rem;
  padding: 0.7rem 2.2rem;
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 2px 8px #0002;
}

.modal-logout:hover {
  background: #c62828;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  box-shadow: 2px 0 16px #0002;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 1rem 1rem;
  z-index: 100;
  justify-content: flex-start;
}

.sidebar-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.2rem;
  margin-top: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.4));
}

.sidebar-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.7rem;
  margin-top: 0;
  width: 100%;
  text-align: center;
}

.sidebar-separator {
  width: 100%;
  border: none;
  border-top: 2px solid #444444;
  margin: 0.5rem 0 1rem 0;
}


/* Categorías de películas */
#sidebar-categorias {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
  border-radius: 8px;
  background: transparent;
  padding-right: 4px;
}

/* Categorías de series */
/* Borde transparente para pruebas visuales */
#sidebar-categorias-series {
  border: 2px solid transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
  border-radius: 8px;
  background: transparent;
  padding-right: 4px;
}

#sidebar-categorias::-webkit-scrollbar {
  width: 8px;
  background: #1a1a1a;
  border-radius: 8px;
}

#sidebar-categorias::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #555 0%, #222 100%);
  border-radius: 8px;
}

.sidebar-categoria {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: transparent !important;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #444444;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-categoria:hover, .sidebar-categoria:focus {
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%) !important;
  color: #333;
  border: 2px solid #D0D0D0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.main-content {
  margin-left: 260px;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 2rem 0 2rem;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: transparent;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #1a1a1a;
}

.main-content::-webkit-scrollbar {
  width: 8px;
  background: #1a1a1a;
  border-radius: 8px;
}

.main-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #555 0%, #222 100%);
  border-radius: 8px;
}

.tv-header {
  border: 2px solid red;
  min-height: 80px;
  border-radius: 0;
  background: #fff6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0;
  width: 100%;
}

.tv-body {
  border: 2px solid red;
  border-top: none;
  border-radius: 0;
  background: #fff6f6;
  flex: 1;
  width: 100%;
  padding: 1.5rem;
  margin: 0;
  box-sizing: border-box;
}

.btn-regresar {
  display: block;
  margin: 1.5rem auto 1.5rem auto;
  padding: 0.8rem 2rem 1rem 2rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 50%, #B0B0B0 100%);
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.18s, box-shadow 0.18s;
  margin-top: auto;
  margin-bottom: 2rem;
}

.btn-regresar:hover {
  background: linear-gradient(135deg, #F5F5F5 0%, #D0D0D0 50%, #909090 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-icon {
  font-size: 1.2em;
  margin-right: 0.6em;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-regresar:hover .btn-icon {
  transform: translateX(-3px);
}

.tv-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(0,0,0,0.95);
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1.2rem;
  margin-top: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

#buscador-canal {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid #444;
  font-size: 1.1rem;
  background: rgba(30,30,30,0.9);
  color: #fff;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1.5px 8px rgba(0,0,0,0.3);
  position: relative;
}

#buscador-canal:focus {
  border: 1.5px solid #888;
  box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}

#btn-buscar-canal {

#btn-actualizar-canal {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
  color: #333;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1.5px 8px 0 rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  min-width: 44px;
  min-height: 44px;
}
#btn-actualizar-canal:hover {
  background: linear-gradient(135deg, #F5F5F5 0%, #D0D0D0 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
#btn-actualizar-canal:active {
  transform: scale(0.96);
}
#btn-actualizar-canal:focus {
  box-shadow: 0 0 0 3px #3b82f699;
}
#btn-actualizar-canal:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
}

  #btn-actualizar-canal:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
  }
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
  color: #333;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 1.5px 8px 0 rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  outline: none;
  min-width: 44px;
  min-height: 44px;
}

#btn-buscar-canal:hover {
  background: linear-gradient(135deg, #F5F5F5 0%, #D0D0D0 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.search-icon {
  font-size: 1.2em;
  transform: scale(0.96);
}

.canales-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
  /* box-shadow eliminado para quitar borde azul */
}

.canal-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #3b82f611;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0.4rem 0.7rem 0.4rem;
  transition: box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  border: 1.2px solid #e0e6ed;
  color: #23283a;
}
}

.canal-card:hover {
  box-shadow: 0 4px 16px #3b82f644;
  transform: translateY(-4px) scale(1.03);
  border: 1.2px solid #3b82f6;
}

.canal-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #f3f6fa;
  box-shadow: 0 1px 4px #0001;
}

.canal-nombre {
  font-size: 0.98rem;
  font-weight: 600;
  color: #23283a;
  text-align: center;
  margin-top: 0.15rem;
  word-break: break-word;
}

@media (max-width: 700px) {
  .dashboard-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
  .dashboard-item {
    min-width: 150px;
    min-height: 130px;
  }
  .sidebar {
    width: 100vw;
    height: auto;
    position: static;
    flex-direction: row;
    padding: 1rem 0.5rem;
    box-shadow: none;
  }
  .sidebar-section {
    flex-direction: row;
    align-items: center;
  }
  .sidebar-logo {
    width: 80px;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}
