body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #f5f5f5;
  
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.6);
  padding: 15px 20px;
  position: sticky;
  top: 0;
}
header .logo img {
  width: 100px;
  height: 100px;
  border-radius: 18px;
}
header nav {
  display: flex;
  gap: 50px;
}
header nav a {
  color: #fff;
  text-decoration: none;
}
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Search section */
.search-section {
  text-align: center;
  margin: 20px;
}
.search-section input {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 5px;
}
.search-section button {
  padding: 10px 15px;
  border: none;
  background: #137DC5;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

/* Movie grid */
main h2{
padding-left: 5px;
}

.movie-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}
.movie-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 10px #7F6FEA;
  transition: transform 0.2s;

  display: flex;
  flex-direction: column;
}

.movie-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.movie-card h3 {
  margin: 10px;
  font-size: 16px;
  flex-grow: 1; /* This makes the title area expand to fill space */
}

.movie-card a {
  display: inline-block;
  margin: 10px;
  padding: 8px 12px;
  background: #00e6e6;
  color: #121212;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 5px #00e6e6;

  /* Push button to bottom */
  margin-top: auto;
}


.movie-card:hover {
  transform: scale(1.05);
}


footer {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 40px 20px;
  margin-top: 50px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo h2 {
  font-size: 24px;
  color: #7F6FEA; /* neon cyan */
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #0ff;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #bbb;
  font-size: 20px;
  transition: 0.3s;
}

.footer-socials a:hover {
  color: #0ff;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

.tmdb-credit {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

.tmdb-credit a {
  color: #0ff;
  text-decoration: none;
}


#load-more {
  background: #0ff;
  border: none;
  padding: 12px 20px;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
#load-more:hover {
  background: #00ffaa;
}

.details{
    margin-left: 60px;
    
}

.details-card {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  background: rgba(0,0,0,0.7);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  margin-top: 35px;
}

.details-card img {
  width: 300px;
  border-radius: 12px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.details-card img:hover{
    transform: scale(1.05);
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
}

.details-card a{
    
    color: #0ff;
}

.details-text {
  max-width: 700px;
  padding-left: 5px;
}

.trailer {
  margin-top: 20px;
}

.trailer iframe {
  width: 100%;
  max-width: 500px;
  height: 280px;
  border-radius: 12px;
}

.cast-carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  scrollbar-width: thin;
}

.cast-carousel::-webkit-scrollbar {
  height: 8px;
}

.cast-carousel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.cast-card {
  min-width: 120px;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  padding: 10px;
  flex-shrink: 0;
}

.cast-card img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}





#facebook{
    color: #1877F2;
}

#twitter{
    color: #1DA1F2;
}

#instagram{
    color: #E4405F;
}

#instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#whatsapp{
    color: #25D366;
}

footer a{
    text-decoration: none;
    color: #7F6FEA;
}

/* Genre Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 8px;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #444;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.movie-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.movie-card img {
  width: 100%;       /* take full grid cell width */
  height: auto;      /* keep aspect ratio, shrink naturally */
  border-radius: 8px;
  object-fit: cover; /* crop nicely instead of stretching */
}



@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 70px; /* below header */
    right: 20px;
    border-radius: 8px;
    padding: 10px;
    width: 200px;
    gap: 10px;
    z-index: 100;
  }

  /* Show nav when hamburger clicked */
  #nav-links.show {
    display: flex;
  }

  /* Show hamburger icon */
  .hamburger {
    display: block;
  }

  /* Dropdown inside mobile menu */
  .dropdown-content {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    background: rgba(50,50,50,0.9);
    flex-direction: column;
    padding: 0;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .dropdown > a {
    cursor: pointer;
  }

  /* Optional: stack details and movie cards */
  .details-card {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90%;
    margin: 20px auto;
    padding: 15px;
  }
  
}



@media (max-width: 480px) {
  .cast-card {
    min-width: 80px;
    padding: 6px;
  }
  .cast-card img {
    width: 60px;
    height: 90px;
  }
  .cast-card p {
    font-size: 12px;
  }
  .cast-card span {
    font-size: 10px;
  }

  .movie-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (max-width: 768px) {
  .details-card {
    flex-direction: column;       /* stack poster and text */
    align-items: center;
    gap: 20px;
    max-width: 90%;
    margin: 20px auto;
    padding: 15px;
  }

  .details-card img {
    width: 80%;
    max-width: 250px;
    height: auto;
  }

  .details-text {
    max-width: 100%;
    padding-left: 0;
  }

  .trailer iframe {
    max-width: 100%;
    height: 220px;
  }

  .cast-carousel {
    gap: 10px;
    padding: 5px 0;
  }

  .cast-card {
    min-width: 90px;
    padding: 8px;
  }

  .cast-card img {
    width: 70px;
    height: 100px;
  }

  .cast-card p {
    font-size: 14px;
  }

  .cast-card span {
    font-size: 12px;
  }
}

/* Mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .details-card {
    max-width: 95%;
    padding: 10px;
    gap: 15px;
  }

  .details-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .details-text h1 {
    font-size: 20px;
  }

  .details-text p {
    font-size: 14px;
  }

  .trailer iframe {
    height: 180px;
  }

  .cast-card {
    min-width: 70px;
    padding: 6px;
  }

  .cast-card img {
    width: 50px;
    height: 70px;
  }

  .cast-card p {
    font-size: 12px;
  }

  .cast-card span {
    font-size: 10px;
  }
  .details{
  margin: 0 10px;
}
}

