* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #0a0a0a;
  padding: 1.5rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  color: #e600ff;
  margin-bottom: 1rem;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

select, label {
  font-size: 1rem;
  color: #fff;
}

select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #0d0d0d;
  color: #e600ff;
  border: 2px solid #e600ff;
  font-size: 1rem;
  font-weight: bold;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg fill="%23e600ff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
select:focus {
  outline: none;
  box-shadow: 0 0 10px #e600ff;
}
.select-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 0 1rem;
}


input[type="text"] {
  padding: 0.5rem 1rem;
  width: 250px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

button {
  padding: 0.5rem 1rem;
  background-color: #e600ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: #ff006e;
}

main {
  flex: 1;
  padding: 2rem;
}

#results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.movie-card {
  background-color: #181818;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

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

.movie-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.movie-card .info {
  padding: 0.8rem;
}

.movie-card .info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.movie-card .info p {
  font-size: 0.85rem;
  color: #aaa;
}

footer {
  background-color: #0a0a0a;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.movie-featured {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.poster-box {
  background-color: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.poster-box img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.details-box {
  background-color: #181818;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.details-box h2 {
  font-size: 2rem;
  color: #e600ff;
  margin-bottom: 1rem;
}

.details-box .rating {
  font-size: 1rem;
  color: #f5c518;
  margin-bottom: 0.5rem;
}

.details-box .cast {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #aaa;
}

.details-box p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

@media (min-width: 768px) {
  .movie-featured {
    align-items: stretch;
  }

  .poster-box,
  .details-box {
    height: auto;
  }

  .poster-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

.movie-details h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e600ff;
}

.movie-details .rating {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f5c518;
}

.movie-details .cast {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #aaa;
}

.movie-details p {
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
}

.center {
  text-align: center;
  margin-top: 2rem;
}

#new-movie-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #e600ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

#new-movie-btn:hover {
  background-color: #6f0091;
}

.github-btn {
  color: #e600ff;
}
.github-btn:hover {
  color: #6f0091;
}

.cast-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0 1rem 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid #333;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #e600ff #1a1a1a;
}

.cast-scroll::-webkit-scrollbar {
  height: 8px;
}

.cast-scroll::-webkit-scrollbar-thumb {
  background: #e600ff;
  border-radius: 4px;
}

.actor {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
  color: #e0e0e0;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.actor:hover {
  transform: scale(1.1);
}

.actor img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 2px solid #e600ff;
  box-shadow: 0 0 6px #e600ff88, 0 0 12px #e600ff44;
  background-color: #111;
  transition: box-shadow 0.3s ease;
}

.actor img:hover {
  box-shadow: 0 0 12px #ff00f288, 0 0 20px #e600ff99;
}

.actor span {
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
  color: #ccc;
}

.link_actor {
  text-decoration: none;
  cursor: pointer;
}

.extra-info {
  margin-bottom: 1rem;
}

.footer-link {
  color: #e600ff;
  text-decoration: none;
}
.footer-link:hover {
  color: #6f0091;
}
