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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo span {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
.navbar {
    background: #2c3e50;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    flex: 1;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 20px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    border-right: 1px solid #34495e;
}

.nav-link:hover,
.nav-link.active {
    background: #3498db;
    transform: translateY(-2px);
}

.nav-links li:last-child .nav-link {
    border-right: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px 20px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Search Section */
.search-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    background: white;
}

.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateX(-2px);
}

/* Movies Section */
.movies-section {
    padding: 40px 0;
    background: white;
}

.movies-section h2 {
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    margin: 0 0 30px 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 5px;
}

.movies-list {
    line-height: 1.8;
    font-size: 14px;
}

.movies-list p {
    margin-bottom: 40px;
    margin-bottom: 15px;
    padding: 0;
}

.category-title {
    color: #d32f2f;
    font-weight: 600;
    font-size: 14px;
}

.movie-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.movie-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}


/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        flex: none;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid #34495e;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-box button {
        border-radius: 0 0 15px 15px;
    }
    
    .movies-section h2 {
        font-size: 2rem;
    }
    
    .movie-list {
        grid-template-columns: 1fr;
    }
    
    .movie-category {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .search-section {
        padding: 20px 0;
    }
    
    .movies-section {
        padding: 30px 0;
    }
    
    .movies-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .movie-category h3 {
        font-size: 1.2rem;
    }
    
    .movie-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover effects */
.movie-category {
    position: relative;
    overflow: hidden;
}

.movie-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #667eea, #764ba2, #3498db);
    border-radius: 17px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.movie-category:hover::before {
    opacity: 1;
}

/* Search results highlighting */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Accessibility improvements */
.nav-link:focus,
.search-box input:focus,
.search-box button:focus,
.movie-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .navbar,
    .search-section,
    .footer {
        display: none;
    }
    
    .movies-section {
        padding: 0;
    }
    
    .movie-link {
        color: #000 !important;
        background: white !important;
    }
}