/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #f5f5f5;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER */
header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: #ff2a44;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo h1:hover {
  transform: scale(1.05);
  color: #ff4d66;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #fff;
  background: linear-gradient(135deg, #ff2a44, #e50914);
  box-shadow: 0 3px 8px rgba(229, 9, 20, 0.4);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Search Bar */
nav ul li.search {
  position: relative;
}

nav ul li.search form {
  display: flex;
  align-items: center;
}

nav ul li.search input[type="text"] {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  background-color: #222;
  color: #f5f5f5;
  font-size: 0.9rem;
  width: 180px;
  transition: all 0.3s ease;
}

nav ul li.search input[type="text"]:focus {
  background-color: #333;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
  outline: none;
  width: 220px;
}

nav ul li.search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #ff2a44;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li.search button:hover {
  color: #ff4d66;
}

#sugestoes {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #1c1c1c;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: #ff2a44 #333;
}

#sugestoes::-webkit-scrollbar {
  width: 8px;
}

#sugestoes::-webkit-scrollbar-track {
  background: #333;
}

#sugestoes::-webkit-scrollbar-thumb {
  background-color: #ff2a44;
  border-radius: 10px;
}

.sugestao-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  gap: 0.8rem;
  cursor: pointer;
  background-color: #2a2a2a;
  margin: 0.3rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.sugestao-item:hover {
  background-color: #3a3a3a;
}

.sugestao-item img {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
}

.sugestao-item span {
  font-size: 0.9rem;
  color: #f5f5f5;
}

.filtros {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-bottom: 1px solid #333;
}

.filtro {
  padding: 0.4rem 0.8rem;
  background-color: #444;
  border: none;
  color: #f5f5f5;
  cursor: pointer;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.filtro.ativo {
  background-color: #ff2a44;
  color: #fff;
}

.filtro:hover {
  background-color: #666;
}

.resultados {
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  background: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff2a44, #e50914);
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: linear-gradient(135deg, #e50914, #ff2a44);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.6);
}

/* Content Sections */
.content-section {
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  max-width: 1400px;
  animation: fadeIn 0.8s ease-in;
}

.content-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: #ff2a44;
  margin-bottom: 1.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 0.5rem;
}

.movie-card {
  position: relative;
  background-color: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.movie-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.movie-card:hover img {
  opacity: 0.85;
}

.movie-card h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin: 0.8rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.movie-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

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

.movie-card .overlay p {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 0.8rem;
}

.assistir-btn {
  display: block;
  background: linear-gradient(135deg, #ff2a44, #e50914);
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  text-decoration: none;
  margin: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.assistir-btn:hover {
  background: linear-gradient(135deg, #e50914, #ff2a44);
  transform: scale(1.03);
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.5);
}

/* Ads */
.ad-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem auto;
  max-width: 1400px;
}

.ad-728x90 iframe {
  max-width: 100%;
  height: auto;
}

.ad-300x250 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  justify-items: center;
}

.footer-ads {
  margin-top: 2rem;
}

/* Footer */
footer {
  background: #121212;
  padding: 3rem 1rem;
  color: #ccc;
  border-top: 1px solid #222;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: #ff2a44;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul li a {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a:hover {
  color: #ff2a44;
  text-decoration: underline;
}

footer > p {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Animação FadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .ad-728x90 iframe {
    width: 468px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #121212;
    padding: 1.2rem;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 0.7rem;
    font-size: 1.1rem;
    display: block;
  }

  nav ul li.search {
    width: 100%;
  }

  nav ul li.search input[type="text"] {
    width: 100%;
    max-width: none;
  }

  #sugestoes {
    width: 100%;
    left: 0;
    right: 0;
  }

  .hero {
    height: 50vh;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

  .ad-728x90 iframe {
    width: 320px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.6rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .movie-card img {
    height: 220px;
  }

  .movie-card h3 {
    font-size: 1rem;
  }

  .assistir-btn {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .ad-728x90 {
    display: none;
  }

  .ad-300x250 {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .filtros {
    flex-wrap: wrap;
  }

  .filtro {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}