/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* Container for movie details */
.movie-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Movie Poster */
.movie-poster {
    width: 35%;
    max-width: 300px;
    margin-right: 20px;
}

.movie-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Movie Content */
.movie-content {
    flex-grow: 1;
}

/* Movie Header (Title and Tagline) */
.movie-head {
    margin-bottom: 15px;
}

.movie-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.movie-tagline {
    font-size: 18px;
    font-style: italic;
    color: #b3b3b3;
}

/* Movie Subdata (Stars and Year/Duration) */
.movie-subdata {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.movie-left {
    font-size: 16px;
    color: #e50914;
}

.movie-right {
    font-size: 16px;
    color: #b3b3b3;
}

/* Movie Fields (Genres, Synopsis, etc.) */
.movie-fields {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: #ffffff;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.movie-taxonomy {
    background-color: #333;
    color: #e50914;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.movie-taxonomy:hover {
    background-color: #e50914;
    color: #ffffff;
}

/* Movie Description (Synopsis) */
.movie-description {
    font-size: 16px;
    color: #d3d3d3;
    margin-top: 15px;
}

/* Watch Now Links */
.watch-now-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.watch-now-link {
    background-color: #e50914;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.watch-now-link:hover {
    background-color: #ff2537;
    transform: scale(1.05);
}

/* Exit Button */
.exit {
    font-size: 30px;
    color: #e50914;
    cursor: pointer;
    margin-top: 20px;
}

.exit:hover {
    color: #ff2537;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-inner {
        flex-direction: column;
        align-items: center;
    }

    .movie-poster {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .movie-content {
        text-align: center;
    }

    .movie-head {
        text-align: center;
    }

    .movie-subdata {
        flex-direction: column;
        align-items: center;
    }

    .movie-left, .movie-right {
        margin-bottom: 10px;
    }

    .watch-now-links {
        flex-direction: column;
        align-items: center;
    }

    .watch-now-link {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* General Styles from your previous CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e50914;
}

.nav-links button {
    background-color: transparent;
    color: white;
    border: 2px solid #e50914;
    padding: 8px 16px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-links button:hover {
    background-color: #e50914;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
}

#search {
    width: 300px;
    padding: 10px;
    background-color: #333;
    border: none;
    color: white;
}

/* Genre Filters */
.genre-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.genre-row {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.category-link {
    margin: 0 10px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover, .category-link.current {
    color: #e50914;
}

/* Item Container */
.item-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.item {
    width: 200px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.item:hover {
    transform: scale(1.05);
}

.item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.item-inner {
    padding: 10px;
    background-color: rgba(0,0,0,0.7);
}

.item-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.rating {
    color: #e50914;
}

/* Back to Top Button */
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #e50914;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
}

#myBtn:hover {
    background-color: #ff2537;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.more, .moreTV {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.more:hover, .moreTV:hover {
    background-color: #ff2537;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .nav-links, .search-container {
        margin-top: 10px;
    }

    #search {
        width: 100%;
    }
}
