/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h2 {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.search-container {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 25px;
    padding: 0.5rem;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-container input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.search-container input::placeholder {
    color: #aaa;
}

.search-container button {
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: #ff5252;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6b6b;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Slider */
.hero-section {
    margin-top: 80px;
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(255, 107, 107, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #ff6b6b;
}

/* Movies Section */
.movies-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.movie-poster {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.movie-info {
    padding: 1.5rem;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.movie-year {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffd700;
}

.movie-genre {
    background: #ff6b6b;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Movie Detail Page */
.movie-detail-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.movie-detail-section {
    padding: 2rem 0;
}

.back-button {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #ff5252;
}

.movie-detail-container {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.movie-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.movie-poster-large {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.movie-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-weight: 600;
    color: #fff;
}

.download-section {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.movie-sections {
    display: grid;
    gap: 2rem;
}

.movie-section {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 15px;
}

.movie-section h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.movie-section p {
    line-height: 1.8;
    color: #ddd;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.screenshot {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #ff5252;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #aaa;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    color: #ff6b6b;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    color: #ddd;
    line-height: 1.6;
}

.modal-body h4 {
    color: #ff6b6b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #aaa;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #aaa;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        background: #2d2d2d;
        margin-top: 1rem;
        border-radius: 10px;
        padding: 1rem;
        order: 4;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .search-container {
        order: 2;
        margin: 1rem 0;
        max-width: none;
        flex: 1;
    }
    
    .logo {
        order: 1;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .movie-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .movie-header-info h1 {
        font-size: 2rem;
    }
    
    .movie-meta {
        justify-content: center;
    }
    
    .download-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .movie-detail-container {
        padding: 1rem;
    }
    
    .movie-section {
        padding: 1.5rem;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* Focus Styles for Accessibility */
.btn-primary:focus,
.search-container button:focus,
.download-btn:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.search-container input:focus {
    outline: 1px solid #ff6b6b;
}

/* Ad Container Styles */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    min-height: 0; /* Allow containers to collapse when empty */
}

/* Ads must always be visible - no hiding */
.ad-container:empty,
.ad-container[style*="display: none"] {
    /* Force visibility - ads must be shown */
    display: block !important;
    visibility: visible !important;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container:empty::after,
.ad-container[style*="display: none"]::after {
    content: "Ad Loading...";
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: italic;
}

.ad-native-banner {
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-banner-300x250 {
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 1rem auto;
    }
    
    .ad-native-banner,
    .ad-banner-300x250 {
        margin: 1rem auto;
        padding: 0.5rem;
    }
}
