/* =========================================
   1. TEMEL AYARLAR & RESET
   ========================================= */
body {
    background-color: #0F172A;
    margin: 0;
    font-family: 'Arial', sans-serif; /* Daha modern font eklenebilir (örn: Inter) */
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   2. HEADER & MODERN ARAMA ÇUBUĞU (GÜNCELLENDİ)
   ========================================= */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.logo {
  max-width: 170px;
  height: auto;
  transition: all 0.3s ease;
}
.logo:hover { transform: scale(1.05); opacity: 0.9; }

/* Yeni Modern Arama Kutusu Kapsayıcısı */
.search-bar {
  flex-grow: 1;
  max-width: 600px;
  margin-left: 20px;
  
  /* Modern Görünüm */
  background-color: #1e293b; /* Kutu rengi */
  border: 2px solid #2a3a54; /* Çerçeve */
  border-radius: 50px; /* Hap şekli (Tam yuvarlak kenarlar) */
  padding: 8px 20px; /* İç boşluk */
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Tıklayınca (Focus) Efekti */
.search-bar:focus-within {
  border-color: #00c4cc; /* Serialyze Mavisi */
  box-shadow: 0 0 15px rgba(0, 196, 204, 0.3);
  transform: translateY(-1px);
}

/* Input Alanı (Yazı) */
.search-bar input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 1rem;
  font-weight: 800; /* İSTEK: Kalın Yazı */
  letter-spacing: 0.5px;
}

/* Placeholder (Dizi ara...) Rengi ve Stili */
.search-bar input::placeholder {
  color: #64748b;
  font-weight: 600; /* Placeholder da hafif kalın */
  opacity: 0.8;
}

/* Arama Butonu (Büyüteç) */
.search-bar button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8; /* Simge rengi */
  transition: color 0.3s, transform 0.2s;
}

/* SVG İkon Ayarları */
.search-bar button svg {
  width: 22px;
  height: 22px;
  stroke-width: 3.5px; /* İSTEK: Kalın Büyüteç */
}

.search-bar button:hover {
  color: #00c4cc; /* Hover olunca mavi */
  transform: scale(1.1);
}

/* =========================================
   3. PROFİL & BİLDİRİMLER
   ========================================= */
.profile { position: relative; margin-left: 20px; }

/* Profil Resmi Kapsayıcısı */
.profile-img-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}
.profile-img-container:hover { transform: scale(1.05); }

.user-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid #00c4cc;
    object-fit: cover;
    display: block; /* Alt boşluğu önlemek için */
}

.notification-badge {
    position: absolute;
    top: 0; right: 0;
    width: 12px; height: 12px;
    background-color: #ef4444; /* Kırmızı */
    border: 2px solid #0f172a;
    border-radius: 50%;
    z-index: 10;
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 65px; right: 0;
    width: 220px;
    background-color: #1e293b;
    border: 1px solid #2a3a54;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}
.dropdown-menu.show { display: flex; }

.user-info-header {
    padding: 15px;
    background-color: #0f172a;
    color: #00c4cc;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #2a3a54;
}

.dropdown-item {
    padding: 12px 15px;
    color: #e2e8f0;
    font-size: 0.95em;
    border-bottom: 1px solid #2a3a54;
    display: flex; gap: 10px;
    align-items: center;
    transition: background 0.2s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background-color: #2a3a54; color: #00c4cc; }

.menu-notification-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-left: auto; /* Sağa yasla */
}

/* =========================================
   4. NAVİGASYON (TABLAR)
   ========================================= */
.nav {
  display: flex; justify-content: center; gap: 15px;
  padding: 20px 0; border-bottom: 2px solid #2a3a54; flex-wrap: wrap;
}
.nav-item {
  color: #94a3b8; background-color: transparent; border: 1px solid transparent;
  font-weight: bold; font-size: 1em; padding: 10px 20px; cursor: pointer;
  border-radius: 20px; transition: all 0.3s ease;
}
.nav-item:hover { color: white; background-color: rgba(255, 255, 255, 0.05); }
.nav-item.active {
  background-color: #00c4cc; color: #0f172a;
  box-shadow: 0 0 15px rgba(0, 196, 204, 0.4);
}

/* =========================================
   5. DİZİ KARTLARI & LİSTELEME (GÜNCELLENDİ)
   ========================================= */
.series-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* YENİ KART YAPISI: Profildeki 'fav-card' stilinden esinlenildi */
.series-card {
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 200px;
  aspect-ratio: 2/3; /* Poster oranı */
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid #2a3a54;
  transition: transform 0.3s, border-color 0.3s;
}

.series-card:hover {
  transform: translateY(-5px); /* Üzerine gelince büyüme/kalkma efekti */
  border-color: #00c4cc; /* Çerçeve rengi değişimi */
}

.series-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kartın altındaki şeffaf isim katmanı */
.series-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px 10px;
    text-align: center;
    opacity: 0; /* Varsayılan gizli */
    transition: opacity 0.3s;
}

