/* RESET GENERAL */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;

  background: url("fondo-cine.jpg") no-repeat center center fixed;
  background-size: cover; 
}


/* LOGIN */
#login {
  text-align: center;
  margin-top: 120px;
}

#login h2 {
  margin-bottom: 30px;
  font-size: 28px;
}


/* FILAS LOGIN */
.fila-login {
  margin: 14px;
}


/* INPUTS LOGIN */
.fila-login input {
  padding: 12px;
  width: 260px;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: white;
  outline: none;
  font-size: 14px;
}


/* BOTONES LOGIN */
#btnUser, #btnAdmin {
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
}

#btnUser {
  background: #1e4ed8;
  color: white;
}

#btnAdmin {
  background: #b91c1c;
  color: white;
}


/* BOT01001100160„7010106¥730„30Š0N SALIR */
#btnLogout {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}


/* BUSCADOR */
#buscador {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
}

#inputBuscar {
  width: 360px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: none;
  color: #000 !important;
  font-size: 14px;
}

#inputBuscar::placeholder {
  color: #666;
}

/* PANEL SUPERIOR */
.panel-superior {
  width: 100%;
  text-align: center;
  margin-top: 80px;
}


/* FORMULARIO ADMIN */
#formulario {
  display: none; /* oculto al iniciar */
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 1400px;
  margin: 40px auto 0 auto;
}

/* INPUTS FORMULARIO */
#formulario input,
#formulario select {
  width: 210px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #e5e5e5;
  color: #111;
  font-size: 14px;
}

/* BOT01001100160„7010106¥730„30Š0N AGREGAR */
#btnAgregar {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

#btnAgregar:hover {
  transform: scale(1.05);
}


/* CONTENEDOR APP */
#app {
  display: block;
  text-align: center;
}


/* GRID PEL01001100160„70101001100160„653CULAS */
#peliculas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 30px;
}

/* 0100110010¡±7801001100„30„900106¥730„30Š00106¥730106¥98 MODO CELULAR */
@media (max-width: 768px) {

  #peliculas {
    grid-template-columns: repeat(2, 1fr); /* 2 por fila */
    gap: 14px;
    padding: 15px;
  }

}



/* TARJETAS */
.pelicula {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.2s ease;
}


.pelicula img {
  width: 100%;
  border-radius: 8px;
}

.pelicula h3 {
  text-align: center;
  width: 100%;
  margin-top: 10px;
  font-size: 16px;
}

.pelicula .anio {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 4px;
  font-size: 13px;
  color: #cfcfcf;
}

.pelicula p {
  font-size: 13px;
  color: #cfcfcf;
}

/* TARJETA PEL01001100160„70101001100160„653CULA */
.pelicula {
  position: relative;
  overflow: hidden;
}


.imagen-container {
  position: relative;
}

.resena-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 14px;
  box-sizing: border-box;

  font-size: 12px;        /* m0106¥730„3¨¬01001100160„674s peque01001100100111001001100„3¡À79a */
  line-height: 1.3;

  overflow-y: auto;       /* permite ver todo el texto */
  
  opacity: 0;
  transition: opacity 0.3s;
}



.imagen-container:hover .resena-hover {
  opacity: 1;
}

.anio {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-top: -4px;
  margin-bottom: 6px;
}

.btnEliminar {
  margin-top: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #dc2626;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

/* contenedor imagen */
.imagen-container {
  position: relative;
}

/* etiqueta idioma */
.tag-idioma {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px;
  color: white;
  z-index: 5;
}

/* LATINO = VERDE */
.tag-idioma.latino {
  background: #16a34a;
}

/* SUBTITULADA = ROJO */
.tag-idioma.subtitulada {
  background: #dc2626;
}

.tag-idioma {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  color: white;
  z-index: 100;
}

.tag-idioma.latino {
  background-color: green !important;
}

.tag-idioma.subtitulada {
  background-color: red !important;
}

.bloqueado{
  margin-top:10px;
  font-size:13px;
  color:#ffcc00;
  background:#1a1a1a;
  padding:6px 10px;
  border-radius:6px;
  display:inline-block;
}

#login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

#login h2 {
  margin-bottom: 20px;
}

