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

.copyright{
    color: white;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;   
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #333;
    transition: filter 0.3s ease-out;
}

body.blur > *:not(.sidebar):not(.header) {
    filter: blur(5px);
}

.server-menu {
    position: relative;
    display: inline-block;
}

.server-menu-btn {
    padding: 10px;
    background-color: #9e9e9e77;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    color: rgb(255, 0, 0);
}

.server-list {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.server-list.show {
    display: block;
    background-color: #000000;
}

.server-btn {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.server-btn:hover {
    background-color: #f1f1f1;
}

.server-btn.active {
    background-color: #ddd;
}

/* Header styles */
.header {
    background-color: #000000;
    color: rgb(255, 0, 0);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    font-size: 20px;
    font-family: 'Bungee', sans-serif;
    cursor: pointer;
}

.eyebox{
    text-decoration: none;
    color: red;
}

.header h1 {
    margin-left: 30px;
    font-size: 1.5em;


}

.header.scroll-up { transform: translateY(0); }
.header.scroll-down { transform: translateY(-100%); }

.popular-actors-heading {
    color: white;
    
    font-size: 24px;
    font-weight: bold;
    margin-left: 30px;
    margin-top: 80px;
}



/* Toggle button styles */
.menu-toggle {
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgb(255, 0, 0);
    margin: 5px 0;
}

/* Sidebar styles */
.sidebar {
    background-color: #000000;
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100% - 60px);
    overflow-y: auto;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    z-index: 10;
    border-radius: 0 10px 10px 0;
    transform: translateX(-100%);
}

.sidebar.active {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li a {
    display: block;
    color: rgb(255, 255, 255);
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar li a:hover, .sidebar li a.active {
    background-color: #ffffff;
    color: #e50914;
}

/* Main content styles */
.main-content {
    padding: 80px 20px 20px;
    transition: margin-left 0.5s ease-out;

}

.main-content.shift {
    margin-left: 250px;
}

/* Featured section styles */
.featured-section {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    margin-bottom: 40px;
}

.movie-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    max-width: 50%;
    border-radius: 10px;
}

.movie-info h2 {
    margin-bottom: 10px;
    font-size: 2em;
}

.movie-info p {
    margin-bottom: 15px;
}

.play-btn {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.play-btn:hover {
    background-color: #f40612;
}

/* Content grid styles */
.section-title {
    font-size: 1.5em;
    margin: 20px 0;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.content-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.content-card img {
    width: 100%;
    height: 300px; /* Increased height */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-content {
    padding: 10px;
}

.card-content h2 {
    margin: 0 0 5px;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    margin: 3px 0;
    font-size: 0.9em;
    color: #666;
}

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

.pagination button {
    background-color: #ff0000;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
    margin: 0 5px;
}

.pagination button:hover {
    background-color: #ffffff;
    color: red;
}

.pagination span {
    font-size: 1.2em;
    color: white;
    font-family: 'Bungee', sans-serif;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 5px;
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
}

.modal-content p {
    margin-bottom: 10px;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }

    .modal-content img {
        max-width: 100%;
    }
}
.modal-content.video-content {
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    padding: 0;
}

.modal-content.video-content iframe {
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-section {
        height: 50vh;
        padding: 20px;
    }

    .movie-info {
        max-width: 100%;
    }

    .movie-info h2 {
        font-size: 1.5em;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 15px;
    }

    .content-card img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .content-card img {
        height: 225px;
    }

    .card-content h2 {
        font-size: 0.9em;
    }

    .card-content p {
        font-size: 0.8em;
    }
}

/* Add these new styles and modify existing ones as needed */

.featured-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.featured-movie {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 101%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(100%);
    border-radius: 40px;
    
}

.featured-movie.active {
    opacity: 1;
    transform: translateX(0);
    border-radius: 40px;
    height: 100%;
    overflow: visible;
}

.section-title{
    color: white;
}

.movie-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    max-width: 50%;
    
}

.movie-info h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.button-container {
    display: flex;
    gap: 10px;
}

.movie-info p {
    margin-bottom: 15px;
}

.play-btn, .more-info-btn {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.more-info-btn {
    background-color: rgba(109, 109, 110, 0.7);
}

.play-btn:hover, .more-info-btn:hover {
    background-color: #f40612;
}

@media (max-width: 768px) {
    .featured-section {
        height: 50vh;
    }

    .movie-info {
        max-width: 100%;
    }

    .movie-info h2 {
        font-size: 1.2em;
    }

    .play-btn, .more-info-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .desktop-only {
        display: none;
    }
}

.cast-section, .recommendations-section {
    margin-top: 20px;
}

.cast-list, .recommendations-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
}

.cast-item, .recommendation-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
}

.cast-item img, .recommendation-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.cast-item p, .recommendation-item p {
    margin-top: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .featured-section {
        height: 50vh;
    }

    .movie-info {
        max-width: 100%;
    }

    .movie-info h2 {
        font-size: 1.5em;
    }

    .desktop-only {
        display: none;
    }
}

#show-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.show-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.show-card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

.show-card-content {
    padding: 10px;
}

.show-card h2 {
    margin: 0 0 5px;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-card p {
    margin: 3px 0;
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    #show-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    #show-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

.featured-section {
    position: relative;
    height: 70vh;
    
}

.featured-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(100%);
    border-radius: 40px;
}

.featured-item.active {
    opacity: 1;
    transform: translateX(0);
    border-radius: 40px;
}

.item-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 50%;
}

.item-info h2 {
    margin-bottom: 10px;
    font-size: 2em;
}

.item-info p {
    margin-bottom: 15px;
}

.button-container {
    display: flex;
    gap: 10px;
}

.play-btn, .more-info-btn {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.more-info-btn {
    background-color: rgba(109, 109, 110, 0.7);
}

@media (max-width: 768px) {
    .featured-section {
        height: 50vh;
    }

    .item-info {
        max-width: 100%;
    }

    .item-info h2 {
        font-size: 1.5em;
    }

    .desktop-only {
        display: none;
    }

    .play-btn, .more-info-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}


.cast-list, .recommendations-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
}

.cast-item, .recommendation-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
}

.cast-item img, .recommendation-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.cast-item p, .recommendation-item p {
    margin-top: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.server-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.server-btn:hover {
    background-color: #5e3434;
}

.server-btn.active {
    background-color: #e50914;
}