/* Hover olunca ismi göster */
.series-card:hover .series-card-overlay {
    opacity: 1;
}

.series-card-overlay h3 {
    margin: 0;
    font-size: 0.95em;
    color: white;
}

/* Puan Rozeti */
.serialyze-badge, .user-score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    /* Background rengi HTML'den inline style ile geliyor (Mavi veya Beyaz) */
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2; /* Posterin ve overlay'in üstünde görünsün */
}

/* Pagination */
.pagination {
    display: flex; justify-content: center; gap: 20px;
    margin: 30px 0 50px 0;
}
.page-btn {
    background-color: #1e293b; color: #00c4cc;
    border: 2px solid #00c4cc; padding: 10px 25px;
    border-radius: 25px; cursor: pointer; font-weight: bold;
    transition: all 0.3s;
}
.page-btn:hover { background-color: #00c4cc; color: #0f172a; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: #64748b; color: #64748b; }

/* =========================================
   6. YORUM DEĞERLENDİRME & LİSTELER
   ========================================= */
#comment-eval-container { display: none; max-width: 900px; margin: 40px auto; padding: 20px; }
.eval-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }

.random-layout {
    display: flex; gap: 30px; align-items: stretch;
    background-color: #1e293b; border-radius: 20px; padding: 30px;
    border: 2px solid #2a3a54; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.random-poster-side { width: 300px; flex-shrink: 0; }
.random-poster-side img { width: 100%; border-radius: 15px; box-shadow: 0 0 20px rgba(0, 196, 204, 0.2); }
.random-content-side { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.quote-icon { font-size: 4em; color: #2a3a54; display: block; margin-bottom: 10px; }
.random-text { font-size: 1.4em; color: white; font-style: italic; margin-bottom: 30px; line-height: 1.6; }
.random-user { display: flex; align-items: center; justify-content: center; gap: 15px; color: #00c4cc; font-weight: bold; }
.action-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.action-btn { padding: 15px 30px; border-radius: 50px; border: none; font-size: 1.2em; cursor: pointer; transition: transform 0.2s; }
.action-btn:hover { transform: scale(1.1); }
.like-btn { background-color: #22c55e; color: white; }
.skip-btn { background-color: #64748b; color: white; }

/* Popüler Yorum Kartı */
.popular-comment-card {
    background: #1e293b; padding: 20px; border-radius: 10px; margin-bottom: 15px;
    border-left: 4px solid #facc15; display: flex; gap: 15px; align-items: flex-start;
}

/* =========================================
   7. DETAY SAYFASI
   ========================================= */
.detail-grid { display: grid; grid-template-columns: 300px 1fr 350px; gap: 30px; align-items: start; margin-bottom: 50px; }
.poster-col img { width: 100%; border-radius: 12px; box-shadow: 0 0 20px rgba(0, 196, 204, 0.2); }
.info-col { background: rgba(30, 41, 59, 0.6); padding: 25px; border-radius: 15px; border: 1px solid #2a3a54; }
.info-col h1 { margin-top: 0; color: white; font-size: 2.5em; }
.info-tag { display: inline-block; background: #0f172a; color: #00c4cc; padding: 5px 10px; border-radius: 5px; font-size: 0.8em; margin-right: 5px; border: 1px solid #00c4cc; }
.rating-col { background: #1e293b; padding: 25px; border-radius: 15px; border: 1px solid #00c4cc; position: sticky; top: 20px; }
.serialyze-score-box { background: #1e293b; padding: 15px; border-radius: 10px; margin: 20px 0; border-left: 4px solid #00c4cc; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.poster-stats { background-color: #1e293b; color: #94a3b8; text-align: center; padding: 10px; border-radius: 8px; margin-top: 15px; border: 1px solid #2a3a54; font-size: 0.9em; display: flex; justify-content: center; align-items: center; gap: 8px; }

/* Yorumlar */
.comments-section { background: #1e293b; padding: 30px; border-radius: 15px; margin-top: 40px; }
.comment-input-area textarea { width: 100%; height: 80px; background: #0f172a; border: 1px solid #2a3a54; color: white; padding: 15px; border-radius: 10px; resize: vertical; margin-bottom: 10px; box-sizing: border-box; }
.comment-item { border-bottom: 1px solid #2a3a54; padding: 20px 0; display: flex; gap: 15px; position: relative; }
.comment-item:hover .delete-comment-btn { display: block; }
.delete-comment-btn { display: none; position: absolute; top: 10px; right: 10px; background: none; border: none; color: #ef4444; font-size: 1.2em; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
.delete-comment-btn:hover { transform: scale(1.3); color: #ff4d4d; }
.comment-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #00c4cc; object-fit: cover; }
.comment-content h4 { margin: 0 0 5px 0; color: #00c4cc; }
.comment-content p { margin: 0; color: #e2e8f0; line-height: 1.5; }
.comment-date { font-size: 0.8em; color: #64748b; margin-top: 5px; display: block; }

/* =========================================
   8. YANITLAR VE ETKİLEŞİM
   ========================================= */
.comment-actions { margin-top: 8px; display: flex; gap: 15px; align-items: center; }
.reply-btn, .toggle-replies-btn { background: none; border: none; color: #94a3b8; font-size: 0.85em; cursor: pointer; font-weight: bold; padding: 0; }
.reply-btn:hover, .toggle-replies-btn:hover { color: #00c4cc; text-decoration: underline; }
.reply-input-container { display: none; margin-top: 10px; margin-left: 20px; background: #0f172a; padding: 10px; border-radius: 8px; border-left: 2px solid #00c4cc; }
.reply-input-container textarea { width: 100%; height: 50px; background: #1e293b; border: 1px solid #2a3a54; color: white; padding: 8px; border-radius: 5px; resize: vertical; box-sizing: border-box; }
.send-reply-btn { background-color: #00c4cc; color: #0f172a; border: none; padding: 5px 12px; border-radius: 4px; font-size: 0.8em; font-weight: bold; cursor: pointer; margin-top: 5px; float: right; }
.replies-list-container { display: none; margin-top: 10px; margin-left: 40px; border-left: 1px solid #2a3a54; padding-left: 15px; }
.reply-item { padding: 10px 0; border-bottom: 1px solid #1e293b; font-size: 0.9em; position: relative; }
.reply-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.reply-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.wall-reply-container { margin-left: 20px; margin-top: 5px; background: rgba(15, 23, 42, 0.5); padding: 8px; border-radius: 5px; border-left: 2px solid #facc15; }

/* =========================================
   9. PROFİL SAYFASI
   ========================================= */
.profile-header-container { background-color: #1e293b; padding: 30px; margin-bottom: 20px; border-bottom: 2px solid #00c4cc; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.profile-left, .profile-right { width: 250px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.profile-left { border-right: 1px solid #2a3a54; padding-right: 20px; }
.profile-right { border-left: 1px solid #2a3a54; padding-left: 20px; }
.profile-center { flex: 1; background: #0f172a; padding: 20px; border-radius: 10px; border: 1px solid #2a3a54; min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.stat-box { text-align: center; background: #0f172a; width: 100%; padding: 10px; border-radius: 8px; }
.stat-box strong { display: block; font-size: 1.8em; color: #00c4cc; }
.profile-guestbook { background: #1e293b; padding: 20px; border-radius: 10px; margin-bottom: 30px; border: 1px dashed #2a3a54; }
.wall-comment-item { position: relative; padding: 10px; border-bottom: 1px solid #2a3a54; margin-bottom: 5px; }
.wall-comment-item:hover .delete-comment-btn { display: block; }
.tabs-container { display: flex; justify-content: center; gap: 40px; margin: 30px 0 20px 0; border-bottom: 2px solid #2a3a54; }
.tab-btn { background: none; border: none; color: #94a3b8; font-size: 1.1em; font-weight: bold; padding: 10px 20px; cursor: pointer; position: relative; }
.tab-btn.active { color: #00c4cc; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background-color: #00c4cc; }
.bio-input { width: 100%; height: 100px; background: #1e293b; color: white; border: 1px solid #00c4cc; padding: 10px; border-radius: 5px; display: none; box-sizing: border-box; }
.edit-bio-btn { align-self: flex-end; background: none; border: none; color: #00c4cc; cursor: pointer; margin-top: 10px; }
.logout-btn-profile { background-color: #ef4444; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; }
.logout-btn-profile:hover { background-color: #dc2626; }
.comment-card { background-color: #1e293b; border-radius: 10px; padding: 20px; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border-left: 4px solid #00c4cc; margin-bottom: 15px; box-sizing: border-box; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; color: #94a3b8; font-size: 0.9em; }
.comment-text { color: #e2e8f0; line-height: 1.5; }
.pending-box { background-color: #334155; border: 2px dashed #facc15; padding: 15px; border-radius: 10px; margin-bottom: 20px; display: none; }
.approve-btn { background: #22c55e; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 5px; margin-right: 5px; }
.reject-btn { background: #ef4444; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 5px; }
.guest-write-box { background: #1e293b; padding: 20px; border-radius: 10px; margin-bottom: 20px; display: none; }
.guest-input { width: 100%; height: 60px; background: #0f172a; color: white; border: 1px solid #2a3a54; padding: 10px; border-radius: 5px; }

/* =========================================
   10. AYARLAR SAYFASI
   ========================================= */
.settings-container { max-width: 800px; margin: 40px auto; padding: 20px; color: #e2e8f0; }
.setting-section { background-color: #1e293b; padding: 25px; border-radius: 10px; margin-bottom: 30px; border: 1px solid #2a3a54; }
.setting-section h3 { color: #00c4cc; border-bottom: 1px solid #2a3a54; padding-bottom: 10px; margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: #94a3b8; }
.input-group input { width: 100%; padding: 12px; background-color: #0f172a; border: 1px solid #2a3a54; border-radius: 5px; color: white; box-sizing: border-box; }
.btn-primary { background-color: #00c4cc; color: #0f172a; padding: 10px 20px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; margin-top: 15px; }
.btn-danger { background-color: #ef4444; color: white; padding: 10px 20px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; margin-top: 15px; }

/* =========================================
   11. YILDIZ PUANLAMA (Maskeleme ile)
   ========================================= */
.rating-row { display: flex; justify-content: space-between; align-items: center; background: #0f172a; padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; border: 1px solid #2a3a54; }
.rating-label { font-weight: bold; color: #94a3b8; font-size: 0.9em; }
.star-widget { display: flex; align-items: center; direction: ltr; }
.star-item { font-size: 24px; width: 12px; height: 24px; overflow: hidden; position: relative; display: inline-block; cursor: pointer; margin: 0 1px; }
.star-item::before { content: "★"; position: absolute; top: 0; width: 24px; height: 100%; color: #334155; transition: color 0.2s ease, transform 0.1s; line-height: 24px; }
.star-item.left::before { left: 0; }
.star-item.right::before { left: -12px; }
.star-item.hovered::before, .star-item.active::before { color: #00c4cc; text-shadow: 0 0 15px rgba(0, 196, 204, 0.6); }
.star-item:active { transform: scale(0.9); }

/* =========================================
   12. BEĞENİ SİSTEMİ
   ========================================= */
.like-btn-container { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 0.9em; color: #94a3b8; transition: color 0.2s; margin-right: 15px; }
.like-heart { font-size: 1.2em; transition: transform 0.2s; }
.like-heart::before { content: "♡"; font-weight: bold; }
.like-btn-container.liked .like-heart::before { content: "♥"; color: #00c4cc; }
.like-btn-container.liked span { color: #00c4cc; }
.like-btn-container:hover .like-heart { transform: scale(1.2); }

/* Footer & Mobil */
footer { text-align: center; padding: 20px; background-color: #0f172a; color: #64748b; font-size: 0.9em; border-top: 1px solid #1e293b; margin-top: auto; }
@media (max-width: 1024px) { .detail-grid { grid-template-columns: 1fr; } .poster-col { max-width: 300px; margin: 0 auto; } .rating-col { position: static; } .random-layout { flex-direction: column; } .random-poster-side { width: 100%; max-width: 300px; margin: 0 auto; } }
@media (max-width: 900px) { .profile-header-container { flex-direction: column; text-align: center; } .profile-left, .profile-right { width: 100%; border: none; padding: 0; } }

/* ... (Önceki kodların hepsi kalsın, en alta bunları ekle) ... */

/* =========================================
   15. FAVORİ SİSTEMİ & PROFİL GÜNCELLEMELERİ
   ========================================= */

/* --- Dizi Detay Sayfası: Favori Butonu --- */
.fav-action-btn {
    background: #1e293b;
    border: 2px solid #2a3a54;
    color: #94a3b8;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 15px auto 0 auto; /* Afişin altında ortala */
}

.fav-action-btn:hover {
    border-color: #00c4cc;
    transform: scale(1.1);
}

/* Favoriye eklenmiş (Mavi Kalp) */
.fav-action-btn.active {
    background-color: #0f172a;
    border-color: #00c4cc;
    color: #00c4cc;
}

/* ... (En alt kısım) ... */

/* --- Profil Sayfası: Favori Bölümü --- */
.favorites-section {
    max-width: 100%; /* Sayfa genişliğine yayıl */
    margin: 30px auto; /* Üstten ve alttan boşluk bırak */
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütun */
    gap: 15px;
}

.fav-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3; /* Poster oranı */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid #2a3a54;
    transition: transform 0.3s;
}

.fav-card:hover {
    transform: translateY(-5px);
    border-color: #00c4cc;
}

.fav-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.fav-card:hover .fav-card-overlay { opacity: 1; }

.fav-card h4 {
    margin: 0;
    font-size: 0.8em;
    color: white;
}

/* --- Profil Sayfası: Hakkımda & Tarih --- */
.bio-container {
    position: relative;
}

/* Düzenle Kalem İkonu */
.edit-bio-icon {
    position: absolute;
    top: 0;
    right: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.2s;
}
.edit-bio-icon:hover { color: #00c4cc; }

/* Hakkımda Yazısı (Tıklanabilir olması için) */
.bio-text {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 10px;
    min-height: 20px;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.2s;
}

/* Sadece kendi profilimse hover efekti ver */
.bio-text.editable:hover {
    background-color: rgba(0, 196, 204, 0.1);
    cursor: pointer;
}

/* Üyelik Tarihi */
.join-date {
    display: block;
    font-size: 0.8em;
    color: #64748b;
    margin-top: 15px;
    font-style: italic;
    border-top: 1px solid #2a3a54;
    padding-top: 10px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobilde 2x2 */
    }
}
/* =========================================
   MOBİL UYUMLULUK DÜZELTMELERİ (RESPONSIVE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Header Düzeni: Alt alta sırala */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        position: relative; /* Profil ikonunu sabitlemek için */
    }

    /* 2. Logo: Biraz küçült ve ortala */
    .logo {
        max-width: 140px;
        margin-right: auto; /* Sola yasla */
        margin-left: 0;
    }

    /* 3. Profil: Sağ üst köşeye sabitle */
    .profile {
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0;
    }

    /* Dropdown menüyü ekranın içinde tut */
    .dropdown-menu {
        right: -10px; /* Sağa taşmayı önle */
        width: 200px;
    }

    /* 4. Arama Çubuğu: Tam genişlik yap ve alta al */
    .search-bar {
        width: 100%;
        max-width: 100%;
        margin: 0; /* Kenar boşluğunu sıfırla */
        box-sizing: border-box; /* Taşmayı önle */
    }

    .search-bar input {
        width: 100%; /* Yazı alanı da tam genişlik */
    }

    /* 5. Navigasyon (Tablar): Yana Kaydırmalı Yap */
    .nav {
        display: flex;
        flex-wrap: nowrap; /* Alt satıra inmesin */
        overflow-x: auto; /* Yana kaydırma aç */
        justify-content: flex-start; /* Sola yasla */
        padding: 15px;
        gap: 10px;
        -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
        
        /* Kaydırma çubuğunu gizle (Estetik) */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
    }
    .nav::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }

    .nav-item {
        flex: 0 0 auto; /* Butonlar sıkışmasın */
        font-size: 0.9em;
        padding: 8px 16px;
    }

    /* 6. Kartlar ve Liste */
    .series-section {
        padding: 20px 10px;
        gap: 15px;
    }

    /* Mobilde kartlar yan yana 2 tane sığsın (Daha şık durur) */
    .series-card {
        width: 45%; /* Ekranın yarısından biraz az */
        min-width: 140px;
    }
    
    /* Detay Sayfası Mobili */
    .detail-grid {
        grid-template-columns: 1fr; /* Tek sütun */
        gap: 20px;
    }
    
    .poster-col {
        margin: 0 auto;
        max-width: 200px; /* Posteri çok büyütme */
    }
    
    .rating-col {
        position: static; /* Mobilde yapışkan olmasın */
    }
}