/* Meta Analiz Haber · haber sayfası düzeni (19.11.2026)
   Özgür Bey: "Sitemiz Anadolu Ajansı gibi mükemmellikte olsun."
   AA'nın haber KURGUSU (başlık → özet → imza/tarih → fotoğraf → kısa paragraflar)
   Meta Analiz Haber'in kendi kimliğiyle (kendi yazı tipleri Inter + Lora, kendi renkleri).
   AA'nın renk, yazı tipi ve logo kimliği KOPYALANMAZ.
   Geri almak için: index.html'deki meta-ozel.css satırı silinir. */

:root {
  --mah-murekkep: #15171c;   /* başlık ve özet */
  --mah-metin: #23272e;      /* gövde */
  --mah-soluk: #6b7280;      /* tarih, künye */
  --mah-cizgi: #e6e1da;      /* ayraç (logodaki bej tonun açığı) */
}

/* 1 · Başlık: kalın, iri, sıkı satır aralığı */
h1[class*="_news-title_"] {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  /* sitenin telefon kuralı (max-width 480px) başlığı küçültüyordu → !important */
  font-size: clamp(26px, 2.4vw + 17px, 42px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.015em;
  color: var(--mah-murekkep);
  margin: 12px 0 16px;
  text-wrap: balance;
}

/* 2 · İmza satırı: "Meta Analiz Haber" + tarih · yer */
div[class*="_news-meta-left_"] {
  flex-wrap: wrap;
  row-gap: 2px;
  align-items: center;
}
div[class*="_news-meta-left_"]::before {
  content: "Meta Analiz Haber";
  display: block;
  flex-basis: 100%;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--mah-murekkep);
}
time[class*="_news-date_"],
span[class*="_news-location_"] {
  color: var(--mah-soluk);
  font-size: 13px;
}

/* 3 · Gövde: tırnaklı yazı (Lora), rahat okuma; A- / A / A+ düğmeleri çalışmaya devam eder */
div[class*="_content-text_"] p {
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-size: inherit;
  line-height: 1.68;
  color: var(--mah-metin);
  margin: 0 0 1.05em;
  hyphens: manual;
}

/* 4 · Özet (spot): ilk paragraf, AA'daki gibi iri ve vurgulu */
div[class*="_content-text_"] p:first-of-type {
  /* A-/A+ düğmeleri paragrafa satır içi boyut yazar; özet, bloğun boyutuna göre oranlanır */
  font-size: 1.12em !important;
  line-height: 1.55;
  font-weight: 600;
  color: var(--mah-murekkep);
  padding-bottom: 0.9em;
  margin-bottom: 1.1em;
  border-bottom: 1px solid var(--mah-cizgi);
}

/* 5 · Okuma genişliği: masaüstünde satır ~70 karakter */
@media (min-width: 1024px) {
  div[class*="_content-text_"] {
    max-width: 720px;
  }
}

/* 6 · Fotoğraf: yumuşak köşe, ince gölge */
img[class*="_main-image_"] {
  border-radius: 6px;
}

/* 7 · Meta Analiz TV köşesi (meta-ozel.js, 3. tasarım 19.11.2026)
      Özgür Bey: "Çok büyük alan kaplıyor; yarısı kadar, hatta biraz daha küçük; altın oran olmazsa olmaz."
      Yatay bant: sol %38,2 kanal · sağ %61,8 iki son bölüm; küçük resimler 1,618 oranında.
      Hedef yükseklik: masaüstü ≤ 240 px, tablet ≤ 260 px, telefon ≤ 340 px (mizanpaj kapısı ölçer). */
.mah-tv {
  --tv-gece: #12151c; --tv-gece2: #1b2030; --tv-turuncu: #F47C20; --tv-yt: #FF0033;
  box-sizing: border-box; display: grid; grid-template-columns: 38.2fr 61.8fr; gap: 16px;
  margin: 24px auto 30px; max-width: 1200px; width: calc(100% - 32px); padding: 16px;
  border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, #24293a 0%, var(--tv-gece2) 45%, var(--tv-gece) 100%);
  color: #fff; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 26px rgba(10, 12, 18, 0.22), 0 0 0 1px rgba(244, 124, 32, 0.16) inset;
}
.mah-tv * { box-sizing: border-box; }
.mah-tv a { color: inherit; text-decoration: none; }
.mah-tv svg { display: block; }

