/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(180deg, #000000 0%, rgba(0,0,0,0.9) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FF0000, #FFA500, #FFFF00, #008000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 30px;
}

.nav-left {
    display: flex;
    gap: 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff0000;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-right {
    flex: 1;
    max-width: 400px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 5px 0 0 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #ff0000;
}

.search-btn {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 25px;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff5252);
}

/* Carousel Styles */
.carousel-section {
    margin: 20px 0 40px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
}

.carousel-track-container {
    overflow: hidden;
    height: 500px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 500px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.carousel-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 600px;
    opacity: 0.9;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.watch-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 0, 0, 0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff0000;
}
.category-icon {
    font-size: 28px;
}
.category-title i {
    color: #ff0000;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

/* Movie Card Styles */
.movie-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
.movie-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.movie-poster {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 48px;
    color: white;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.movie-year, .movie-type {
    padding: 2px 8px;
    color:#ccc;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* View All Button */
.view-all {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.view-all-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Movie Details Page */
.movie-banner {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 30%, transparent);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.movie-poster-large {
    flex: 0 0 300px;
}

.movie-poster-large img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-header {
    flex: 1;
}

.movie-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 16px;
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: aquamarine;
    padding: 8px 15px;
    border-radius: 5px;
}

.movie-meta .rating {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.movie-link-section {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.movie-link-btn, .trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.movie-link-btn {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    color: white;
}

.trailer-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-link-btn:hover, .trailer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.movie-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.movie-description h2, .movie-sidebar h3 {
    margin-bottom: 20px;
    color: #ff0000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movie-description p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #ccc;
}

.cast-crew {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.crew-item {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.crew-item strong {
    color: #ff0000;
    min-width: 150px;
}

.additional-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item strong {
    color: #ff0000;
    font-size: 14px;
}

/* Similar Movies */
.similar-movies {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similar-movie {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.similar-movie:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateX(5px);
}

.similar-movie img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.similar-info {
    flex: 1;
}

.similar-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-rating {
    font-size: 12px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Search Results */
.search-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff0000;
}

.search-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.result-count {
    color: #aaa;
    font-size: 16px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.search-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-card .movie-poster {
    height: 250px;
}

.search-card .movie-desc {
    font-size: 14px;
    color: #ccc;
    margin-top: 10px;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 64px;
    color: #ff0000;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.no-results p {
    color: #aaa;
    margin-bottom: 30px;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.browse-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff5252);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, #000000 100%);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
}

.footer-ad {
    text-align: center;
}

.footer-ad h3 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 24px;
}

.ad-banner {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px dashed rgba(255, 0, 0, 0.3);
}

.ad-banner p {
    font-size: 20px;
    margin-bottom: 20px;
}

.premium-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.premium-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff0000;
}

.footer-ad > p {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .navbar {
        width: 100%;
    }
    
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .movie-poster-large {
        flex: 0 0 200px;
    }
    
    .movie-info-grid {
        grid-template-columns: 1fr;
    }
    
    .movie-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-left {
        flex-wrap: wrap;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .movie-poster {
        height: 250px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 28px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .movie-header h1 {
        font-size: 28px;
    }
    
    .movie-meta {
        flex-wrap: wrap;
    }
    
    .movie-link-section {
        flex-direction: column;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Updated Movie Meta - Dark Text */
.movie-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #333333 !important;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.movie-year, .movie-type, .movie-region {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px;
    color: #000000 !important;
    font-weight: 600;
}

/* Updated Search Suggestions */
.search-suggestions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.search-suggestions h3 {
    color: #ff0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.suggestion-tag:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: translateY(-2px);
}

/* Language Selector */
.language-selector {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector span {
    color: #ff0000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-btn {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.language-btn.active {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    border-color: #ff0000;
}

.language-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

/* Storyline Section */
.storyline-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.storyline-section h2 {
    color: #ff0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.storyline-content p {
    line-height: 1.8;
    color: #ccc;
    font-size: 16px;
}

/* Details Section */
.details-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.details-section h2 {
    color: #ff0000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item strong {
    color: #ff0000;
    font-size: 14px;
}

.detail-item span {
    color: #ffffff;
    font-size: 16px;
}

/* Cast & Crew Section */
.cast-crew-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cast-crew-section h2 {
    color: #ff0000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cast-crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.crew-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s;
}

.crew-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.crew-icon {
    background: rgba(255, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-size: 18px;
}

.crew-info {
    flex: 1;
}

.crew-info strong {
    color: #ff0000;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.crew-info p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* Sidebar Ad Section */
.ad-section {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed rgba(255, 0, 0, 0.3);
}

.ad-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-content {
    text-align: center;
}

.ad-content p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Updated No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.search-suggestions-inline {
    margin: 20px 0 30px;
}

.search-suggestions-inline p {
    color: #aaa;
    margin-bottom: 15px;
}

/* Upcoming Badge */
.upcoming-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff0000);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}
/* Search Bar Responsive Styles */
@media (max-width: 1200px) {
    .nav-right {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-right {
        max-width: 100%;
        width: 100%;
        order: -1; /* Moves search to top */
    }
    
    .search-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .nav-right {
        max-width: 100%;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 0 15px;
    }
    
    .search-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 12px;
    }
    
    .search-input::placeholder {
        font-size: 12px;
    }
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .search-input {
        min-height: 44px; /* Better touch target */
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .search-btn {
        min-height: 44px;
        min-width: 44px;
    }
}
/* Movie Details Page Responsive Styles */
@media (max-width: 1200px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .movie-poster-large {
        flex: 0 0 250px;
    }
    
    .movie-info-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 30px;
    }
    
    .cast-crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .movie-banner {
        height: 400px;
    }
    
    .movie-poster-large {
        flex: 0 0 200px;
    }
    
    .movie-header h1 {
        font-size: 36px;
    }
    
    .movie-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .banner-overlay {
        background: linear-gradient(to right, rgba(0,0,0,0.9) 20%, transparent);
    }
    
    .language-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .language-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .cast-crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .movie-banner {
        height: 350px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .movie-header h1 {
        font-size: 28px;
    }
    
    .movie-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .movie-meta span {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .movie-link-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .movie-link-btn, .trailer-btn {
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }
    
    .storyline-section,
    .details-section,
    .cast-crew-section,
    .language-selector,
    .search-suggestions {
        padding: 15px;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cast-crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .crew-card {
        padding: 10px;
        gap: 10px;
    }
    
    .crew-info strong {
        font-size: 12px;
    }
    
    .crew-info p {
        font-size: 12px;
    }
    
    .similar-movies {
        gap: 10px;
    }
    
    .similar-movie {
        padding: 8px;
        gap: 10px;
    }
    
    .similar-movie img {
        width: 50px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .movie-banner {
        height: 300px;
    }
    
    .movie-poster-large {
        flex: 0 0 150px;
    }
    
    .movie-header h1 {
        font-size: 24px;
    }
    
    .banner-overlay {
        background: rgba(0,0,0,0.8);
    }
    
    .language-buttons {
        justify-content: center;
    }
    
    .language-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .suggestion-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cast-crew-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crew-card {
        flex-direction: column;
        text-align: center;
    }
    
    .crew-icon {
        margin: 0 auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .ad-section {
        padding: 15px;
    }
    
    .ad-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .movie-banner {
        height: 250px;
    }
    
    .movie-poster-large {
        display: none;
    }
    
    .movie-header {
        width: 100%;
    }
    
    .cast-crew-grid {
        grid-template-columns: 1fr;
    }
    
    .storyline-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .similar-movie {
        flex-direction: column;
        text-align: center;
    }
    
    .similar-movie img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    
    .similar-info {
        text-align: center;
    }
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .movie-link-btn,
    .trailer-btn,
    .language-btn,
    .suggestion-tag,
    .similar-movie {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .movie-link-btn i,
    .trailer-btn i {
        font-size: 18px;
    }
}
