/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ESTRUTURA */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f4f6f8;
  color: #333;
  font-family: "Roboto", sans-serif;
}

main {
  flex: 1;
  text-align: center;
}
/* MENU - TEM EM TODOS */
.menu {
  background-color: #2f3542;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  border-bottom: 3px solid #d97706;
}

.menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
  padding: 12px 22px;
  border-radius: 8px;
  transition: 0.3s;
}

/* BOTÃO ATIVO */
.principal a {
  background-color: #d97706;
  color: #0c1014;
  pointer-events: none;
  padding: 16px 28px; /* 👈 mais alto e mais largo */
}

/* HOVER (não afeta o ativo) */
.menu li a:hover:not(.principal a) {
  color: #f75a10;
}

/* --------------- PÁGINA INDEX --------------------- */
.container-index {
  max-width: 1300px;
  margin: 20px auto;
  padding: 10px;
}
/*  LETRA GRANDE */
.letra-grande::first-letter {
  font-family: Times New Roman;
  float: left;
  font-size: 13.5rem;
  line-height: 0.49; /* define a altura da linha do texto (o espaço vertical entre as linhas) */
  font-weight: bold;
  margin-right: 10px;
  margin-top: 9px;
  color: #d97706;
}
.container-index p {
  font-family: "Roboto", sans-serif;
  background-color: #fff;
  font-size: 21px;
  padding: 25px;
  border-radius: 15px;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid rgba(217, 119, 6, 0.5);
  border-right: 2px solid rgba(217, 119, 6, 0.5);
}
.secao-destaques h2 {
  font-size: 33px;
}
/* Section - cards- destaque */
.grid-destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  justify-content: center; /* ajuda no alinhamento */
}
/* CARD-destaque */
.card-destaque {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.25); /* sombra leve */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  */
  transition: 0.3s;
}
/* EFEITO HOVER */
.card-destaque:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
/* TÍTULO DO CARD */
.card-destaque h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  color: #d97706;
}
/* TEXTO DO CARD */
.card-destaque p {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: justify;
}
/* IMAGEM PADRÃO */
.card-destaque img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.secao-tipos-generos {
  max-width: 1300px;
  margin: 20px auto;
  padding: 10px;
}
.secao-tipos-generos p {
  background-color: #fff;
  font-size: 22px;
  padding: 35px;
  border-radius: 15px;
  text-align: justify;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-left: 30px;
  line-height: 1.6;
  border-bottom: 2px solid rgba(217, 119, 6, 0.5);
  border-left: 2px solid rgba(217, 119, 6, 0.5);
}
.secao-tipos-generos h2 {
  font-size: 18px;
  /* margin-bottom: 8px; */
  text-align: justify;
  padding: 20px;
}
/* TABELA */
.container-tabela {
  max-width: 1400px;
  width: 100%;
  padding: 0 20px; /* opcional, para não colar nas bordas */
}
tb-generos {
  border-collapse: collapse;
  font-family: "Roboto", sans-serif;
  font-size: 21px;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  width: 98%;
  margin: 30px auto;
  /* centraliza e afasta das bordas */
}
.tb-generos thead th {
  color: #ffffff;
  text-align: center;
}
/* Cabeçalho */
.tb-generos thead {
  background-color: #d97706;
  /* laranja elegante */
  color: white;
  align-items: center;
}
.tb-generos th {
  padding: 15px;
  text-align: left;
  font-size: 18px;
}
/* Linhas */
.tb-generos td {
  text-align: justify;
  padding: 15px;
  line-height: 1.6;
  color: #444;
}

/* Zebra (linhas alternadas) */
.tb-generos tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Hover (efeito ao passar o mouse) */
.tb-generos tbody tr:hover {
  background-color: #ffe8cc;
  transition: 0.3s;
}

/* Primeira coluna (Gênero) destacada */
.tb-generos td:first-child {
  font-weight: bold;
  color: #d97706;
  width: 120px;
}

/* Bordas suaves entre linhas */
.tb-generos tr {
  border-bottom: 1px solid #ddd;
}

/* -------------- PÁGINA ANOS 80 ------------------ */

.secao-tabela,
.secao-galeria {
  margin: 20px;
}
.secao-tabela {
  display: flex;
  flex-direction: column; /* empilha os elementos */
  align-items: center; /* centraliza horizontalmente */
}

/* CONTAINER  */
.container h1 {
  margin-bottom: 15px;
}
.container {
  max-width: 1500px;
  margin: 20px auto;
  padding: 10px;
}

.container p {
  background-color: #fff;
  font-size: 20px;
  padding: 25px;
  border-radius: 15px;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* GALERIA SEM USO DE JS */
.galeria {
  margin-top: 40px;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); */
  gap: 18px;
  padding: 16px;
  background-color: #f4ece3;
  border-radius: 20px;
  margin: 0 70px; /* 👈 isso afasta da borda da tela */
}

/* ITEM */
.item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

/* IMAGEM */
.item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.3s;
}

/* OVERLAY ESCURO */
.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: 0.3s;
}

/* TEXTO */
.item span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  opacity: 0;
  transition: 0.3s;
}

/* HOVER */
.item:hover img {
  transform: scale(1.08);
}

.item:hover::after {
  opacity: 1;
}

.item:hover span {
  opacity: 1;
}
/* TABELA - ANOS 80*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: Arial, Helvetica, sans-serif;
}
/* Cabeçalho da tabela - anime | início | fim | estúdio */
thead {
  background: #c97b3d;
}
thead th {
  padding: 14px;
  text-align: center;
  font-weight: bold;
  font-weight: bold;
  color: #f4f4f4;
  border-bottom: 2px solid #ddd;
}
tbody td {
  padding: 9px 11px;
  color: #555;
  border-bottom: 1px solid #eee;
}
tbody tr:nth-child(even) {
  background-color: #fafafa;
}
tbody tr:hover {
  background-color: #fff3e6;
  transition: 0.3s;
}

/* -------------- PÁGINA ANOS 90 ------------------ */

/* -------------- FAVORITOS ------------------ */
/* TÍTULO */
main h1 {
  text-align: center;
  margin: 30px 0;
}
/* GRID DOS CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 por linha */
  gap: 22px;
  max-width: 1600px;
  margin: 0 auto; /* centraliza */
  padding: 20px;
}
/* CARD */
.card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* sombra leve */
  transition: 0.3s;
}
/* EFEITO HOVER */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
/* TÍTULO DO CARD */
.card h2 {
  font-size: 25px;
  margin-bottom: 10px;
  text-align: center;
}

/* IMAGEM PADRÃO */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* padroniza corte da imagem */
  border-radius: 8px;
  margin-bottom: 10px;
}
/* TEXTO */
.card p {
  font-size: 18px;
  margin-bottom: 8px;
  text-align: justify;
}
/* DESTAQUE "Início/Fim" */
.card span {
  font-weight: bold;
}

/* -------------- FOOTER PARA TODAS AS PÁGINAS ------------------ */
footer {
  width: 100%;
  padding: 20px;
  text-align: center;
  background-color: #2f3542;
  color: white;
  font-size: 16px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .menu ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  h1 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

  .card p {
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  .grid-galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  table {
    font-size: 14px;
  }

  thead {
    display: none;
  }

  tbody tr {
    display: block;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
  }

  tbody td {
    display: block;
    text-align: right;
    padding: 8px;
    border: none;
    position: relative;
  }

  tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: #333;
  }
}
