/* Custom styles for Niche Movies */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.movie-card {
    transition: transform 0.2s;
    height: 100%;
}

.movie-card:hover {
    transform: translateY(-5px);
}

.movie-poster {
    height: 300px;
    object-fit: cover;
}

.movie-rating {
    font-size: 0.9rem;
}

.star-rating {
    color: #ffc107;
}

.review-card {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
}

.top-movies-section {
    margin-bottom: 2rem;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
}

.movie-detail-poster {
    max-height: 400px;
    object-fit: cover;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.section-title {
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .movie-poster {
        height: 250px;
    }
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars .star {
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars .star.active,
.rating-stars .star:hover {
    color: #ffc107;
}

/* Movie genres */
.genre-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive movie details */
@media (max-width: 768px) {
    .movie-detail-poster {
        max-height: 300px;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
