* {
  box-sizing: border-box;
}

/* Genel konteyner */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif; 
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Hem <main> etiketini hem de .main-content sınıfını kapsar */
main, .main-content {
  flex: 1; /* Footer'ı aşağı iter */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* İçeriği yatayda ortalar */
  padding-top: 30px;   /* ✅ EKLEME 1: Header ile içerik arasına global bir güvenlik boşluğu */
  padding-bottom: 20px;
}

/* ✅ EKLEME 2: Sadece Index sayfası (.main-content) için ÖZEL kural */
/* Bu, butonları ve mesajı tekrar ekranın tam dikey ortasına getirir */
.main-content {
  justify-content: center; /* Dikey ortalama */
  padding-top: 0; /* Ortalanacağı için üst boşluğa gerek yok */
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}
  
  /* Tüm filtreleri saran container */
  .filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* sol hizalı, daha düzenli görünüm */
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 20px;
  }

.filters-container-discover {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Sola yaslı, nizami görünüm */
    gap: 16px;
    max-width: 1000px;
    margin: -20px auto 30px auto; 
  }

  /* SADECE TRENDLER SAYFASINA ÖZEL 2'Lİ KUTU TASARIMI */
  .trending-filters {
    justify-content: center !important; /* Sağda solda eşit boşluk kalsın, merkezde dursunlar */
  }
  
/* Genre filtresi için özel kutu (diğer filtrelerle aynı yapıya sahip) */
.filter-group, #genreWrapper, #platformWrapper {
    background-color: white;                      /* Beyaz arka plan */
    border: 2px solid #007BFF;                    /* Mavi kenarlık */
    border-radius: 10px;                          /* Kenarları yuvarlatılmış */
    padding: 12px;                                /* İç boşluk */
    width: calc(33.33% - 22px);                   /* 3 sütun görünüm için genişlik */
    min-width: 250px;                             /* Mobil uyumluluk için minimum genişlik */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);    /* Hafif gölge */
    box-sizing: border-box;                       /* Padding ve border genişliğe dahil */
    transition: box-shadow 0.2s ease-in-out;      /* Hover geçişi için animasyon */
  }
  
  /* Hover (fare üstüne gelince) gölge efekti */
  .filter-group:hover, #genreWrapper:hover, #platformWrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);    /* Daha yoğun gölge */
  }

  .trending-filters .filter-group,
  .trending-filters #platformWrapper {
      width: 311px !important; /* Yüzde yok, calc yok. Jilet gibi tam 311 piksel ol! */
      flex: 1 1 auto !important; /* Flexbox'ın kendi kafasına göre kutuları esnetip büzmesini yasaklar */
  }

  .genre-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap; /* Ekran daralırsa alt alta geçsin */
  }
  
  .genre-header-row h3 {
    margin: 0;
    font-size: 16px;
  }
  
  /* Filtre başlıkları için stil */
  .filter-group h3 {
    margin-top: 0;                                /* Üst boşluk yok */
    font-size: 15px;                              /* Yazı boyutu */
    margin-bottom: 10px;                          /* Başlıktan sonraki boşluk */
  }
  
  /* Drop-down ve input kutularının genel görünümü */
  .filter-group select,
  .filter-group input {
    width: 100%;                                  /* Kutu genişliği %100 */
    padding: 8px;                                 /* İç boşluk */
    font-size: 14px;                              /* Yazı boyutu */
    border: 1px solid #007BFF;                    /* Mavi kenarlık */
    border-radius: 6px;                           /* Hafif yuvarlatılmış köşe */
    box-sizing: border-box;                       /* Padding-border hesaba katılır */
  }

  /* Yıl ve puan kutularını yatay hizalamak için özel düzen */
.filter-group.year-rating-group {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.year-rating-group .input-row {
  display: flex;
  justify-content: space-between;
  gap: 4%;
}

.year-rating-group .input-row input {
  width: 48%;
}
  
  /* Genre için özel dropdown alanı */
  .custom-dropdown {
    position: relative; /* Çöp kutusunun havada tutunacağı direk burası */
    padding-bottom: 0px; /* İŞTE BU! Alt çizgiyi butondan 10px uzaklaştırır. İstediğin gibi artırıp azaltabilirsin. */
  }
  
/* Genre dropdown butonunu <select> görünümüne benzet */
/* 1. ANA BUTONLARIN KENDİSİ */
#genreDropdownBtn,
#platformDropdownBtn {
  width: 90%;
  /* DİKKAT: padding'i 4 taraflı yazdık. Sağ tarafa 25px boşluk verdik ki yazı ok işaretini ezmesin! */
  padding: 8px 25px 8px 8px; 
  font-size: 14px;
  border: 1px solid #007BFF;
  border-radius: 6px;
  background-color: white;
  color: #000000;
  appearance: none; 
  box-sizing: border-box;
  text-align: left;
  position: relative; /* DİKKAT: Ok işaretinin havada tutunacağı direk burası! Kesinlikle kalmalı. */
  line-height: 1.5;
  cursor: default;
}

/* 2. AŞAĞI OK SİMGESİ (Sihir Burada) */
#genreDropdownBtn::after,
#platformDropdownBtn::after {
  content: "⌵" !important; 
  font-size: 11px !important; 
  font-weight: 900 !important; /* Normal bold 700'dür, biz en uç sınır 900 yaptık */
  color: #000000 !important; 
  /* İŞTE SİHİR BURADA: Karaktere 1 piksellik siyah dış kontur (stroke) ekliyoruz! */
  -webkit-text-stroke: 1px #000000 !important; 
  position: absolute;
  right: 12px; 
  top: 50%;
  transform: translateY(-50%); 
  pointer-events: none; 
}
  
  /* Drop-down menünün içeriği (checkbox listesi) */
/* 1. MENÜNÜN KENDİSİ */
.dropdown-content {
    display: none;                /* Varsayılan gizli */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: 100%;                  /* Butonla aynı genişlik */
    min-width: 220px;
    max-height: 550px;            /* Uzarsa scroll çıksın */
    background-color: white;
    border: 1px solid #007BFF;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 5px 0;               /* İç boşluk */
    overflow-y: auto;
    text-align: left;
}

/* 2. MENÜYÜ AÇAN KOD */
.custom-dropdown.open .dropdown-content {
    display: block;
}

