html, body {
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
}

header {
  background: #111;
  padding: 20px;
  text-align: center;
}

header h1 {
  color: #FFA500;
  margin: 0 0 10px 0;
}

header input {
  padding: 10px;
  width: 60%;
  border: none;
  border-radius: 5px;
  max-width: 90%;
}

.carousel-container {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

#carousel-section {
  width: 100%;
}

.swiper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper-slide::after {
  content: "\25BA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-slide:hover::after {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: #FFA500;
  display: block;
}

.swiper-slide .movie-title {
  text-align: center;
  margin-top: 5px;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#grid-section {
  max-width: 1200px;
  margin: 50px auto;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
}

.movie-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.movie-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.movie-card:hover img {
  transform: scale(1.05);
}

.movie-card::after {
  content: "\25BA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover::after {
  opacity: 1;
}

.movie-title {
  text-align: center;
  margin-top: 5px;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#details {
  max-width: 800px;
  margin: 50px auto;
}

#details img {
  width: 100%;
  border-radius: 10px;
}

.assistir-button {
  display: block;
  margin: 20px 0;
  padding: 10px 20px;
  background: #FFA500;
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
}

#details .ficha {
  background: #111;
  padding: 20px;
  border-radius: 10px;
}

#details iframe {
  width: 100%;
  height: 400px;
  margin-top: 20px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .movies-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .movie-title {
    font-size: 10px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .movie-title {
    font-size: 12px;
  }
}