:root {
    --bg-base: #06080f; /* Çok derin fütüristik lacivert/siyah */
    --glass-bg: rgba(20, 25, 35, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #ff2a5f;
    --accent-glow: 0 0 20px rgba(255, 42, 95, 0.5);
    --gradient-primary: linear-gradient(135deg, #ff2a5f, #ff7e40);
    --gradient-ai: linear-gradient(135deg, #8a2be2, #ff2a5f);
    --text-main: #ffffff;
    --text-muted: #8a8f9e;
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Aydınlık Mod Paleti */
body.light-mode {
    --bg-base: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --text-main: #11141a;
    --text-muted: #5a6072;
    --accent-glow: 0 10px 20px rgba(255, 42, 95, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-base); color: var(--text-main); overflow-x: hidden; transition: background-color 0.4s ease; }
body.modal-open { overflow: hidden; padding-right: 8px; } /* Sayfa titremesini önler */

/* Kaydırma Çubuğu */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Menü (Navbar) - Yüzen Cam Efekti */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.logo h1 { font-size: 1.8rem; font-weight: 800; cursor: pointer; transition: var(--transition-smooth); background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo h1:hover { transform: scale(1.02); filter: drop-shadow(0 0 10px rgba(255,42,95,0.4)); }

/* Cam Paneller (Ortak Sınıf) */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

/* Arama ve AI Kutusu */
.main-container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.control-panel { display: flex; flex-direction: column; gap: 20px; padding: 25px; margin-bottom: 40px; }
.search-wrapper, .ai-wrapper { display: flex; gap: 15px; align-items: center; width: 100%; position: relative; }
.search-wrapper input, .ai-wrapper input { flex: 1; padding: 15px 20px 15px 45px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 30px; color: var(--text-main); font-size: 1rem; transition: var(--transition-smooth); outline: none; }
body.light-mode .search-wrapper input, body.light-mode .ai-wrapper input { background: rgba(255,255,255,0.5); }
.search-wrapper input:focus, .ai-wrapper input:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(255,42,95,0.1); background: rgba(0,0,0,0.5); }
.search-icon, .ai-icon { position: absolute; left: 18px; color: var(--text-muted); font-size: 1.1rem; pointer-events: none; }
.ai-icon { color: #8a2be2; }
.divider { width: 100%; height: 1px; background: var(--glass-border); }

/* Butonlar */
.gradient-btn { background: var(--gradient-primary); color: #fff; padding: 12px 25px; border-radius: 30px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--accent-glow); display: inline-flex; align-items: center; gap: 8px; }
.gradient-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 25px rgba(255, 42, 95, 0.6); }
.ai-btn { background: var(--gradient-ai); box-shadow: 0 0 20px rgba(138, 43, 226, 0.4); border-radius: 30px; color: #fff; padding: 12px 25px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition-smooth); }
.ai-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(138, 43, 226, 0.6); }
.filter-input { padding: 12px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: 30px; color: var(--text-main); cursor: pointer; }
.icon-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; transition: var(--transition-smooth); padding: 5px; }
.icon-btn:hover { color: var(--accent); transform: scale(1.1); }
.tab-btn { background: transparent; color: var(--text-main); border: 1px solid var(--glass-border); padding: 10px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); }
.tab-btn:hover, .tab-btn.active { background: rgba(255,255,255,0.1); border-color: var(--accent); }
body.light-mode .tab-btn { background: #fff; }

/* 🌟 YENİ ŞEMA: CARD OVERLAY MİMARİSİ */
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.movie-card { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 2 / 3; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: var(--transition-smooth); }
.movie-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }

/* Afiş Üzerine Gelen Siyah/Degrade Cam Katman */
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transform: translateY(20px); transition: var(--transition-smooth); }
.movie-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.6), var(--accent-glow); border: 1px solid var(--accent); }
.movie-card:hover img { transform: scale(1.1); filter: brightness(0.6) blur(2px); }
.movie-card:hover .card-overlay { opacity: 1; transform: translateY(0); }

