/* Modern Movie Grid Styles */
.movies-grid-container {
    padding: 20px 0;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.movie-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.movie-poster-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.rating-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.rating-overlay .fa-star {
    margin-right: 4px;
}

.movie-info {
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.movie-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.movie-title:hover {
    color: #e74c3c;
    text-decoration: none;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #7f8c8d;
}

.movie-year {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.movie-votes {
    font-weight: 500;
}

.movie-description {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.watch-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.watch-btn .fa {
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .movie-poster-container {
        height: 350px;
    }
    
    .movie-info {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .movie-poster-container {
        height: 300px;
    }
}

/* Loading Animation */
.movie-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    color: #34495e;
    margin-bottom: 16px;
    font-size: 24px;
}

.no-results p {
    color: #7f8c8d;
    font-size: 16px;
}

.no-results a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}
