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

/* HEADER */
header {
  background: linear-gradient(90deg, #e50914, #221f1f);
  padding: 20px;
  text-align: center;
}
header h1 {
  margin: 0 0 10px;
  font-size: 2em;
}

/* BUSCA */
.busca {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}
.busca input, .busca select {
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  border: none;
  flex: 1;
  min-width: 200px;
}
.busca button {
  padding: 10px 20px;
  background-color: #e50914;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* CONTAINER DE FILMES */
.filmes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

/* CARD */
.card {
  background-color: #222;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.card h3 {
  padding: 10px;
  font-size: 1em;
  text-align: center;
}

/* PAGINAÇÃO */
.paginacao {
  text-align: center;
  margin-bottom: 30px;
}
.paginacao button {
  background: #e50914;
  color: white;
  border: none;
  margin: 0 5px;
  padding: 10px 15px;
  cursor: pointer;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #222;
  color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}
.modal-content img {
  max-width: 200px;
  float: left;
  margin-right: 20px;
}
.close {
  position: absolute;
  top: 10px; right: 15px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* BOTÕES DE TRADUÇÃO */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
}
.btn-original, .btn-pt {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-original {
  background-color: #1e90ff;
  color: white;
}
.btn-original:hover {
  background-color: #1c7ed6;
}
.btn-pt {
  background-color: #28a745;
  color: white;
}
.btn-pt:hover {
  background-color: #218838;
}
.btn-ver {
  background-color: #e50914;
  color: white;
  border: none;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.btn-ver:hover {
  background-color: #b0060f;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(90deg, #e50914, #221f1f);
  position: relative; /* <-- necessário para posicionar corretamente o menu mobile */
}
.nav-left, .nav-right {
  display: flex;
  gap: 15px;
}
.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.nav-link:hover {
  text-decoration: underline;
}
.nav-left a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
}
.nav-left h1 {
  margin: 0;
  font-size: 2em;
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FORMULÁRIOS */
.form-container {
  max-width: 400px;
  margin: 80px auto;
  background: #222;
  padding: 30px;
  border-radius: 10px;
  color: white;
  text-align: center;
}
.form-container h2 {
  margin-bottom: 20px;
}
.form-container input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
  font-size: 1em;
}
.form-container button {
  background: #e50914;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
.form-container .form-link {
  margin-top: 15px;
}
.form-container .form-link a {
  color: #1e90ff;
  text-decoration: none;
}

/* BEM-VINDO */
.filmespop-bemvindo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  min-height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.95)),
              url('https://www.transparenttextures.com/patterns/black-paper.png');
  background-size: cover;
  background-position: center;
}
.filmespop-card {
  background-color: rgba(20, 20, 20, 0.95);
  color: #f0f0f0;
  max-width: 700px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.5);
  text-align: center;
  border: 1px solid #444;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}
.filmespop-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.filmespop-title {
  color: #e50914;
}
.filmespop-card p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.btn-filmespop {
  display: inline-block;
  background-color: #e50914;
  color: white;
  padding: 12px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-filmespop:hover {
  background-color: #b0060f;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NOTÍCIAS */
.noticias-container {
  background-color: #1a1a1a;
  padding: 30px;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 900px;
  color: white;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}
.noticias-container h2 {
  color: #e50914;
  margin-bottom: 20px;
  text-align: center;
}
.noticia-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}
.noticia-img img {
  width: 150px;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
}
.noticia-conteudo h4 {
  margin: 0 0 10px;
}
.noticia-conteudo a {
  color: #1e90ff;
  text-decoration: none;
}
.noticia-conteudo a:hover {
  text-decoration: underline;
}
.noticia-conteudo p {
  margin: 0;
  color: #ccc;
  font-size: 0.95em;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #221f1f;
  position: absolute;
  top: 70px;
  right: 20px;
  width: 200px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 1000;
}
.mobile-menu a {
  margin: 10px 0;
  color: white;
  text-decoration: none;
}
.mobile-menu.open {
  display: flex;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .busca {
    flex-direction: column;
  }

  .busca input,
  .busca select,
  .busca button {
    width: 100%;
    max-width: 300px;
  }

  .nav-left h1 {
    font-size: 1.2rem;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .nav-left img.logo {
    height: 35px;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .noticia-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-content img {
    float: none;
    margin: 0 auto 15px;
    display: block;
  }
}


@media (max-width: 768px) {
  .busca {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px;
  }

  .busca input,
  .busca select,
  .busca button {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  #anoInput {
    display: block !important; /* Garantir visibilidade condicional via JS */
  }
}
