/* Ana sayfa: Codex bölümlerini IMDb ana sayfa düzenine yaklaştırır (yalnızca index.html yükler).
   - Kutulu başlıklar yerine IMDb başlığı: sarı çizgi + başlık + "›", altında gri açıklama
   - Küçük üst etiketler ve IMDb'de olmayan özellik şeridi gizlenir
   - "İzlenecekler" / "Keşfet" grup başlıkları (IMDb "What to watch") */

/* IMDb'de olmayan parçalar */
html body .stream-main > .program-strip,
html body .feature-kicker,
html body .discovery-kicker { display: none !important; }

/* Grup başlıkları */
html body .x-group-title {
  margin: 48px 0 20px !important;
  padding: 0 !important;
  color: #f5c518 !important;
  font-size: clamp(26px, 2.6vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
}
html body .x-group-title::before, html body .x-group-title::after { display: none !important; }

/* Kutulu "feature" başlıkları -> düz IMDb başlığı */
html body .rail-head.feature-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 0 !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
}
html body .rail-head.feature-head::before { display: none !important; }
html body .rail-head.feature-head h2 {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px !important;
  padding-left: 15px !important;
  font-size: clamp(22px, 2.3vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
}
html body .rail-head.feature-head h2::before {
  content: "" !important;
  display: block !important;
  position: absolute; left: 0; top: 1px; bottom: 2px;
  width: 4px; border-radius: 3px;
  background: #f5c518;
}
html body .rail-head.feature-head h2::after {
  content: "›" !important;
  display: inline !important;
  position: static !important;
  width: auto; height: auto; border: 0 !important; transform: none !important; background: none !important;
  font-size: 1.15em; font-weight: 400; line-height: 1;
}
html body .rail-head.feature-head p { margin: 0 !important; padding-left: 15px; color: #aaa !important; font-size: 15px !important; }
html body .rail-head.feature-head > a {
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: #f5c518 !important;
  font-size: 14px; font-weight: 600;
  transform: none !important;
}
html body .rail-head.feature-head > a:hover,
html body .rail-head.feature-head > a:focus-visible { background: none !important; color: #f5c518 !important; text-decoration: underline; text-underline-offset: 3px; }

/* Bölümler arası IMDb boşluğu */
html body .stream-main > .rail-section,
html body .stream-main > .discovery-section { margin-top: 40px !important; }

@media (max-width: 640px) {
  html body .rail-head.feature-head { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; }
  html body .x-group-title { margin-top: 36px !important; }
}

/* Öne çıkan vitrin: IMDb gibi kırpılmayan 16:9 görsel; afiş ve başlık görselin alt kenarına taşar */
html body .spotlight .spotlight-stage {
  --x-info: 96px;
  --x-fade: 190px;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding-bottom: var(--x-info);
}
html body .spotlight .spotlight-stage .spotlight-player:not(.inline-video-player) {
  position: relative;
  inset: auto;
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
}
html body .spotlight .spotlight-stage .spotlight-player img { object-position: center !important; }
html body .spotlight .spotlight-stage::after {
  /* Karartma görselin alt kenarında biter; altındaki yazı alanı düz koyu kalır */
  background: linear-gradient(180deg,
    transparent calc(100% - var(--x-info) - var(--x-fade)),
    rgba(9, 9, 9, .55) calc(100% - var(--x-info) - var(--x-fade) / 2.4),
    #090909 calc(100% - var(--x-info) + 2px)) !important;
}
html body .spotlight .spotlight-nav { top: calc((100% - var(--x-info)) / 2) !important; }
html body .spotlight .spotlight-stage:has(.inline-video-player) { padding-bottom: 0; aspect-ratio: 16 / 9 !important; }
@media (max-width: 640px) {
  html body .spotlight .spotlight-stage { --x-info: 146px; --x-fade: 70px; }
  html body .spotlight .spotlight-stage .spotlight-info { padding: 0 16px 16px !important; }
}

/* Popüler diziler: afişler gerçek renkleriyle (styles.css'teki luminosity karışımı siyah-beyaz yapıyordu) */
html body .imdb-rail .poster-media img {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Hız / CLS: telefonda vitrin altındaki "Sıradaki" listesi dolmadan önce yerini ayır (3 öğe ≈ 403px) */
@media (max-width: 900px) {
  html body .spotlight-list:empty { min-height: 403px; }
}
