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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #007bff;
}

.search-form {
    display: flex;
    background: #f1f3f4;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 10px 20px;
    background: transparent;
    outline: none;
    width: 300px;
}

.search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

.hero-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    display: none;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.slide.active {
    display: flex;
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.slide img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-info p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    pointer-events: all;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(255,255,255,0.3);
}

.categories {
    padding: 60px 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.movie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.movie-card a {
    text-decoration: none;
    color: inherit;
}

.movie-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.movie-info {
    padding: 20px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.movie-info .year {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 10px;
}

.movie-info .status {
    color: #666;
    font-size: 14px;
}

.ranking {
    background: white;
    padding: 60px 0;
}

.ranking h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.ranking-list {
    display: grid;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: background 0.3s;
}

.ranking-item:hover {
    background: #e9ecef;
}

.rank {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ranking-item img {
    border-radius: 8px;
}

.item-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.item-info span {
    color: #666;
    font-size: 14px;
}

.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer p {
    margin: 10px 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .search-input {
        width: 200px;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .slide-info h2 {
        font-size: 2rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .movie-card img {
        height: 220px;
    }
    
    .movie-info {
        padding: 15px;
    }
    
    .ranking-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-form {
        order: 3;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .slide {
        padding: 20px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .movie-card img {
        height: 200px;
    }
    
    .movie-info h3 {
        font-size: 14px;
    }
}
