:root {
    --primary-light: #1a1f24;
    --text-light: #ffffff;
    --shadow-light: #000000;
    --highlight-light: #2d3436;

    --primary-dark: rgb(243, 201, 11);
    --text-dark: #2d3436;
    --shadow-dark:: #1a1f24;
    --highlight-dark: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-light);
    color: var(--text-light);
}

body.dark-mode {
    background: var(--primary-dark);
    color: var(--text-dark);
}

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

.detail-container {
    display: flex;
    margin: 0 auto;
}

.about {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    background: var(--primary-light);
    box-shadow: 8px 8px 15px var(--shadow-light),
               -8px -8px 15px var(--highlight-light);
}

.dark-mode .header {
    background: var(--primary-dark);
    box-shadow: 8px 8px 15px var(--shadow-dark),
               -8px -8px 15px var(--highlight-dark);
}

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

.theme-toggle {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--text-light);
    cursor: pointer;
    box-shadow: 5px 5px 10px var(--shadow-light),
               -5px -5px 10px var(--highlight-light);
}

.dark-mode .theme-toggle {
    background: var(--primary-dark);
    color: var(--text-dark);
    box-shadow: 5px 5px 10px var(--shadow-dark),
               -5px -5px 10px var(--highlight-dark);
}

.banner {
    background: url('/img/olostars_movies_banner.png') no-repeat center center/cover;
    height: 300px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.filter-sort {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-sort select, .filter-sort input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--shadow-light);
    margin-right: 10px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.movie-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.movie-listd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--primary-light);
    box-shadow: 8px 8px 15px var(--shadow-light),
               -8px -8px 15px var(--highlight-light);
    position: relative;
}

.movie-card img {
    width: 100%;
    height: auto;
}

.movie-card-title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.movie-detail {
    flex: 3;
    border-radius: 15px;
    /*background: var(--primary-light);*/
    /*box-shadow: 8px 8px 15px var(--shadow-light),*/
    /*           -8px -8px 15px var(--highlight-light);*/
    padding: 20px;
}

.sidebar {
    flex: 1;
    border-radius: 15px;
    /*background: var(--primary-light);*/
    /*box-shadow: 8px 8px 15px var(--shadow-light),*/
    /*           -8px -8px 15px var(--highlight-light);*/
    padding: 20px;
}

.movie-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.movie-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

.movie-description {
    margin-bottom: 20px;
}

.related-movies {
    margin-top: 20px;
}

.related-movie {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.related-movie img {
    width: 50px;
    height: auto;
    border-radius: 5px;
    margin-right: 10px;
}

.related-movie-title {
    font-weight: bold;
}


.dark-mode .movie-card {
    background: var(--primary-dark);
    box-shadow: 8px 8px 15px var(--shadow-dark),
               -8px -8px 15px var(--highlight-dark);
}

/* Mobile Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.nav-menu li {
    position: relative;
    margin-right: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    padding: 10px;
}

.nav-menu a:hover {
    color: #ffffff;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 10;
}

.nav-menu li:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: var(--text-light);
    text-decoration: none;
}

.dropdown a:hover {
    background: var(--primary-dark);
}

/* Mobile Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 4px 0;
}


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

.pagination button {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background: var(--primary-light);
    color: var(--text-light);
    cursor: pointer;
    box-shadow: 5px 5px 10px var(--shadow-light),
               -5px -5px 10px var(--highlight-light);
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.video-container {
    display: flex;
    flex-direction: column; /* Stack videos vertically */
    gap: 20px; /* Adds spacing between video items */
    padding: 10px; /* Adds padding inside the container */
    border-radius: 15px;
    overflow: hidden;
    background: var(--primary-light);
    box-shadow: 8px 8px 15px var(--shadow-light),
                -8px -8px 15px var(--highlight-light);
}

.dark-mode .video-container {
    background: var(--primary-dark);
    box-shadow: 8px 8px 15px var(--shadow-dark),
                -8px -8px 15px var(--highlight-dark);
}

.video-wrapper {
    display: flex;
    flex-direction: column; /* Stack the iframe and details vertically */
    align-items: center; /* Center align the elements */
    margin-bottom: 20px; /* Add space below each video wrapper */
    position: relative;
}

.stream-info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white;
    font-size: 14px;
    text-align: center;
    width: 100%; /* Ensures it takes full width of the container */
    box-sizing: border-box;
    margin-top: 10px; /* Adds a gap between the video and the details */
}

.video-wrapper iframe {
    width: 100%; /* Ensures the iframe takes the full width */
    height: 500px; /* Consistent height for iframe */
    border-radius: 15px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* Responsive Styles */
@media (max-width: 768px) {
    *{
    margin-top: 10px;
    margin-bottom: auto;
    }
    .detail-container {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        background: var(--primary-light);
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        margin-top: 84px;
    z-index: 1000; /* Ensure it appears above other elements */
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .movie-cards {
        grid-template-columns: 1fr; /* Full width for mobile */
    }

    .movie-detail {
        flex: 3;
    }

    .sidebar {
        flex: 1;
        margin-right: 20px;
        margin-top: 30px;
    }
    
    .video-wrapper iframe {
        height: 300px; /* Adjust this value to your desired height */
    }
}
