/* Restablecimiento global y tipografía */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 10px 10px 80px 10px;
}

/* Encabezado superior */
.app-header {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 10px 0;
}

.app-header h1 {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 600;
}

/* Contenedor principal responsive */
.app-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

/* Control de Pestañas (Canales y Portales) */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.tab-content.active {
  display: flex;
}

/* Contenedor del Reproductor de Video HLS */
.player-container {
  width: 100%;
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background-color: #1e1e1e;
}

/* Cajas contenedoras de listas */
.content-box {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  max-height: 60vh;
  overflow-y: auto;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 8px;
  color: #e0e0e0;
}

.channels-list, .portals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tarjetas idénticas a la Imagen 1 (Canales y Portales) */
.channel-item, .portal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background-color: #262626; /* Fondo gris oscuro unificado */
  border-radius: 12px;       /* Bordes redondeados de la tarjeta */
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.1s;
}

.channel-item:hover, .portal-item:hover {
  background-color: #333333;
}

.channel-item:active, .portal-item:active {
  transform: scale(0.98);
}

/* Cuadrados con bordes redondeados para los logos */
.channel-logo, .portal-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;     /* Preserva la escala del logo sin deformarlo */
  border-radius: 10px;      /* Esquinas suavemente redondeadas */
  background-color: #0d0d0d;/* Fondo oscuro interno para el contenedor del logo */
  padding: 4px;
}

.channel-name, .portal-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Barra de Navegación Inferior Flotante */
.bottom-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background-color: #1f232c;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.nav-btn, .nav-link-btn {
  background: none;
  border: none;
  color: #909399;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  width: 30%;
  padding: 6px 0;
  border-radius: 20px;
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}

.nav-btn i, .nav-link-btn i {
  font-size: 1.2rem;
}

/* Botón activo */
.nav-btn.active {
  color: #ff3b6b;
}


