/* Movies Filter Styles */
.movies-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.movies-filters select {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
    background-color: #fff;
    cursor: pointer;
}

.movies-filters select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.movie-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.movie-item:hover {
    transform: translateY(-3px);
}

.movie-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.movie-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

#movies-results {
    transition: opacity 0.3s ease;
}

#movies-loading {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin: 20px 0;
    display: none;
}

#movies-results p {
     text-align: center;
    font-size: 13px;
    color: white;
    margin: 0px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .movies-filters select {
        width: 100%;
        margin-bottom: 10px;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }
}

    body {
      background: #1c1f23;
      margin: 0;
      font-family: Arial, sans-serif;
    }

.movie-slider
 {
    display: grid
;
    gap: 20px;
    margin-top: 2rem;
    justify-content: left;
    grid-template-columns: repeat(6, 150px);
}

    .movie-card {
    position: relative;
    width: 150px;
    height: 203px;
    border-radius: 6px;
    overflow: hidden;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: green;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    border: 1px solid #2fb5ff;
    }



    .movie-card:hover {
      transform: scale(1.05);
      box-shadow: 0 0 12px rgba(0,0,0,0.6);
    }

    /* Overlay on hover */
    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.65);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 6px;
    }

    .movie-card:hover .overlay {
      opacity: 1;
    }

    .overlay .icon {
      font-size: 38px;
      color: #00e676;
      margin-bottom: 5px;
    }

    .overlay .views {
      font-size: 22px;
      font-weight: bold;
      color: white;
    }

    .overlay .likes {
    font-size: 9px;
    color: orange;
    display: flex;
    padding: 0px 5px;
    }


.mainclass {
    padding: 3rem 4rem;
}

h2.movie-title {
    color: orange;
    font-size: 19px;
    text-align: center;
}