/* Basic Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}
body { 
    background-color: #0f0f0f; 
    color: #ffffff; 
}
a { 
    text-decoration: none; 
    color: inherit; 
}

/* Navbar */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #1a1a1a; 
    padding: 15px 30px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    flex-wrap: wrap; 
    gap: 15px; 
}
.logo a { 
    font-size: 24px; 
    font-weight: bold; 
    color: #e50914; 
}
.search-box input { 
    padding: 8px 15px; 
    border-radius: 20px; 
    border: none; 
    outline: none; 
    width: 250px; 
}
.search-box button { 
    padding: 8px 15px; 
    border-radius: 20px; 
    border: none; 
    background-color: #e50914; 
    color: white; 
    cursor: pointer; 
    margin-left: 5px; 
    font-weight: bold; 
}

/* Main Container */
.container { 
    padding: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.container h2 { 
    margin-bottom: 20px; 
    font-size: 22px; 
    border-left: 4px solid #e50914; 
    padding-left: 10px; 
}

/* Movie Grid */
.movie-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 20px; 
}
.movie-card { 
    background-color: #1f1f1f; 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s ease; 
}
.movie-card:hover { 
    transform: scale(1.05); 
}

/* Mobile Zoom Fix (Aspect Ratio) */
.movie-card img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 2/3; 
    object-fit: cover; 
}
.movie-card h3 { 
    font-size: 14px; 
    padding: 10px; 
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Watch Page Styles */
.watch-container { 
    max-width: 1000px; 
    margin: 0 auto; 
}
.player-wrapper { 
    background: #000; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2); 
}
.movie-details { 
    display: flex; 
    gap: 20px; 
    justify-content: space-between; 
    flex-wrap: wrap; 
}
.details-text { 
    flex: 1; 
    min-width: 300px; 
}
.details-text h1 { 
    font-size: 28px; 
    margin-bottom: 10px; 
    color: #e50914; 
}
.details-text p { 
    margin-bottom: 10px; 
    line-height: 1.6; 
    color: #ccc; 
}

/* Ad Placement Settings (Cleaned Up) */
.ad-placement {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    text-align: center;
}
.ad-banner { 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden;
}
.top-ad { 
    width: 100%; 
    margin-bottom: 20px; 
}
.side-ad { 
    width: 300px; 
    margin: 0 auto; 
}

/* Footer */
.site-footer { 
    text-align: center; 
    padding: 20px; 
    background-color: #1a1a1a; 
    margin-top: 40px; 
    font-size: 12px; 
    color: #888; 
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .movie-grid { 
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    }
    .movie-details { 
        flex-direction: column; 
    }
    .search-box input { 
        width: 100%; 
    }
    .navbar { 
        justify-content: center; 
    }
}