/* Reset e configurações gerais */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #ff004c #00208a;
}

ul {
    list-style-type: none;
}

/* Estilização da scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #173494;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#173494, #ff004c);
  border-radius: 10px;
  border: 2px solid #022596;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#ff004c, #173494);
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4)),url("../imagens/wallpaper/fundo-ladybug-catnoir.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
}

/* Header */
header {
  background: linear-gradient(90deg, #000000, #173494, #000000);
  color: #ffffff;
  padding: 20px 30px;
  box-shadow: 0 5px 15px rgba(23, 52, 148, 0.3);
  border-bottom: 2px solid #ff004c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

header h1 {
  font-size: 28px;
}

/* Nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ff004c;
  text-shadow: 0 0 5px #ff004c, 0 0 10px #ff004c;
}

nav ul li a.ativado {
  color: #ff004c;
  border-bottom: 2px solid #ff004c;
  padding-bottom: 2px;
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
}

main h2 {
  font-size: clamp(32px, 5vw, 51.2px);
  text-align: center;
  letter-spacing: 1.6px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px #ff0055;
  animation: pulse 3s infinite;
  margin-bottom: 8px;
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 12px #ff0055;
  }
  50% {
    text-shadow: 0 0 20px #1740ff;
  }
}

main h3 {
  font-size: 22.4px;
  margin-top: 30px;
  margin-bottom: 12px;
  font-weight: 700;
}

main p,
main ul {
  font-size: 18.4px;
  line-height: 1.8;
  color: #eee;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  text-align: justify;
}

main ul {
  padding-left: 40px;
  list-style-type: disc;
}

main ul li {
  margin-bottom: 12px;
  font-weight: 500;
}

/* Seção: Sobre */
.secao-sobre {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  border-top: 2px solid #ff004c;
  border-bottom: 2px solid #ff004c;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 76, 0.2);
  margin: 60px 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.conteudo-sobre {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.texto-sobre {
  flex: 1 1 320px;
  min-width: 280px;
}

.imagem-sobre {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagem-sobre img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.secao-universo,
.secao-inspiracao {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Seção: Personagens */
.galeria-personagens-horizontal {
  padding: 20px 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #ff004c;
  border-bottom: 2px solid #ff004c;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 76, 0.2);
  margin: 60px 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.galeria-personagens-horizontal h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 50px;
  text-shadow: 0 0 12px #ff004c;
  animation: pulse 3s infinite;
}

.grid-horizontal {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding: 0 15px;
}

.card-personagem {
  border: 2px solid #ff004c;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card-personagem.dupla {
  width: 360px;
}

.card-personagem img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card-personagem p {
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 4px #000;
  text-align: center;
  margin: 0 auto;
}

.dupla-img {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dupla-img img {
  width: 50%;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
}

/* Wrapper do vídeo */
.video-container-wrapper {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.video-container-wrapper.video-pequeno {
  max-width: 560px; 
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 20px #ff0055;
  transition: all 0.3s ease;
}

.video-container:hover {
  box-shadow: 0 0 30px #1740ff;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 18px;
}

/* Capa do vídeo */
.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 20px #ff0055;
}

.video-cover img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 0 10px #ff0055, 0 0 20px #173494;
  pointer-events: none;
}

/* Seção: Temporadas, Filmes e Especiais */
.secao-temporadas {
  padding: 60px 30px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-top: 2px solid #ff004c;
  border-bottom: 2px solid #ff004c;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 76, 0.3);
  max-width: 960px;
  margin: 60px auto;
}

.secao-temporadas h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 40px;
  text-shadow: 0 0 12px #ff004c;
  animation: pulse 3s infinite;
}

.secao-temporadas ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 25px;
  color: #eee;
  text-align: left;
  max-width: 800px;
  margin-inline: auto;
}

.secao-temporadas ul li {
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 17.6px;
}

.secao-temporadas ul li strong {
  color: #ff004c;
}

.secao-temporadas ul li em {
  font-style: italic;
  color: #ccc;
}

.secao-temporadas ul ul {
  padding-left: 20px;
  margin-top: 8px;
}

.secao-temporadas ul ul li {
  font-weight: 400;
  color: #ddd;
  font-size: 16px;
}

.temporadas-imagens {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px auto;
}

.temporadas-imagens img,
.secao-temporadas ul li img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  border: 1px solid #ff004c; 
  box-shadow: none;
  transition: none;
  cursor: default;
}

.temporadas-imagens img:hover,
.secao-temporadas ul li img:hover {
  transform: none;
  box-shadow: none;
}

.poster-filme {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Seção: Mangá e Chibi */
.section h2 {
  font-size: 44.8px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 0 12px #ff004c;
  animation: pulse 3s infinite;
}

.section p {
 font-size: 18.4px;
  color: #eee;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Seção: Produtos e Jogos */
#produtos-e-jogos.section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  border-top: 2px solid #ff004c;
  border-bottom: 2px solid #ff004c;
  margin: 60px 0;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 76, 0.2);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#produtos-e-jogos h2 {
 font-size: 44.8px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 0 12px #ff004c;
  animation: pulse 3s infinite;
}

#produtos-e-jogos h3 {
 font-size: 25.6px;
  color: #ff004c;
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 0, 76, 0.5);
}

#produtos-e-jogos ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 25px;
  color: #eee;
  font-size: 17.6px;
}

