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

body {
  background: #141414;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 40px;
  z-index: 100;
}

.logo img {
  height: 40px;
}

.logo2 img {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  margin-left: 40px;
}

.nav-links li {
  margin-right: 25px;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e50914;
}

.profile {
  margin-left: auto;
}

.profile img {
  height: 80px;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero */
.hero {
  margin-top: 20px;
  height: 70vh;
  background: url('UI Images/Hero-Img.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #141414, transparent);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  padding-left: 40px;
  font-size: 3.5rem;
  font-weight: 700;
}

.hero-text p {
  padding-left: 40px;
  font-size: 1.4rem;
  margin: 12px 0;
}

.hero-buttons {
  padding-left: 40px;
  display: flex;
  gap: 12px;
}

.btn {
  background: rgba(51,51,51,0.7);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-play:hover {
  background: #e50914;
}

.btn-list:hover {
  background: #e50914;
}

/* Rows */
.row {
    padding: 0 30px;
  margin-top: 30px;
  position: relative;
}

.row h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.row-posters {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.row-posters::-webkit-scrollbar {
  display: none;
}

.poster {
  width: 300px;
  height: 170px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.poster:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Scroll buttons */
.scroll-buttons {
  position: absolute;
  top: 50%;
  width: 96.1%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scroll-buttons button {
  pointer-events: all;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.scroll-buttons button:hover {
  background: rgba(0,0,0,0.8);
}

/* Popup */
.custom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.custom-popup {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  animation: slideUp 0.4s ease;
}

.custom-popup iframe {
  width: 100%;
  height: 200px;
  border: none;
  margin-bottom: 12px;
  border-radius: 4px;
}

.custom-popup button {
  background: #e50914;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.custom-popup button:hover {
  background: #b0060f;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 13px;
  margin-top: 30px;
  border-top: 2px solid #333;
}

/* ----------------- Responsive CSS ----------------- */

/* For large tablets & small laptops (<= 1200px) */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-text p {
    font-size: 1.8rem;
  }

  .row h2 {
    font-size: 2rem;
  }

  .poster {
    height: 150px;
    width: 260px;
  }

  .logo img {
    height: 45px;
  }

  .profile img {
    height: 75px;
  }

  .nav-links {
    margin-left: 25px;
  }

  .nav-links a {
    font-size: 1.3rem;
    margin: 0px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 1.2rem;
  }

  .footer {
    font-size: 20px;
  }
}

/* For tablets (<= 805px) */
@media (max-width: 805px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 20px;
  }

  .logo img {
    height: 40px;
  }

  .profile img {
    height: 75px;
  }

  .nav-links {
    margin-left: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin: 10px;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero {
    height: 60vh;
  }

  .hero-text h1 {
    font-size: 3.5rem;
    padding-left: 20px;
  }

  .hero-text p,
  .hero-buttons {
    padding-left: 20px;
  }

  .poster {
    height: 120px;
    width: 250px;
  }

  .row h2 {
    font-size: 1.7rem;
  }

  .scroll-buttons {
    width: 95%;
  }

  .footer {
    font-size: 16px;
  }
}

/* For small tablets & large phones (<= 665px) */
@media (max-width: 665px) {
  .hero {
    height: 50vh;
  }

  .hero-text h1 {
    font-size: 2.9rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .nav-links {
    margin-left: 10px;
  }

  .poster {
    height: 110px;
    width: 200px;
  }

  .profile img {
    height: 70px;
  }

  .logo img {
  display: none;
  }

  .logo2 img {
    display: inline;
    height: 40px;
  }

  .navbar {
    display: flex;
    padding: 1px 20px;
  }

  .nav-links li {
    margin: 6px;
  }
  

  .nav-links a {
    font-size: 1.1rem;
  }

  .row {
    padding: 0 15px;
  }

  .row h2 {
    font-size: 1.45rem;
  }

  .scroll-buttons {
    width: 93%;
  }

  .footer {
    font-size: 10px;
  }
}

/* For small phones (<= 495px) */
@media (max-width: 495px) {
  .navbar {
    padding: 2px 15px;
  }
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .logo img {
  display: none;
  }

  .logo2 img {
    display: inline;
    height: 35px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .poster {
    height: 100px;
    width: 170px;
  }

  .profile img {
    height: 60px;
  }

  .nav-links a {
    font-size: 0.98rem;
  }

  .nav-links li {
    margin: 4.5px;
  }

  .nav-links {
    margin-left: 6px;
  }

  .row h2 {
    font-size: 1.2rem;
  }

  .footer {
    font-size: 8.92px;
  }
}


/* For small phones (<= 420px) */
@media (max-width: 420px) {
  
  .nav-links a {
    font-size: 0.8rem;
  }

  .profile img {
    height: 45px;
  }

  .logo2 img {
    height: 25px;
  }

  .navbar {
    padding: 2px 5px;
  }
}