/* 3. SATIR YAPISI (Label) */
.dropdown-content label {
    display: flex;                /* Yan yana diz */
    justify-content: flex-start;  /* Sola yasla */
    align-items: center;          /* Dikeyde ortala */
    width: 100%;
    padding: 4px 12px;            /* Tıklama alanı */
    margin: 0;
    box-sizing: border-box;
    cursor: pointer;
}

/* Hover Efekti */
.dropdown-content label:hover {
    background-color: #f0f8ff;
}

/* 4. TICK KUTUCUĞU (Input) - Mesafeyi Ayarlayan Yer Burası */
.dropdown-content input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    margin-right: 8px !important;      /* Tick ile Yazı arasındaki boşluğu buradan yönetiyoruz */  
    position: static !important;
    float: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

/* 5. TÜR İSMİ (Span) */
.dropdown-content label span {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

  #genre-warning {
    display: none;
    position: fixed;
    top: 140px;
    left: 85%;
    transform: translateX(-50%);
    color: red;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    z-index: 9999;
    font-size: 11px;
  }
  
.scroll-control-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 65%; /* Genişlik sınırını buraya taşıdık */
  justify-content: flex-end; /* Sağa yasla */
}

    /* --- İÇERİK KUTUSU GÜNCELLEMESİ --- */
    #selectedGenres, 
    #selectedExcludedGenres,
    .selected-genres-popup {
      /* Eski max-width: 65% satırını SİL veya 100% yap */
      max-width: 100%; 
      flex-grow: 1; /* Aradaki boşluğu doldur */
      display: flex !important;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap !important;
      overflow-x: auto;
      justify-content: flex-start; /* İçerik soldan başlasın */
      scrollbar-width: none;
      -ms-overflow-style: none;
      scroll-behavior: smooth; /* Kayarken yağ gibi aksın */
    }

    /* --- OK BUTONLARI --- */
    .scroll-arrow {
      background: none;
      border: none;
      color: #555;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      padding: 0 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s, transform 0.2s;
      height: 100%;
    }

    .scroll-arrow:hover {
      color: #000;
      transform: scale(1.2); /* Üzerine gelince hafif büyüsün */
    }

    /* Android TV kumandasıyla üzerine gelindiğinde belli olsun */
    .scroll-arrow:focus {
      outline: 2px solid #2196F3;
      border-radius: 4px;
    }
  
  .genre-tag {
    display: inline-flex;       /* İkon ve yazıyı hizalamak için */
    align-items: center;
    gap: 5px;                   /* İkon ile yazı arası boşluk */
    padding: 4px 10px;          /* İç boşluk */
    border-radius: 12px;        /* Yuvarlak köşeler */
    font-size: 11px;            /* Okunaklı boyut */
    font-weight: 700;           /* Kalın yazı */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Hafif gölge */
    white-space: nowrap;
    margin-right: 5px;          /* Tagler birbirine yapışmasın */
    margin-bottom: 2px;
    cursor: default;
    transition: all 0.2s;
  }

  /* "Genres" kutusu için */
  .genre-tag.include-tag {
    background-color: #e8f5e9;  /* Çok açık yeşil zemin */
    color: #2e7d32;             /* Koyu yeşil yazı */
    border: 1px solid #c8e6c9;  /* İnce yeşil çerçeve */
  }

  .genre-tag.include-tag-tv {
    background-color: #E3F2FD;  /* Açık Mavi Zemin (Google Blue 50) */
    color: #1565C0;             /* Koyu Mavi Yazı (Google Blue 800) */
    border: 1px solid #90CAF9;  /* Çerçeve */
    }

  /* "Exclude Genres" kutusu için */
  .genre-tag.exclude-tag {
    background-color: #ffebee;  /* Çok açık kırmızı zemin */
    color: #c62828;             /* Koyu kırmızı yazı */
    border: 1px solid #ffcdd2;  /* İnce kırmızı çerçeve */
  }  

#clearGenresWrapper, #clearPlatformsWrapper {
    text-align: right;
    margin-top: -35px; 
    margin-right: -6px;
}
  
#clearGenresBtn, #clearPlatformsBtn {
    background: none;
    border: none;
    font-size: 16px;
    position: relative;
    top: -2px;              /* Daha ince yukarı ayarı */
    cursor: default;
    color: #888;
    padding: 4px;
    transition: color 0.3s ease;
  }
  
  #clearGenresBtn:hover, #clearPlatformsBtn:hover {
    color: red;
  }

#excludeGenreWrapper {
    background-color: white;
    border: 2px solid #007BFF; /* Orijinal Mavi */
    border-radius: 10px;
    padding: 12px;
    width: calc(33.33% - 22px);
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease-in-out;
}

#excludeGenreWrapper:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* 2. BUTON TASARIMI */
#excludeGenreDropdownBtn {
    width: 90%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #007BFF; /* Orijinal Mavi */
    border-radius: 6px;
    background-color: white;
    color: #000000; /* Orijinal Siyah Yazı */
    appearance: none;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    line-height: 1.5;
}

#excludeGenreDropdownBtn::after {
    content: "⌵";
    font-size: 10px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 3. ÇÖP KUTUSU KONUMU */
#clearExcludedGenresWrapper {
    text-align: right;
    margin-top: -35px; /* Orijinal Konumlandırma */
    margin-right: -6px;
}

#clearExcludedGenresBtn {
    background: none;
    border: none;
    font-size: 16px;
    position: relative;
    top: -2px;
    cursor: default;
    color: #888;
    padding: 4px;
    transition: color 0.3s ease;
}

#clearExcludedGenresBtn:hover {
    color: red;
}

/* 5. UYARI MESAJI */
#exclude-genre-warning {
    display: none;
    position: fixed;
    top: 140px;
    left: 85%;
    transform: translateX(-50%);
    color: red;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    z-index: 9999;
    font-size: 11px;
}
  
  /* Suggest button */
  #suggestBtn {
    display: block;
    margin: 20px auto;
    background-color: #dd4b11;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #suggestBtn:hover {
    background-color: #dd4b11;
  }

  /* Senin orijinal suggestBtn tasarımın */
    #searchDiscoverBtn {
      background-color: #dd4b11;
      color: white;
      border: none;
      padding: 10px 16px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 25px; /* Filtrelerle arasına ufak bir boşluk */
      align-self: center; /* Kutunun ortasında şık durması için */
    }
    
    #searchDiscoverBtn:hover {
      background-color: #c9400b; /* Hover için bir tık koyu turuncu */
    }

