body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    #000000,
    #444444,
    #dddddd,
    #ffffff
  );
  position: relative;
}

#disqus_thread {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 12px;
}

@keyframes move {
  0% { transform: translate(0,0); }
  50% { transform: translate(10%,10%); }
  100% { transform: translate(0,0); }
}

#modal-links {
  display: flex;
  flex-direction: column; /* ESSENCIAL */
  align-items: center; /* opcional (centraliza) */
  gap: 4px; /* espaço entre os botões */
}

/* brilho descendo */
body::after {
  content: "";
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );

  animation: brilhoVertical 6s linear infinite;
  pointer-events: none;
}

@keyframes brilhoVertical {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

.item {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Busca */
header {
  padding: 15px;
  text-align: center;
}

header .right {
  position: absolute;
  right: 20px;
}

/* esquerda */
header .left {
  position: absolute;
  width: 20px;
}


input {
  width: 90%;
  max-width: 500px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 12px;
  padding: 20px;
}


.item {
  cursor: pointer;
  transition: 0.3s;
}

.item img {
  width: 100%;
  border-radius: 10px;
}

.item:hover {
  transform: scale(1.05);
}

.title { font-size: 14px; }
.subtitle { font-size: 11px; color: #666; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;   /* largura total da tela */
  height: 100vh;  /* altura total da tela */

  background: rgba(0,0,0,0.9); /* mais escuro */
  z-index: 9999;

  overflow-y: auto; /* permite scroll geral */
}

.modal-content {
  background: #111;
  color: #fff;
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
}

.modal-content {
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  color: #fff;
  margin: 3% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;

  border-radius: 20px; /* borda mais suave */
  
  /* borda brilhante */
  border: 1px solid rgba(255,255,255,0.1);

  /* sombra profunda */
  box-shadow:
    0 0 25px rgba(0,0,0,0.8),
    0 0 10px rgba(255,0,0,0.3);

  text-align: center;

  max-height: 90vh;
  overflow-y: auto;

  backdrop-filter: blur(10px); /* efeito glass */
}

/* Botões */
button {
  position: relative;
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  border: none;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  overflow: hidden;
  transition: 0.3s;
}

/* Hover (levantar + brilho) */
button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255,0,0,0.5);
}

/* Clique */
button:active {
  transform: scale(0.95);
}

/* Efeito brilho passando */
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: 0.5s;
}

button:hover::before {
  left: 100%;
}

/* Descrição */
.link-desc {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 10px;
}

/* Paginação */
.pagination {
  text-align: center;
  margin: 20px;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
}

.pagination button.active {
  background: red;
}

header {
  display: flex;
  align-items: center;
  padding: 10px;
}

/* Cada lado ocupa espaço igual */
.left, .center, .right {
  flex: 1;
}

/* Centraliza o input */
.center {
  display: flex;
  justify-content: center;
}

#search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
}

/* Texto na direita */
.right {
  display: flex;
  justify-content: flex-end;
}

.right span {
  font-size: 16px;
  color: #333;
}

.modal-content {
  background: #111;
  color: #fff;
  margin: 2% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  text-align: center;

  max-height: 90vh;   /* LIMITA ALTURA */
  overflow-y: auto;   /* ATIVA SCROLL */
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 10px;
}

.item {
  position: relative;
  overflow: hidden;
}

/* camada do efeito */
.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transform: skewX(-25deg);
}

/* animação ao passar o mouse */
.item:hover::before {
  animation: flash 0.8s;
}

@keyframes flash {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas fixas */
  }
}

.categoria {
  position: absolute;
  top: 10px;
  right: 10px;

  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: #fff;
  font-size: 10px;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: bold;

  box-shadow: 0 0 10px rgba(255,0,0,0.6);
}

.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.img-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;


  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );

  transform: skewX(-25deg);

  animation: brilho 5s infinite;

}

@keyframes brilho {
  0% {
    left: -100%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  30% {
    left: 150%;
    opacity: 0;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

.modal-content {
  position: relative;
}

.close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10; /* garante que fique acima do efeito */
}

/* Fechar */
.close {
  float: right;
  font-size: 25px;
  cursor: pointer;
}

.card-img {
  position: relative;
}

.card-img img {
  width: 100%;
  display: block;
}

/* BOTÃO TRAILER */
.btn-trailer {
  position: absolute;
  bottom: 8px;
  left: 8px;

  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;

  text-decoration: none;
  transition: 0.3s;
}

.btn-trailer:hover {
  background: red;
}

.trailer-box {
  margin-top: 15px;
}

.trailer-box iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: none;
}

/* MENU */

.left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* BOTÃO */
.menu-btn {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.menu-btn:hover {
  background: #1f1f1f;
}

/* DROPDOWN */
.menu {
  position: relative;
}

.menu-dropdown {
  position: absolute;
  top: 45px;
  left: 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  display: none;
  min-width: 180px;
  overflow: hidden;
  z-index: 999;
}

.menu-dropdown a {
  display: block;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.menu-dropdown a:hover {
  background: #222;
}

/* MOSTRAR MENU */
.menu:hover .menu-dropdown {
  display: block;
}

/* MENU */