/* Global Styles */

#youtubePlayerContainer {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: black;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.pagination a {
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #f5c518;
    color: #000;
}

.pagination a.disabled {
    background-color: #444;
    color: #888;
    pointer-events: none;
    cursor: not-allowed;
}


/* All Movies Section */
.all-movies {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.all-movies h2 {
    font-size: 2.5rem;
    color: #f5c518;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #f5c518;
    padding-bottom: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.movie-card {
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.movie-card img {
    width: 100%;
    height: 300px; /* Adjust poster height */
    object-fit: cover;
    border-bottom: 2px solid #444;
}

.movie-card h3 {
    font-size: 1rem;
    color: #ffffff;
    margin: 10px 0;
    padding: 0 10px;
    text-align: center;
}

.movie-card a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Ensures text color matches the card */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller columns for tablets */
    }

    .movie-card img {
        height: 250px; /* Adjust for smaller screens */
    }

    .movie-card h3 {
        font-size: 0.9rem; /* Adjust font size */
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Smaller columns for phones */
    }

    .movie-card img {
        height: 200px; /* Adjust for small screens */
    }

    .movie-card h3 {
        font-size: 0.8rem; /* Adjust font size */
    }
}


/* Seasons & Episodes Section */
.seasons-episodes {
    text-align: left;
    width: 100%;
}

.seasons-episodes h2 {
    font-size: 1.5rem;
    color: #f5c518;
    margin-bottom: 10px;
}

/* Dropdown Menu */
.season-menu {
    margin: 10px 0;
    text-align: left;
}

.season-menu select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #444;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.season-menu select:focus,
.season-menu select:hover {
    border-color: #f5c518;
}

/* Episodes Container */
.episodes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.episode-box {
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.episode-box:hover {
    transform: scale(1.05);
    background-color: #f5c518;
    color: #000;
}


/* Social Share Buttons */
.social-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #ffffff;
}

.social-share span {
    font-size: 1rem;
    color: #f5c518;
}

.social-share a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-share a:hover {
    color: #f5c518;
    transform: scale(1.1);
}

/* Related Movies Section */
.related-movies {
    margin: 40px 20px;
    text-align: center;
}

.related-movies h2 {
    font-size: 2rem;
    color: #f5c518;
    margin-bottom: 20px;
}

.related-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.movie-item {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    background-color: #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.movie-item img {
    width: 100%;
    height: 300px; /* Standardized with homepage */
    object-fit: cover;
    border-bottom: 2px solid #444;
}

.movie-item h3 {
    color: #ffffff;
    padding: 10px;
    font-size: 1rem;
    margin: 0;
}

.movie-item a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Ensures the text color stays consistent */
}

.movie-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .movie-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .movie-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .movie-item {
        flex: 1 1 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .movie-item img {
        height: 200px;
    }
}


/* Movie Page Section */
.movie-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Player Section */
.player-section {
    width: 100%;
    margin-bottom: 20px;
    text-align: center; /* Center content including social buttons */
}

/* Responsive iframe container for the video player */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 1.2rem;
    color: #ffffff;
}

.social-share span {
    font-size: 1rem;
    color: #f5c518;
}

.social-share a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-share a:hover {
    color: #f5c518;
    transform: scale(1.1);
}

/* Movie Container */
.movie-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Poster Section */
.poster-section {
    flex: 1;
    text-align: center;
}

.poster-section .poster {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Movie Info Section */
.movie-info {
    flex: 2;
}

.movie-info h1 {
    font-size: 2.5rem;
    color: #f5c518;
    margin-bottom: 10px;
}

.movie-info p {
    margin: 5px 0;
}

/* Genres Section */
.genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.genres span {
    background-color: #444;
    color: #f5c518;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .movie-container {
        flex-direction: column;
        align-items: left;
    }

    .poster-section .poster {
        max-width: 150px; /* Smaller poster for mobile */
    }

    .social-share {
        flex-wrap: wrap;
        gap: 10px;
    }
}


body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(to bottom, #222, #111);
    text-align: center;
    padding: 20px 0;
    border-bottom: 3px solid #f5c518;
}

header .logo h1 {
    font-size: 3rem;
    margin: 0;
    color: #f5c518;
}

header .social-media {
    margin: 15px 0;
}

header .social-media a {
    margin: 0 15px;
    color: #f5c518;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

header .social-media a:hover {
    transform: scale(1.3);
    color: #e4b500;
}

header .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

header .menu ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 8px 15px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

header .menu ul li a:hover {
    background-color: #f5c518;
    color: #000000;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin: 0;
    color: #f5c518;
}

.hero p {
    margin: 10px 0 20px;
    font-size: 1.2rem;
    color: #dddddd;
}

.hero .btn {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #f5c518;
    color: #000000;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #e4b500;
}

/* Section Titles */
main h2 {
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Ensure text aligns in the middle */
    color: #f5c518; /* IMDb-inspired yellow */
    font-size: 2.5rem; /* Large, prominent font size */
    font-weight: bold; /* Make it bold */
    margin: 0 auto 30px; /* Center and add space below */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Subtle shadow for depth */
    letter-spacing: 1px; /* Slightly spaced letters */
    border-bottom: 3px solid #f5c518; /* Yellow underline */
    padding-bottom: 10px; /* Space below the text */
    width: fit-content; /* Shrink-wrap the width to the text */
}


/* Horizontal Scrolling */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #1c1c1c;
}

a.item {
    text-decoration: none;
    color: inherit;
    background: #1c1c1c;
    border-radius: 10px;
    flex: 0 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

a.item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

a.item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

a.item h3 {
    margin: 10px;
    text-align: center;
    color: #f5c518;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating i {
    color: #f5c518;
    font-size: 1rem;
}

.rating span {
    color: #ffffff;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1c1c1c;
    color: #f5c518;
    font-size: 1rem;
    border-top: 3px solid #444;
}