/* --- PLATFORM WIDGET (JustWatch Tarzı) --- */
.platform-widget {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pw-country-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
  background-color: white;
  cursor: pointer;
}

.pw-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px; /* Boşsa bile yer kaplasın */
  align-items: center;
}

.pw-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.pw-icon-img:hover {
  transform: scale(1.1);
}

.pw-no-data {
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/*  HEADER TASARIMI */

.site-header {
  background-color: #960a0a;   
  color: #f4f4f4; 
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header-content {
    background: linear-gradient(to bottom, #cb6262, #960a0a);
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    min-height: 60px;
    position: relative; /* Katman ayarı için şart */
    z-index: 50;        /* Arama barından (10) daha yüksek olsun */
}

/* 1. LOGO KONTEYNER */
.logo-container {
  flex-shrink: 0;
  padding: 0 60px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo-link {
  display: flex;
  flex-direction: row; 
  align-items: center; 
  text-decoration: none;
  gap: 2px; 
}

.site-logo-img {
  height: 70px; 
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  color: #f4f4f4;
  font-size: 20px;    
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0; 
  line-height: 1;
}

/* Yazıları kendi içinde alt alta hizalayan kutu */
.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Yazıları esnek kutunun sol kenarına mühürler */
  text-align: left; /* Mobilden gelebilecek olası merkezleme miraslarını ezer */
}

/* Slogan metni (Ana metinden tam 2 punto daha küçük: 18px) */
.logo-tagline {
  color: #a0a0a0; /* Rengi temana göre f4f4f4 falan da yapabilirsin */
  font-size: 13px; 
  font-weight: 500;
  margin-top: 4px; /* STH2WATCH yazısı ile arasındaki boşluk */
  letter-spacing: 0.5px;
  line-height: 1;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 30px; /* Discover, Hamburger ve Linkler arası boşluk */
    padding-right: 80px;     /* ÖNEMLİ: Search bar ile hizalamayı sağlayan boşluk artık burada */
}

.menu-toggle {
    display: none; /* PC'de görünmesin */
    background: none;
    border: none;
    font-size: 24px;
    color: #f4f4f4;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    /* padding-right: 80px; <-- BU SATIR ARTIK YOK (Üst kutuya verdik) */
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #e0e0e0;
  transition: transform 0.2s, color 0.2s;
  min-width: 55px;
}

.nav-item:hover {
  color: #fff;
  transform: translateY(-2px);
}

.icon-wrapper {
  height: 45px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 3px;
}

.icon-wrapper img {
  height: 42px; /* Standart İkon Boyutu */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* ✅ Register Butonu İçin Özel Küçültme */
.register-link .icon-wrapper img {
  height: 36px; /* Diğerlerinden biraz daha küçük yaparak görsel denge sağladık */
}

.nav-label {
  font-size: 10px; /* Yazıları biraz daha kibarlaştırdık */
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.auth-buttons {
  display: flex;
  gap: 15px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 15px;
}

/* --- DISCOVER MENÜ --- */
.dropdown-container {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    margin-left: 5px;
}

.nav-link-main {
    text-decoration: none !important;
    color: #e0e0e0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
}

.nav-link-main:hover { color: #ffffff !important; }
.nav-link-main .icon-wrapper i { 
    color: inherit; 
    transform: translateY(-3px);
    display: inline-block;
  }

/* Dropdown Kutusu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;      /* KONUM: Hemen butonun dibinden başla */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0; 
    padding-top: 20px; /* Menü içeriği ile buton arasına azıcık nefes payı */
    background-color: #960a0a;
    width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5); /* Gölgeyi biraz koyulaştırdık */
    z-index: 2000;      /* KRİTİK AYAR: Arama Barının (Subheader) Üstünde Kalması İçin */
    border: 1px solid rgba(255,255,255,0.1);     /* Kenarlıklar (İsteğe bağlı, daha keskin durur) */
    border-top: none; /* Üst çizgi olmasın, butonla bütünleşsin */
}

/* Görünmez Köprü (Artık çok daha küçük, sadece güvenlik için) */
.dropdown-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -10px; /* Sadece 10px yukarı taşsın */
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}
.dropdown-menu a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: #f4f4f4;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-color: #960a0a;
    transition: background 0.2s;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: #b20d0d; }

.menu-icon { width: 30px; margin-right: 15px; text-align: center; font-size: 20px; }
.menu-text { font-size: 14px; font-weight: 600; text-transform: uppercase; }

.dropdown-container:hover .dropdown-menu { display: none; }
.dropdown-menu.show {
    display: block !important; 
}

/* --- 2. ARAMA KUTUSU --- */
.search-subheader {
    width: 100%;
    background: linear-gradient(to top,#c53f3f, #a93226, #9b2222, #960a0a);
    padding: 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: none;
    position: relative;
    z-index: 10;
    margin-top: -1px;     /* SİHİRLİ DOKUNUŞ: Kutuyu 1px yukarı çekip boşluğu kapatır */
}

.search-box {
  position: static; 
  transform: none;
  margin: 0;
  width: 100%;             /* Genişliği fulle */
  max-width: 100%;         /* SINIRI KALDIRDIK (Eskiden 800px idi) */
  display: flex;
}

#searchForm {
  display: flex;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Hafif gölge ekledik */
  border-radius: 0px; /* Formun kendisine radius verdik */
}

#searchInput {
  width: 100%;
  padding: 10px 25px;     /* Biraz daha rahat padding */
  border-radius: 0; /* Sol taraf yuvarlak */
  border: none;
  font-size: 15px;
  outline: none;
  background-color: #f4f4f4;
  height: 30px;           /* Yükseklik sabitledik */
}

.search-btn {
  padding: 0 70px;
  background-color: #e50914;
  color: white;
  border: none;
  border-radius: 0; /* Sağ taraf yuvarlak */
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  height: 30px;           /* Input ile aynı yükseklik */
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: #b20710;
}

/* Footer */
/* === COMPACT FOOTER (DÜZELTİLMİŞ) === */
.site-footer {
  background-color: #1c1c1c;
  color: #cccccc;
  padding: 10px 0 5px 0; /* Alttan padding'i biraz daha azalttık */
  width: 100%;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: flex;
  justify-content: center; 
  flex-wrap: nowrap;
  /* Sütunlar arasındaki boşluğu kendimiz kontrol etmek için gap kullanalım */
  gap: 40px; 
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.footer-column {
  width: 300px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  margin-bottom: 10px;
  text-align: center;
}

.footer-column h3 {
  color: #f4f4f4;
  font-size: 0.95rem;
  font-weight: 600;
  /* 2. DÜZELTME: Tüm başlıkların alt boşluğunu sabitledik */
  margin-bottom: 12px; 
  border-bottom: 2px solid #e50914;
  display: inline-block;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 2. DÜZELTME (DEVAM): İçeriklerin aynı hizada başlaması için */
/* Başlıktan sonra gelen Liste (ul), Paragraf (p) ve İkonlar (.social-icons) */
.footer-column ul,
.footer-column p,
.social-icons {
  /* Ikonlar zaten blok olmadığı için merkezleme gerekir */
  display: flex; 
  justify-content: center;
  margin-top: 0 !important;
  padding-top: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 4px;
}

.footer-column ul li a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-column ul li a:hover {
  color: #e50914;
  padding-left: 5px;
}

.social-icons a {
  color: #ccc;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  color: #e50914;
  transform: translateY(-2px);
}

/* Atıf Metni */
.footer-column.attribution p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #777;
  margin-bottom: 0; /* Alt boşluğu temizle */
}

/* En Alt Telif Kısmı */
.footer-bottom {
  text-align: center; 
  padding-top: 8px; 
  font-size: 0.7rem;
  color: #555;
}

#loginPopup {
  display: none;
  position: absolute;
  top: 110%; /* biraz boşluk için %100 yerine 110% */
  left: 0;
  transform: translateX(-20%); /* daha sağa kaydırır */
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 15px; /* %25 küçültülmüş padding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  min-width: 150px; /* önceki 300px'den %25 daha az */
  max-width: 60vw;  /* ekran taşmasını engeller */
  box-sizing: border-box;
}

  .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
  }

  .form-group label {
    width: 90px;
    margin-right: 5px;
    font-weight: bold;
  }

  .form-group input {
    flex: 1;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #aaa;
    border-radius: 2px;
  }

  .form-actions {
    text-align: right;
  }

  .form-actions button {
    padding: 8px 14px;
    margin-left: 10px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
  }

  .form-actions button#cancelLogin {
    background-color: #dc3545;
  }

  #popupLoginMessage:empty {
    display: none;
  }

