body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: #1c1c1c;
    padding: 30px;
    width: 350px;
    border-radius: 10px;
}

h2 { text-align: center; }

label { display: block; margin-top: 15px; }

input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin-top: 5px;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: #ff5722;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
button:hover { background: #e64a19; }

.error-message {
    background: red;
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background: green;
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: orange;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 90px 0; /* jarak dari navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: bold;
    color: white;
}

.hero-text p {
    margin: 20px 0;
    font-size: 18px;
    max-width: 400px;
    color: #dddddd;
}

.btn-primary {
    background: orange;
    padding: 12px 25px;
    border-radius: 8px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.btn-primary:hover {
    background: #ffba4c;
}

.hero-img img {
    width: 480px;
    border-radius: 14px;
}

/* ================================
   PAGE FILM
================================ */
.film-page {
    background-color: #0d0d0d;
    font-family: Arial, sans-serif;
    color: white;
}

/* navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: #000;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-size: 18px;
    text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover {
    color: #00aaff;
}

.film-section {
    padding: 120px 50px;
    text-align: center;
    color: white;
    width: 100%;
}

.film-grid {
    width: 100%;
    max-width: 1200px;      /* batas agar tidak melebar terus */
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* CARD FILM */
.film-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.film-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.film-card:hover {
    transform: translateY(-8px);
}

.film-card h3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.tag {
    background: #2196f3;
    padding: 5px 15px;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    display: inline-block;
    margin-top: 5px;
}

.btn-film {
    display: block;
    margin: 15px auto 20px;
    width: 80%;
    background: #ff9800;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.btn-film:hover {
    background: #ff5e00;
}

/* ========== NAVBAR FIX ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 90%;
    height: 70px;
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 9999;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff4545;
}

/* supaya navbar tidak menutupi halaman */
/* body {
    padding-top: 80px !important;
} */

/* ========== FILM PAGE FIX ========== */
.film-section {
    text-align: center;
    max-width: 1100px;  /* ✅ BATAS LEBAR HALAMAN */
    margin: auto;
}

/* GRID FILM RAPI DAN TIDAK TERLALU LEBAR */
.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    padding: 20px;
}

/* CARD FILM */
.film-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 14px;
    border: 2px solid #222;
    transition: transform .2s ease;
}

.film-card:hover {
    transform: translateY(-6px);
}

/* GAMBAR SERAGAM DAN TIDAK TERPOTONG */
.film-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.film-card h3 {
    margin: 10px 0;
    color: #fff;
}

.tag {
    font-size: 12px;
    background: #ff2a2a;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
}

.btn-film {
    display: inline-block;
    padding: 6px 12px;
    background: #ff3434;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: .2s ease;
}

.btn-film:hover {
    background: #d32020;
}
