/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #00c02b;
   --primary-hover: #01af26;
   --secondary: #d31100;
     --accent: #4895ef;
     --danger: #7200ff;
     --success: #2a9d8f;
     --light: #f8f9fa;
     --dark: #212529;
     --gray: #6c757d;
     --light-gray: #e9ecef;
     --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
     --transition: all 0.3s ease;
   }

body {
    font-family: 'Arial', sans-serif;
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}
.logo img{
    width: 230px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    padding: 10px 0 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 250px;
    background-color: #333;
    color: #fff;
}

.search-box button {
    background-color: var(--primary);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* Main Content Styles */
main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Movie Grid Styles */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.movie-card {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.movie-card:hover {
    transform: translateY(-5px);
}

/* Video Quality Badge */
.movie-poster {
    position: relative;
    overflow: hidden;
}

.quality-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
/* Ratings Badge */
.ratings-badge {
    position: absolute;
    top: 32px;
    right: -40px;
    background-color: var(--primary);
    color: white;
    padding: 18px 36px 0px 29px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    transform: rotate(45deg);
    transform-origin: top right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.ratings-badge:before {
    content: "★ ";
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-poster:hover .overlay {
    opacity: 1;
}

.movie-poster .overlay .btn {
    margin: 5px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px; /* Approximately 2 lines of text */
    line-height: 1.2;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #aaa;
}

/* Single Movie Page Styles */
.movie-details {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.movie-poster-large {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.movie-poster-large img {
    width: 100%;
    height: auto;
}

.movie-info-large h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.movie-meta-large {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #aaa;
}

.movie-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.movie-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* header .container {
        flex-direction: column;
        gap: 15px;
    } */
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .movie-details {
        grid-template-columns: 1fr;
    }
    
    .movie-poster-large {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* IMDB Search Styles */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    font-size: 14px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    color: #fff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #333;
}

.search-result-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

.search-result-item span {
    font-size: 14px;
    color: #ddd;
}

/* Scrollbar Styles for Search Results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Responsive grid layout */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns by default (PC/large tablet) */
    gap: 20px;
    margin-bottom: 30px;
}
/* .post.movie-grid {
    grid-template-columns: repeat(6, 1fr) !important;
} */


.load-more-container {
    text-align: center;
    margin-bottom: 40px;
}

.load-more-btn {
    padding: 10px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #b2070f;
}

.load-more-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Header Layout */
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.mobile-menu {
    display: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.desktop-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.desktop-nav ul li {
    margin-right: 20px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 99;
    padding: 60px 20px 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    left: 0;
    text-align: center;
}

.mobile-nav ul {
    flex-direction: column;
    align-items: flex-start;
}

.mobile-nav ul li {
    margin: 10px 0;
    width: 100%;
}

.mobile-nav ul li a {
    display: block;
    padding: 8px 0;
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 8px;
}

.hamburger-menu span:nth-child(3) {
    top: 16px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Mobile/Desktop visibility classes */
.mobile-only {
    display: none;
}

@media (min-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr); /* 2 columns for small devices */
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mobile-menu {
        display: block;
    }
    .movie-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small devices */
    }
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 20px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .mobile-nav .user-actions {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-nav .user-actions .btn {
        margin: 5px 0;
        text-align: center;
    }
    
    /* Adjust search box for mobile */
    .search-box {
        width: 100%;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .search-box form {
        display: flex;
    }
    
    .search-box input {
        flex: 1;
    }
    
    /* Adjust header layout for mobile */
    header .container {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Download Options Box Styling */
.download-options-box {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0 40px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-options-box.full-width {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.download-options-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.download-table th {
    text-align: center;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    color: #aaa;
    font-weight: 500;
}

.download-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #222;
}

.download-table tr:last-child td {
    border-bottom: none;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #f40612;
    text-decoration: none;
    color: white;
}

/* Screenshots Gallery Styling */
.screenshots-container {
    margin: 0;
    width: fit-content;
}

.screenshots-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 300px;
    height: 169px; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Make sure the section title is styled properly */
.section-title {
    margin: 20px 0;
    font-size: 24px;
    color: #fff;
}
@media screen and (max-width: 768px) {
    .screenshots-container {
        width: 100%;
    }

   .screenshots-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;

    }
}
div#watch {
    margin: 20px 0 50px 0;
}
/* Keywords Section Styles */
.keywords-section {
    margin: 30px 0;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keyword-tag {
    background-color: #2c3e50;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #3498db;
}

.keyword-tag a {
    color: #fff;
    text-decoration: none;
}

/* Featured Section Styles */
.featured-section {
    position: relative;
    margin-bottom: 40px;
}

.featured-section .movie-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.featured-section .movie-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
}

/* Hide scrollbar but keep functionality */
.featured-section .movie-grid::-webkit-scrollbar {
    display: none;
}

.featured-section .movie-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.download-table th {
    text-align: center;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    color: #aaa;
    font-weight: 500;
}

.download-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #222;
}

.download-table tr:last-child td {
    border-bottom: none;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #f40612;
    text-decoration: none;
    color: white;
}

/* Screenshots Gallery Styling */
.screenshots-container {
    margin: 0;
    width: fit-content;
}

.screenshots-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 300px;
    height: 169px; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Make sure the section title is styled properly */
.section-title {
    margin: 20px 0;
    font-size: 24px;
    color: #fff;
}
@media screen and (max-width: 768px) {
    .screenshots-container {
        width: 100%;
    }

   .screenshots-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;

    }
}
a.watch-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-right: 10px;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
}

#trailer-container {
    width: 100%;
    padding-top: 20px;
}

/* Social Share Button Styles */
.share-dropdown {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    background: var(--primary);
    border-radius: 4px;
    cursor: pointer;
}

.social-share-buttons {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.social-btn {
    display: block;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
}

.social-btn:last-child {
    border-bottom: none;
}

.social-btn:hover {
    background-color: #333;
}

.facebook-btn {
    background-color: #3b5998;
}

.twitter-btn {
    background-color: #1da1f2;
}

.whatsapp-btn {
    background-color: #25d366;
}

.telegram-btn {
    background-color: #0088cc;
}

.email-btn {
    background-color: #ea4335;
}

/* Show the dropdown when share button is clicked */
.share-dropdown.active .social-share-buttons {
    display: block;
}