/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #fff;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  padding: 1rem;
  background: #1f1f1f;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

/* Search bar */
input#search {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
  border-radius: 5px;
  border: none;
}

/* Movie grid */
main#movies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.movie-card {
  background: #222;
  padding: 0.5rem;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
  width: 150px;
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  max-width: 100%;
  border-radius: 5px;
}

/* Carousel styles */
.carousel {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 1rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel img {
  width: 120px;
  border-radius: 5px;
  cursor: pointer;
}

/* Backdrop image on movie page */
.backdrop {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 8px;
}

/* Extra poster gallery */
.poster-row {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 1rem 0;
}

.poster-row img {
  width: 150px;
  border-radius: 5px;
}

iframe {
  display: block;
  margin: 1rem auto;
}

/* Download button styles */
#download-section,
#download-link {
  text-align: center;
  margin: 2rem;
}

#download-btn,
#real-download {
  background: #e50914;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

#countdown {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* Ads */
.ad {
  text-align: center;
  margin: 1rem 0;
}

#ad-sidebar iframe,
.ad iframe {
  max-width: 100%;
  display: block;
  margin: 1rem auto;
}

/* Request Box */
#request-box {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #222;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#request-box textarea {
  width: 200px;
  height: 60px;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
}

#request-box button {
  background: #e50914;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}