/* ── Reset & base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --preto:    #080808;
  --escuro:   #111111;
  --card-bg:  #161616;
  --vermelho: #e50914;
  --verm2:    #b20710;
  --dourado:  #f5c518;
  --texto:    #e5e5e5;
  --suave:    #888;
  --borda:    #252525;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: var(--preto);
  color: var(--texto);
  min-height: 100vh;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid #1e1e1e;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--vermelho);
  letter-spacing: 1px;
}

nav { display: flex; gap: 32px; }

nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
nav a:hover { color: #fff; }
nav a.ativo { color: #fff; border-bottom: 2px solid var(--vermelho); padding-bottom: 2px; }

.header-fav {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: default;
  transition: background 0.2s;
}
.header-fav #fav-count { color: var(--vermelho); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 24px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 70% at 50% 100%, #3a0000 0%, #1a0000 40%, var(--preto) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dourado);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--vermelho); }

.hero-sub {
  font-size: 0.95rem;
  color: var(--suave);
  font-weight: 500;
  margin-bottom: 32px;
}

/* Barra de busca */
.hero-search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.hero-search {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.hero-search::placeholder { color: #666; }
.hero-search:focus {
  border-color: var(--vermelho);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.12);
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  padding: 18px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 44px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--vermelho);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--suave);
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: #2a2a2a;
}

/* ── Filtros ── */
.filtros-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 32px 24px 8px;
}

.filtro-btn {
  padding: 9px 22px;
  background: #1a1a1a;
  border: 1.5px solid var(--borda);
  border-radius: 30px;
  color: #888;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.filtro-btn:hover { border-color: #555; color: #ccc; background: #222; }
.filtro-btn.ativo {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229,9,20,0.3);
}

/* ── Grade de filmes ── */
.filmes-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 64px;
}

.grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--borda);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1),
              box-shadow 0.28s, border-color 0.28s;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(229,9,20,0.28);
  border-color: #3a3a3a;
}

.card.escondido { display: none; }

/* imagem */
.card-img-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #111;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s;
}

.card:hover .card-img-wrap img {
  transform: scale(1.08);
  filter: brightness(0.45);
}

/* badge nota */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.82);
  color: var(--dourado);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245,197,24,0.25);
}

/* badge destaque */
.destaque-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vermelho);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* botão favorito */
.fav-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.8);
}

.card:hover .fav-btn { opacity: 1; transform: scale(1); }

.fav-btn.ativo {
  background: var(--vermelho);
  border-color: var(--vermelho);
  color: #fff;
  opacity: 1;
  transform: scale(1);
}
.fav-btn:hover { transform: scale(1.15) !important; }

/* overlay hover */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  padding-bottom: 48px;
  pointer-events: none;
}

.card:hover .card-hover-overlay { opacity: 1; }

.card-hover-overlay span {
  background: rgba(229,9,20,0.9);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 26px;
  border-radius: 30px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* info */
.card-info { padding: 14px 16px 18px; }

.card-info h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genero {
  font-size: 0.7rem;
  color: var(--dourado);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sem resultado */
.sem-resultado {
  text-align: center;
  padding: 64px 24px;
  color: var(--suave);
}
.sem-resultado span { font-size: 3rem; display: block; margin-bottom: 16px; }
.sem-resultado p { font-size: 1rem; }
.sem-resultado strong { color: #fff; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.aberto { display: flex; }

.modal-box {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-top: 3px solid var(--vermelho);
  border-radius: 18px;
  padding: 48px 44px 44px;
  max-width: 480px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: aparecer 0.25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-fechar {
  position: absolute;
  top: 16px; right: 18px;
  background: #2a2a2a; border: none;
  color: #888;
  font-size: 1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-fechar:hover { background: #444; color: #fff; }

.modal-icon { font-size: 2.6rem; margin-bottom: 16px; }

#modal-titulo {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.modal-meta {
  font-size: 0.75rem;
  color: var(--dourado);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#modal-texto {
  font-size: 0.93rem;
  color: #aaa;
  line-height: 1.75;
}

/* ── Botão Voltar ao Topo ── */
.btn-topo {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--vermelho);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(229,9,20,0.4);
  transition: opacity 0.3s, transform 0.2s, background 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-topo.visivel { opacity: 1; pointer-events: all; }
.btn-topo:hover { background: var(--verm2); transform: translateY(-3px); }

/* ── Footer ── */
footer {
  background: var(--escuro);
  border-top: 1px solid #1e1e1e;
  padding: 44px 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo { font-size: 1.2rem; font-weight: 900; color: var(--vermelho); }
footer p { color: var(--suave); font-size: 0.85rem; }

.footer-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 32px;
  background: var(--vermelho);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
}
.footer-btn:hover { background: var(--verm2); transform: scale(1.03); }

/* ── Contato ── */
.contato-hero {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, #3a0000 0%, #1a0000 40%, var(--preto) 100%);
}
.contato-hero h1 { font-size: 2.8rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.contato-hero p  { color: var(--suave); font-size: 1rem; }

.contato-main {
  display: flex;
  justify-content: center;
  padding: 56px 24px 80px;
}

.form-box {
  background: var(--card-bg);
  border: 1px solid var(--borda);
  border-top: 3px solid var(--vermelho);
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.form-box h2 {
  font-size: 1.2rem; color: #fff; font-weight: 800;
  margin-bottom: 32px; text-align: center; letter-spacing: 0.5px;
}

.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }

.campo label {
  font-size: 0.72rem; font-weight: 700; color: var(--suave);
  text-transform: uppercase; letter-spacing: 1px;
}

.campo input,
.campo textarea {
  background: #0f0f0f;
  border: 1.5px solid #2a2a2a;
  border-radius: 8px;
  padding: 13px 16px;
  color: #fff; font-size: 0.93rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}
.campo textarea { min-height: 130px; }

.btn-enviar {
  width: 100%; padding: 15px;
  background: var(--vermelho); color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 800;
  font-family: inherit; cursor: pointer;
  margin-top: 6px; letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
}
.btn-enviar:hover { background: var(--verm2); transform: scale(1.02); }

.aviso-sucesso {
  display: none;
  background: #0b2a0b; border: 1.5px solid #2e7d2e;
  border-radius: 8px; color: #6ecf6e;
  padding: 14px; text-align: center;
  font-weight: 700; font-size: 0.9rem; margin-top: 18px;
}

.aviso-erro {
  display: none;
  background: #2a0b0b; border: 1.5px solid #7d2e2e;
  border-radius: 8px; color: #cf6e6e;
  padding: 14px; text-align: center;
  font-weight: 700; font-size: 0.9rem; margin-top: 18px;
}

.btn-enviar:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
}

/* ── Responsivo ── */
@media (max-width: 1100px) { .grade { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .hero h1 { font-size: 2.6rem; }
  .filmes-wrap { padding: 28px 16px 48px; }
  .grade { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { padding: 0 20px; }
  .form-box { padding: 32px 22px; }
  .filtros-wrap { gap: 8px; padding: 24px 16px 0; }
  .filtro-btn { padding: 8px 16px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .grade { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero h1 { font-size: 2rem; letter-spacing: -1px; }
  .stats-bar { flex-wrap: wrap; gap: 16px; }
  .stat-sep { display: none; }
}