.login-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.login-box input {
  background: white;
  border: none;
  padding: 12px 15px;
  border-radius: 10px;
  color: #111;
  width: 250px;
  font-weight: 500;
}

#btnUser {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

#btnAdmin {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

/* BOTONES FILTRO TIPO */
#filtrosTipo{
  margin-top: 15px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.btnFiltro{
  background:#1f2937;
  border:none;
  padding:10px 18px;
  border-radius:10px;
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.btnFiltro:hover{
  background:#374151;
  transform:scale(1.05);
}

.btnFiltro.activo{
  background:#2563eb;
}

/* SEPARACI01001100160„7010106¥730„30Š0N FILTROS TIPO Y A01001100160„7010106¥73010¡­3O */
#filtrosAnio{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* espacio general del buscador */
#buscador{
  margin-bottom: 40px;
}

/* hacer botones a01001100160„7010106¥730106¥98o un poco m01001100160„70101001100160„673s chicos */
#filtrosAnio .btnFiltro{
  padding: 8px 14px;
  font-size: 13px;
  background:#374151;
}

/* BLOQUE FILTRO A01001100160„7010106¥73010¡­3O */
#bloqueFiltrosAnio{
  margin-top: 25px;
  text-align: center;
}

.tituloFiltro{
  display:block;
  font-size:18px;
  color:#facc15; /* amarillo cine */
  margin-bottom:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;

  /* borde negro alrededor del texto */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}


/* CONTENEDOR BOTONES A01001100160„7010106¥73010¡­3O */
#filtrosAnio{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

/* BOTONES A01001100160„7010106¥73010¡­3O */
#filtrosAnio .btnFiltro{
  padding:8px 14px;
  font-size:13px;
  background:#1f2937;
}

/* SEPARACI01001100160„7010106¥730„30Š0N ENTRE FILTROS */
#filtrosTipo{
  margin-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  padding-bottom:15px;
}

/* HOVER ROJO EN FILTROS */
.btnFiltro:hover{
  background:#dc2626 !important;
  color:white;
  transform:scale(1.05);
  transition:0.2s;
}

/* si el bot01001100160„70101001100„30…26n est01001100160„70101001100160„673 activo, mantener rojo */
.btnFiltro.activo{
  background:#dc2626 !important;
  color:white;
}

.tituloApp{
  text-align:center;
  margin-top:40px;
  margin-bottom:10px;
}

.tituloApp h1{
  font-size:42px;
  margin:0;
}

.tituloApp .icono{
  font-size:34px;
  display:block;
  margin-bottom:6px;
}

/* TITULO EN LOGIN */
.tituloLogin{
  text-align:center;
  margin-bottom:25px;
  margin-top:40px;
}

.tituloLogin h1{
  font-size:42px;
  margin:0;
  font-weight:700;
}

.tituloLogin{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-bottom:25px;
  margin-top:40px;
}

.tituloLogin h1{
  font-size:42px;
  margin:0;
  font-weight:700;
}

.tituloLogin .icono{
  font-size:34px;
}

.tituloLogin h1{
  font-size:44px;
  letter-spacing:1px;
}

.tituloLogin .icono{
  font-size:38px;
}


/* APARECE AL PASAR EL MOUSE */
.imagen-container:hover .resena-hover {
  opacity: 1;
}

.imagen-container{
  position: relative;
  width: 100%;
}

.imagen-container img{
  width: 100%;
  display: block;
}

@media (max-width: 768px){
  .resena-hover{
    font-size:11px;
    padding:12px;
  }
}

/* efecto hover */
.pelicula a:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* MODAL SERIES */
.modalSerie{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.modalContenido{
  background:#111;
  width:700px;
  max-width:95%;
  border-radius:15px;
  padding:25px;
  position:relative;
}

#cerrarModal{
  position:absolute;
  top:10px;
  right:15px;
  font-size:28px;
  cursor:pointer;
}

