@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(60px) saturate(180%);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero {
    padding: 140px 40px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0.8;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.country-selector {
    max-width: 300px;
    margin: 0 auto 30px;
}

.country-select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select option {
    background: #1a1a2e;
    color: white;
    padding: 10px;
}

.country-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.search-input {
    width: 100%;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.movies-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.movie-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.movie-poster {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.genre-btn {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(60px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.genre-btn:hover, .genre-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.fav-btn, .watchlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.watchlist-btn {
    top: 60px;
}

.fav-btn:hover, .watchlist-btn:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}

.fav-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-color: #ff6b6b;
}

.watchlist-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    * { -webkit-tap-highlight-color: transparent; }
    body { overflow-x: hidden; }
    
    .nav-container { padding: 15px 20px; flex-direction: column; gap: 12px; }
    
    .logo { font-size: 20px; }
    .logo img { height: 28px !important; }
    
    .nav-links { 
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nav-btn { 
        padding: 12px 10px;
        font-size: 12px;
        min-height: 44px;
        border-radius: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero { padding: 120px 20px 60px; }
    
    .hero-title { 
        font-size: 48px;
        letter-spacing: -1px;
        line-height: 1.1;
    }
    
    .hero-subtitle { 
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.4;
    }
    
    .search-container, .country-selector { 
        max-width: 100%;
        padding: 0 10px;
    }
    
    .search-input, .country-select { 
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .movies-section { padding: 40px 20px; }
    
    .section-title { 
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .movies-grid { 
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .movie-card { 
        border-radius: 14px;
        position: relative;
    }
    
    .movie-card:active { 
        transform: scale(0.98);
    }
    
    .movie-poster { 
        height: 400px;
    }
    
    .movie-info { 
        padding: 16px;
    }
    
    .movie-title { 
        font-size: 18px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .movie-rating { 
        font-size: 15px;
    }
    
    .genres-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .genre-btn { 
        padding: 16px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .fav-btn, .watchlist-btn { 
        width: 44px;
        height: 44px;
        font-size: 18px;
        top: 10px;
        right: 10px;
        z-index: 20;
    }
    
    .watchlist-btn { 
        top: 62px;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 12px 15px; }
    
    .logo { font-size: 18px; }
    .logo img { height: 24px !important; }
    
    .nav-btn { 
        padding: 8px 12px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .hero { padding: 100px 15px 40px; }
    
    .hero-title { 
        font-size: 36px;
    }
    
    .hero-subtitle { 
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .search-input, .country-select { 
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .movies-section { padding: 30px 15px; }
    
    .section-title { 
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .movies-grid { gap: 20px; }
    
    .movie-poster { height: 350px; }
    
    .movie-info { padding: 14px; }
    
    .movie-title { font-size: 16px; }
    
    .movie-rating { font-size: 14px; }
    
    .genres-grid { 
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .genre-btn { 
        padding: 14px;
        font-size: 13px;
    }
    
    .fav-btn, .watchlist-btn { 
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
