/* Movie Filters Container */
.movie-filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.movie-filters-container h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Filter Form */
.movie-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 2px rgba(0,115,230,0.2);
}

.filter-submit {
    padding: 10px 20px;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.filter-submit:hover {
    background-color: #0056b3;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.movie-card a {
    text-decoration: none;
    color: inherit;
}

.movie-poster {
    position: relative;
    padding-top: 150%;
    background: #f0f0f0;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.rating-star {
    color: #ffd700;
    margin-left: 2px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.movie-year {
    font-size: 14px;
    color: #666;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Error State */
.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.movie-pagination {
    text-align: center;
    margin-top: 30px;
}

.movie-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.movie-pagination .page-numbers.current {
    background-color: #0073e6;
    color: #fff;
    border-color: #0073e6;
}

.movie-pagination .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
    border-color: #0073e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-filters-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .movie-title {
        font-size: 14px;
    }

    .movie-year {
        font-size: 12px;
    }
}

/* RTL Support */
[dir="rtl"] .movie-rating {
    left: 10px;
    right: auto;
}

[dir="rtl"] .movie-pagination .page-numbers {
    margin: 0 4px;
} 