* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: #141414;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 { color: #e50914; margin-bottom: 15px; cursor: pointer; font-size: 2.5rem; }

#search {
    width: 100%; max-width: 500px;
    padding: 12px 20px; border-radius: 25px;
    border: none; background: #333; color: #fff; font-size: 1rem;
}

.filter-container {
    display: flex; justify-content: center; gap: 10px; margin-top: 15px; flex-wrap: wrap;
}

.btn-genre {
    background: #222; color: #fff; border: 1px solid #444;
    padding: 8px 18px; border-radius: 20px; cursor: pointer; transition: 0.3s;
}

.btn-genre:hover { background: #e50914; border-color: #e50914; }

.btn-fav { background: #f5c518; color: #000; font-weight: bold; }

/* Film Kartları */
main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px; padding: 40px; max-width: 1400px; margin: 0 auto;
}

.movie-card {
    background: #1f1f1f; border-radius: 8px; overflow: hidden;
    position: relative; transition: transform 0.3s ease;
}

.movie-card:hover { transform: scale(1.05); }

.movie-card img { width: 100%; height: 330px; object-fit: cover; display: block; }

/* IMDb Puan Rozeti */
.imdb-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(245, 197, 24, 0.9); color: #000;
    padding: 4px 8px; border-radius: 4px;
    font-weight: bold; font-size: 0.85rem; z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Kart Üzeri Butonlar */
.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 330px;
    background: rgba(0, 0, 0, 0.7);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 12px; opacity: 0; transition: opacity 0.3s ease;
}

.movie-card:hover .card-overlay { opacity: 1; }

.btn-card {
    padding: 10px 25px; border: none; border-radius: 4px;
    cursor: pointer; font-weight: bold; width: 130px; transition: 0.2s;
}

.btn-izle { background: #e50914; color: white; }
.btn-detay { background: white; color: black; }

.movie-info { padding: 15px; }
.movie-info h3 { font-size: 0.9rem; line-height: 1.3; }
.movie-year { color: #888; font-weight: normal; font-size: 0.8rem; margin-left: 4px; }

/* Favori İkonu */
.fav-icon {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: rgba(0,0,0,0.5); border: none; color: #fff;
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
}
.fav-icon.active { color: #e50914; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85);
}

.modal-content {
    background: #181818; margin: 5% auto; padding: 30px;
    width: 90%; max-width: 800px; border-radius: 12px; position: relative;
}

.close-btn { position: absolute; right: 25px; top: 15px; font-size: 35px; cursor: pointer; color: #777; }
.modal-grid { display: flex; gap: 30px; }
.modal-grid img { width: 250px; border-radius: 8px; }

.pagination { text-align: center; padding: 40px; }
#load-more {
    background: transparent; color: #e50914; border: 2px solid #e50914;
    padding: 10px 40px; border-radius: 25px; cursor: pointer; font-weight: bold;
}

.status-msg { text-align: center; grid-column: 1 / -1; padding: 50px; font-size: 1.2rem; color: #777; }