/* =========================================
   PAYLAŞIM BUTONLARI (SHARE UI)
   ========================================= */
.share-buttons-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0; /* Üstten ve alttan boşluk, tasarımına göre değiştirebilirsin */
    flex-wrap: wrap; /* Mobilde ekrana sığmazsa alt satıra geçsin */
}

.share-title {
    font-weight: bold;
    font-size: 16px;
    color: #333; /* Karanlık mod varsa buraları #ddd yapabilirsin */
}

.share-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Tam yuvarlak yapar */
    border: none;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.share-action-btn:hover {
    transform: translateY(-3px) scale(1.05); /* Üzerine gelince hafif havaya kalkıp büyür */
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* Marka Orijinal Renkleri */
.share-action-btn.whatsapp { background-color: #25D366; }
.share-action-btn.x        { background-color: #000000; }
.share-action-btn.telegram { background-color: #0088cc; }
.share-action-btn.copy     { background-color: #6c757d; }
.share-action-btn.native   { background-color: #ff3366; } /* Dikkat çekici tatlı bir kırmızı/pembe */

/* Copy butonunda metin çıkınca buton esneyebilsin diye ufak ayar */
.share-action-btn.copy {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
    border-radius: 20px; /* Metin sığsın diye oval yaptık */
    font-weight: bold;
    font-size: 13px;
}

/* --- SÜTUN YAPISI --- */
.watchlist-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* DEĞİŞİKLİK BURADA: 'start' yerine 'stretch' yaptık.
     Böylece yan yana duran iki kartın boyu her zaman en uzun olana göre eşitlenir. */
  align-items: stretch; 
}

/* Sütun genişliği ayarı */
.watchlist-column {
  width: 100%;
  max-width: 375px; 
}

/* Mobilde alt alta */
@media (max-width: 900px) {
  .watchlist-columns {
    grid-template-columns: 1fr;
  }
}

.watchlist-section > h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.card-wrapper {
  width: 100%;
  margin-bottom: 16px;
  height: 100%; /* DEĞİŞİKLİK: Kartın hücreyi tam doldurmasını sağladık */
}

/* --- KART TASARIMI (SABİT YÜKSEKLİK & DÜZEN) --- */
.movie-cardwl {
  display: flex;
  flex-direction: row;
  /* DEĞİŞİKLİK: 'flex-start' yerine 'stretch'.
     Böylece resim ve yazı sütunu kartın en dibine kadar uzar. */
  align-items: stretch; 
  gap: 16px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
  
  min-height: 180px; 
  height: 100%; /* DEĞİŞİKLİK: Kartın esnek yüksekliğini %100 yaptık */
}

/* Poster Ayarları */
.movie-poster {
  width: 100px;
  height: 100%; /* Poster kartın boyuna uyum sağlasın */
  object-fit: cover; /* Resmi sündürme, kırp */
  border-radius: 4px;
}

/* Bilgi Alanı Düzeni */
.movie-info {
  flex-grow: 1;
  height: 100%; 
  display: flex;
  flex-direction: column; 
  margin-top: 0; 
}

/* --- BAŞLIK KISALTMA AYARI (3 NOKTA) --- */
.movie-title-click {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  line-height: 1.3em; 
  display: -webkit-box; 
  -webkit-line-clamp: 1;  /* DEĞİŞİKLİK: Altında orijinal isim olacağı için bunu 1 satıra düşürdük */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

.original-title-wl {
  font-size: 0.85em; /* Yıl bilgisiyle aynı boyut */
  font-style: italic;
  font-weight: normal;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* 1 Satırda tut */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  margin-top: 2px;
}

/* --- DOKUN-AÇ (EXPAND) SINIFI --- */
.expand-text {
  white-space: normal !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Başlığın altındaki Yıl/Puan kısmı */
.movie-info h3 { /* JS kodunda <span> içinde olduğu için buraya özel stil gerekmez, ama okunurluk için satır yüksekliğini ayarlayalım */
  margin: 0;
  line-height: 1.4; /* Satırlar birbirine girmesin */
}
/* TÜRLER (Her zaman 2 satırlık yer kaplayacak şekilde sabitlendi) */
.movie-genres {
  font-size: 0.75rem; 
  font-weight: 700;   
  color: #444;
  margin-top: 10px; 
  margin-bottom: 8px; 
  /* --- SENİN FİKRİNİN UYGULANDIĞI YER --- */
  line-height: 1.2em; 
  height: 2.4em; /* Tam olarak 2 satırlık yüksekliği rezerve et (1.2 x 2 = 2.4) */
  /* 2 satırdan fazlaysa ... koyarak kes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal; 
}

/* BUTON KISMI (Güvenlik sigortası olarak margin-top: auto kalsın) */
.bottom-actions {
  margin-top: auto; 
}

.remove-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  max-height: 40px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: #c0392b;
}

/* --- FAVORİLER İÇİN 3 SÜTUNLU YAPI --- */
.favorites-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 Eşit Parça */
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* DEĞİŞİKLİK BURADA: Kartların boylarını eşitlemek için 'stretch' yapıyoruz */
  align-items: stretch; 
}

/* Sütun Başlıkları */
.favorites-column {
  width: 100%;
  max-width: 375px; 
}

/* Mobilde ve Tablette Uyumluluk */
@media (max-width: 900px) {
  .favorites-columns {
    grid-template-columns: 1fr; /* Mobilde hepsi alt alta */
  }
}

/*/* Movie-info */
.movie-cardmd {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 20px;
  max-width: 1000px;
  margin: 30px auto;
  border: 4px solid #1f7a22;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tv-cardmd {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding: 20px;
  max-width: 1000px;
  margin: 30px auto;
  border: 4px solid #3f51b5;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.movie-cardmd-poster img {
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
}

.movie-cardmd-details {
  flex: 1;
}

.movie-cardmd-details h2 {
  margin-top: 0;
}

.movie-cardmd-buttons {
  margin-top: 15px;
}

.movie-cardmd-watchlist-btn,
.movie-cardmd-watched-btn {
  margin-right: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

.movie-cardmd-watchlist-btn {
  background: none;
  border: none;
  padding: 0;
}

.movie-cardmd-watched-btn {
  background: none;
  border: none;
  padding: 0;
}

/*/* Movie-info-cast-crew */
.movie-ccc {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  border: 4px solid #4CAF50; 
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tv-ccc {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  border: 4px solid #2196F3; 
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.movie-ccc h3 {
  margin-top: 0;
  font-size: 20px;
  color: #1f7a22;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.tv-ccc h3 {
  margin-top: 0;
  font-size: 20px;
  color: #3f51b5;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.movie-ccc .ccc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.movie-ccc .ccc-item {
  width: 120px;
  text-align: center;
}

.movie-ccc .ccc-item img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.movie-ccc .ccc-item .ccc-name {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

.movie-ccc .ccc-item .ccc-role {
  font-size: 12px;
  color: gray;
}

.season-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.season-img-container {
  flex-shrink: 0;
}

.season-img {
  width: 150px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.season-meta {
  flex: 1;
}

.season-episode-section {
  margin: 40px auto;
  background: #f9f9f9;
  padding: 20px;
  border: 4px solid #3f51b5;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.season-block {
  margin-top: 20px;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.episode-list {
  margin-top: 15px;
}

.episode-item {
  display: flex;
  gap: 15px;
  background-color: #f0f0f0;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  align-items: flex-start;
}

.episode-img {
  width: 120px;
  gap: 15px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.episode-info {
  flex: 1;
}

#season-select {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* --- TAB (SEKME) TASARIMI --- */
.tab-container {
  font-family: 'Segoe UI', sans-serif;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent; /* Alt çizgi için yer aç */
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #2196F3; /* Mavi hover rengi */
}

.tab-btn.active {
  color: #2196F3;
  border-bottom: 3px solid #2196F3; /* Aktif sekmenin alt çizgisi */
}

/* İçerik Kutuları */
.tab-content {
  display: none; /* Varsayılan olarak gizli */
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block; /* Aktif olan görünür */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Person Kartı */
.person-card {
  display: flex; 
  gap: 20px; 
  align-items: flex-start; 
  width: 100%; /* İçerik az olsa bile kutunun yatayda daralmasını engeller */
  min-height: 450px; /* Kutu dikeyde ASLA 450px'den daha kısa olamaz */
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  border: 4px solid #1f7a22;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.person-card-image img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.person-card-details {
  flex: 1;
}

.person-card-details h2 {
  margin-top: 0;
  font-size: 28px;
}

.person-card-details p {
  margin: 8px 0;
  line-height: 1.6;
}

.person-bio {
  margin-top: 15px;
  font-style: italic;
  color: #444;
}

@media (max-width: 768px) {
  .person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person-card-image img {
    width: 150px;
  }
  .hidden-crew-list {
    justify-content: center !important;
  }
}

.person-ccc {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  border: 4px solid #4CAF50; 
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.person-ccc h3 {
  margin-bottom: 15px;
  font-size: 24px;
}

/* 🎬 Filmografi Listesi Izgarası */
.filmography-list {
  display: grid;
  /* MOBİL İÇİN: Senin orijinal esnek yapın (ekrana sığdığı kadar) */
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 15px;
}

/* 💻 PC VE TABLET İÇİN (Geniş ekranlarda devreye girer) */
@media (min-width: 768px) {
  .filmography-list {
    /* MASAÜSTÜNDE KESİN OLARAK YAN YANA 6 KART GÖSTERİR */
    /* İstersen buradaki 6 rakamını 8 yaparak yan yana 8 kart dizdirebilirsin */
    grid-template-columns: repeat(6, 1fr); 
  }
}

.mini-movie-card {
  text-align: center;
  transition: transform 0.2s ease;
  min-width: 0; /* 💥 KRİTİK KOD: Metnin kartı (ve posteri) sağa doğru esnetmesini engeller! */
}

/* Kartın üzerine gelince hafifçe yukarı kalksın */
.mini-movie-card:hover {
  transform: translateY(-5px);
}

.mini-movie-card img {
  width: 100%;
  border-radius: 8px;
  height: 165px; 
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); 
}

.mini-movie-card p {
  font-size: 14px;
  margin-top: 5px;
  color: #333;
  
  /* 💥 2 SATIRLI KESME HİLESİ (Multi-line Truncation) */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* En fazla 2 satıra izin ver, sonra "..." koy */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* Metnin alt satıra inmesine izin ver */
  line-height: 1.2; /* Satır aralığını daralttık ki çok yer kaplamasın */
  padding: 0 2px;
}

/* Tıklanınca yazının tam açılmasını sağlayan CSS sigortası */
.mini-movie-card p.expanded {
  display: block !important; /* -webkit-box özelliğini ezip normal serbest metne çevirir */
  overflow: visible !important; /* Gizlenen satırları görünür yapar */
  -webkit-line-clamp: none !important; /* Satır sınırını tamamen yok eder */
}

#social-links {
    margin-top: 10px;
}

.social-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #1da1f2; /* Twitter mavisi gibi */
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 oranı */
  height: 0;
  overflow: hidden;
  margin-top: 1rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Search */
.search-results-section {
  padding: 2rem 1rem;
  max-width: 1125px; 
  margin: auto;
}

#results { display: block; }

.search-category-section { margin-bottom: 2.5rem; }
.search-category-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* GRID YAPISI */
.search-list {
  display: grid;
  gap: 15px; 
  grid-template-columns: repeat(3, 1fr); /* Masaüstü 3'lü */
}

@media (max-width: 900px) {
  .search-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .search-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* KART TASARIMI */
.search-list-item {
  display: flex; /* YATAY */
  align-items: center; 
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 10px;
  height: 100%; 
}

/* MOBİL KART (DİKEY) */
@media (max-width: 600px) {
  .search-list-item {
    flex-direction: column;
    align-items: center; /* Kartın içini yatayda merkeze alır */
    text-align: center;  /* Metinleri merkeze hizalar */
    padding: 8px;
    max-width: 100%; /* Taşmayı engellemek için kesin sınır */
    overflow: hidden;
  }
}

.search-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-color: #ccc;
}

/* POSTER */
.item-poster {
  flex-shrink: 0;
  width: 70px; 
  margin-right: 15px;
}

@media (max-width: 600px) {
  .item-poster {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
  }
}

.item-poster img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  /* Mobilde poster çok devasa olmasın */
  max-width: 92px; 
}

/* --- YAZI ALANI (FIX: Taşan yazılar için sihirli değnek) --- */
.item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1; /* Kalan alanı doldur */
  min-width: 0; /* ✨ BU SATIR MASAÜSTÜNDE TAŞMAYI ENGELLER ✨ */
}

@media (max-width: 600px) {
  .item-info {
    width: 100%;
    max-width: 100%; /* Kutu dışına taşmayı engeller */
    align-items: center; /* Alt alta binen metinleri ortalar */
  }
}

.item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  line-height: 1.3;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; 
  overflow-wrap: break-word;
}

.item-year {
  font-weight: normal;
  color: #666;
  font-size: 0.9rem;
  margin-top: 2px;
  
  display: block;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
}

.original-title {
  margin-top: 2px;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .item-title {
    font-size: 0.9rem;
    width: 100%;
    /* Masaüstündeki çoklu satırı ezip tek satıra zorluyoruz */
    display: block !important; 
    white-space: nowrap !important; 
    -webkit-line-clamp: unset !important;
  }

  .item-year {
    font-size: 0.8rem;
    width: 100%;
  }

  .original-title {
    font-size: 0.75rem;
    width: 100%;
    /* Masaüstündeki çoklu satırı ezip tek satıra zorluyoruz */
    display: block !important; 
    white-space: nowrap !important; 
    -webkit-line-clamp: unset !important;
  }
}

.expand-text {
  white-space: normal !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: #000 !important; 
}

#autocomplete-list {
  font-family: Arial, sans-serif;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #000; /* Yazı rengi siyah */
  position: absolute;
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#autocomplete-list li {
  padding: 8px;
  cursor: pointer;
  color: #000; /* Yazı rengi siyah */
}

#autocomplete-list li:hover {
  background-color: #f0f0f0;
}

#g_id_signin {
    border: 2px solid red;
    display: block !important;
    
    /* ✅ KRİTİK EKLENTİ: Minimum bir yükseklik tanımlayın */
    min-height: 44px; /* Butonlar için standart yükseklik */
    line-height: 40px; /* Metnin dikey ortalamasına yardımcı olur */
    box-sizing: border-box; /* Padding ve border'ın genişliğe dahil olmasını sağlar */
    cursor: pointer; /* Kullanıcının tıklanabilir olduğunu anlaması için */
}

/* --- ÇEREZ (COOKIE) BANNER --- */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1c1c1c; /* Footer ile uyumlu koyu renk */
  color: #f4f4f4;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 10000; /* Her şeyin üstünde olsun */
  gap: 20px;
  font-size: 0.9rem;
}

#cookie-consent-banner p {
  margin: 0;
}

#cookie-consent-banner a {
  color: #e50914;
  text-decoration: underline;
}

#cookie-accept-btn {
  background-color: #e50914;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#cookie-accept-btn:hover {
  background-color: #b20710;
}

/* MOBİL TASARIM (Düzeltilmiş)*/

@media (min-width: 901px) {
    .dropdown-container:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 900px) {
    .header-content {
        padding: 10px 15px;          /* Flex özellikleri zaten yukarıdan miras alınıyor */
    }

    /* Sağ Taraf Kutusu: İki butonu yan yana tutar */
    .header-right-actions {
        padding-right: 0 !important; /* PC'deki boşluğu sıfırla */
        gap: 0px; /* İkonlar arası boşluk */
    }

    /* Logo Ayarları */
    .logo-container { padding-left: 0; margin-left: -15px; }
    .site-logo-img { height: 50px !important; }
    .logo-text { margin-left: -10px; font-size: 14px; }

    /* Arama Barı */
    .search-subheader { padding: 0; }
    .search-btn { padding: 0 30px; }

    /* Hamburger İkonu */
    .menu-toggle {
        display: block !important; 
        font-size: 24px;
        color: #f4f4f4;
        cursor: pointer;
        order: 2; /* Sağda dursun */
        margin-top: 5px;
        margin-left: 0; /* Auto'yu kaldırdık */
    }

    /* Discover İkonu (Pusula) */
    .dropdown-container {
        display: flex;
        order: 1; /* Solda dursun */
        margin-left: 0;
    }

  .dropdown-container .icon-wrapper img {
        height: 38px !important; /* !important şart, çünkü HTML'de style var */
        width: auto !important;
    }

  .dropdown-container .nav-label {
        display: none;
    }

    /* --- 3. DISCOVER MENÜSÜ (Eksik Olan Kısım buydu!) --- */
.dropdown-menu {
        left: auto;
        transform: none;
        right: -60px;
        width: 175px;
        margin-top: 13.355px; 
        padding: 0 !important; 
        gap: 0 !important;
        z-index: 3000 !important;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.4); 
        border: none; 
        border-top: none;
    }

    .dropdown-menu a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
        color: #f4f4f4;
        min-height: 32px;      /* Satır yüksekliği */
        padding: 5px 10px;     /* İç boşluk (Auth için 0 5px yaptıysan burayı da öyle yapabilirsin) */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* İnce çizgi */
        font-size: 12px;       /* Yazı boyutu hamburgerle eşitlendi */
    }

    /* 3. Emoji İkonları (Hamburgerdeki resim ikonlarıyla hizalama) */
    .dropdown-menu .menu-icon {
        height: 24px;
        width: 24px;           /* Hamburgerdeki icon-wrapper genişliği */
        text-align: center;    /* Emojiyi ortala */
        margin-right: 20px;    /* Hamburgerdeki ikon-yazı arası boşluk */
        font-size: 16px;       /* Emojiyi biraz küçülttük */
        display: inline-block;
    }

    /* 4. Yazı Ayarı */
    .dropdown-menu .menu-text {
        font-size: 12px;      /* Hamburger ile aynı */
        font-weight: 400;     /* Kalınlığı normale çektik */
    }
    
    /* Hover Efekti (Dokununca renk değişimi) */
    .dropdown-menu a:active, .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Köprüyü küçült */
    .dropdown-menu::before { top: -15px; height: 15px; }

    /* --- 4. HAMBURGER MENÜ LİSTESİ (Senin Orijinal Kodların) --- */
    .nav-links {
        gap: 0 !important; 
        display: none; 
        position: absolute;
        top: 100%; 
        right: 0; 
        width: 175px; 
        max-width: 80vw;
        flex-direction: column;
        background-color: #960a0a;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.4); 
        z-index: 999;
        overflow-y: auto;
        padding-right: 0 !important;
    }

    .nav-links.show {
        display: flex;
    }

.nav-links .nav-item {
        min-height: 32px; 
        padding: 5px 10px;  /* İç boşlukları biraz daha kıs */
        display: flex;
        flex-direction: row; 
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links .icon-wrapper {
        margin-right: 15px;
        margin-bottom: 0;
        width: 30px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links .icon-wrapper img {
        height: 24px; 
        width: 24px;
        display: block;
    }
    
    .nav-links .nav-label {
        font-size: 12px;
        text-align: left;
    }

    .auth-buttons {
        display: flex; 
        flex-direction: column;
        width: 100%;
        border-left: none;
        align-items: flex-start;
        padding: 0 5px; 
        border-top: 1px solid rgba(255,255,255,0.2);
        gap: 0; 
        padding-top: 1px;
        margin-top: 1px;
    }

    .auth-buttons .nav-item {
        width: 100%; 
        justify-content: flex-start; 
        padding-left: 5px; 
    }

    @media (max-width: 900px) {

    /* --- LOGIN POPUP MOBİL AYARLARI --- */
    #loginPopup {
        position: fixed !important;   /* 1. KONUMLANDIRMA: Ekrana Çivileme (Fixed) */       /* Absolute yerine Fixed kullanıyoruz ki sayfayı kaydırsa bile popup ortada kalsın */
        
        /* 2. MERKEZLEME FORMÜLÜ */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; /* Tam göbeğe oturtur */
        
        /* 3. BOYUTLAR */
        width: 90% !important;       /* Ekranın %90'ını kapla */
        max-width: 350px !important; /* Ama tabletlerde çok devasa olma */
        min-width: 0 !important;     /* PC ayarını sıfırla */
        
        /* 4. KATMAN (EN ÖNEMLİ KISIM) */
        /* Hamburger menü 999 idi. Biz buna 2000 vererek en üste çıkardık */
        z-index: 2000 !important; 
        
        /* 5. GÖRÜNÜM VE ARKA PLAN KARARTMA */
        background: #fff;
        border-radius: 10px;
        padding: 20px !important;
        
        /* İlk gölge kutu için, İkinci gölge (0 0 0 1000px) arkadaki sayfayı karartmak için */
        box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 0 1000px rgba(0,0,0,0.6) !important;
    }

    /* --- FORM İÇİ DÜZENLEMELER (Parmak Dostu Yapı) --- */
    
    /* Etiket ve Kutuyu Alt Alta Al */
    #loginPopup .form-group {
        flex-direction: column !important; /* Yan yana değil alt alta */
        align-items: flex-start !important;
        margin-bottom: 15px !important;
    }

    /* Etiket Genişliği */
    #loginPopup .form-group label {
        width: 100% !important;
        margin-bottom: 5px !important;
        font-size: 14px;
    }

    /* Input Alanları */
    #loginPopup .form-group input {
        width: 100% !important;
        height: 40px !important; /* Mobilde tıklaması kolay olsun */
        box-sizing: border-box !important; /* Padding taşmasın */
    }

    /* Butonlar */
    #loginPopup .form-actions {
        display: flex;
        justify-content: space-between; /* Butonları sağa sola yay */
        gap: 10px;
        margin-top: 10px;
    }

    #loginPopup .form-actions button {
        flex: 1; /* Butonlar eşit genişlikte olsun */
        height: 40px;
        margin: 0 !important; /* Eski marginleri sil */
    }
}

