body {
  background: #000;
  color: #fff;
  margin: 0;
  font-family: Arial, sans-serif;
}

.categories {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.category-card {
  width: 280px;
  cursor: pointer;
  transition: transform .2s;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.category-card h2 {
  color: rgba(255,205,0,0.95);
  text-align: center;
  margin-top: 10px;
}

.back-btn {
  margin: 20px;
  padding: 10px 16px;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.back-btn:hover {
  background: #333;
}

.section-title {
  color: rgba(255,205,0,0.95);
  margin: 20px;
  font-size: 28px;
  font-weight: bold;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* BUSCADOR */
.search-box-container {
   color: rgba(255,205,0,0.95);
   margin-top: 10px;
   display: flex;
   flex-direction: column;      
   align-items: center;
}
.search-box  {
  width: 50%;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  box-sizing: border-box;
}

.search-results {
  margin-top: 20px;
  display: flex;
  flex-direction: row;      
  align-items: center;
  gap: 20px;
}
.search-card  {
  width: 140px;
  background: #111;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.search-card p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #ffcc00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
}
.search-card img {
  width: 100%;
  height: ;
  object-fit: cover;
  border-radius: 4px;
}

/* FOCO AMARILLO DE CATEGORIAS Y BUSCADOR */
.focused {
  outline: 3px solid #ffcc00;
  border-radius: 8px;
  transform: scale(1.05);
  transition: 0.15s ease;
}
.search-box.focused {
  outline: 3px solid #ffcc00;
  border-radius: 8px;
}
#searchInput.focused {
  outline: 3px solid #ffcc00;
  outline-offset: 0;
  border-radius: 8px;
  padding: 8px 12px; /* asegura espacio para el borde */
  display: block;    /* evita que el outline se corte */
  box-sizing: border-box;
}
/* FOCO AMARILLO DE CONTINUAR MIRANDO CATEGORIAS */
.continue-card.focused {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
  transform: scale(1.05);
}


/* TARJETA PRINCIPAL DE (2 MOVIES Y TVSHOWS) CONTINUAR MIRANDO */
.continue-watching-container {
  display: flex;
  flex-direction: row;      /* ⭐ SOLO ROW */
  align-items: flex-start;
  gap: 20px;
  background: #111;
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
  height: 360px;
  box-sizing: border-box;
}
 h2 {
  color: #ffcc00;
  margin-left: 20px;
}
.continue-card {
  width: 180px;
  color: rgba(255,205,0,0.95);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: transform .2s ease;
}
.continue-card:hover {
  transform: scale(1.05);
}
.continue-card img {
  width: 100%;
  border-radius: 6px;
}


/* CONTINUAR VIENDO TV SHOWS */
.continue-watching {
  display: flex;
  text-align: center;
}
.continue-card h4 {
  margin: 8px 0 0 0;
  font-size: 15px;
  text-align: center;

  /* 🔥 Evita desbordes */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* Opcional: ancho fijo para controlar el corte */
  width: 160px;
  margin: 8px auto 0 auto;
}

.cw-progress {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.cw-progress-fill {
  height: 100%;
  background: rgba(255,205,0,0.95);
  width: 0%;
  transition: width .3s ease;
}


/* CONTINUAR VIENDO MOVIES */
.continue-list {
  display: flex;
  text-align: center;
}
.progress-bar {
  position: ;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.progress-bar .progress {
  height: 6px;
  background: #ffcc00;
  border-radius: 3px;
}
.movie-info h3 {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;        /* No permite salto de línea */
  overflow: hidden;           /* Oculta lo que sobra */
  text-overflow: ellipsis;    /* Muestra "..." */
  max-width: 100%;            /* Se ajusta al contenedor */
  display: block;
}