.card-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 5px; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.card-meta { font-size: 0.85rem; color: #bbb; margin-bottom: 15px; display: flex; justify-content: space-between; font-weight: 600; }
.action-btn { width: 100%; padding: 12px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; gap: 8px; }
.action-btn.add { background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); color: #fff; }
.action-btn.add:hover { background: var(--gradient-primary); border-color: transparent; }
.action-btn.remove { background: #00e676; color: #000; border-color: transparent; }

/* MODAL VE YORUM ŞEMALARI */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(8px); transition: opacity 0.3s ease; }
.modal-content { width: 100%; max-width: 1000px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes modalPop { from { opacity: 0; transform: scale(0.9) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.close-btn { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; cursor: pointer; z-index: 10; border: 1px solid var(--glass-border); transition: var(--transition-smooth); }
.close-btn:hover { background: var(--accent); transform: rotate(90deg); border-color: transparent; }

.modal-header { display: flex; flex-wrap: wrap; background: rgba(0,0,0,0.3); }
.modal-poster { width: 320px; flex-shrink: 0; }
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 40px; flex: 1; min-width: 300px; }
.modal-info h2 { font-size: 2.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 15px; }

/* Yıldız Oylama (Düzenlendi) */
.rating-container { display: flex; align-items: center; gap: 15px; margin-top: 20px; background: rgba(0,0,0,0.3); padding: 10px 20px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); width: fit-content; }
body.light-mode .rating-container { background: #fff; }
.rating-stats { display: flex; flex-direction: column; align-items: center; }
.rating-avg { font-size: 1.4rem; font-weight: 800; color: #ffca28; }
.rating-count { font-size: 0.8rem; color: var(--text-muted); }
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 5px; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.8rem; color: #444; cursor: pointer; transition: var(--transition-smooth); }
body.light-mode .star-rating label { color: #ccc; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #ffca28; text-shadow: 0 0 15px rgba(255, 202, 40, 0.6); transform: scale(1.1); }

/* Yorumlar ve Formlar */
.comments-section { padding: 40px; background: var(--glass-bg); border-top: 1px solid var(--glass-border); }
.comment-textarea { width: 100%; padding: 15px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: var(--radius-md); color: var(--text-main); min-height: 80px; resize: vertical; outline: none; transition: var(--transition-smooth); }
body.light-mode .comment-textarea { background: #fff; }
.comment-textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 10px rgba(255,42,95,0.1); }

.comment-box { padding: 20px; background: rgba(0,0,0,0.2); border-radius: var(--radius-md); border: 1px solid var(--glass-border); margin-top: 15px; }
.replies-wrapper { margin-top: 15px; margin-left: 20px; padding-left: 20px; border-left: 2px solid rgba(255, 42, 95, 0.3); }
.reply-box { padding: 15px; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); margin-bottom: 10px; }
.vote-btn { background: transparent; border: none; font-size: 0.95rem; font-weight: 800; display: flex; align-items: center; gap: 5px; cursor: pointer; transition: var(--transition-smooth); }
.vote-btn.up { color: var(--text-muted); } .vote-btn.up.active { color: #00e676; }
.vote-btn.down { color: var(--text-muted); } .vote-btn.down.active { color: #ff2a5f; }

/* Bildirim Paneli (Pürüzsüz Açılış) */
.notification-container { perspective: 1000px; }
.notif-badge { position: absolute; top: -5px; right: -5px; background: var(--accent); color: white; font-size: 0.65rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--accent-glow); pointer-events: none; }
.notif-dropdown { display: none; position: absolute; top: 60px; right: -50px; width: 340px; max-height: 400px; overflow-y: auto; flex-direction: column; z-index: 200; border-top: 3px solid var(--accent); transform-origin: top right; animation: dropDownAnim 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes dropDownAnim { from { opacity: 0; transform: scale(0.8) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.notif-item { padding: 15px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); border-left: 3px solid var(--accent); cursor: pointer; transition: var(--transition-smooth); margin-bottom: 10px; }
.notif-item:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); }

/* Animasyonlar */
.fade-in { animation: fadeInEffect 0.5s ease forwards; opacity: 0; }
@keyframes fadeInEffect { to { opacity: 1; transform: translateY(0); } }
.loading-spinner { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 768px) { .navbar { padding: 15px 20px; flex-direction: column; gap: 15px; } .search-wrapper, .ai-wrapper { flex-direction: column; } .modal-poster { width: 100%; height: 300px; } .modal-info { padding: 20px; } }
/* Menü Sağ Taraf - Butonların Kusursuz Hizalaması */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Butonlar arasındaki mükemmel boşluk */
    flex-wrap: wrap;
}

/* Mobil ekranlarda butonların taşmasını engellemek için */
@media (max-width: 768px) {
    .header-right {
        justify-content: center;
        width: 100%;
        gap: 10px;
        margin-top: 10px;
    }
}
/* --- OYUNCU (CAST) KAYDIRMA ALANI --- */
.cast-scroll::-webkit-scrollbar { height: 6px; }
.cast-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
.cast-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
/* --- YENİ: OYUNLAŞTIRMA VE ROZET SİSTEMİ --- */
.user-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Çaylak Rozeti */
.badge-caylak { background: rgba(255, 255, 255, 0.1); color: #ccc; border: 1px solid rgba(255, 255, 255, 0.2); }
/* Eleştirmen Rozeti */
.badge-elestirmen { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
/* Siber Sinefil Rozeti */
.badge-pro { background: var(--gradient-ai); color: #fff; box-shadow: 0 0 10px rgba(138, 43, 226, 0.5); border: none; }