* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(20, 20, 30, 0.95);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b6b;
}

.auth-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.search-container {
    margin-top: 15px;
}

#searchInput {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 50px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 180px;
}

.sidebar h3 {
    margin-bottom: 20px;
    color: #ff6b6b;
}

.category-list {
    list-style: none;
}

.category-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.category-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

.category-btn.active {
    background: #ff6b6b;
    font-weight: bold;
}

/* Movies Section */
.movies-section {
    flex: 1;
}

#sectionTitle {
    margin-bottom: 30px;
    font-size: 32px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.movie-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.movie-thumbnail {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.movie-category {
    display: inline-block;
    background: #ff6b6b;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 50px;
    color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b6b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    width: 100%;
    padding: 15px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #ff6b6b;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 107, 107, 0.1);
}

.google-btn {
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.google-btn:hover {
    background: #f0f0f0;
}

.error {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.success {
    color: #4caf50;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        display: none;
    }
    
    .sidebar.mobile-open {
        display: block;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .mobile-category-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

.mobile-category-toggle {
    display: none;
    width: 100%;
    padding: 15px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.mobile-category-toggle:hover {
    background: rgba(255, 107, 107, 0.3);
}

.mobile-category-toggle:active {
    transform: scale(0.98);
}