    /* Container for card layout */
    .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive columns */
        gap: 20px;
        padding: 20px;
    }

    /* Container for movie cards */
.movie-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
    gap: 20px; /* Space between cards */
    padding: 20px;
    margin: 0 auto;
    max-width: 1400px; /* Center the container */
}

/* Movie Card Styling */
.movie-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.movie-card:hover {
    transform: scale(1.05);
}

/* Movie Thumbnail */
.movie-card img {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensure proper cropping */
    border-radius: 8px 8px 0 0;
}

/* Movie Details */
.movie-details {
    padding: 10px;
}

.movie-details h3 {
    font-size: 16px;
    
    color: #333;
}

.movie-details p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* Anchor Tag Styling */
.movie-card a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 1200px) {
    .movie-container {
        grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    }
}

@media (max-width: 768px) {
    .movie-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
}

@media (max-width: 480px) {
    .movie-container {
        grid-template-columns: 1fr; /* 1 card per row */
    }

    .movie-card img {
        height: 200px; /* Adjust for smaller screens */
    }
}


.movie-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default to 4 columns for desktop */
    gap: 12px;
    
}

.movie-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.movie-thumb {
    position: relative;
    width: 100%;
    height: 180; /* Fixed height for the thumbnail */
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.episode-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 5px;
}

.movie-details {
    padding: 8px;
    text-align: center;
}

.movie-details p {
    font-size: 14px;
    margin: 0;
}

.movie-details strong {
    display: block;
    font-size: 16px;
    
}

.pagination {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.jump-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
}

.jump-to-top:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media screen and (max-width: 1200px) {
    .movie-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
    }
}

@media screen and (max-width: 900px) {
    .movie-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for rotated mobile */
    }
}

@media screen and (max-width: 600px) {
    .movie-container {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}