#loginPopup #g_id_signin {
        margin-top: 15px !important; /* 1. Aşağı İndirme (Boşluk) */
        /* 2. Genişlik Ayarı */
        width: 100% !important;      /* Kutunun tamamını kaplasın */
        display: flex !important;    /* İçeriği ortalamaya yardımcı olur */
        justify-content: center !important; 
    }

/* 1. AYAR: Footer ile Üst Taraf Arasındaki Mesafe */
    .site-footer {
        margin-top: 30px !important; /* Butonlara yapışmaması için üstten itiyoruz */
    }

    /* Footer Sütunları */
    .footer-columns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0 !important; 
        border-bottom: 1px solid #333 !important; 
        padding-bottom: 5px !important; /* Çizginin hemen üstüne yapışmasın diye azıcık boşluk */
    }

    /* Sütun (Kutu) Ayarı */
    .footer-column {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto 0px auto !important; 
    }
    
    /* 1. Listeyi (Anne Elementi) Düzenle */
    .footer-column ul {
        display: flex !important;          /* Flex özelliğini aç */
        gap: 16px !important;               
        padding: 0 !important;
        margin: 0 auto 10px auto !important; /* Listenin kendi alt boşluğu */
    }

    .footer-column ul li {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Linkin Tıklama Alanı */
    .footer-column ul li a {
        display: inline-block;
        line-height: 1.5 !important;         /* Yazının kendi satır yüksekliği */
    }

    .footer-content {
        padding: 0 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-bottom {
        font-size: 11px;
        padding: 5px 5px; /* Yazının çizgiye çok yapışmaması için 15px yaptık */
    }
}

/* ======================================================= */
/* MOBİL FİLTRE DÜZENİ (Kutuları Ortalar) */
/* ======================================================= */

@media (max-width: 900px) {
    
    /* 1. FİLTRE KAPSAYICISI */
    .filters-container {
        justify-content: center !important;
        padding-left: 45px; 
        padding-right: 45px;
    }

.filters-container-discover {
        justify-content: center !important;
        /* DİKKAT: Aşağıdaki iki satırı ekledik. Mobilde sütun (alt-alta) olmalarını garantiliyoruz! */
        flex-direction: column !important; 
        align-items: center !important;
        padding-left: 45px; 
        padding-right: 45px;
    }

    /* 2. FİLTRE KUTULARI (Tekil Kutular) */
    .filter-group, #genreWrapper, #excludeGenreWrapper, #platformWrapper {
        width: 100% !important;
        max-width: 500px !important;
        min-width: 0 !important; 
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 3. İÇERİK GARANTİSİ (Select Kutuları) */
    .filter-group select {
        width: 100% !important;
        max-width: 100% !important; /* Asla kutudan dışarı taşma */
        box-sizing: border-box !important;
    }
}

/* --- MOBİL VE TABLET UYUMLULUK (RESPONSIVE TASARIM) --- */
@media (max-width: 768px) {
  
  /* 1. Ana Kartları Dikey (Alt Alta) Yap */
  .movie-cardmd, 
  .tv-cardmd {
    flex-direction: column !important; /* Yan yana dizilmeyi iptal et */
    align-items: center;    /* İçerikleri ortala */
    padding: 15px;          /* Kenar boşluklarını biraz daralt */
    gap: 20px;
  }

  /* 2. Posteri Ortala ve Boyutunu Dizginle */
  .movie-cardmd-poster {
    width: 100%;
    display: flex;
    justify-content: center; /* Resmi tam ortaya al */
  }

  .movie-cardmd-poster img {
    max-width: 200px; /* Mobilde ekranı kaplamasın, ideal boyuta in */
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Biraz gölge katalım */
  }

  /* 3. Detay Metinlerini Düzenle */
  .movie-cardmd-details {
    width: 100%;
    text-align: left; /* Mobilde metinleri ortalamak daha şık durur */
  }
  
  /* Platform Logolarını Ortala */
  .movie-cardmd-details p {
      justify-content: center;
  }

  /* 4. Fragmanı (Youtube) Ekrana Sığdır */
  /* JS'deki width="560" değerini ezip ekrana oturtur */
  .video-container iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9; /* Videonun en-boy oranını koru */
  }
  
   .rating-row {
    display: flex;           /* Esnek kutu yap */
    justify-content: center; /* Yatayda tam ortala */
    align-items: center;     /* Dikeyde hizala */
    margin-bottom: 10px;     /* Altına biraz boşluk ver */
  }

  /* Kişi kartlarını mobilde ortala */
  .person-list-container {
    justify-content: center !important; /* Kartları merkeze topla */
  }
}

