#search {
    position: relative;
    width: 300px;
    margin: 0 auto;
  }
  
  #search input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }
  
  #search .suggestions {
    position: absolute;
    background: white; /* ✅ خلفية بيضاء */
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px; /* ✅ تحديد أقصى ارتفاع */
    overflow-y: auto; /* ✅ السماح بالتمرير */
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    border-radius: 5px;
  }
  
  /* ✅ فرض ظهور الـ Scroll عند تجاوز 4 أفلام */
  #search .suggestions::-webkit-scrollbar {
    width: 8px;
  }
  
  #search .suggestions::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
  }
  
  #search .suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  /* ✅ تحسين شكل العناصر */
  .suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    background: white;
  }
  
  .suggestion-item:hover {
    background: #f1f1f1;
  }
  
  .movie-img {
    width: 50px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
  }
  
  .movie-info {
    display: flex;
    flex-direction: column;
  }
  
  .movie-title {
    font-weight: bold;
    font-size: 16px;
    color: black;
  }
  
  .movie-duration {
    font-size: 14px;
    color: rgb(5, 5, 5);
  }
  
  .divider {
    width: 90%;
    height: 1px;
    background: #ddd;
    margin: 5px auto;
  }
  