@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --fundo: #E0F7FA;
    --botoes: #81D4FA;
    --principal: #2196F3;
    --cabecalho: #1565C0;
    --rodape: #0D47A1;

}
html, body {
  min-width: 250px;
}
body{
    background-color: var(--fundo);
}
body h2{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bolder;
    background-color: var(--botoes);
    text-align: center;
}
body > h2{
  font-size: 32px;
  margin:0px 20px;
  margin-top: 20px;
  
}
header{
    background-color: var(--fundo);
    font-family:'Courier New', Courier, monospace;
    text-align: center;
}
header > h1{
    color: #2196F3	;
    font-size: 5vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.185);

}
p#espc{
    background-color: var(--cabecalho);
    display: block;
    height: 2vw;

}
nav {
  display: flex;
  justify-content: center;  /* centraliza horizontalmente */
  align-items: center;      /* alinha verticalmente */
  background-color: var(--botoes);
  padding: 1% 0;
  gap: 20px;                /* espaçamento entre menu e form */
  font-weight: bold;
}
.menu {
  display: flex;
  list-style: none;
  gap: 1em;
}

.menu li a {
  text-decoration: none;
  background-color: var(--principal);
  color: black;
  font-weight: bold;
  padding: 8px 12px;         /* Espaço interno para parecer botão */
  border: 2px solid var(--botoes);  /* Borda azul clara */
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.menu li a:hover {
  background-color: var(--cabecalho);  /* Fundo azul no hover */
  color: white;                        /* Texto branco no hover */
  border-color: var(--botoes);      /* Borda azul escura no hover */
}
.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  width: 160px;
  border: none;
  border-radius: 5px 0 0 5px;
  padding: 5px 10px;
}

.search-form button {
  border: none;
  background-color: var(--principal);
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  padding: 5px 10px;
}
@media (max-width: 750px) {

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, auto); /* Duas colunas */
    gap: 20px;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  .menu li {
    list-style: none;
  }

  .search-form {
    width: 90%; /* Largura da barra de busca */
    justify-content: center;
  }

  .search-form input {
    width: 80%;
  }

  .search-form button {
    padding: 5px 15px;
  }

}

.filmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px; /* limita a largura máxima para centralizar */
  margin: 20px auto;  /* centraliza horizontalmente */
  padding: 0 20px;    /* espaçamento lateral */
}

.media-card {
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #333;
}

.media-card p {
  color: #fff;
  font-size: 14px;
  padding: 10px;
}
.media-card:hover{
  transition: transform 0.2s;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
  .filmes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filmes-grid h4 {
    font-size: 12px;
    padding: 6px;
  }
}

/* Tablets médios */
@media (min-width: 601px) and (max-width: 1024px) {
  .filmes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.btn-favorito {
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.btn-favorito:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

.icon-favorito {
  display: block;
  pointer-events: none;
}

.paginacao {
  text-align: center;
  padding: 20px 0;
}

.paginacao button {
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.paginacao button.active {
  background-color: var(--rodape);
  font-weight: bold;
}
.paginacao button:hover {
  background-color: var(--botoes);
  color: #111;
}

.reticencia {
  padding: 0 8px;
  font-weight: bold;
  color: #888;
}
.suggestion-item:hover {
  background-color: #eee;
}

.termos-legais {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 30px;
  background: #111827;
  color: #d1d5db;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeInUp 1s ease-out;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  text-align: center;
}

.termos-legais h2 {
  margin-bottom: 15px;
  color: #06b6d4;
  font-size: 24px;
}

.termos-legais p {
  font-size: 16px;
  line-height: 1.6;
}

/* Animação */
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}
.botao-solicitar {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #06b6d4;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.botao-solicitar:hover {
  background: #0891b2;
  transform: scale(1.05);
}

footer{
    width: 100%;
    background-color: var(--rodape);
    font-weight: bolder;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 10px 0px;
}
footer > p > a{
    text-decoration: none;
    color: var(--botoes);
    
}
footer > p > a:hover{
    color: black;
}
