body {
    background-color: #141414;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Yukarı çıkarken yumuşak kayma efekti */
}

header {
    background-color: #e50914;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

header h1 {
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

/* Arama Çubuğu Tasarımı */
.arama-alani {
    margin-top: 15px;
}

.arama-alani input {
    padding: 10px 15px;
    width: 280px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 14px;
}

.arama-alani button {
    padding: 10px 20px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.arama-alani button:hover {
    background-color: #333;
}

/* Grid Yapısı */
.izgara-yapisi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Film Kartı */
.film-karti {
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.film-karti:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

.film-karti img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.film-bilgi {
    padding: 15px;
}

/* GÖREV 2: Uzun İsimlerin Kesilmesini Engelleme (Alt satıra kaydırır) */
.film-bilgi h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    white-space: normal; /* nowrap kaldırıldı, uzun isimler tam görünür */
    overflow: visible;
}

/* GÖREV 3: Dinamik Puan Rozet Renkleri (JS ile yönetiliyor) */
.puan {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Daha Fazla Yükle Butonu */
#dahaFazlaBtn {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

#dahaFazlaBtn:hover {
    background-color: #b20710;
}

/* GÖREV 4: Sağ Alt Köşe Sabit Yukarı Çık Butonu */
#yukariBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #e50914;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 999;
}

#yukariBtn:hover {
    background-color: #b20710;
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    margin-top: 30px;
}