/* Body and Wrapper */
body {
    background: linear-gradient(135deg, #1c1c1c, #121212);
    color: #e0e0e0;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrapper-box {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Header and Poster */
.header-movie {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-movie {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-movie:hover {
    transform: scale(1.07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Info and Title Styling */
.info-movie {
    flex: 1;
    max-width: 600px;
    padding: 10px;
}

.title-movie {
    font-size: 2.8rem;
    color: #1f83ed;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.description-movie {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #d0d0d0;
}

/* Details List */
.details-movie {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.details-movie li {
    font-size: 1rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.details-movie li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f83ed;
    font-weight: bold;
}

/* Button Group Styling */
.btn-group {
    display: flex;
    gap: 15px;
}

.btn-download, .btn-watch {
    padding: 12px 25px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-download {
    background-color: #1f83ed;
}

.btn-download:hover {
    background-color: #176bb7;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.btn-watch {
    background-color: #0104aa;
}

.btn-watch:hover {
    background-color: #050c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Related Movies Section */
.section-related {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-section {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.movie-related {
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 200px;
    height: 22em;
    width: 100%;
}

.movie-related:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.poster-related {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.5s ease, filter 0.4s ease;
}

.movie-related:hover .poster-related {
    transform: scale(1.1);
    filter: brightness(0.7) saturate(1.3);
}

.title-related {
    font-size: 1rem;
    color: #1f83ed;
    transition: color 0.3s ease;
}

.movie-related:hover .title-related {
    color: #ffffff;
}

/* Overlay Effect */
.related-movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.movie-related:hover .related-movie-overlay {
    opacity: 1;
    padding: 8px;
}

/* Anime Video Player */
/* Video Player Styling */
.anime__video__player {
    position: relative;
    width: 100%;  /* Ensure the video player section takes up full width */
    padding-top: 50.25%;  /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
    overflow: hidden;
    border-radius: 12px; /* Optional: Rounded corners for a polished look */
    margin-top: 50px; /* Adjusts space between video and movie card */
}

.anime__video__player iframe,video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Removes default iframe border */
    border-radius: 12px; /* Match with container radius */
    padding-bottom: 0;
}

/* Add margin to ensure space between movie details and video */
.detail-movie {
    margin-bottom: 30px;
}





.server-selection-container {
    background-color: #1c1c1c;
    color: #1f83ed;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.server-selection-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #1f83ed;
}

.server-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.server-btn {
    background-color: #0104aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.server-btn:hover {
    background-color: #050c42;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .server-selection-container {
        padding: 10px;
        max-width: 90%; /* Adjust width for smaller screens */
    }

    .server-selection-container h3 {
        font-size: 1.2rem; /* Slightly smaller font size for headings */
    }

    .server-btn {
        padding: 8px 15px; /* Smaller buttons on smaller screens */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .server-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Reduce gap between buttons */
    }

    .server-btn {
        width: 100%; /* Full-width buttons for very small screens */
    }
}


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

    .title-movie {
        font-size: 2rem;
        text-align: center;
    }

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

    .btn-download, .btn-watch {
        width: 100%;
        margin-top: 10px;
    }

    .related-list .movie-related {
        margin-bottom: 15px;
            max-width: 157px;
            height: 20em;

    }
}

@media (max-width: 480px) {
    .title-movie {
        font-size: 1.8rem;
    }

    .description-movie {
        font-size: 0.95rem;
    }

    .details-movie li {
        font-size: 0.9rem;
    }
}