#produtos-e-jogos ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

#produtos-e-jogos p {
  font-size: 17.6px;
  color: #eee;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.jogo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #ff004c;
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 0 10px rgba(255, 0, 76, 0.1);
}

/* Seção: Fandom e Avaliação */
#fandom-e-avaliacao.section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 30px;
  border-top: 2px solid #ff004c;
  border-bottom: 2px solid #ff004c;
  margin: 60px 0;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 76, 0.2);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#fandom-e-avaliacao h2 {
  font-size: 44.8px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 0 12px #ff004c;
  animation: pulse 3s infinite;
}

#fandom-e-avaliacao p {
  font-size: 18.4px;
  color: #eee;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

#fandom-e-avaliacao a {
  color: #ff004c;
  text-decoration: none;
  font-weight: bold;
}

#fandom-e-avaliacao a:hover,
#fandom-e-avaliacao a:focus {
  text-shadow: 0 0 5px #ff004c, 0 0 10px #ff004c;
  outline: none;
}

.imagem-fandom {
  max-width: 600px;
  margin: 40px auto 40px;
}

.imagem-fandom img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #ff004c;
  box-shadow: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: default;
}

.rating {
  font-size: 20px;
  font-weight: 600;
  color: #ff004c;
  text-shadow: 0 0 6px rgba(255, 0, 76, 0.6);
  margin-bottom: 10px;
}

/* Seção: Links */
.secao-links {
  padding: 25px 15px;
  margin-bottom: 50px;
  color: white;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(90deg, #000000, #173494, #000000);
  border-top: 2px solid rgba(211, 5, 33, 0.918);
  border-bottom: 2px solid #ff004c;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.secao-links h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 1px 1px 4px #000;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  padding: 10px;
}

.link-item {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 16px;
  min-height: 50px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 12px rgba(255, 0, 76, 0.3);
  border: 2px solid #ff004c;
}

.link-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #ff004c;
}

.link-item i {
  font-size: 21px;
  color: #ff004c;
}

.netflix { background-color: #e50914; }
.youtube-btn, .youtube { background-color: #ff0000; }
.instagram { background: linear-gradient(45deg, #fdc837, #d40160, #8100b4); }
.wiki { background-color: #064980; }
.noir { background-color: #222; }
.jogo { background-color: #44002f; }

.youtube-sub-links {
  display: none;
  flex-direction: column;
  margin-top: 10px;
  margin-left: 5px;
  padding-left: 10px;
  grid-column: span 1;
}

.sub-link-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid #ff004c;
  color: #fff;
  padding: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  font-size: 15.2px;
  box-shadow: 0 0 8px rgba(255, 0, 76, 0.2);
  transition: all 0.3s ease;
}

.sub-link-item:hover {
  background-color: rgba(255, 0, 76, 0.15);
  transform: scale(1.03);
}

/* Botão voltar ao topo */
.botao-voltar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(90deg, #000000, #173494, #000000);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
  border-top: 2px solid rgba(211, 5, 33, 0.918);
  border-bottom: 2px solid #ff004c;
}

.botao-voltar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
  background: linear-gradient(90deg, #000000, #173494, #000000);
  color: #ffffff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -5px 15px rgba(23, 52, 148, 0.3);
  border-top: 2px solid rgba(211, 5, 33, 0.918);
}

footer p {
  margin: 0;
}

footer .github-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

footer .github-link:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #ff004c, 0 0 10px #ff004c;
}

/* Responsividade */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 20px;
  }

  header h1 {
    font-size: 22px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav ul li a {
    font-size: 15px;
  }

  main h2 {
  font-size: 32px;
  }

  main p,
  main ul {
    font-size: 16px;
  }

  .links-container {
    margin-bottom: 30px;
  }

  footer {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .galeria {
    padding: 20px 10px;
    gap: 15px;
  }

  .grid-horizontal {
    gap: 15px;
  }

  .card-personagem {
    width: 100%;
    max-width: 320px;
  }

  .card-personagem.dupla {
    width: 100%;
    max-width: 360px;
  }

  main {
    padding: 10px;
    gap: 40px;
  }

  header h1 {
    font-size: 20px;
  }

  nav ul li a {
    font-size: 15px;
  }

  main h2 {
    font-size: 32px;
  }

  .links-container {
    margin-bottom: 20px;
  }

  footer {
    font-size: 12px;
    padding: 8px;
  }
}