/* Google Font Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins" , sans-serif;
}

.catName {
  color: white;
  text-decoration: underline;
  font-size: 24px;
}

.movieElement {
    cursor: pointer;
}

.matches-wrapper {
    margin: 0px 0;
  }
  
  .scrollContainer {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 25px;
  }
  
  .scrollContainer::-webkit-scrollbar {
    display: none;
  }
  
  .itemElement {
  width: 150px;
  height: 250px;
  margin: 0px 5px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  }
  
  .itemElement img {
  width: 90%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border: solid 2px #e23e57;
  border-radius: 5px;
  transition: transform 0.3s ease;
  cursor: pointer;
  }

  .itemElement:hover img {
  transform: scale(1.05);
}
  
  .itemElement p {
      color: white;
  font-size: 14px;
  margin: 4px 0;
  white-space: normal;
  overflow: hidden;
  text-overflow: unset; /* optional */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  }

  .btnWrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 25px;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .leftBtn, .rightBtn {
    cursor: pointer;
    width: 30px;
    height: 30px;
  }
  
  .detail-overlay.hidden {
  display: none;
  }

  .detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.detail-overlay.hidden {
  display: none;
}

.detail-frame {
  width: 90%;
  height: 90%;
  border: none;
  border-radius: 10px;
}

.close-overlay {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}


/* Responsive Enhancements */
@media (max-width: 1024px) {
  .container, .section {
    padding: 0 20px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  nav .nav-menu {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 15px;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-logo h1 {
    font-size: 1.2rem;
  }
  .search-bar input[type="text"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.2rem;
  }
  .nav-logo h1, .btn {
    font-size: 0.9rem;
  }
  .nav-menu {
    gap: 10px;
  }
  .container {
    padding: 0 10px;
  }
}