/* sol: kanal */
.mah-tv__sol { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.mah-tv__kapak { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1707 / 282; background: #0d1016; }
.mah-tv__kapak img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; display: block; }
.mah-tv__kanal { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mah-tv__profil { flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--tv-turuncu), #ffb067, var(--tv-turuncu)); }
.mah-tv__profil img { width: 100%; height: 100%; border-radius: 50%; display: block; border: 2px solid var(--tv-gece); }
.mah-tv__ad { flex: 1; min-width: 0; }
.mah-tv__ad b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.mah-tv__ad small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #c9ccd6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mah-tv__ad small svg { width: 16px; height: 11px; flex: none; }
.mah-tv__abone { flex: none; background: var(--tv-yt); color: #fff !important; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(255, 0, 51, .3); transition: transform .15s ease; }
.mah-tv__abone:hover { transform: translateY(-1px); }

/* sağ: iki son bölüm, küçük resim solda (1,618), metin sağda */
.mah-tv__videolar { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.mah-tv__video { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: background .2s ease, border-color .2s ease; min-width: 0; }
.mah-tv__video:hover { background: rgba(255,255,255,.08); border-color: rgba(244,124,32,.5); }
.mah-tv__resim { position: relative; flex: none; width: 140px; aspect-ratio: 1.618; border-radius: 6px; overflow: hidden; background: #000; }
.mah-tv__resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mah-tv__oynat { position: absolute; left: 50%; top: 50%; width: 36px; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); transition: transform .2s ease; }
.mah-tv__video:hover .mah-tv__oynat { transform: translate(-50%, -50%) scale(1.1); }
.mah-tv__bilgi { display: block; min-width: 0; }
.mah-tv__etiket { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--tv-turuncu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mah-tv__bilgi b { display: block; font-size: 16px; line-height: 1.25; margin-top: 2px; }
.mah-tv__bilgi small { display: block; font-size: 12.5px; color: #c9ccd6; margin-top: 2px; line-height: 1.35; }

/* haber sayfasında: metin sütunu genişliğinde aynı bant */
.mah-tv--dar { max-width: 760px; width: 100%; margin: 24px 0 28px; }
.mah-tv--dar .mah-tv__resim { width: 128px; }

/* tablet ve dar sütun */
@media (max-width: 900px) {
  .mah-tv__resim { width: 124px; }
  .mah-tv__kanal { flex-wrap: wrap; }
  .mah-tv__ad { flex-basis: calc(100% - 54px); }
  .mah-tv__abone { width: 100%; text-align: center; padding: 7px 12px; }
}
/* telefon: kanal üstte, iki bölüm altta alt alta (küçük resim + metin) */
@media (max-width: 640px) {
  .mah-tv { grid-template-columns: 1fr; gap: 12px; padding: 12px; width: calc(100% - 24px); }
  .mah-tv__kanal { flex-wrap: nowrap; }
  .mah-tv__ad { flex-basis: auto; }
  .mah-tv__abone { width: auto; }
  .mah-tv--dar { width: 100%; }
  .mah-tv__resim { width: 112px; }
  .mah-tv__oynat { width: 30px; }
  .mah-tv__bilgi b { font-size: 15px; }
}

/* 8 · Reklam boşlukları (19.11.2026, Özgür Bey: "böyle haber mizanpajı olamaz")
      Site her 3 paragrafta bir reklam alanı açıyor; kimliği sahte ("1111111111") olduğu için reklam
      hiç gelmiyor ve 280 px boşluk kalıyor. Sahte kimlikli ve dolmayan reklam alanları gösterilmez. */
.adsense-container:has(ins[data-ad-slot="1111111111"]),
.adsense-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
ins.adsbygoogle[data-ad-slot="1111111111"],
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; min-height: 0 !important; }
/* metin içinde en çok bir reklam: art arda reklam haberi bölmez */
div[class*="_content-text_"] .adsense-container ~ .adsense-container { display: none !important; }

/* 9 · Listeler (takvim, madde): tek blok, sıkı satır aralığı, kurum renginde madde işareti */
div[class*="_content-text_"] ul.mah-liste {
  margin: 0 0 1.1em;
  padding: 14px 18px 14px 22px;
  list-style: none;
  background: #f7f5f2;
  border-left: 3px solid #A97142;
  border-radius: 6px;
  font-family: Lora, Georgia, serif;
  font-size: inherit;
}
div[class*="_content-text_"] ul.mah-liste li {
  position: relative;
  padding-left: 18px;
  margin: 0;
  line-height: 1.6;
  color: #23272e;
}
div[class*="_content-text_"] ul.mah-liste li + li { margin-top: 4px; }
div[class*="_content-text_"] ul.mah-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A97142;
}

/* 10 · Dünya Haberleri bölümü (19.11.2026, Özgür Bey: "'Dünya haberleri şu anda yüklenemiyor' denmemeli;
       haber yoksa bu satır yer almamalı, yüklendiğinde çıkmalı") — boş ya da hata durumunda bölüm gizlenir */
.world-news-section:has(.world-error) { display: none !important; }
/* Dünya bölümü düzeni: yan liste boşsa ızgara tam genişlik; masaüstünde tek dengeli sıra (en çok 6),
   telefonda/tablette çift sayıda kart (tek kalan kart alt satırda yalnız kalmaz) */
.world-news-layout:has(> :only-child) { grid-template-columns: 1fr !important; }
@media (min-width: 1024px) {
  .world-news-layout:has(> :only-child) .world-news-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
  .world-news-grid > .world-grid-item:nth-child(n+7) { display: none !important; }
}
/* yarım satırlar meta-ozel.js satirTamamla() ile her ekran genişliğinde toparlanır */

/* 11 · Ekonomi: piyasa verileri haberlerin ALTINDA, kompakt bant (19.11.2026, 2. tasarım)
       Özgür Bey: "Hem ekonomi sayfasında hem ana sayfada bu üç veri yan yana, ekonomi haberlerinin altında yer almalı"
       ve "Çok büyük alanı kaplamakta; altın oranı uygulayarak … telefon ve tablette kusursuz … küçült, tıpkı YouTube
       çalışmasındaki gibi." Sitenin yan sütunu (ana sayfa ve Ekonomi sayfası) gizlenir; haber ızgarası tam genişlik.
       Altına meta-ozel.js'in "Piyasalar" bandı girer (piyasa özeti · ABD'de hareketli hisseler · döviz çapraz kurları,
       grafiksiz). Düzen bandın kendi genişliğine göre (container query):
         ≥ 1200 px : üç eşit kart yan yana; kutu YATAY φ (yükseklik = genişlik / φ; 440 → 272 px); bant ≤ 300 px
         < 1200 px : tek panel + üç sekme düğmesi; panel 272 px (sekme + 3 satır + rozet payı); tablet ≤ 320, telefon ≤ 360 px
       Gereç çizilene kadar kutu sade "yükleniyor" zemini gösterir (beyaz boş kutu yok). */
[class*="_economy-content-wrapper_"] { display: block !important; }
[class*="_economy-content-wrapper_"] > [class*="_economy-sidebar_"] { display: none !important; }
/* Ekonomi sayfasında sarmalın fazladan iç boşluğu (tablet 20, telefon 12 px) kalkar: kenar boşluğu ana sayfa gibi 16 px */
[class*="_economy-category-layout_"] [class*="_economy-content-wrapper_"] { padding: 0 !important; }
/* haberler ile bant arası φ ölçeğiyle 26 px; bölümler arası sitenin 60 px'i korunur */
[class*="_economy-section_"] [class*="_economy-news-grid_"] > [class*="_news-grid_"] { margin-bottom: 0 !important; }
/* masaüstünde sütun sayısı haber sayısına göre (meta-ozel.js ekonomiSutun: 3 ya da 4, en çok haber tam satırda) */
@media (min-width: 1025px) {
  [class*="_economy-section_"] [class*="_economy-news-grid_"] > [class*="_news-grid_"],
  [class*="_economy-category-layout_"] [class*="_economy-news-grid_"] {
    grid-template-columns: repeat(var(--mah-sutun, 3), minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

.mah-piyasa {
  --adet: 3; --ara: 16px; --panel: 272px;
  container: piyasa / inline-size;
  box-sizing: border-box; width: 100%; margin: 26px 0 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.mah-piyasa * { box-sizing: border-box; }
/* bekleme: kartlar tam genişlikte dizilir (gereç doğru boyutta çizilir) ama yer kaplamaz, görünmez */
.mah-piyasa:not(.mah-piyasa--acik) { height: 0; margin: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.mah-piyasa--acik { animation: mahPiyasaAc .45s ease both; }
@keyframes mahPiyasaAc { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* başlık satırı: ▌Piyasalar — alt başlık ——— Veriler: TradingView (22 px) */
.mah-piyasa__ust { display: flex; align-items: center; gap: 12px; min-height: 22px; margin: 0 0 6px; }
.mah-piyasa__baslik {
  margin: 0; flex: none; font-family: Lora, Georgia, serif; font-size: 17px; font-weight: 700; line-height: 22px;
  color: #2c3e50; white-space: nowrap;
}
.mah-piyasa__baslik::before {
  content: ""; display: inline-block; width: 4px; height: 15px; margin-right: 9px; vertical-align: -2px;
  border-radius: 2px; background: #e74c3c;
}
.mah-piyasa__alt {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  font-size: 12px; line-height: 22px; color: var(--mah-soluk); white-space: nowrap; overflow: hidden;
}
.mah-piyasa__alt::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--mah-cizgi); }
.mah-piyasa__not { flex: none; font-size: 11.5px; line-height: 22px; color: var(--mah-soluk) !important; text-decoration: none; white-space: nowrap; }
.mah-piyasa__not:hover { text-decoration: underline; }

/* sekmeler (tablet ve telefon) */
.mah-piyasa__sekmeler { display: none; gap: 6px; }
.mah-piyasa__sekme {
  flex: 1 1 auto; height: 30px; padding: 0 12px; margin: 0; cursor: pointer; white-space: nowrap;
  font: 600 12.5px/28px Inter, system-ui, sans-serif; color: var(--mah-murekkep);
  background: #fff; border: 1px solid #e6e1da; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.mah-piyasa__sekme[aria-selected="true"] { background: var(--mah-murekkep); border-color: var(--mah-murekkep); color: #fff; }
.mah-piyasa__sekme:focus-visible { outline: 2px solid #e74c3c; outline-offset: 2px; }

.mah-piyasa__izgara { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ara); }
.mah-piyasa__kart { margin: 0; min-width: 0; display: none; }
.mah-piyasa__kart--etkin { display: block; }
.mah-piyasa__kutu {
  position: relative; overflow: hidden; width: 100%; height: var(--panel);
  background: #f7f5f2; border: 1px solid #ebe7e1; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(21, 23, 28, .06);
}
.mah-piyasa__kutu::before {
  content: "Veriler yükleniyor…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--mah-soluk);
}
.mah-piyasa__kart--hazir .mah-piyasa__kutu { background: #fff; }
.mah-piyasa__kart--hazir .mah-piyasa__kutu::before { content: none; }
.mah-piyasa__kutu .tradingview-widget-container,
.mah-piyasa__kutu .tradingview-widget-container__widget,
.mah-piyasa__kutu iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; border: 0; }
.mah-piyasa__kart:not(.mah-piyasa__kart--hazir) iframe { visibility: hidden; }
/* hisse listesi satır sayısını TradingView belirler (satır 60 px): gereç 246 px'te 3 tam satırla biter (19.11 ölçümü),
   altta kalan 26 px bizim dipnot satırımız → yarım kesik 4. satır görünmez */
.mah-piyasa__kart--hisse .mah-piyasa__kutu .tradingview-widget-container { bottom: auto; height: calc(100% - 26px) !important; }
.mah-piyasa__kart--hisse.mah-piyasa__kart--hazir .mah-piyasa__kutu::after {
  content: "Gün içinde en hareketli ABD hisseleri"; position: absolute; left: 16px; right: 16px; bottom: 0; height: 26px;
  font-size: 11px; line-height: 25px; color: var(--mah-soluk); border-top: 1px solid #f0ede8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mah-piyasa__kutu .tradingview-widget-copyright { display: none; }

/* tablet ve telefon: tek panel, sekmeler başlık satırında */
@container piyasa (max-width: 1199.98px) {
  .mah-piyasa__alt { display: none; }
  .mah-piyasa__sekmeler { display: flex; flex: 1; min-width: 0; justify-content: flex-start; }
  .mah-piyasa__sekme { flex: 0 1 auto; }
  .mah-piyasa__ust { min-height: 30px; margin-bottom: 8px; }
}
/* telefon: başlık + not üstte, sekmeler altta tam genişlik eşit pay */
@container piyasa (max-width: 599.98px) {
  .mah-piyasa__ust { flex-wrap: wrap; row-gap: 8px; justify-content: space-between; }
  .mah-piyasa__sekmeler { order: 3; flex: 1 1 100%; }
  .mah-piyasa__sekme { flex: 1 1 auto; padding: 0 9px; font-size: 12px; }
}
/* masaüstü: üç eşit kart yan yana, kutu yatay φ */
@container piyasa (min-width: 1200px) {
  .mah-piyasa__izgara { grid-template-columns: repeat(var(--adet), minmax(0, 1fr)); }
  .mah-piyasa__kart { display: block; }
  .mah-piyasa__kutu { height: max(calc((100cqw - 2 * var(--ara)) / 3 / 1.618), 270px); }
}
@media (max-width: 768px) { .mah-piyasa { margin-top: 20px; } }

/* 12 · Haberde X (Twitter) gönderisi (19.11.2026; site_yayin.py "x_gonderi" alanı)
       Özgün blockquote React'ın düğümüdür, gizlenir (mah-x-kaynak); kopyası div.mah-x içinde widgets.js ile çizilir.
       Yüklenene kadar sade bir bağlantı kartı görünür; X yüklenemezse aynı kart bağlantı olarak kalır. */
div[class*="_content-text_"] .mah-x-kaynak { display: none !important; }
div[class*="_content-text_"] .mah-x {
  display: flex; flex-direction: column; align-items: center;
  max-width: 550px; margin: 26px auto;
}
div[class*="_content-text_"] .mah-x > blockquote.twitter-tweet {
  position: relative; box-sizing: border-box; width: 100%; margin: 0; padding: 14px 18px 14px 58px;
  background: #fff; border: 1px solid #e1e4e8; border-radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.4; font-style: normal;
}
div[class*="_content-text_"] .mah-x > blockquote.twitter-tweet::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  background: center / 15px 15px no-repeat #0f1419 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
  border-radius: 50%;
}
div[class*="_content-text_"] .mah-x > blockquote.twitter-tweet a {
  color: #0f1419; font-weight: 700; text-decoration: none;
}
div[class*="_content-text_"] .mah-x > blockquote.twitter-tweet a::after { content: " →"; color: #6b7280; font-weight: 400; }
div[class*="_content-text_"] .mah-x > blockquote.twitter-tweet::after {
  content: "Gönderi yükleniyor…"; display: block; margin-top: 2px; font-size: 12.5px; color: var(--mah-soluk);
}
div[class*="_content-text_"] .mah-x--yedek > blockquote.twitter-tweet::after { content: "Gönderiyi X'te görüntüleyin"; }
div[class*="_content-text_"] .mah-x .twitter-tweet-rendered { margin: 0 auto !important; }
