/* ===== Reset mínimo e travamento horizontal ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;           /* evita scroll lateral */
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  background-color: #000;
  color: #ff0033;

  touch-action: pan-y;          /* trava gesto horizontal, prioriza vertical */
  overscroll-behavior-x: none;  /* evita rubber-band lateral onde suportado */
}

img { max-width: 100%; height: auto; -webkit-user-drag: none; }
a, button { -webkit-tap-highlight-color: rgba(255,0,51,0.25); }

/* ===== Overlay 18+ ===== */
#age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.86);
  padding: 20px;
}
#age-overlay .card {
  width: 100%;
  max-width: 420px;
  background: #0f0f0f;
  border: 2px solid #ff0033;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255,0,51,0.55);
  padding: 22px 18px;
  text-align: center;
  color: #fff;
}
#age-overlay h2 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  color: #ff0033;
  text-shadow: 0 0 6px #ff0033;
}
#age-overlay p {
  margin: 0 0 18px 0;
  color: #e8e8e8;
  line-height: 1.35;
}
#age-overlay .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
#age-overlay a {
  display: inline-block;
  background: #200000;
  color: #ff0033;
  border: 2px solid #ff0033;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
#age-overlay a:hover {
  background: #ff0033;
  color: #000;
  box-shadow: 0 0 12px rgba(255,0,51,.6);
}

/* ===== Logo ===== */
.site-logo {
  text-align: center;
  margin: 0;
}
.site-logo img {
  max-width: 100%;
  height: auto;
}

/* ===== Lista de vídeos ===== */
.video-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;

  width: 100%;
  max-width: 1280px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  overflow-x: hidden;           /* reforço para evitar vazamento */
}
.video-item {
  background-color: #111;
  border: 2px solid #ff0033;
  border-radius: 10px;
  overflow: hidden;
  width: 230px;
  transition: box-shadow 0.3s ease;
}
.video-item:hover {
  box-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033, 0 0 30px #ff0033;
}
.video-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Títulos ===== */
.title-link {
  display: block;
  padding: 8px 12px;
  color: #ff0033;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  word-break: break-word;
}
.title-link:hover { text-decoration: underline; }

/* ===== Botões ===== */
.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  width: 100%;
  max-width: 1280px;
  margin: 20px auto;
  padding: 0 10px;
  overflow-x: hidden;           /* evita “balanço” se tiver mais botões */
}
.action-button {
  position: relative;
  display: inline-block;
  background-color: #200000;
  color: #ff0033;
  border: 2px solid #ff0033;
  border-radius: 6px;
  width: 200px;
  box-sizing: border-box;
  text-align: center;
  padding: 10px 16px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  margin: 0 auto;
}
.action-button:hover {
  background-color: #ff0033;
  color: #000;
}
.action-button.gera::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.action-button.gera:hover::after { border-color: #000; }

/* ===== Paginação ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;              /* permite quebrar linha */
  gap: 8px;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1280px;
  margin: 20px auto 30px auto;
  padding: 0 10px;
  overflow-x: hidden;           /* evita vazamento lateral */
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 2px solid #ff0033;
  background: #1a1a1a;
  color: #ff0033;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.pagination a:hover {
  background: #ff0033;
  color: #000;
}
.pagination .active {
  background: #ff0033;
  box-shadow: inset 0 0 0 2px #2a2a2a;
  color: #000;
}
.pagination .is-disabled {
  opacity: .5;
  cursor: not-allowed;
  background: #111;
}
.pagination .ellipsis {
  border: none;
  background: transparent;
  min-width: auto;
  height: auto;
  padding: 0 4px;
}
/* separação vertical quando quebrar em 2 linhas */
.pagination > * { margin-top: 4px; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .video-item { width: 90%; }
  .button-group { flex-direction: column; gap: 15px; }
}
