* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00ff99;
}

.navbar nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.navbar nav a:hover {
    color: #00ff99;
}

.auth button {
    margin-left: 10px;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #00ff99;
}

.register-btn {
    background: #00ff99;
    color: #000;
    font-weight: bold;
}

/* HERO */
.hero {
    height: 80vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)),
                url("https://images.unsplash.com/photo-1606112219348-204d7d8b94ee");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ccc;
}

.hero-btn {
    padding: 12px 25px;
    background: #00ff99;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

/* SECTION */
.section {
    padding: 40px 60px;
}

.section h2 {
    margin-bottom: 20px;
}

/* GRID */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* CARD */
.movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.movie-info {
    padding: 10px;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.movie-info button {
    width: 100%;
    padding: 8px;
    background: #00ff99;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #000;
    margin-top: 40px;
    color: #777;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    width: 320px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    margin-bottom: 15px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: #fff;
}

.modal-btn {
    width: 100%;
    padding: 10px;
    background: #00ff99;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content p {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.modal-content span {
    color: #00ff99;
    cursor: pointer;
}

.close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