.modalGrid{
  display:flex;
  gap:20px;
}

.modalGrid img{
  width:200px;
  border-radius:10px;
}

.modalInfo{
  flex:1;
}

.selectores{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.selectores select{
  padding:10px;
  border-radius:8px;
  border:none;
  background:#2a2a2a;
  color:#ffffff;

  font-weight:700;     /* letras más gruesas */
  font-size:15px;      /* un poco más grandes */
  letter-spacing:0.3px;
}

/* color de las opciones del dropdown */
.selectores select option{
  background:#1c1c1c;
  color:white;
}

#btnVerEpisodio{
  margin-top:20px;
  padding:12px;
  border:none;
  border-radius:10px;
  background:#2563eb;
  color:white;
  font-weight:bold;
  cursor:pointer;
}

/* FILAS PANEL ADMIN */
.fila-admin{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* que los t¨ªtulos no rompan el layout */
.fila-admin h3{
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

/* FORMULARIO ahora en columna */
#formulario{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FILA AGREGAR PELICULA/SERIE COMPACTA */
.fila-admin:first-child{
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}

/* TODOS LOS INPUTS */
.fila-admin:first-child input{
  width: 140px;
  min-width: 140px;
  padding: 10px;
  font-size: 13px;
}

/* INPUT RESE0ˆ5A un poco m¨¢s grande */
#resena{
  width: 200px !important;
  min-width: 200px !important;
}

/* SELECTS */
.fila-admin:first-child select{
  width: 130px;
  min-width: 130px;
  padding: 10px;
  font-size: 13px;
}

/* BOT0ˆ7N AGREGAR */
.fila-admin:first-child button{
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================= */
/* ESTILO GENERAL DE BOTONES    */
/* ============================= */

.pelicula a,
.pelicula button {
  display: inline-block;
  margin: 10px 5px 0 5px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

/* BOTON VER (AZUL) */
.pelicula a {
  background: #2563eb;
  color: white;
}

.pelicula a:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* BOTON EDITAR (GRIS) */
.btnEditar {
  background: #e5e5e5;
  color: #111;
}

.btnEditar:hover {
  background: #d4d4d4;
  transform: scale(1.05);
}

/* BOTON ELIMINAR (ROJO) */
.btnEliminar {
  background: #dc2626;
  color: white;
}

.btnEliminar:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

/* ========================= */
/* BOTONES CINE PREMIUM      */
/* ========================= */

.btnVer,
.btnEditar,
.btnEliminar {
  display: inline-block;
  margin: 10px 6px 0 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

/* VER (AZUL) */
.btnVer {
  background: #2563eb;
  color: white;
}

.btnVer:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* EDITAR (GRIS) */
.btnEditar {
  background: #e5e5e5;
  color: #111;
}

.btnEditar:hover {
  background: #d4d4d4;
  transform: scale(1.05);
}

/* ELIMINAR (ROJO) */
.btnEliminar {
  background: #dc2626;
  color: white;
}

.btnEliminar:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

/* ========================= */
/* TITULOS PANEL ADMIN       */
/* ========================= */

/* Agregar episodio a serie */
.fila-admin h3{
  color:#facc15;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* Cambiar contraseñas */
#panelPasswords h3{
  color:#facc15;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* ============================= */
/* TITULO AMARILLO METAL LIMPIO  */
/* ============================= */

.tituloLogin h1,
#tituloAdmin {

  font-size: 64px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;

  background: linear-gradient(
    180deg,
    #fffde7 0%,
    #fff176 20%,
    #ffeb3b 45%,
    #ffd600 55%,
    #ffeb3b 70%,
    #fff176 85%,
    #fffde7 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* brillo metálico limpio */
  text-shadow:
    0 0 10px rgba(255,235,59,0.6),
    0 0 18px rgba(255,235,59,0.4);
}

.selectores label{
  color:#facc15;      /* amarillo cine */
  font-weight:700;
  letter-spacing:0.5px;
}