/* --- AKSİYON BUTONLARI KAPLAYICISI --- */
.action-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;       /* Sığmazsa alt satıra geçsin */
  gap: 10px;             /* Butonlar arası boşluk */
  margin-top: 15px;
  
  /* PC'de hizalama: Sola yaslı olsun dersen 'flex-start', ortalı olsun dersen 'center' */
  justify-content: flex-start; 
}

/* --- ORTAK BUTON TASARIMI (.action-btn) --- */
.action-btn {
  /* PC İÇİN STANDART AYARLAR */
  flex: 1 0 auto;        /* Esnek ol ama çok küçülme */
  min-width: 140px;      /* En az bu kadar geniş olsun (Yazılar sığsın) */
  max-width: 200px;      /* Çok da devasa olmasın */
  height: 42px;          /* Sabit yükseklik (Hiza bozulmaz) */
  
  padding: 0 15px;       /* İç boşluk */
  font-size: 18px;       /* Okunaklı font */
  font-weight: 600;      /* Biraz kalın yazı */
  
  transition: transform 0.2s, opacity 0.2s; /* Hafif animasyon */
}

/* Hover (Üzerine Gelince) Efekti - Sadece PC'de */
.action-btn:hover {
  transform: translateY(-2px); /* Hafif yukarı kalksın */
  opacity: 0.9;
}

/* 2. Mobil Görünüm (Alt Alta ve Ortalı) */
@media (max-width: 900px) {
  .action-buttons-wrapper {
    flex-direction: column; /* Alt alta diz */
    align-items: stretch;   /* Butonları kenarlara kadar uzat (Full genişlik) */
    width: 100%;
    gap: 8px;               /* Dikey boşluk */
  }

  .action-btn {
    /* Mobilde butonlar tam genişlikte olsun, basması kolaylaşsın */
    width: 100%;       
    max-width: none;   /* PC'deki 200px sınırını kaldır */
    height: 48px;      /* Parmak için daha yüksek */
    font-size: 20px;   /* Yazı bir tık büyük */
    margin-bottom: 0;  /* Gap kullandığımız için margine gerek yok */
  }
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- MOBİL İÇİN LOGO HİZALAMA KESİN ÇÖZÜMÜ --- */
@media (max-width: 768px) {
  .logo-container {
    padding: 0 15px; /* Mobilde o devasa 60px boşluğu kaldırıp nefes aldırıyoruz */
  }
  
  .logo-text-wrapper {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .logo-text, 
  .logo-tagline {
    white-space: nowrap !important; /* Ekran darlalsa bile yazının bükülüp kaymasını kesin olarak engeller */
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

