* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #141414;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    background: rgba(20, 20, 20, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #e50914;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #fff;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e50914;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-form {
    display: flex;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.search-form input {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: white;
    outline: none;
}

.search-form button {
    padding: 8px 15px;
    border: none;
    background: #e50914;
    color: white;
    cursor: pointer;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    background: #e50914;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-login:hover, .btn-register:hover {
    background: #f40612;
}

.user-link {
    padding: 8px 15px;
    transition: color 0.3s;
}

.user-link:hover {
    color: #e50914;
}

/* Dropdown Menu */
.user-menu-dropdown {
    position: relative;
}

.btn-user-menu {
    padding: 8px 15px;
    background: transparent;
    border: 2px solid #e50914;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-user-menu:hover {
    background: #e50914;
    transform: scale(1.05);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #222;
    border: 1px solid #e50914;
    border-radius: 8px;
    min-width: 250px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-buttons {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-buttons .btn-login,
.dropdown-buttons .btn-register {
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.dropdown-buttons .btn-login:hover,
.dropdown-buttons .btn-register:hover {
    background: #f40612;
    transform: translateX(5px);
}

.dropdown-divider {
    height: 1px;
    background: #e50914;
    margin: 8px 0;
}

.dropdown-link {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: rgba(229, 9, 20, 0.1);
    border-left-color: #e50914;
    padding-left: 20px;
    color: #e50914;
}

.dropdown-link:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dropdown-link:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, #141414);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 18px;
}

.hero-description {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #e50914;
    color: white;
}

.btn-primary:hover {
    background: #f40612;
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn.favorite-active {
    background-color: #ff6b6b;
    color: white;
}

.btn.favorite-active:hover {
    background-color: #ff5252;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Movie Section */
.movie-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #fff;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.movie-poster {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    font-size: 64px;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 48px;
    color: #e50914;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
}

/* Footer */
.footer {
    background: #0a0a0a;
    margin-top: 80px;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
    color: #e50914;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #999;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .logo a {
        font-size: 24px;
    }
    
    .nav {
        gap: 15px;
        font-size: 14px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 12px;
        gap: 10px;
    }
    
    .logo a {
        font-size: 20px;
        flex: 1;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        font-size: 13px;
    }
    
    .header-actions {
        order: 2;
        width: 100%;
        gap: 8px;
    }
    
    .search-form {
        flex: 1;
        order: 1;
    }
    
    .search-form input {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .search-form button {
        padding: 6px 12px;
    }
    
    .user-link {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .hero-section {
        padding: 30px 0;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hero-buttons button,
    .hero-buttons a {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
        padding: 0 12px;
    }
    
    .movie-card {
        padding: 10px;
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .movie-meta {
        font-size: 12px;
    }
    
    .section {
        padding: 30px 12px;
    }
    
    .section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-container {
        padding: 0 12px;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .footer-section h3, .footer-section h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    .nav {
        font-size: 12px;
        gap: 5px;
    }
    
    .nav a {
        padding: 5px;
    }
    
    .search-form input {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .search-form button {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .user-link {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .btn-user-menu {
        padding: 5px 10px;
    }
    
    .dropdown-buttons {
        flex-direction: column;
    }
    
    .dropdown-buttons a {
        padding: 8px;
        font-size: 12px;
    }
    
    .hero-section {
        min-height: 300px;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .hero-buttons button,
    .hero-buttons a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
        padding: 0 10px;
    }
    
    .movie-card {
        padding: 8px;
    }
    
    .movie-card img {
        height: auto;
    }
    
    .movie-title {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .movie-meta {
        font-size: 11px;
    }
    
    .section {
        padding: 20px 10px;
    }
    
    .section h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-container {
        padding: 0 10px;
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3, .footer-section h4 {
        font-size: 13px;
    }
    
    .footer-section li {
        margin-bottom: 8px;
