body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/* Centering the logo above the navbar */
.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo-container img {
    max-width: 200px; /* Adjust this size according to your logo */
    height: auto;
}


nav {
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

#toggleNav {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

input#searchBar {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    margin-right: 10px;
}

#searchForm {
    display: flex;
    align-items: center;
}

#searchButton {
    background-color: red;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.movies-grid, .series-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    padding: 20px;
}

.movie-item, .series-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.movie-item:hover, .series-item:hover {
    transform: scale(1.05);
}

.movies-grid img, .series-grid img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    margin: 5px; /* Added margin */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto; /* Allow scrolling if content overflows */
}

.modal-content {
    position: relative;
    margin: auto;
    top: 5%;
    padding: 10px;
    width: 80%;
    max-width: 900px; /* Adjust width for large screens */
    background: #222;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.modal-header {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #333;
    overflow: hidden;
    border-bottom: 1px solid #444;
}

.modal-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Adjust height of the gradient overlay */
    padding: 20px;
}

.play-button, .trailer-button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.play-button:hover, .trailer-button:hover {
    background-color: darkred;
}

.trailer-button {
    background-color: #444;
}

.trailer-button:hover {
    background-color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .movies-grid, .series-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
    }

    nav ul {
        display: none; /* Hide navbar items */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    nav ul.show {
        display: flex; /* Show navbar items when toggle is clicked */
    }

    #toggleNav {
        display: block; /* Show the toggle button */
    }

    #searchBar {
        display: block;
        flex: 1;
        margin: 10px 0; /* Adjust search bar for smaller screens */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .movies-grid, .series-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row */
        gap: 5px;
    }

    .movies-grid img, .series-grid img {
        width: 100%;
        max-height: 200px; /* Make images smaller */
    }

    .modal-content {
        width: 90%;
        padding: 10px; /* Smaller modal for small screens */
    }
}

.player-section {
    padding: 20px;
    text-align: center;
    background-color: #111;
}

.player-buttons {
    margin-bottom: 20px;
}

.player-buttons button {
    margin: 5px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.player-buttons button:hover {
    background-color: darkred;
}

iframe {
    border: none;
    border-radius: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination span {
    margin: 0 10px;
    color: white;
}

.pagination a:hover {
    background-color: darkred;
}
.rating img {
    width: 40px;
    height: auto;
}

footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 20px;
}

.social-icons a i {
    color: #fff;
}

.social-icons a:hover i {
    color: #f1c40f;
}

/* Center the form and add styling */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.login-form {
    background-color: #2c2c2c; /* Dark background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 300px;
    text-align: center;
    color: #fff; /* White text */
}

.login-form h2 {
    margin-bottom: 20px;
    color: #ff4c4c; /* Red for heading */
}

.login-form label {
    display: block;
    margin: 10px 0 5px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #ff4c4c; /* Red button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #ff3232;
}

.login-form p {
    margin-top: 10px;
}

.login-form a {
    color: #ff4c4c;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4c4c;
    margin: 10px 0;
    text-align: center;
}

.reset-password-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background-color: #000; /* Black background */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff; /* White text color */
}

.reset-password-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff; /* White heading color */
}

.reset-password-container label {
    display: block;
    margin-bottom: 5px;
    color: #fff; /* White label color */
}

.reset-password-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #333; /* Darker background for input */
    color: #fff; /* White input text */
}

.reset-password-container button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.reset-password-container button:hover {
    background-color: #218838;
}

.success-message, .error-message {
    text-align: center;
    margin-top: 20px;
    color: #e74c3c; /* Red for error messages */
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
}

form button:hover {
    background-color: #0056b3;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    font-size: 18px;   /* Larger font size */
    font-weight: bold; /* Bold text */
    color: red;        /* Red color */
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Add hover effect for the Add to Playlist button */
#addToPlaylistBtn {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#addToPlaylistBtn:hover {
    background-color: #007bff;
}

#addToPlaylistBtn:active {
    background-color: #0056b3;
}

/* Add a message container for success/failure messages */
#messageContainer {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    color: white;
    font-size: 16px;
}

.playlist-section {
    margin: 20px;
}

/* Playlist Grid */
.playlist {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    gap: 20px;
}

.playlist-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.playlist-item:hover {
    transform: scale(1.05);
}

.playlist-image {
    width: 70%;
    height: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a.active {
    background-color: darkred;
}

.pagination a:hover {
    background-color: darkred;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playlist {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on smaller screens */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .playlist {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 items per row for very small screens */
        gap: 5px;
    }
}


.playlist-info h3 {
    margin: 0;
    font-size: 0.7em;
}

.playlist-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.7em;
}



.change-info {
    display: flex; /* Flexbox to center buttons */
    justify-content: center; /* Center horizontally */
    margin-bottom: 20px;
}

.action-button {
    background-color: #007bff; /* Button color */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 10px; /* Space between buttons */
    transition: background-color 0.3s; /* Smooth transition */
}

.action-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.form-container {
    max-width: 400px; /* Maximum width for the form */
    margin: 20px auto; /* Center the form container */
    padding: 20px; /* Padding inside the container */
    background-color: #666; /* White background for the form */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.form-container label {
    display: block; /* Label takes full width */
    margin-bottom: 5px; /* Space below label */
}

.form-container input {
    width: 100%; /* Full width for input fields */
    padding: 10px; /* Padding inside input */
    margin-bottom: 15px; /* Space below input */
    border: 1px solid #ccc; /* Border style */
    border-radius: 4px; /* Rounded corners for input */
}

.thlakna {
    display: block; /* Block-level button */
    margin: 10px auto; /* Center the button */
    padding: 10px 20px; /* Button padding */
    background-color: #007bff; /* Button color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth transition */
}

.thlakna:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

.center-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 10vh; /* Full viewport height */
            text-align: center;
        }


.sharing-section {
    margin-top: 20px;
}

.sharing-section h3 {
    margin-bottom: 10px;
}

.share-btn {
    display: inline-block;
    padding: 10px;
    margin: 5px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

.share-btn i {
    margin-right: 5px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #55acee;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.email {
    background-color: #D44638;
}

.share-btn.telegram {
    background-color: #55acee; /* Same as Twitter */
}


.share-btn:hover {
    opacity: 0.8;
}

/* Watch History Section */
.watch-history-section {
    padding: 20px;
}

.watch-history {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.watch-history-item {
    min-width: 100px;
    max-width: 100px;
    margin-right: 10px;
    flex-shrink: 0;
    text-align: center;
}

.watch-history-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.watch-history-info {
    font-size: 0.8em;
    color: #fff;
    margin-top: 5px;
}

.watch-history-info h3 {
    font-size: 0.85em;
    margin: 5px 0;
}

.watch-history-info p {
    font-size: 0.75em;
    color: #aaa;
}

/* Scrollbar styling for a cleaner look */
.watch-history::-webkit-scrollbar {
    height: 8px;
}

.watch-history::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .watch-history-item {
        min-width: 80px;
        max-width: 80px;
    }
    .watch-history-info h3 {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .watch-history-item {
        min-width: 70px;
        max-width: 70px;
    }
    .watch-history-info h3 {
        font-size: 0.7em;
    }
}

.clear-history-button, .remove-button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px;
}

.clear-history-button {
    margin-bottom: 20px;
    font-weight: bold;
}

.remove-history-form {
    display: inline;
}


.admin-section {
    text-align: center;
    margin: 20px 0;
}

.admin-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.admin-button:hover {
    background: linear-gradient(45deg, #feb47b, #ff7e5f);
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}


