* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: #07090e;
    color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* GÖREV 1: ARKA PLAN TÜL PERDESİ (CSS BLEND MODE) */
#detay-body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Metinlerin kusursuz okunması için optimize edilmiş saydamlık katmanı */
    background-color: rgba(7, 9, 14, 0.90);
    background-blend-mode: overlay;
}

/* TOP HEADER */
.top-header {
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand { display: flex; align-items: center; gap: 20px; }

.back-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.back-link:hover { background: #e50914; color: #fff; border-color: #e50914; }

.logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo span { color: #e50914; }

/* ARAMA ÇUBUĞU */
.search-bar { display: flex; gap: 8px; }
.search-bar input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 260px;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
    width: 320px;
    background: rgba(0, 0, 0, 0.8);
}

.search-bar button {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}
.search-bar button:hover { background: #ff1e2a; box-shadow: 0 0 15px rgba(229,9,20,0.6); }

/* FİLTRE & SIRALAMA NAV */
.filter-nav {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
}

.filter-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.sort-dropdown-container select {
    background: rgba(0, 0, 0, 0.5);
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* MAIN CONTENT & GRID */
.main-content { max-width: 1300px; margin: 0 auto; padding: 40px 25px; flex: 1; width: 100%; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 30px; color: #fff; }

.izgara-yapisi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.film-karti {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.film-karti:hover {
    transform: translateY(-10px);
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.25);
}

.film-karti img { width: 100%; height: 320px; object-fit: cover; display: block; }

.film-bilgi { padding: 18px; }

/* GÖREV 2: KESİK YAZILARI DÜZELTME (Esnek Satır) */
.film-bilgi h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
    /* white-space: nowrap ve overflow: hidden kaldırıldı, uzun isimler tam görünsün */
}

.film-bilgi p { font-size: 12px; color: #64748b; font-weight: 600; }

.puan {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* GÖREV 9: DAHA FAZLA YÜKLE BUTONU */
.daha-fazla-container { text-align: center; margin: 30px 0 50px 0; }
#dahaFazlaBtn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    transition: 0.3s;
}
#dahaFazlaBtn:hover { transform: scale(1.05); background: #ff1e2a; box-shadow: 0 0 25px rgba(229,9,20,0.7); }

/* GÖREV 4: YUKARI ÇIK BUTONU */
#yukariCikBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e50914;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    z-index: 99;
    transition: 0.3s;
}
#yukariCikBtn:hover { transform: scale(1.1); background: #fff; color: #e50914; }

/* DETAY SAYFASI STİLLERİ */
.detay-container { max-width: 1000px; margin: 40px auto; padding: 0 25px; flex: 1; width: 100%; }

.detay-ana-kart {
    display: flex;
    gap: 35px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 35px;
    flex-wrap: wrap;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.detay-ana-kart img { width: 280px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); object-fit: cover; }
.detay-icerik { flex: 1; min-width: 280px; }
.detay-icerik h2 { font-size: 34px; font-weight: 800; margin-bottom: 15px; color: #fff; }

.detay-meta { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.puan-rozet { background: #f39c12; color: #fff; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: 14px; }
.meta-etiket { background: rgba(255, 255, 255, 0.08); padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.butce-renk { color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }

.detay-icerik p { color: #94a3b8; font-size: 15px; line-height: 1.7; }

.detay-modul {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.detay-modul h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; border-left: 5px solid #e50914; padding-left: 14px; color: #fff; }

.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #000; }
.video-container iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* GÖREV 8: YUVARLAK OYUNCU KARTLARI (CAST) */
.oyuncu-listesi { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.oyuncu-kart { text-align: center; min-width: 110px; }
.oyuncu-kart img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 2px solid #e50914; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(229,9,20,0.4); }
.oyuncu-kart p { font-size: 12px; font-weight: 700; color: #cbd5e1; }

/* GÖREV 10: BENZER FİLMLER ÖNERİ SİSTEMİ */
.benzer-izgara { padding: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

footer { text-align: center; padding: 30px; color: #475569; font-size: 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); background: #04060a; margin-top: auto; }

@media (max-width: 768px) {
    .header-container, .filter-container { flex-direction: column; align-items: stretch; }
    .search-bar input { width: 100%; }
    .detay-ana-kart { flex-direction: column; align-items: center; text-align: center; }
    .detay-meta { justify-content: center; }
}