:root {
  /* env(safe-area-inset-bottom) Android'de (özellikle klasik 3 tuşlu
     navigasyon çubuğunda) tutarsız/hep 0 dönebiliyor — bu yüzden alt menü
     bazı cihazlarda o çubuğun içine gömülüyordu. base.html'deki JS, gerçek
     boşluğu ekranda ölçüp bu değişkeni dolduruyor; env() zaten doğruysa
     (ör. iOS) max() ile hiçbir şey değişmiyor, env() yanlışsa (0 dönüyorsa)
     bu ölçülen değer devreye giriyor. */
  --measured-safe-bottom: 0px;
  /* ---- Renk sistemi: koyu mor marka kimliği, açıktan koyuya geçişli ---- */
  --bg: #0c0720;
  --bg-soft: #17102e;
  --ink: #f1eef8;
  --muted: #a79fc0;
  --muted-soft: #766e91;
  --accent: #7c3aed;
  --accent-dark: #4c1d95;
  --accent-light: #a78bfa;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --accent-soft-strong: rgba(124, 58, 237, 0.28);
  --card-bg: #170f30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --danger: #f0625e;
  --danger-soft: rgba(240, 98, 94, 0.15);
  --success: #4cbf78;
  --success-soft: rgba(76, 191, 120, 0.15);

  /* ---- Boşluk skalası ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 40px;
  --space-8: 56px;

  /* ---- Köşe yuvarlaklığı ---- */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 999px;

  /* ---- Gölgeler: koyu zeminde belirginlik için siyah tabanlı ---- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 10px 26px rgba(124, 58, 237, 0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --header-h: 68px;

  /* Mobil chat/ileti sayfalarında JS (visualViewport) tarafından piksel
     cinsinden güncellenir — klavye açılınca gerçek görünür yüksekliği
     yansıtır. JS çalışmadan önce/desteklenmeyen tarayıcılarda 100dvh'e düşer. */
  --app-height: 100dvh;
}

/* ---- Sebze temaları — Profil > Temalar'dan seçilir. "patlıcan" varsayılan,
   yukarıdaki :root ile birebir aynı olduğu için ayrı bir blok gerekmiyor.
   Eskiden bu temalar SADECE vurgu (accent) rengini değiştiriyordu, zemin/kart
   tonu hepsinde ortak (patlıcanın mor tonu) kalıyordu — kullanıcı isteği:
   Karadut/Böğürtlen'deki gibi HEPSİNDE zemin/kart/bg-soft üçlü kademesi de
   kendi sebzesinin rengine göre uyumlu bir tonda olsun. Aynı üç kademeli
   derinlik kuralı burada da geçerli: bg (en koyu) < card-bg < bg-soft
   (hover/rozet gibi "yükseltilmiş" yüzeyler) — ama Karadut/Böğürtlen'in
   aksine bunlar "gece modu" değil, hâlâ sitenin normal koyuluğunda, sadece
   kendi vurgu rengine doğru hafifçe renklendirilmiş. */
[data-theme="zeytin"] {
  --bg: #0a0d06;
  --card-bg: #141a0c;
  --bg-soft: #212b13;
  --muted: #a3ac92;
  --muted-soft: #737d64;
  --accent: #6b8e23;
  --accent-dark: #3d5211;
  --accent-light: #a3c65a;
  --accent-soft: rgba(107, 142, 35, 0.18);
  --accent-soft-strong: rgba(107, 142, 35, 0.28);
  --shadow-accent: 0 10px 26px rgba(107, 142, 35, 0.45);
}
[data-theme="havuc"] {
  --bg: #120b04;
  --card-bg: #1f1309;
  --bg-soft: #301f10;
  --muted: #c2a68c;
  --muted-soft: #8a7361;
  --accent: #f4941e;
  --accent-dark: #b8630a;
  --accent-light: #ffb75e;
  --accent-soft: rgba(244, 148, 30, 0.18);
  --accent-soft-strong: rgba(244, 148, 30, 0.28);
  --shadow-accent: 0 10px 26px rgba(244, 148, 30, 0.45);
}
[data-theme="domates"] {
  --bg: #120709;
  --card-bg: #1e0d10;
  --bg-soft: #2f151a;
  --muted: #b89298;
  --muted-soft: #7d5f63;
  --accent: #e63946;
  --accent-dark: #a4161a;
  --accent-light: #ff7b7b;
  --accent-soft: rgba(230, 57, 70, 0.18);
  --accent-soft-strong: rgba(230, 57, 70, 0.28);
  --shadow-accent: 0 10px 26px rgba(230, 57, 70, 0.45);
}
[data-theme="biber"] {
  --bg: #051009;
  --card-bg: #0a1a11;
  --bg-soft: #132b1b;
  --muted: #94b39f;
  --muted-soft: #647d6c;
  --accent: #2fa84f;
  --accent-dark: #1b6b32;
  --accent-light: #7ee2a0;
  --accent-soft: rgba(47, 168, 79, 0.18);
  --accent-soft-strong: rgba(47, 168, 79, 0.28);
  --shadow-accent: 0 10px 26px rgba(47, 168, 79, 0.45);
}
[data-theme="sogan"] {
  --bg: #0f0d05;
  --card-bg: #1a150a;
  --bg-soft: #2a2113;
  --muted: #b3a98c;
  --muted-soft: #7d765c;
  --accent: #c9971d;
  --accent-dark: #8a6a10;
  --accent-light: #f0cf6b;
  --accent-soft: rgba(201, 151, 29, 0.18);
  --accent-soft-strong: rgba(201, 151, 29, 0.28);
  --shadow-accent: 0 10px 26px rgba(201, 151, 29, 0.45);
}

/* ---- Karadut ("gece modu"): kullanıcı isteği — Tumblr'ın koyu temasında
   sayfa zemini/kart/alıntı (reblog, "anonim sordu") kutularının birbirinden
   belirgin, ayrı tonlarla ayrıldığını fark edip aynısını istedi. Diğer
   sebze temaları SADECE vurgu rengini değiştiriyordu (zemin/kart hepsinde
   ortaktı) — bu tema BİLEREK farklı: gerçek siyaha yakın bir zemin, ondan
   net bir kademe açık kart rengi, kartın da üstünde daha da açık bir
   "yükseltilmiş" yüzey tonu (bg < card-bg < bg-soft) veriyoruz. .reblog-note/
   .question-quote gibi kutular zaten `background: var(--bg)` kullanıyor —
   yani kart üstünde otomatik olarak "çukurda" duran, en koyu ton oluyorlar,
   Tumblr'daki alıntı kutularıyla aynı hissi veriyor, ayrı bir değişken
   eklemeye gerek kalmadı. */
[data-theme="karadut"] {
  /* Üç kademeli derinlik — diğer temalarda card-bg ile bg-soft neredeyse
     aynı tondu (site biraz "düz" hissettiriyordu); burada bilerek net
     ayrıştırdık: bg (en koyu, sayfa zemini) < card-bg (yazı kartları) <
     bg-soft (hover/rozet/çip gibi "yükseltilmiş" küçük yüzeyler). */
  --bg: #08050c;
  --card-bg: #130e1a;
  --bg-soft: #1d1626;
  --ink: #f3eef8;
  --muted: #9d94b3;
  --muted-soft: #6b6280;
  --accent: #b8336a;
  --accent-dark: #7a1f47;
  --accent-light: #e0629a;
  --accent-soft: rgba(184, 51, 106, 0.18);
  --accent-soft-strong: rgba(184, 51, 106, 0.28);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow-accent: 0 10px 26px rgba(184, 51, 106, 0.45);
}

/* ---- Böğürtlen: Karadut'un daha da uçlaştırılmış hâli — kullanıcı isteği
   "arkaplan RGB 0 0 0 siyah olacak, fümeden koyu butonlar falan olacak".
   İki temel farkı var: (1) zemin GERÇEK saf siyah (OLED ekranlarda pikseller
   tamamen kapanır, pil de tasarruf eder), (2) Karadut'un mor tonu yerine
   TAMAMEN NÖTR/gri-siyah bir palet — vurgu rengi bile diğer temalardaki
   gibi parlak/doygun değil, bilerek "füme" (dumanlı, düşük doygunluklu)
   koyulukta; butonlar/linkler göz alıcı parlamak yerine sessizce duruyor. */
[data-theme="bogurtlen"] {
  --bg: #000000;
  --card-bg: #0d0d0d;
  --bg-soft: #1a1a1a;
  --ink: #f2f2f2;
  --muted: #999999;
  --muted-soft: #666666;
  --accent: #5c4a70;
  --accent-dark: #3a2d4a;
  --accent-light: #8a72a3;
  --accent-soft: rgba(92, 74, 112, 0.22);
  --accent-soft-strong: rgba(92, 74, 112, 0.32);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-accent: 0 10px 26px rgba(92, 74, 112, 0.4);
}

/* ---- Sarımsak: kullanıcı isteği — "arkaplanı beyaz ve site butonları
   açık gri tonlarında ferah bir tema". Diğer TÜM temalar (Karadut/
   Böğürtlen'in "gece modu" uçları dahil) koyu zemin üzerine kurulu — bu
   sitedeki İLK açık (light) tema, bu yüzden diğerlerinden FARKLI olarak
   --ink ve --border'ı da (beyaz zeminde neredeyse görünmez kalırdı,
   diğer temalar bunları hiç değiştirmiyor çünkü hepsi zaten koyu)
   ELE ALIYOR. Vurgu rengi bilerek doygun/renkli değil, nötr gri — hem
   "gri tonlarında" isteğini karşılıyor hem beyaz metinle yeterli
   kontrastı koruyor (saf beyaza yakın bir vurgu, üstündeki beyaz yazıyı
   okunaksız yapardı). Karnıbahar'ın gerçek bir emojisi olmadığı için
   (bkz. THEME_CHOICES) tema adı "Sarımsak". */
[data-theme="sarimsak"] {
  --bg: #ffffff;
  --card-bg: #f7f7f8;
  --bg-soft: #eceef0;
  --ink: #1c1c1f;
  --muted: #6b7280;
  --muted-soft: #9aa0a8;
  --accent: #71717a;
  --accent-dark: #52525b;
  --accent-light: #a1a1aa;
  --accent-soft: rgba(113, 113, 122, 0.12);
  --accent-soft-strong: rgba(113, 113, 122, 0.2);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-accent: 0 10px 26px rgba(113, 113, 122, 0.35);
}

* { box-sizing: border-box; }
html {
  /* Standalone (PWA/TWA) görünümde bazı WebView'lar metni "daha okunaklı"
     yapmak için otomatik büyütüyor (font-boosting) — sayfa yakınlaştırılmış
     gibi açılıyor, kullanıcı elle uzaklaştırmak zorunda kalıyor. Bunu kapatıyoruz. */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Bir yazıdaki uzun/boşluksuz bir kelime (URL vb.) ya da genişliği
     sınırlanmamış bir görsel, sayfayı YATAY kaydırılabilir hâle getirip
     sabit (fixed) alt menünün de o kaydırmayla birlikte hafifçe sağa/sola
     kayması gibi görünmesine yol açabiliyordu — bunu kökten engelliyoruz. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15.5px;
  padding-bottom: calc(84px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px))); /* alt menü için yer bırak */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, iframe, video { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: inherit; }

::selection { background: rgba(124, 58, 237, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* İnce, modern kaydırma çubuğu (webkit) — kaydırılabilir chat/panel alanlarında */
.chat-box::-webkit-scrollbar, #chat-messages::-webkit-scrollbar, .picker-panel::-webkit-scrollbar {
  width: 6px;
}
.chat-box::-webkit-scrollbar-thumb, #chat-messages::-webkit-scrollbar-thumb, .picker-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

/* ========================================================================
   Üst bar (masaüstü header) — sadece >768px genişlikte görünür; mobilde
   navigasyonu alttaki modern bottom-nav üstleniyor (aşağıda tanımlı).
   ======================================================================== */

.topbar {
  display: none; /* varsayılan: mobil — media query ile 769px+ açılır */
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 7, 32, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-dot { color: var(--accent); }

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  flex: 1;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  position: relative;
}
.top-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.top-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

/* Masaüstü Chat/Sesli Oda birleşik menü öğesi — .top-nav a ile aynı
   görünüm ama <button> olduğu için ayrı, eşleşen bir kural seti (mobildeki
   .bottom-nav-item-wrap/.bottom-nav-dropdown'ın masaüstü karşılığı). */
.top-nav-item-wrap { position: relative; display: inline-flex; }
.top-nav-trigger {
  color: var(--muted); background: none; border: none; cursor: pointer; font-family: inherit;
  font-weight: 600; font-size: 0.92rem; padding: 8px 14px; border-radius: var(--radius-full);
  transition: color 0.18s var(--ease), background 0.18s var(--ease); position: relative;
  white-space: nowrap;
}
.top-nav-trigger:hover { color: var(--ink); background: var(--bg-soft); }
.top-nav-trigger.is-active { color: var(--accent); background: var(--accent-soft); }

.top-nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1000;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  min-width: 160px;
}
.top-nav-dropdown[hidden] { display: none; }
.top-nav-dropdown a.top-nav-dropdown-item {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; position: relative; transition: background 0.15s var(--ease);
}
.top-nav-dropdown a.top-nav-dropdown-item:hover { background: var(--bg); }
.top-nav-dropdown a.top-nav-dropdown-item.is-active { color: var(--accent); }
.top-nav-dropdown-item .badge--inline { margin-left: auto; }

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.topbar-avatar-link { display: flex; border-radius: 50%; transition: transform 0.15s var(--ease); }
.topbar-avatar-link:hover { transform: scale(1.06); }
.topbar-avatar-link .avatar--tiny { width: 36px; height: 36px; font-size: 1rem; }

.who { color: var(--ink); font-weight: bold; }

.new-post-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff !important; padding: 9px 18px;
  border-radius: var(--radius-full); font-size: 0.86rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease);
}
.new-post-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.new-post-link:active { transform: translateY(0) scale(0.97); }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 18px 48px;
}

/* ========================================================================
   Alt navigasyon (mobile) — yüzen, cam efektli kapsül. >768px'de gizlenir.
   ======================================================================== */

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  height: 64px;
  border-radius: var(--radius-xl);
  z-index: 999;
  /* İnce, seçilen temanın (patlıcan/zeytin/havuç vb.) accent rengiyle hafif
     neon parlayan bir çerçeve — Claude Code'un giriş kutusundaki ince renkli
     hat gibi. */
  box-shadow: 0 16px 40px rgba(10, 14, 24, 0.28), 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 14px var(--accent-soft-strong);
  border: 1px solid var(--accent);
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.bottom-nav a svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease-spring);
}

.bottom-nav a.active svg { opacity: 1; stroke: var(--accent-light); transform: scale(1.08); }
.bottom-nav a.active { background: rgba(255, 255, 255, 0.14); }
.bottom-nav a:active { transform: scale(0.9); }
.bottom-nav a:hover svg { opacity: 1; }

.bottom-nav .badge {
  position: absolute;
  top: 2px;
  right: 2px;
}

/* Chat/Sesli Oda birleşik ikonu — üstündeki menü açılır yukarı doğru
   (bottom-nav zaten ekranın altında sabit olduğu için aşağı açılsa
   ekran dışına taşardı). */
.bottom-nav-item-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.bottom-nav-trigger {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-full); background: none; border: none; cursor: pointer; padding: 0;
  transition: background 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
  position: relative;
}
.bottom-nav-trigger svg {
  width: 23px; height: 23px; fill: none; stroke: #ffffff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.62;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease-spring);
}
.bottom-nav-trigger.active svg { opacity: 1; stroke: var(--accent-light); transform: scale(1.08); }
.bottom-nav-trigger.active { background: rgba(255, 255, 255, 0.14); }
.bottom-nav-trigger:active { transform: scale(0.9); }
.bottom-nav-trigger:hover svg { opacity: 1; }

.bottom-nav-dropdown {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  min-width: 150px; z-index: 1000;
}
.bottom-nav-dropdown[hidden] { display: none; }
.bottom-nav-dropdown a.bottom-nav-dropdown-item {
  display: flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  white-space: nowrap; position: relative; transition: background 0.15s var(--ease);
}
.bottom-nav-dropdown a.bottom-nav-dropdown-item:hover { background: var(--bg); }
.bottom-nav-dropdown a.bottom-nav-dropdown-item.active { color: var(--accent); }
.bottom-nav-dropdown-item .badge { position: static; margin-left: auto; box-shadow: none; }

.icon--with-badge { position: relative; display: inline-block; }
.badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  box-shadow: 0 0 0 2px rgba(10, 14, 24, 0.88);
}
.badge--inline {
  position: static; box-shadow: none; margin-left: 6px; transform: none;
}

/* ---------- Genel ---------- */

.hero { text-align: center; margin-bottom: 36px; }
.hero--small { margin-bottom: 28px; }
.hero h1 {
  font-size: 2.4rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.02em;
  position: relative; display: inline-block;
}
.hero h1::after {
  content: "";
  display: block;
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: 12px auto 0;
  border-radius: 2px;
}
.hero p { color: var(--muted); font-size: 0.98rem; }
.thread-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; text-align: left;
}
.thread-header-link {
  color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.chat-back-arrow {
  color: var(--muted); text-decoration: none; font-size: 1.5rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: var(--radius-full);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.chat-back-arrow:hover { color: var(--accent); background: var(--accent-soft); }
.thread-header-link:hover .thread-header-name { color: var(--accent); }
.thread-header-name { font-size: 1.02rem; font-weight: 700; transition: color 0.15s var(--ease); }

.flash {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.flash p { margin: 4px 0; }

.empty {
  color: var(--muted); text-align: center; font-style: italic; margin-top: 32px;
  padding: 32px 24px; background: var(--card-bg); border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg-soft);
  padding: 5px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.tabs a.tab-active { background: var(--card-bg); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Misafir (üye olmayan ziyaretçi) mini paylaşım kutusu ---------- */

.guest-composer {
  background: var(--card-bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
/* Akordiyon başlığı — tıklanana kadar sadece bu satır görünüyor, form
   gizli kalıyor (kullanıcı isteği: "çok yer kaplıyor... aşağı ok yapalım
   basınca form açılsın"). */
.guest-composer-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; padding: 6px 0;
  font-family: inherit; text-align: left;
}
.guest-composer-toggle .avatar--ghost { width: 32px; height: 32px; }
.guest-composer-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); flex: 1; }
.guest-composer-chevron {
  width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.guest-composer-toggle[aria-expanded="true"] .guest-composer-chevron { transform: rotate(180deg); }

.guest-composer-body { margin-top: 14px; }
.guest-composer-form { display: flex; flex-direction: column; gap: 10px; }
.guest-composer-textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.guest-composer-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.guest-composer-row { display: flex; gap: 12px; flex-wrap: wrap; }
.guest-composer-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.78rem; font-weight: 600; color: var(--muted); flex: 1; min-width: 140px; }
.guest-composer-field input {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.guest-composer-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.guest-composer-submit { align-self: flex-end; }
.guest-composer-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.guest-composer-cooldown {
  margin: 10px 0 0; padding: 9px 12px; background: var(--bg-soft); border-radius: var(--radius-sm);
  font-size: 0.8rem; color: var(--muted); text-align: center;
}

/* ---------- Yazı kartı ---------- */

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  margin-bottom: 20px;
  scroll-margin-top: 90px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }

/* ---------- Yazı kartı "⋯" menüsü: sabitle / linki kopyala / paylaş ---------- */
.post-menu-wrap { position: absolute; top: 18px; right: 18px; z-index: 5; }
.post-menu-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1.15rem; line-height: 1; padding: 4px 8px; border-radius: var(--radius-xs);
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.post-menu-btn:hover { background: var(--bg-soft); color: var(--ink); }
.post-menu-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 170px;
}
.post-menu-dropdown[hidden] { display: none; }
.post-menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: none;
  border-radius: var(--radius-xs); font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); cursor: pointer; white-space: nowrap; transition: background 0.12s var(--ease);
}
.post-menu-item:hover { background: var(--accent-soft); color: var(--accent); }
.pinned-post-badge { margin: 0 0 10px; color: var(--accent); font-size: 0.8rem; font-weight: 700; }

/* ---------- Yazı paylaşma penceresi (global, base.html) ---------- */
.post-share-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,14,0.65);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.post-share-overlay[hidden] { display: none; }
.post-share-box {
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 380px; max-height: 80vh;
  display: flex; flex-direction: column; padding: 18px;
}
.post-share-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.post-share-header h3 { margin: 0; font-size: 1.05rem; }
#post-share-close-btn { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px; }
#post-share-close-btn:hover { color: var(--ink); }
#post-share-search-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font-size: 0.9rem;
  margin-bottom: 10px;
}
.post-share-user-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 80px; }
.post-share-user-row {
  display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none;
  padding: 8px 8px; border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  font-family: inherit; font-size: 0.9rem; color: var(--ink); transition: background 0.12s var(--ease);
}
.post-share-user-row:hover { background: var(--bg-soft); }
.post-share-user-row--selected { background: var(--accent-soft); color: var(--accent); }
.post-share-user-row .avatar--tiny { margin: 0; }
.post-share-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 20px 0; }
.post-share-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.post-share-selected-label { font-size: 0.8rem; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#post-share-send-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; font-weight: 700; font-size: 0.88rem; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.12s var(--ease);
}
#post-share-send-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Yazıdan story önizleme penceresi (.post-share-overlay'i paylaşıyor) ---------- */
.post-story-box {
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 340px; max-height: 88vh; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 14px;
}
#post-story-preview-img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 9/16; object-fit: cover; background: var(--bg-soft); }

.post-story-controls { display: flex; flex-direction: column; gap: 12px; }
.post-story-control-row { display: flex; flex-direction: column; gap: 8px; }
.post-story-control-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.post-story-control-hint { font-weight: 400; text-transform: none; opacity: 0.85; }
.post-story-swatches { display: flex; gap: 8px; }
.post-story-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); padding: 0; cursor: pointer;
  transition: transform 0.12s var(--ease), border-color 0.12s var(--ease); flex-shrink: 0;
}
.post-story-swatch--theme { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.post-story-swatch--selected { border-color: var(--accent); transform: scale(1.12); }
.post-story-size-btns { display: flex; gap: 8px; }
.post-story-size-btn {
  flex: 1; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 8px; font-weight: 700; font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.post-story-size-btn--selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.post-story-control-row--link input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font-size: 0.84rem;
  font-family: inherit;
}
.post-story-control-row--link input + input { margin-top: 6px; }

.post-story-actions { display: flex; gap: 10px; }
#post-story-cancel-btn {
  flex: 1; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
#post-story-confirm-btn {
  flex: 2; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: opacity 0.12s var(--ease);
}
#post-story-confirm-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- DM'de paylaşılan yazı balonu ---------- */
.chat-shared-post {
  display: block; text-decoration: none; color: inherit; background: var(--bg-soft);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 4px;
}
.chat-shared-post:hover { border-color: var(--accent); }
.chat-shared-post-tag { display: block; font-size: 0.76rem; color: var(--accent); font-weight: 700; margin-bottom: 3px; }
.chat-shared-post-title { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.chat-shared-post-snippet { display: block; font-size: 0.82rem; color: var(--muted); }

.post-card h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }

.meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 12px; }
.post-meta { display: flex; align-items: center; gap: 8px; }
.post-meta-avatar-link { display: flex; flex-shrink: 0; }
.post-meta .avatar--tiny { margin: 0; width: 36px; height: 36px; font-size: 1rem; }
.post-card-jump { margin: 0 0 4px; }
.post-card-jump a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.post-card-jump a:hover { color: var(--accent); }
.content { margin: 0 0 14px; white-space: pre-wrap; line-height: 1.65; }

/* ---------- Anket yazısı ---------- */
.poll-block { margin: 0 0 14px; }
.poll-question { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; box-sizing: border-box; text-align: left; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font-family: inherit;
  font-size: 0.9rem; cursor: pointer; overflow: hidden; transition: border-color 0.15s var(--ease);
}
.poll-option:hover:not(:disabled) { border-color: var(--accent); }
.poll-option:disabled { cursor: default; }
.poll-option--selected { border-color: var(--accent); font-weight: 700; }
.poll-option-bar {
  position: absolute; inset: 0; right: auto; background: var(--accent-soft); border-radius: var(--radius-sm);
  transition: width 0.25s var(--ease); z-index: 0;
}
.poll-option--selected .poll-option-bar { background: var(--accent-soft-strong); }
.poll-option-label, .poll-option-pct { position: relative; z-index: 1; }
.poll-option-label { flex: 1; }
.poll-option-pct { color: var(--muted); font-size: 0.82rem; font-weight: 700; flex-shrink: 0; }
.poll-total-votes { margin: 10px 0 0; font-size: 0.78rem; color: var(--muted); }

/* ---------- Uzun yazı/yorum kısaltma ("uzun yazıları kısalt" ayarı açıkken) ----------
   ~260px, gövde yazı tipiyle (15.5px, satır yüksekliği 1.65) kabaca 10 satıra denk
   geliyor. İçerik tabanda %40 solukluğa kadar yumuşakça siliklenip altında
   ortalanmış "devamını oku" butonu çıkıyor — asıl kısaltma JS ile, içerik gerçekten
   bu yüksekliği aşıyorsa uygulanıyor (kısa yazılarda hiç görünmüyor). */
.post-content-clamp { position: relative; max-height: 260px; overflow: hidden; }
.post-content-clamp.post-content-clamp--overflowing {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0.4) 100%);
}
.post-content-clamp.post-content-clamp--expanded { max-height: none; -webkit-mask-image: none; mask-image: none; }
.read-more-btn {
  display: block; margin: 10px auto 0; padding: 7px 18px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--card-bg); color: var(--accent);
  font-weight: 700; font-size: 0.85rem; font-family: inherit; cursor: pointer;
}
.read-more-btn:hover { background: var(--accent-soft); }
.read-more-btn[hidden] { display: none; }

.mention-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.mention-link:hover { text-decoration: underline; }

.post-image-row {
  display: flex; gap: 4px; margin: 0 0 14px; border-radius: var(--radius-sm); overflow: hidden;
}
.post-image-row img {
  flex: 1 1 0; min-width: 0; width: 100%; object-fit: cover; display: block;
}
/* Tek görsel: hiç kırpma yok, doğal en-boy oranıyla gösteriliyor — sadece
   aşırı uzun görseller (ör. uzun ekran görüntüleri) bir üst sınıra
   sığdırılıyor (kırpma değil, küçültme — object-fit:contain). */
.post-image-row--1 { display: block; }
.post-image-row--1 img {
  height: auto; max-height: 700px; object-fit: contain; background: var(--bg);
}
/* 2+ görsel: yan yana ızgara, görsel sayısı arttıkça her kare küçülüyor. */
.post-image-row--2 img { height: 260px; }
.post-image-row--3 img,
.post-image-row--4 img { height: 190px; }

.post-media-block { margin: 0 0 14px; }
.post-media-block video {
  width: 100%; max-height: 480px; border-radius: var(--radius-sm); display: block; background: #000;
}
.post-audio-block {
  background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px;
}
.post-audio-meta { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.post-audio-block audio { width: 100%; }

.reblog-tag, .answer-tag {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
}

.reblog-note {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  margin: 0 0 12px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.92rem;
}

/* Yazının altında görünen etiketler (kullanıcı isteği: "post attım
   etiketle, ama postun altında görünmüyor") — .tag-chip ile aynı görsel
   dil, sadece post kartına sığacak kadar küçültülmüş. */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.post-tag-chip {
  text-decoration: none; background: var(--bg); border: 1px solid var(--border);
  color: var(--accent); border-radius: var(--radius-full); padding: 4px 12px; font-size: 0.8rem; font-weight: 600;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.post-tag-chip:hover { background: var(--accent); color: #fff; }

.question-quote {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  margin: 0 0 12px;
  font-style: italic;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.embed {
  margin: 14px 0;
}
.embed iframe {
  width: 100%;
  border-radius: var(--radius-xs);
}

/* Kullanıcı isteği: "basınca direkt spotify'a açılması, tumblr'da öyle" —
   Spotify'ın kendi gömülü player'ı, giriş yapmamış/Premium'u olmayan
   ziyaretçilere sadece 30sn'lik önizleme çalıyor (künh'ün değiştiremeyeceği
   bir Spotify kısıtı). Bunun yerine kapak/önizleme görünümünün üstüne
   şeffaf bir link kaplayıp tıklanınca gerçek şarkıyı yeni sekmede
   open.spotify.com'da açıyoruz. */
.embed--spotify {
  position: relative;
}
.spotify-open-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* Yazı/misafir paylaşımı editöründeki canlı player önizlemesi — linki
   yapıştırır yapıştırmaz, henüz yayınlamadan görünüyor. İçindeki .embed
   zaten kendi margin/border-radius'unu getiriyor, burada sadece dıştaki
   boşluğu ayarlıyoruz. */
.embed-live-preview:not([hidden]) { margin-top: 8px; }
.embed-live-preview .embed { margin: 0; }

.post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.inline-form { display: inline; }
/* .inline-form'un kendi "display: inline"i, tarayıcının varsayılan
   "[hidden]{display:none}" kuralını override ediyor (author CSS her zaman
   UA stylesheet'ini yener, özgüllük eşit olsa bile) — bu yüzden reblog
   toggle'ının "kaldır" formuna JS'in verdiği hidden attribute'u SESSİZCE
   yok sayılıyor, form görünür kalıp aynı anda İKİ reblog butonu
   (kaldırma formu + normal reblog butonu) gösteriyordu. .action-btn için
   zaten aynı sebeple bir override vardı, form'un kendisi için hiç yoktu. */
.inline-form[hidden] { display: none; }

.action-btn {
  background: var(--bg);
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), transform 0.12s var(--ease), box-shadow 0.15s var(--ease);
}
/* .action-btn'in display:inline-flex'i tarayıcının "[hidden]{display:none}"
   varsayılanıyla aynı özgüllükte — bu kural olmadan (ör. beğeni sayısı 0
   olunca gizlenen "kimler beğendi" linki gibi) hidden attribute'u JS
   tarafından verilse bile eleman görünür kalırdı. */
.action-btn[hidden] { display: none; }
/* Misafir ziyaretçiye görünen ama işlevsiz beğeni/reblog/yorum ikonları
   (bkz. _post_card.html) — hesap gerektiren işlemler için gerçek
   <button disabled> kullanılıyor, tıklama tarayıcı seviyesinde hiç
   ateşlenmiyor, sadece görsel olarak soluklaşıyor. */
.action-btn:disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.action-btn:hover { color: var(--accent); background: var(--accent-soft); }
.action-btn:active { transform: scale(0.95); }
.action-btn--active { background: var(--accent-soft-strong); color: var(--accent-dark); }
.action-btn--static { padding: 7px 14px; font-size: 0.82rem; color: var(--muted); cursor: default; }
.action-btn--static:hover { color: var(--muted); background: var(--bg); }
.action-btn--danger:hover { background: var(--danger-soft); color: var(--danger); }

/* Beğenilince kırmızı, dolu kalp — tema rengine (accent) bakılmaksızın
   Tumblr'daki gibi hep aynı, tanıdık kırmızı. */
.like-btn.action-btn--active { color: #ed1b41; background: rgba(237, 27, 65, 0.12); }

/* "beni takip etmeyenler" sayfasındaki "takip et" durumu — tema rengine
   bakılmaksızın hep aynı, tanıdık yeşil ("takip ediliyor" durumu zaten
   .action-btn--active ile tema rengini/seçtiğim rengi kullanıyor). */
.action-btn--follow-green { color: #1b9c4c; background: rgba(27, 156, 76, 0.12); }
.action-btn--follow-green:hover { color: #158a41; background: rgba(27, 156, 76, 0.2); }

/* ---------- Etkinlikler ---------- */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.event-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.event-card-header h3 { margin: 0; font-size: 1.15rem; }
.event-countdown { font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.event-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.event-badge--past { background: var(--bg-soft); color: var(--muted); }
.event-meta { margin: 0 0 4px; color: var(--muted); font-size: 0.85rem; }
.event-meta a { color: inherit; text-decoration: underline; }
.event-description { margin: 10px 0; line-height: 1.55; white-space: pre-wrap; }
.event-participants { margin: 12px 0; }
.event-participant-avatars { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.event-participant-avatars img, .event-participant-avatars .avatar--placeholder { width: 26px; height: 26px; font-size: 0.75rem; }
.event-participants-text { margin: 0; font-size: 0.82rem; color: var(--muted); }
.event-participants-text--empty { font-style: italic; }
.event-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.reblog-menu-wrap { position: relative; display: inline-flex; }
.reblog-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 150px;
}
.reblog-dropdown[hidden] { display: none; }
.reblog-dropdown-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: none;
  border-radius: var(--radius-xs); font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); cursor: pointer; white-space: nowrap; transition: background 0.12s var(--ease);
  text-decoration: none; box-sizing: border-box;
}
.reblog-dropdown-item:hover { background: var(--accent-soft); color: var(--accent); }

.reblog-source-frame {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-soft);
  padding: 14px 16px; margin-bottom: 18px;
}
.reblog-source-frame-label { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.reblog-source-frame-title { margin: 0 0 6px; font-weight: 700; }
.reblog-source-frame .content { margin: 0 0 8px; }
.reblog-source-frame .post-image-row img { border-radius: var(--radius-sm); }
.reblog-source-frame--link {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.reblog-source-frame--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.reblog-source-frame-img { max-width: 100%; border-radius: var(--radius-sm); margin-top: 4px; display: block; }
.action-btn--wide { display: block; width: 100%; text-align: center; margin: 18px 0; padding: 12px; }
.action-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 700; box-shadow: var(--shadow-accent); }
.action-btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--accent-light), var(--accent)); transform: translateY(-1px); }

.comments-block { margin-top: 14px; }

.comment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.comment-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px;
}
.comment-item[hidden] { display: none; }
/* Etkileşimler'den "yoruma git" ile gelince, hangi yorumun o olduğunu
   belli etmek için kısa süreliğine vurgulanıyor. */
.comment-item--highlighted { background: var(--accent-soft-strong); box-shadow: 0 0 0 2px var(--accent); transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
/* Etkileşimler'den "bir yazı" linkiyle (beğeni/reblog/bahsetme bildirimi)
   gelince, hangi yazı olduğunu belli etmek için aynı vurgu deseni. */
.post-card--highlighted { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); transition: box-shadow 0.4s var(--ease); }

/* Misafir (üye olmayan ziyaretçi) paylaşımı — kullanıcı isteği: "misafirin
   yazdıkları gri renkte olsa, her şeyi gri olsun, beğeni butonları dahil".
   Tek tek her rengi/sınıfı elle geçersiz kılmak yerine, kartın TAMAMINI
   grayscale filtresinden geçiriyoruz — metin, ikonlar, aktif/dolu beğeni
   kalbi, görseller, hepsi otomatik olarak gri oluyor; buton işlevselliği
   (tıklanabilirlik, hover) hiç etkilenmiyor, sadece görünüm soluklaşıyor. */
.post-card--guest { filter: grayscale(1); }
.comment-text { margin: 0; font-size: 0.9rem; flex: 1; line-height: 1.5; }
/* Yazan adı + (varsa) "↳ @kime cevap" TEK bir rozette — eskiden ikisi de
   aynı mor/kalın stille yan yana durup ("@x @y metin...") karışık
   görünüyordu (kullanıcı isteği). Rozetin arkaplanı sayesinde "bu bir isim
   etiketi" olduğu ilk bakışta belli oluyor, mesaj metni ondan tamamen ayrı. */
.comment-author-badge {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 2px 8px; margin-right: 6px; vertical-align: middle;
}
.comment-author { color: var(--accent); text-decoration: none; font-weight: 700; }
.comment-reply-target { color: var(--muted); font-size: 0.82em; font-weight: 500; }
.reply-btn {
  background: none; border: none; color: var(--muted); font-size: 0.75rem;
  cursor: pointer; font-family: inherit; white-space: nowrap; padding: 3px 5px;
  border-radius: 6px; transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.reply-btn:hover { color: var(--accent); background: var(--accent-soft); }
.comment-like-btn--active { color: var(--accent); }
.comment-item-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.comment-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; padding: 0 3px; }

.comment-replies {
  margin: 4px 0 4px 22px;
  padding-left: 12px;
  border-left: 2px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 8px;
}
.comment-item--reply { background: var(--card-bg); border: 1px solid var(--border); }

.comments-block--preview { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.comment-text--preview { font-size: 0.85rem; color: var(--muted); margin: 4px 0; }
.comment-more { font-size: 0.78rem; color: var(--muted); font-style: italic; margin: 4px 0 0; }

.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.4;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.comment-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.comment-input--highlight {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft-strong) !important;
}
.comment-form button {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
.comment-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.comment-form button:active { transform: scale(0.96); }

/* ---------- Blog sayfası ---------- */

.blog-page {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.cover-banner {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  position: relative;
}
.cover-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.28) 100%);
}
.cover-banner--empty { background: linear-gradient(135deg, var(--accent-light), var(--accent-dark)); }

.blog-header { text-align: center; margin-top: -48px; padding: 0 22px; margin-bottom: 30px; position: relative; z-index: 1; }
.blog-header h1 { margin-bottom: 4px; font-size: 1.6rem; }

/* Blog sahibi kendi arkaplan rengini seçebiliyor — site geneli açık ya da koyu
   temada olsun, blog-header içindeki metin/buton renkleri HER ZAMAN o kişinin
   SEÇTİĞİ arkaplana göre kontrastlı kalsın diye, global --ink'e güvenmek yerine
   burada iki yönde de (koyu seçim / açık seçim) yeniden tanımlıyoruz. */
.blog-page--dark-bg .blog-header {
  --ink: #f5f3ee;
  --muted: #c9c6bd;
  --border: rgba(255, 255, 255, 0.25);
  --card-bg: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.blog-page--dark-bg .blog-header .action-btn:hover { background: rgba(255, 255, 255, 0.12); }
.blog-page--light-bg .blog-header {
  --ink: #18181c;
  --muted: #6b6a72;
  --border: rgba(24, 24, 28, 0.14);
  --card-bg: rgba(24, 24, 28, 0.06);
  color: var(--ink);
}
.blog-page--light-bg .blog-header .action-btn:hover { background: rgba(24, 24, 28, 0.08); }

.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--card-bg);
  display: block; margin: 0 auto 12px; background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-md);
}
.lightbox-trigger { cursor: zoom-in; transition: opacity 0.15s var(--ease); }
.lightbox-trigger:hover { opacity: 0.92; }
.lightbox-trigger:active { opacity: 0.8; }
.avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 700; color: var(--muted); font-family: var(--font-display);
  background: var(--bg-soft);
}
.avatar--small { width: 48px; height: 48px; font-size: 1.2rem; margin: 0 auto 6px; }
.avatar--tiny { width: 32px; height: 32px; font-size: 0.9rem; margin: 0; }

/* Misafir (üye olmayan ziyaretçi) paylaşımlarının avatarı — emoji değil,
   gerçek bir hayalet SVG'si; hafif saydam/soluk, "hayalet gibi" hissi için. */
.avatar--ghost { background: var(--bg-soft); opacity: 0.82; }
.avatar--ghost svg { fill: var(--muted); }
.avatar-ghost-eye { fill: var(--card-bg); }

.follow-counts { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.follow-counts a { color: var(--muted); text-decoration: none; font-weight: 700; transition: color 0.15s var(--ease); }
.follow-counts a:hover { color: var(--accent); }

/* Takipçi sayısıyla aynı satırda/vurguda DEĞİL — bilinçli olarak ayrı,
   soluk bir satır: takipçi sayısını öne çıkarmadan küçük bir "ne zamandır
   burada" ipucu vermek için. Aktif bir durum varsa (bkz. .status-picker-wrap)
   bu satırın YERİNE geçiyor, ikisi birden gösterilmiyor. */
.joined-stat { color: var(--muted-soft); font-size: 0.78rem; margin: 0 0 10px; }

/* ---------- Kullanıcı durumu ("uyuyor", "çalışıyor" vb.) ----------
   Kullanıcı isteği: "künh'te bugün katıldı yazısını kaldıralım, oraya durum
   ekleyelim, kendi durumunu gördüğü yerden ayarlasak" — sonra: "seçim
   penceresi şeffaf olduğu için seçmek zor oluyor, %30 transparant bir
   zeminde göster, pencereyi ortala, şu an çok sağa yakın duruyor" —
   .post-share-overlay/.post-share-box ile AYNI desen (tam ekran koyu zemin
   + ortalanmış kutu), tetikleyici butona göre değil, ekrana göre ortalanıyor. */
.status-trigger {
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--muted-soft); font-size: 0.78rem; font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px;
}
.status-trigger-edit { font-size: 0.7rem; opacity: 0.55; }
.status-trigger:hover .status-trigger-edit { opacity: 1; }
.status-dropdown-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,14,0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.status-dropdown-overlay[hidden] { display: none; }
.status-dropdown-box {
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 320px; max-height: 80vh;
  overflow-y: auto; padding: 18px;
}
.status-dropdown-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.status-dropdown-header h3 { margin: 0; font-size: 1.05rem; }
#status-dropdown-close-btn { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px; }
#status-dropdown-close-btn:hover { color: var(--ink); }
.status-dropdown-box form { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.status-option {
  display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: none;
  border-radius: var(--radius-xs); font-family: inherit; font-size: 0.82rem; font-weight: 600;
  color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.12s var(--ease);
}
.status-option:hover { background: var(--accent-soft); color: var(--accent); }
.status-option--active { background: var(--accent-soft); color: var(--accent); }
.status-option--clear {
  grid-column: 1 / -1; color: var(--danger); text-align: center; margin-top: 4px;
  border-top: 1px solid var(--border); padding-top: 8px;
}
.status-option--clear:hover { background: var(--danger-soft); }

.follow-list { display: flex; flex-direction: column; gap: 8px; }
.follow-list-item {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card-bg);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.follow-list-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.bio { color: var(--muted); line-height: 1.55; }
.empty-bio { font-style: italic; }

.spotify-now-playing {
  display: flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 6px 12px 6px 6px;
  background: color-mix(in srgb, #1DB954 14%, var(--card-bg)); border: 1px solid color-mix(in srgb, #1DB954 35%, var(--border));
  border-radius: var(--radius-full); text-decoration: none; width: fit-content; max-width: min(300px, 90%);
  text-align: left; transition: transform 0.15s var(--ease);
}
.spotify-now-playing[hidden] { display: none; }
.spotify-now-playing:hover { transform: translateY(-1px); }
.spotify-now-playing-art { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; display: block; }
.spotify-now-playing-art[hidden] { display: none; }
.spotify-now-playing-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.spotify-now-playing-label { font-size: 0.68rem; font-weight: 700; color: #1DB954; text-transform: uppercase; letter-spacing: 0.02em; }
.spotify-now-playing-track { font-size: 0.85rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.spotify-now-playing-artist { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }

.spotify-connect-row { margin-top: 10px; }

.edit-link {
  display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none; border: 1px solid var(--border);
  padding: 6px 16px; border-radius: var(--radius-full); transition: background 0.15s var(--ease);
}
.edit-link:hover { background: var(--accent-soft); }

.blog-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.action-btn--disabled {
  background: var(--bg); border: 1px solid transparent; color: var(--muted-soft);
  border-radius: var(--radius-full); padding: 7px 14px; font-size: 0.82rem; cursor: not-allowed;
}

/* ---------- Blog dişli çark menüsü ---------- */

.blog-settings-menu { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; }
.gear-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  /* Kapak fotoğrafının üstünde yüzüyor — foto açık ya da koyu olsun her zaman
     okunaklı kalsın diye sabit (temadan bağımsız) beyaz zemin + koyu ikon. */
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.15s var(--ease-spring);
}
.gear-btn:hover { transform: scale(1.08); }
.gear-btn svg { width: 20px; height: 20px; fill: none; stroke: #18181c; stroke-width: 1.8; }
.gear-btn:hover svg { stroke: var(--accent); }

.gear-dropdown {
  display: none; position: absolute; top: 46px; right: 0; min-width: 190px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); overflow: hidden; flex-direction: column;
}
.gear-dropdown--open { display: flex; }
.gear-dropdown a {
  padding: 12px 16px; text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s var(--ease);
}
.gear-dropdown a:hover { background: var(--bg); }
.gear-toggle-form { margin: 0; }
.gear-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; color: var(--ink); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.gear-toggle-row:hover { background: var(--bg); }

/* ---------- Yüzen "yeni yazı" butonu (FAB) ---------- */

.fab {
  position: fixed; bottom: calc(92px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px))); right: 20px; width: 56px; height: 56px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center;
  justify-content: center; box-shadow: var(--shadow-accent); z-index: 30;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease);
}
.fab svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-accent); }
.fab:active { transform: scale(0.94); }

/* ---------- Etkileşim/İletiler sekmeleri ---------- */

.activity-tabs { margin-bottom: 24px; }
.tab-count { font-weight: bold; opacity: 0.85; }
.tabs a.tab-active .tab-count { color: var(--accent); }

.ask-form {
  margin-top: 18px; display: flex; flex-direction: column; gap: 10px;
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.ask-form-label { margin: 0; font-weight: 700; color: var(--ink); text-align: center; }
.ask-form textarea {
  font-family: inherit; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card-bg); resize: vertical;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.ask-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ask-form button {
  align-self: center; border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 10px 24px; cursor: pointer; font-family: inherit; font-weight: 600;
  box-shadow: var(--shadow-accent); transition: transform 0.15s var(--ease-spring);
}
.ask-form button:hover { transform: translateY(-1px); }

.gossip-composer { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.gossip-composer-field { position: relative; }
.gossip-composer textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--card-bg); color: var(--ink); resize: vertical; min-height: 70px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.gossip-composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gossip-composer button {
  align-self: center; border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 10px 24px; cursor: pointer; font-family: inherit; font-weight: 600;
  box-shadow: var(--shadow-accent); transition: transform 0.15s var(--ease-spring);
}
.gossip-composer button:hover { transform: translateY(-1px); }

.mention-dropdown {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); max-height: 200px; overflow-y: auto;
}
.mention-dropdown[hidden] { display: none; }
.mention-dropdown-item {
  display: block; width: 100%; text-align: left; padding: 9px 14px; background: none; border: none;
  font-family: inherit; font-size: 0.88rem; color: var(--ink); cursor: pointer; transition: background 0.12s var(--ease);
}
.mention-dropdown-item:hover { background: var(--accent-soft); color: var(--accent); }
.mention-dropdown-empty { padding: 9px 14px; font-size: 0.82rem; color: var(--muted); font-style: italic; }

.gossip-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 10px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.gossip-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.gossip-text { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.55; }
.gossip-preview-list { display: flex; flex-direction: column; }

/* Kendi dedikodunu düzenleme (kullanıcı isteği: "yazan kişiler düzenleyip
   silebilsin") — .gossip-composer ile aynı görsel dil. */
.gossip-edit-form { margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.gossip-edit-form textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); resize: vertical; min-height: 60px;
}
.gossip-edit-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gossip-edit-actions { display: flex; gap: 8px; }

/* ---------- Formlar (kayıt/giriş/profil) ---------- */

.notification-settings {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border);
}
.notification-settings h2 { font-size: 1rem; margin-bottom: 8px; }
#push-toggle-btn { width: 100%; }

.danger-zone {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--danger-soft);
}
.danger-zone h2 { color: var(--danger); font-size: 1rem; margin-bottom: 8px; }
.danger-zone-text { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; line-height: 1.5; }
.danger-zone-form { display: flex; flex-direction: column; gap: 10px; }
.danger-zone-form input[type="password"] {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; background: var(--bg);
}

.form-page {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; max-width: 420px; margin: 0 auto; position: relative;
  box-shadow: var(--shadow-md);
}
.form-page--wide { max-width: 560px; }
.form-page h1 { margin-top: 0; font-size: 1.6rem; }
.form-page-close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none;
  font-size: 1.1rem; line-height: 1; transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.form-page-close:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------- Yeni yazı penceresi: Gönderi / Anket sekmeleri ---------- */
.post-composer-tabs {
  display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; background: var(--bg-soft);
  padding: 5px; border-radius: var(--radius-full); width: fit-content; margin-left: auto; margin-right: auto;
}
.post-composer-tab {
  background: none; border: none; cursor: pointer; font-family: inherit; color: var(--muted);
  padding: 8px 18px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.post-composer-tab--active { background: var(--card-bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.poll-option-input-row { margin-top: 4px; }
.poll-option-remove-btn {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 0.9rem;
}
.poll-option-remove-btn:hover { color: var(--danger); border-color: var(--danger); }

.form-page form { display: flex; flex-direction: column; gap: 18px; }
.form-page label { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.help-divider {
  max-width: 560px; margin: 32px auto; border: none; border-top: 2px dashed var(--border-strong);
}

.block-editor-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg);
}
.block-editor-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; background: var(--card-bg); border-bottom: 1px solid var(--border);
}
.block-editor-label { font-size: 0.82rem; font-weight: bold; color: var(--ink); }
.block-editor-controls { display: flex; gap: 6px; }
.block-editor-controls button {
  display: flex; align-items: center; gap: 3px;
  border: 1px solid var(--border) !important; background: var(--card-bg) !important;
  border-radius: var(--radius-xs); cursor: pointer; font-size: 0.78rem; color: var(--ink) !important;
  padding: 5px 9px !important; font-weight: normal !important;
}
.block-editor-controls button span { font-size: 0.78rem; }
.block-editor-controls button:hover:not(:disabled) { color: var(--accent) !important; border-color: var(--accent) !important; }
.block-editor-controls button:disabled { opacity: 0.4; cursor: default; }
.block-editor-delete-btn {
  border-color: var(--danger) !important; color: var(--danger) !important; background: var(--danger-soft) !important;
}
.block-editor-delete-btn:hover { background: var(--danger) !important; color: #fff !important; }
.block-editor-body { padding: 12px; }
.block-editor-body textarea {
  width: 100%; font-family: inherit; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-xs); background: var(--card-bg); resize: vertical;
}
.block-editor-textarea {
  min-height: 120px; max-height: 55vh; overflow-y: auto; line-height: 1.55;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.block-editor-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.block-editor-format-toolbar { display: flex; gap: 6px; margin-bottom: 8px; }
/* .form-page button (genel form buton stili) ile aynı özgüllükte olduğu için
   ve dosyada ondan ÖNCE tanımlandığı için, ezmek amacıyla !important
   kullanıyoruz — .block-editor-controls button'daki mevcut desenle aynı. */
.block-editor-format-toolbar button {
  width: 32px !important; height: 32px !important; border: 1px solid var(--border) !important;
  background: var(--card-bg) !important; border-radius: var(--radius-xs) !important;
  cursor: pointer; font-size: 0.85rem !important; color: var(--ink) !important;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
  padding: 0 !important;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.block-editor-format-toolbar button:hover { background: var(--accent-soft) !important; border-color: var(--accent) !important; }
.block-editor-image-preview { display: flex; gap: 6px; flex-wrap: wrap; }
.block-editor-image-preview img {
  height: 90px; width: 90px; object-fit: cover; border-radius: var(--radius-xs); border: 1px solid var(--border);
}
.block-editor-toolbar { display: flex; gap: 8px; }
.block-editor-file-label { cursor: pointer; }

.url-combo { display: flex; align-items: stretch; }
.url-combo input {
  /* min-width:0 olmadan flex öğeleri varsayılan olarak içeriğinin altına
     küçülmüyor — dar ekranlarda input + ".tumblr.com" eki toplamı kartı
     taşırıp yatay kaydırmaya sebep oluyordu. */
  flex: 1; min-width: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none;
}
.url-suffix {
  display: flex; align-items: center; padding: 0 14px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border); border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: 0.9rem; white-space: nowrap;
  user-select: none;
}
.optional-tag { font-weight: normal; opacity: 0.55; font-size: 0.8rem; }
.form-page input, .form-page textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.form-page input:focus, .form-page textarea:focus, .form-page select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--card-bg);
}

/* Tarayıcının varsayılan gri "Dosya Seç" butonu, sitenin geri kalanındaki
   yuvarlak/turuncu buton diliyle çelişiyordu — modern tarayıcılarda
   desteklenen ::file-selector-button ile aynı dile getiriyoruz. */
input[type="file"] { font-family: inherit; font-size: 0.88rem; color: var(--muted); }
input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 0.82rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border: none;
  border-radius: var(--radius-full); padding: 8px 16px; margin-right: 12px; cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
input[type="file"]::file-selector-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.form-page button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 13px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease);
  box-shadow: var(--shadow-accent);
}
.form-page button:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.form-page button:active { transform: translateY(0) scale(0.98); }
/* "Taslak olarak kaydet" / "Yayınla" gibi ikili buton satırları — ikinci
   (soluk) buton, birincil "form-page button" gradyanını ezmek için
   özgüllük gerekiyor. */
.form-actions-row { display: flex; gap: 10px; }
.form-actions-row button { flex: 1; }
.form-page .form-actions-row .action-btn {
  background: var(--bg-soft); color: var(--ink); box-shadow: none; border: 1px solid var(--border);
}
.form-page .form-actions-row .action-btn:hover { background: var(--accent-soft); box-shadow: none; transform: translateY(-2px); }
.hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

.draft-list-item { align-items: center; flex-wrap: wrap; }
.draft-list-item-link { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.draft-list-item-snippet {
  margin: 3px 0 0; font-size: 0.85rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.draft-list-item-time { margin: 3px 0 0; font-size: 0.76rem; color: var(--muted-soft); }

.mood-picker { margin: 14px 0; }
.mood-picker-label { font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.mood-picker-options { display: flex; flex-wrap: wrap; gap: 8px; }
/* Özgüllük not: ".form-page button" kuralı sayfadaki HER butona (dolgu
   mood-btn'lere bile) varsayılan olarak mor degrade zemin veriyor —
   ".mood-picker-options .mood-btn" (2 sınıf) onun (1 sınıf + 1 etiket)
   özgüllüğünü ezmesi için burada iki sınıf birden kullanılıyor,
   yoksa seçili/seçili-değil arasında hiç fark görünmüyordu. */
.mood-picker-options .mood-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--card-bg); color: var(--ink); cursor: pointer;
  font-size: 0.85rem; font-weight: 500; box-shadow: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.mood-picker-options .mood-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: none; }
.mood-btn-emoji { font-size: 1rem; }

/* Her ruh haline kendi rengi — seçiliyken o rengin dolgusuyla dolduruyor,
   böylece "hangisi seçili" tek bakışta net oluyor (aksi halde hepsi aynı
   genel vurgu rengine boyanıp birbirinden ayırt edilemiyordu). */
.mood-picker-options .mood-btn--active {
  color: #fff; font-weight: 700; border-color: transparent; transform: translateY(-1px);
}
.mood-picker-options .mood-btn--active[data-mood="iyi"] { background: #e6a417; box-shadow: 0 8px 20px rgba(230, 164, 23, 0.45); }
.mood-picker-options .mood-btn--active[data-mood="normal"] { background: #6b7280; box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4); }
.mood-picker-options .mood-btn--active[data-mood="yorgun"] { background: #3b6fd4; box-shadow: 0 8px 20px rgba(59, 111, 212, 0.4); }
.mood-picker-options .mood-btn--active[data-mood="duygusal"] { background: #d6558f; box-shadow: 0 8px 20px rgba(214, 85, 143, 0.4); }
.mood-picker-options .mood-btn--active[data-mood="sinirli"] { background: #dc2626; box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4); }
.mood-picker-options .mood-btn--active[data-mood="gece_kafasi"] { background: #4c1d95; box-shadow: 0 8px 20px rgba(76, 29, 149, 0.45); }
.mood-picker-options .mood-btn--active:hover { transform: translateY(-1px); }

.post-mood-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--muted);
  background: var(--bg-soft); border-radius: var(--radius-full); padding: 2px 10px; margin-left: 6px;
}
.hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.import-intro { color: var(--muted); font-size: 0.9rem; margin: -8px 0 4px; }
.import-notes {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.import-notes h3 { font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; }
.import-notes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-page select {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}

.preview-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.preview-cover { width: 100%; height: 90px; object-fit: cover; border-radius: var(--radius-xs); margin-bottom: 8px; }

.color-picker-block { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }

.settings-block {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.settings-block select {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
.checkbox-label {
  flex-direction: row !important; align-items: center; gap: 10px !important;
}
.checkbox-label input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--accent); }

/* iOS tarzı açma/kapama düğmesi (ör. "uzun yazıları kısalt" ayarı) */
.toggle-row {
  flex-direction: row !important; align-items: center; justify-content: space-between;
  gap: 14px !important;
}
.toggle-row-hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.push-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-size: 0.9rem; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input {
  position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.toggle-switch-track {
  position: absolute; inset: 0; background: var(--border-strong); border-radius: var(--radius-full);
  transition: background 0.2s var(--ease);
}
.toggle-switch-track::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring);
}
.toggle-switch input:checked ~ .toggle-switch-track { background: var(--accent); }
.toggle-switch input:checked ~ .toggle-switch-track::before { transform: translateX(20px); }
.label-text { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.palette { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; transition: transform 0.15s var(--ease-spring), border-color 0.15s var(--ease); }
.swatch:hover { border-color: var(--accent); transform: scale(1.1); }
.hex-input input { font-family: monospace; }
.color-preview { height: 40px; border-radius: var(--radius-xs); border: 1px solid var(--border); }

/* ---------- Temalar (Profil > Temalar) ---------- */

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 8px; }
.theme-card-form { margin: 0; }
.theme-card {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px; border-radius: var(--radius-md); border: 2px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--theme-preview) 20%, var(--card-bg)), var(--card-bg));
  cursor: pointer; font-family: inherit; transition: border-color 0.18s var(--ease), transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease);
}
.theme-card:hover { border-color: var(--theme-preview); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.theme-card--active { border-color: var(--theme-preview); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-preview) 30%, transparent); }
.theme-card-swatch {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--theme-preview); box-shadow: var(--shadow-sm);
}
.theme-card-label { font-weight: 700; color: var(--ink); }
.theme-card-check { font-size: 0.75rem; color: var(--theme-preview); font-weight: 700; }

/* ---------- Keşfet ---------- */

.search-form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.search-form input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; background: var(--card-bg); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-form button {
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius-full);
  padding: 12px 22px; cursor: pointer; font-family: inherit; font-weight: 600; box-shadow: var(--shadow-accent);
}

/* ---------- Story bandı + oluşturma/izleme pencereleri ---------- */
.story-bar {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.story-bar::-webkit-scrollbar { display: none; }
.story-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
  width: 68px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.story-tile-ring {
  width: 60px; height: 60px; border-radius: 50%; padding: 2.5px; display: flex; align-items: center; justify-content: center;
  background: var(--border);
}
.story-tile-ring--unseen { background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark)); }
.story-tile-ring--seen { background: var(--border-strong); }
.story-tile-ring--add { background: var(--bg-soft); border: 1.5px dashed var(--border-strong); }
.story-tile-ring img, .story-tile-ring .avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--bg);
}
.story-tile-plus { font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.story-tile-label { font-size: 0.72rem; color: var(--muted); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story-bar-wrap { position: relative; }
.story-add-menu {
  position: absolute; top: 78px; left: 4px; z-index: 100; display: flex; flex-direction: column; gap: 4px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 6px; box-shadow: var(--shadow-lg);
}
.story-add-menu[hidden] { display: none; }
.story-add-menu-btn {
  background: none; border: none; text-align: left; padding: 9px 14px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.story-add-menu-btn:hover { background: var(--bg-soft); }

.story-camera-preview { width: 100%; height: 100%; object-fit: cover; }
.story-camera-close { top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; z-index: 2; }
.story-camera-flip {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2;
  background: rgba(255, 255, 255, 0.15); border: none; color: #fff; font-size: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
}
.story-camera-controls {
  position: absolute; left: 0; right: 0; bottom: calc(28px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.story-camera-timer {
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.85rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.story-camera-timer[hidden] { display: none; }
.story-camera-shutter {
  width: 74px; height: 74px; border-radius: 50%; background: transparent; border: 4px solid #fff; cursor: pointer;
  transition: transform 0.15s var(--ease-spring);
}
.story-camera-shutter::before {
  content: ''; position: absolute; width: 62px; height: 62px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); left: 50%; top: 50%;
}
.story-camera-shutter { position: relative; }
.story-camera-shutter:active { transform: scale(0.92); }
.story-camera-shutter--recording { border-color: #ef4444; }
.story-camera-shutter--recording::before { background: #ef4444; border-radius: 10px; width: 32px; height: 32px; }
.story-camera-hint { color: rgba(255, 255, 255, 0.75); font-size: 0.76rem; margin: 0; }

.story-overlay {
  position: fixed; inset: 0; z-index: 99990; background: #000;
  display: flex; flex-direction: column;
}
.story-overlay[hidden] { display: none; }

.story-media-frame {
  position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden;
}
.story-media-frame img, .story-media-frame video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}

.story-caption {
  position: absolute; transform: translate(-50%, -50%); max-width: 85%;
  background: rgba(0, 0, 0, 0.55); color: #fff; padding: 8px 14px; border-radius: var(--radius-md);
  font-size: 1.05rem; font-weight: 700; text-align: center; word-break: break-word;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.story-caption[hidden] { display: none; }
.story-caption--editable { display: flex; align-items: center; gap: 6px; cursor: default; }
.story-caption-handle { cursor: grab; touch-action: none; opacity: 0.85; font-size: 1.1rem; }
.story-caption-handle:active { cursor: grabbing; }
#story-composer-caption-text, #story-viewer-caption-text { outline: none; min-width: 20px; }
#story-composer-caption-text:empty::before { content: attr(data-placeholder); opacity: 0.6; }

.story-add-caption-btn {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full); padding: 9px 18px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}

.story-composer-actions {
  flex-shrink: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 16px;
  padding-bottom: calc(14px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  background: #000;
}
.story-btn {
  border: none; border-radius: var(--radius-full); padding: 10px 22px; font-weight: 700;
  font-family: inherit; font-size: 0.9rem; cursor: pointer;
}
.story-btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.story-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.story-btn--primary:disabled { opacity: 0.6; cursor: default; }

.story-progress-row {
  display: flex; gap: 4px; padding: 10px 10px 0;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.story-progress-track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.story-progress-fill { display: block; height: 100%; width: 0; background: #fff; }

.story-viewer-header {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; color: #fff;
}
.story-viewer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.story-viewer-username { font-weight: 700; font-size: 0.9rem; }
.story-viewer-time { font-size: 0.78rem; opacity: 0.75; }
.story-viewer-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }

.story-nav-zone {
  position: absolute; top: 60px; bottom: 70px; width: 35%; background: none; border: none; padding: 0; z-index: 1;
}
.story-nav-zone--left { left: 0; }
.story-nav-zone--right { right: 0; }

.story-link-chip {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 2;
  background: rgba(255, 255, 255, 0.94); color: #16121f; text-decoration: none;
  border-radius: var(--radius-full); padding: 9px 18px; font-size: 0.84rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-md);
  max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.story-link-chip[hidden] { display: none; }

.story-viewer-footer {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; padding-bottom: calc(10px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
}
.story-viewers-btn, .story-viewer-delete {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: none; border-radius: var(--radius-full);
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.story-viewers-btn[hidden], .story-viewer-delete[hidden] { display: none; }

.story-viewers-panel { z-index: 99995; background: rgba(0, 0, 0, 0.6); align-items: flex-end; }
.story-viewers-panel-inner {
  background: var(--card-bg); width: 100%; max-height: 70vh; border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  overflow-y: auto;
}
.story-viewers-panel-inner h3 { margin: 0 0 12px; font-size: 1rem; }
.story-viewers-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.story-viewer-row { display: flex; align-items: center; gap: 10px; }
.story-viewer-row img, .story-viewer-row .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.story-viewer-row-name { font-weight: 600; font-size: 0.88rem; flex: 1; }
.story-viewer-row-time { font-size: 0.76rem; color: var(--muted); }

.discover-block { margin-bottom: 36px; }
/* Kullanıcı isteği: "keşfetteki başlıkları daha ilgi çekici fark edilebilir
   yap" — eskiden küçük/gri/büyük-harf bir "etiket" gibiydi (font-sans,
   uppercase, muted); artık sitenin ana başlık dilini (Fraunces serif,
   hero h1 ile aynı aile) kullanıp büyütüp tam renge çıkarıyoruz, solunda
   da hero'nun altındaki gradyanla aynı renkte kısa bir vurgu çubuğu var. */
.discover-block h2 {
  font-size: 1.4rem; color: var(--ink); margin-bottom: 16px; font-weight: 700;
  letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px;
}
.discover-block h2::before {
  content: ""; display: inline-block; width: 4px; height: 1.05em;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 2px; flex-shrink: 0;
}

/* künh Medya — kullanıcı isteği: "künh'teki bloglarında paylaşılan
   medyaları keşfette... slider şeklinde döndürsek" — .story-bar ile aynı
   yatay kaydırma deseni (gizli scrollbar, dokunmatikte momentum). */
.kunh-media-slider {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity;
}
.kunh-media-slider::-webkit-scrollbar { display: none; }
.kunh-media-item {
  flex-shrink: 0; width: 120px; height: 120px; border-radius: var(--radius-md);
  overflow: hidden; display: block; scroll-snap-align: start;
}
.kunh-media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.today-stats-banner {
  margin-bottom: 36px; padding: 18px 20px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--card-bg);
}
.today-stats-banner h2 {
  font-size: 1.05rem; color: var(--muted); margin: 0 0 14px; font-family: var(--font-sans);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.today-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; }
.today-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.today-stat-value {
  font-size: 1.6rem; font-weight: 800; font-family: var(--font-serif, inherit);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.today-stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.bolgeler-map-wrap {
  position: relative; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-soft);
}
.bolgeler-map { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; }
.territory-circle { fill: var(--accent-soft-strong); stroke: var(--accent); stroke-width: 2; transition: fill 0.15s var(--ease); cursor: pointer; }
.territory-circle:hover { fill: var(--accent); }

.bolgeler-leaderboard {
  position: absolute; top: 12px; right: 12px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; box-shadow: var(--shadow-md); max-width: 220px;
}
.bolgeler-leaderboard h2 {
  margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); font-weight: 700;
}
.bolgeler-leaderboard ol { margin: 0; padding-left: 0; list-style: none; font-size: 0.85rem; }
.bolgeler-leaderboard li { margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.bolgeler-leaderboard a { color: var(--accent); text-decoration: none; font-weight: 600; flex: 1; min-width: 0; }
.bolgeler-leaderboard-area { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.bolgeler-leaderboard-rank { font-size: 0.85rem; width: 22px; flex-shrink: 0; text-align: center; }

.bolgeler-rest {
  margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--card-bg); padding: 12px 16px;
}
.bolgeler-rest summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 0.9rem; list-style: none;
}
.bolgeler-rest summary::-webkit-details-marker { display: none; }
.bolgeler-rest summary::before { content: '▸ '; color: var(--muted); }
.bolgeler-rest[open] summary::before { content: '▾ '; }
.bolgeler-rest-list { margin: 12px 0 0; padding: 0; list-style: none; }
.bolgeler-rest-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.88rem; border-top: 1px solid var(--border); }
.bolgeler-rest-list li:first-child { border-top: none; }
.bolgeler-rest-list a { color: var(--accent); text-decoration: none; font-weight: 600; flex: 1; min-width: 0; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  text-decoration: none; background: var(--card-bg); border: 1px solid var(--border);
  color: var(--accent); border-radius: var(--radius-full); padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.tag-chip:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-accent); }

/* Yazı formundaki etiket kutusu (kullanıcı isteği: "metin girişinin altında
   etiket eklemek için hashtag kutusu koysak") — .mood-picker ile aynı
   görsel dil. */
.tag-picker { margin: 14px 0; }
.tag-picker-label { font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.tag-input-row { display: flex; gap: 8px; margin-bottom: 10px; }
.tag-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink);
}
.tag-input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip-item {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--border);
  color: var(--accent); border-radius: var(--radius-full); padding: 6px 8px 6px 14px; font-size: 0.85rem; font-weight: 600;
}
.tag-chip-item button {
  border: none; background: var(--bg-soft); color: var(--muted); border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.tag-chip-item button:hover { background: var(--danger, #e74c3c); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 18px; }
.blog-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink); font-size: 0.82rem; text-align: center;
  transition: transform 0.18s var(--ease-spring);
  min-width: 0;
}
.blog-tile:hover { transform: translateY(-2px); }
.blog-tile img, .blog-tile .avatar--small { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.blog-tile span {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Oyunlar ---------- */

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.game-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px 16px; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease);
}
.game-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.game-card--soon { opacity: 0.55; }
.game-icon {
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--accent-soft);
}
.game-card h3 { margin: 0 0 4px; font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }
.game-card p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.game-live-count { min-height: 1.1em; }

.tictactoe-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 300px; margin: 0 auto 18px;
}
.ttt-cell {
  aspect-ratio: 1; font-size: 2rem; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-xs); cursor: pointer;
  font-family: inherit; transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.ttt-cell:hover { background: var(--bg); border-color: var(--border-strong); }
.result-message { text-align: center; font-weight: bold; min-height: 1.5em; }

/* ---------- Chat / DM ---------- */

.chat-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  scroll-behavior: smooth;
}

.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-msg--mine { flex-direction: row-reverse; }

/* Aramayla ilgili kayıtlar (cevapsız çağrı / görüşme özeti) — normal mesaj
   balonu gibi değil, ortalanmış, kimsenin tarafı olmayan küçük bir satır. */
.chat-call-log {
  align-self: center; display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border-radius: var(--radius-full); padding: 6px 14px;
  font-size: 0.78rem; color: var(--muted); max-width: 90%; text-align: center;
}
.chat-call-log-time { flex-shrink: 0; opacity: 0.8; }
.chat-msg--mine .chat-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: 18px 18px 4px 18px; }
.chat-msg--mine .chat-time { color: rgba(255,255,255,0.75); }

.chat-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.chat-bubble {
  background: var(--bg); border-radius: 18px 18px 18px 4px; padding: 10px 15px; max-width: 75%;
  position: relative; box-shadow: var(--shadow-xs);
}
.chat-sender { margin: 0 0 3px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.chat-text { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.chat-text--deleted { font-style: italic; opacity: 0.6; }
.chat-time { font-size: 0.7rem; color: var(--muted); display: block; margin-top: 4px; }
.chat-time--inline {
  display: inline-block; margin: 0 0 0 auto; font-size: 0.62rem; opacity: 0.75;
}
.chat-edited-tag { font-style: italic; opacity: 0.8; }
.chat-read-status { margin-left: 4px; }
.chat-media-img { max-width: 220px; border-radius: var(--radius-xs); display: block; margin-top: 8px; }
.chat-bubble audio { margin-top: 8px; max-width: 220px; }

.chat-msg-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.chat-msg-actions button {
  background: none; border: none; font-size: 0.68rem; cursor: pointer;
  color: rgba(255,255,255,0.75); padding: 0; text-decoration: underline;
}
.chat-msg:not(.chat-msg--mine) .chat-msg-actions button { color: var(--muted); }
/* .chat-download-btn bir <a> — "download" özniteliği sadece <a>'da çalıştığı
   için buton değil link olarak eklendi, ama görsel olarak diğer eylem
   düğmeleriyle (yanıtla/düzenle/sil) AYNI stili paylaşıyor. */
.chat-download-btn {
  background: none; border: none; font-size: 0.68rem; cursor: pointer;
  color: rgba(255,255,255,0.75); padding: 0; text-decoration: underline;
}
.chat-msg:not(.chat-msg--mine) .chat-download-btn { color: var(--muted); }

.chat-msg--pending .chat-bubble { opacity: 0.6; }
.chat-msg--failed .chat-bubble { box-shadow: 0 0 0 2px var(--danger); }

.chat-like-badge {
  font-size: 0.75rem; opacity: 0; transform: scale(0.6); display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
}
.chat-like-badge--active { opacity: 1; transform: scale(1); }
.chat-like-badge--pop { animation: chat-like-badge-pop-anim 0.35s ease-out; }
@keyframes chat-like-badge-pop-anim {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.chat-reply-preview {
  display: flex; align-items: center; gap: 6px; font-size: 0.75rem; opacity: 0.85;
  border-left: 2px solid currentColor; padding: 2px 0 2px 8px; margin-bottom: 6px;
  max-width: 100%;
}
.chat-reply-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply-thumb { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius-xs); flex-shrink: 0; }

.reply-preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 8px;
  font-size: 0.8rem; color: var(--muted); border-left: 3px solid var(--accent);
}
.reply-preview-bar[hidden] { display: none; }
.reply-preview-bar button {
  background: none; border: none; cursor: pointer; color: var(--muted); font-size: 0.95rem;
  flex-shrink: 0;
}
.reply-preview-thumb { width: 32px; height: 32px; object-fit: contain; border-radius: var(--radius-xs); flex-shrink: 0; }
.reply-preview-thumb[hidden] { display: none; }
#reply-preview-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sticker mesajının şeffaf balonu içinde alıntı yazısı görünür kalsın diye. */
.chat-msg--sticker .chat-reply-preview { color: var(--muted) !important; }

.chat-media-img--zoomable { cursor: zoom-in; }
.chat-lightbox {
  position: fixed; inset: 0; background: rgba(10,10,14,0.9); z-index: 999;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  padding: 20px;
}
.chat-lightbox[hidden] { display: none; }
.chat-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }

.thread-time { font-size: 0.78rem; opacity: 0.8; }
.follow-counts--static { cursor: default; }

.chat-form { display: flex; gap: 8px; align-items: flex-end; background: var(--card-bg); padding: 8px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; }
/* "+" menüsü — eskiden ayrı emoji/görsel butonları satırı sıkıştırıyordu,
   artık tek buton altında; menü yukarı (kutunun üstüne) açılıyor. */
.chat-attach-menu {
  position: absolute; bottom: 54px; left: 8px; z-index: 100; display: flex; flex-direction: column; gap: 4px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 6px; box-shadow: var(--shadow-lg); min-width: 180px;
}
.chat-attach-menu[hidden] { display: none; }
.chat-attach-menu-btn {
  background: none; border: none; text-align: left; padding: 9px 14px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.chat-attach-menu-btn:hover { background: var(--bg-soft); }
/* Gönder ikonu — WhatsApp'taki gibi kutu boşken 🎤, yazı yazılınca bu
   çıkıyor; eskiden "gönder" yazan geniş bir buton yazı kutusundan yer
   çalıyordu. */
.chat-send-icon-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  cursor: pointer; box-shadow: var(--shadow-accent);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease);
}
.chat-send-icon-btn:hover { transform: translateY(-1px); }
.chat-send-icon-btn:active { transform: scale(0.94); }
.chat-send-icon-btn[hidden] { display: none; }
#chat-input {
  flex: 1; padding: 11px 16px; border: 1px solid transparent; border-radius: var(--radius-full);
  font-family: inherit; font-size: 1rem; background: var(--bg);
  resize: none; max-height: 120px; line-height: 1.4; overflow-y: auto; color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
#chat-input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.chat-upload-btn {
  cursor: pointer; background: var(--bg); border: 1px solid transparent;
  border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; flex-shrink: 0;
  transition: transform 0.18s var(--ease-spring), background 0.18s var(--ease);
}
.chat-upload-btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.chat-send-btn {
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius-full);
  padding: 11px 20px; cursor: pointer; font-family: inherit; font-weight: 700; flex-shrink: 0;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease);
  box-shadow: var(--shadow-accent);
}
.chat-send-btn:hover { transform: translateY(-1px); }
.chat-send-btn:active { transform: scale(0.94); }
.chat-record-status {
  text-align: center; font-size: 0.8rem; color: var(--muted); min-height: 1.2em;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.chat-record-status audio { max-width: 200px; height: 32px; }
.chat-record-send-btn, .chat-record-cancel-btn {
  border: none; border-radius: var(--radius-full); padding: 7px 16px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.chat-record-send-btn { background: var(--accent); color: #fff; }
.chat-record-cancel-btn { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.chat-upload-btn--recording {
  background: var(--danger) !important; color: #fff;
  animation: recording-pulse 1.2s infinite;
}
@keyframes recording-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.typing-indicator { text-align: left; font-size: 0.78rem; color: var(--muted); font-style: italic; min-height: 1.2em; margin: 4px 0 0; }

.picker-panel {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg);
  margin-bottom: 8px; max-height: 240px; overflow-y: auto; padding: 10px;
  box-shadow: var(--shadow-md);
}
.picker-panel[hidden] { display: none; }
.picker-tabs {
  display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.picker-tab {
  border: none; background: none; cursor: pointer; font-size: 1.2rem; padding: 5px 14px;
  border-radius: var(--radius-sm); opacity: 0.45; transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
}
.picker-tab--active { opacity: 1; background: var(--bg); }

.emoji-panel { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-panel[hidden] { display: none; }
.emoji-option {
  border: none; background: none; cursor: pointer; font-size: 1.4rem;
  width: 38px; height: 38px; border-radius: var(--radius-xs); display: flex;
  align-items: center; justify-content: center; transition: background 0.15s var(--ease);
}
.emoji-option:hover { background: var(--bg); }

.sticker-panel { display: flex; flex-wrap: wrap; gap: 6px; }
.sticker-panel[hidden] { display: none; }
.sticker-panel-loading { color: var(--muted); font-size: 0.85rem; margin: 0; padding: 8px; }
.sticker-option {
  border: 1px solid transparent; background: none; cursor: pointer; padding: 4px;
  border-radius: var(--radius-sm); width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  position: relative; transition: background 0.15s var(--ease);
}
.sticker-option:hover { border-color: var(--border); background: var(--bg); }
.sticker-option img { max-width: 100%; max-height: 100%; }
.sticker-add-btn {
  border: 2px dashed var(--border-strong); color: var(--muted); font-size: 2rem; font-weight: bold;
}
.sticker-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.sticker-delete-btn {
  position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff;
  border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; line-height: 18px;
  text-align: center;
}
.sticker-delete-btn:hover { background: #b52d2d; }

.chat-sticker-img { width: 140px; height: 140px; object-fit: contain; display: block; }
.chat-msg--sticker .chat-bubble {
  background: none; padding: 0; box-shadow: none;
}
.chat-msg--sticker .chat-msg-actions { margin-top: 2px; }
.chat-msg--sticker .chat-time,
.chat-msg--sticker .chat-msg-actions button {
  color: var(--muted) !important;
}

.chat-blocked-notice { display: flex; gap: 8px; align-items: center; }
.chat-blocked-input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; background: var(--bg); color: var(--muted); cursor: not-allowed;
  font-size: 0.85rem;
}
.chat-blocked-notice .chat-send-btn { opacity: 0.5; cursor: not-allowed; }

/* ---------- İletiler listesi ---------- */

.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread-list[hidden] { display: none; }
.thread-item {
  display: flex; gap: 8px; align-items: center;
  padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card-bg);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.thread-item:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.thread-item-link {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  flex: 1; padding: 4px; min-width: 0;
}
.thread-item-link .chat-avatar { width: 46px; height: 46px; }
.thread-delete-btn { padding: 7px 11px; flex-shrink: 0; }
.thread-name { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.thread-unread-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1;
}
/* Metin kısmı kendi içinde üç noktayla kısalıyor (flex:1 + min-width:0),
   saat/tik kısmı (flex-shrink:0) ise HER ZAMAN görünür kalıyor — eskiden
   ikisi tek bir "nowrap" satırda olduğu için uzun bir mesajda saat kayboluyordu. */
.thread-preview { margin: 3px 0 0; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.thread-preview-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.thread-preview-meta { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.thread-read-status { color: var(--accent); font-size: 0.78rem; }

/* ---------- Etkileşimler ---------- */

.question-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-xs);
}
.answer-form { display: flex; flex-direction: column; gap: 10px; }
.answer-form textarea {
  font-family: inherit; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); resize: vertical;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.answer-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.answer-form button {
  align-self: flex-start; border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 9px 20px; cursor: pointer; font-family: inherit; font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.question-card-actions { display: flex; }
.question-card form.inline-form { margin-top: 10px; display: block; }

.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  display: flex; align-items: flex-start; gap: 12px;
}
.event-item p { margin: 0; line-height: 1.5; }
.event-item .meta { margin-top: 6px; }
/* Son bakıştan bu yana gelen (henüz "içine girip görmediğin") etkileşimler —
   sayfayı açmak yine hepsini "okundu" sayıyor (rozet sıfırlanıyor) ama bu
   renk sayesinde hangilerinin yeni olduğunu, tek tek tıklamadan da
   görebiliyorsun. */
.event-item--new { background: var(--accent-soft); border-color: var(--accent); }
.event-item--follow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.event-body { flex: 1; min-width: 0; }
.event-avatar-wrap { position: relative; flex-shrink: 0; display: block; }
.event-avatar-wrap .avatar--tiny { margin: 0; }
.event-badge {
  position: absolute; bottom: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; line-height: 1; color: #fff;
  border: 2px solid var(--card-bg); box-shadow: var(--shadow-xs);
}
.event-badge--like { background: #e0393f; font-size: 0.8rem; }
.event-badge--mention { background: #8b5cf6; }
.event-badge--comment { background: #2f80ed; font-size: 0.7rem; }
.event-badge--reblog { background: #22a35a; font-size: 0.5rem; letter-spacing: 0.02em; }

/* ---------- Admin paneli ---------- */

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; text-align: center; box-shadow: var(--shadow-xs);
}
.admin-stat-card--alert { border-color: var(--accent); background: var(--accent-soft); }

.sticker-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px; margin-top: 18px;
}
.sticker-admin-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; text-align: center;
}
.sticker-admin-item img { width: 100%; border-radius: var(--radius-xs); margin-bottom: 8px; }
.sticker-admin-item form { margin-top: 4px; }
.admin-stat-number { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.admin-stat-label { font-size: 0.8rem; color: var(--muted); }

.admin-nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th, .admin-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.admin-table th { background: var(--bg); color: var(--muted); font-weight: 700; }
.admin-row--banned { opacity: 0.6; }
.admin-actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-ua-cell { color: var(--muted); font-size: 0.75rem; }

.admin-badge {
  background: var(--accent); color: #fff; font-size: 0.65rem; padding: 3px 8px;
  border-radius: var(--radius-full); margin-left: 6px; font-weight: 700;
}
.admin-status { font-size: 0.78rem; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 600; }
.admin-status--active { background: var(--success-soft); color: var(--success); }
.admin-status--banned { background: var(--danger-soft); color: var(--danger); }

.admin-post-list { display: flex; flex-direction: column; gap: 14px; }
.admin-post-item, .admin-report-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.admin-post-title { margin: 0 0 4px; }
.admin-post-excerpt { margin: 0; color: var(--muted); font-size: 0.85rem; }

.admin-report-item { flex-direction: column; align-items: stretch; }
.admin-reported-post {
  background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0;
}
.admin-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.geo-result { font-size: 0.8rem; color: var(--muted); }

/* ---------- "künh'ü yükle" PWA install kartı ---------- */
.install-prompt-card {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(92px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  z-index: 998;
  max-width: 420px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 16px 14px;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.25s var(--ease);
}
.install-prompt-card--visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.install-prompt-close {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border: none; background: var(--bg); color: var(--muted); border-radius: 50%;
  font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.install-prompt-body { display: flex; gap: 12px; align-items: flex-start; padding-right: 22px; }
.install-prompt-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.install-prompt-text strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 3px; }
.install-prompt-text p { margin: 0; font-size: 0.83rem; color: var(--muted); line-height: 1.45; }
/* [hidden] kuralı burada ÖNEMLİ: .install-prompt-ios-steps'in display:flex'i
   tarayıcının varsayılan "[hidden]{display:none}" kuralıyla aynı özgüllükte
   olduğu için, sonradan yüklenen bu dosya kazanıp hidden attribute'unu
   görmezden gelirdi (Android'de bile iOS adımları görünür kalırdı). */
.install-prompt-ios-steps { list-style: none; margin: 12px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.install-prompt-ios-steps[hidden] { display: none; }
.install-prompt-ios-steps li {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink);
  background: var(--bg); border-radius: var(--radius-sm); padding: 7px 10px;
}
.install-prompt-step-icon { font-size: 1.05rem; flex-shrink: 0; }
.install-prompt-actions { display: flex; gap: 8px; margin-top: 14px; }
.install-prompt-btn {
  flex: 1; border: none; border-radius: var(--radius-full); padding: 10px; font-family: inherit;
  font-weight: 700; font-size: 0.86rem; cursor: pointer; transition: transform 0.15s var(--ease-spring);
}
.install-prompt-btn:active { transform: scale(0.96); }
.install-prompt-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: var(--shadow-accent); }
.install-prompt-btn--ghost { background: var(--bg); color: var(--muted); }
.install-prompt-btn:disabled { opacity: 0.6; cursor: default; }
@media (min-width: 769px) { .install-prompt-card { display: none !important; } }

/* ---------- Gömülü oyun/chat widget'ları ---------- */
.external-game-embed {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}
/* .external-game-embed'in overflow-x: auto tanımı, dikey eksen için ayrı bir
   değer verilmediği için tarayıcının dikeyde de otomatik olarak "auto"
   hesaplamasına yol açıyor (CSS overflow spesifikasyonu: bir eksen visible
   dışı bir değer alırsa, visible bırakılan diğer eksen de auto'ya döner).
   Bu da chat kartının kendisini istemeden dikey bir kırpma/kaydırma kutusuna
   çeviriyor — emoji/sticker/GIF pop-up'ları üst kısımdan kırpılıyor, ve
   #chat-messages'ın kendi iç kaydırmasından bağımsız olarak son mesajı
   görmek için kartın DIŞ kabuğunu da ayrıca kaydırmak gerekiyordu. Sadece
   chat'e özel olarak dikeyde kırpmayı kapatıyoruz; .external-game-embed'in
   kendisine dokunmuyoruz ki diğer sayfalardaki oyun gömme kartları
   (yatay kaydırmaları) etkilenmesin. */
.external-chat-embed { padding: 14px; overflow-y: visible; }

/* ---------- Mobil uyum ---------- */
@media (max-width: 600px) {
  /* .topbar mobilde tamamen gizli (display:none) — normal mobil
     tarayıcıda bu boşluğu adres çubuğu doldururdu, Capacitor'ın
     edge-to-edge WebView'inde main doğrudan status bar'ın altından
     başlıyor. Chat/DM için aynısını body--chat-mobile main'e daha önce
     eklemiştik (bkz. yukarısı); burada da GENEL main için ekliyoruz ki
     giriş/kayıt/blog gibi başlıksız/az boşluklu sayfalar da status bar'a
     yapışık kalmasın. env() masaüstü/normal mobil tarayıcıda 0 olduğu
     için davranış değişikliği yaratmıyor. */
  main { padding: calc(24px + env(safe-area-inset-top, 0px)) 14px 36px; }

  .hero h1 { font-size: 1.9rem; }

  .post-card { padding: 18px 18px; border-radius: var(--radius-md); }
  .form-page { padding: 22px; border-radius: var(--radius-md); }
  .form-page--wide { max-width: 100%; }

  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table th, .admin-table td { padding: 9px; font-size: 0.78rem; }
  .admin-actions-cell { flex-direction: column; align-items: flex-start; }

  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card { padding: 18px 10px; }
  .game-icon { width: 46px; height: 46px; font-size: 1.5rem; margin-bottom: 10px; }
  .game-card h3 { font-size: 0.85rem; }
  .game-card p { font-size: 0.7rem; }

  .chat-box { height: 62vh; padding: 12px; }
  .chat-bubble { max-width: 85%; }

  /* Dar ekranlarda chat-form'daki ikon butonları + "gönder" metni birlikte
     yazı kutusunu çok daraltıp placeholder'ın iki satıra bölünmesine sebep
     oluyordu — burada butonları küçültüp boşlukları sıkılaştırıyoruz. */
  .chat-form { gap: 5px; padding: 6px; }
  .chat-upload-btn { width: 36px; height: 36px; font-size: 1rem; }
  .chat-send-btn { padding: 10px 14px; font-size: 0.92rem; }
  #chat-input { padding: 10px 12px; }

  .blog-grid { grid-template-columns: repeat(3, 1fr); }

  .external-game-embed { padding: 12px; }

  .tabs a { padding: 7px 14px; font-size: 0.82rem; }

  /* Blog profilindeki gönderiler/medyalar/beğeniler/yanıtlar sekme
     çubuğu mobilde: gönderi çerçevesiyle aynı genişliğe uzatılıp, altına
     hemen bitişecek şekilde alt köşeleri düzleştiriliyor — ilk gönderi
     kartının da üst köşeleri/üst boşluğu kaldırılınca ikisi kesintisiz
     tek bir blok gibi görünüyor. .feed'in kendi CSS'i yok (boşluk
     tamamen .post-card'ın margin'inden geliyor), o yüzden bu iki
     kural yeterli. */
  .tabs--blog {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin-bottom: 0;
  }
  .tabs--blog + .feed .post-card:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 0;
  }

  .comment-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .post-actions { gap: 6px; }
  .action-btn { padding: 6px 12px; font-size: 0.78rem; }

  /* Mobilde "Yeni yazı" metin alanı eskiden çok kısaydı (4 satır) — daha
     rahat yazabilmek için taban yüksekliği artırıyoruz; içerik uzadıkça
     zaten JS ile kendiliğinden büyüyor (max 55vh'e kadar). */
  .block-editor-textarea { min-height: 160px; }
}

@media (max-width: 380px) {
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.6rem; }
}

/* ---------- Chat / İletiler tam ekran "app" iskeleti ----------
   Telefon VE tablet (≤768px) için ortak: menüye yanlışlıkla değip sohbetten
   çıkma sorununu önlemek için alt menü gizlenir, üstteki "geri" oku
   kullanılır. main, ekranın tamamını (var(--app-height)) kaplayan dikey bir
   flex kutusuna dönüşür; üstte başlık, ortada esneyip kayan mesaj listesi,
   en altta (flex akışının SON elemanı olarak, position:fixed KULLANMADAN)
   yazı kutusu. position:fixed kullanmamamızın sebebi: iOS Safari'de sabit
   konumlu elemanlar klavye açılınca güvenilir şekilde takip etmiyor ve yazı
   kutusunun yarısı klavyenin altında gömülü kalıyordu. Bunun yerine
   var(--app-height) değişkenini base.html'deki küçük bir script,
   window.visualViewport üzerinden gerçek görünür yüksekliğe göre canlı
   günceller — klavye açılınca flex kutusunun TAMAMI küçülür, yazı kutusu da
   (son eleman olduğu için) her zaman klavyenin hemen üstünde, tam görünür
   kalır. Bilerek SADECE dar/orta (mobil+tablet) ekranlarda çalışıyor —
   masaüstünde ayrı, viewport'a oturan (ama tam ekran olmayan) bir yükseklik
   kullanılıyor (aşağıdaki min-width:769px bloğuna bakın). */
@media (max-width: 768px) {
  .bottom-nav--hide-on-mobile { display: none; }
  body.body--chat-mobile {
    height: 100%;
    overflow: hidden;
    padding-bottom: 0;
  }
  body.body--chat-mobile main {
    height: var(--app-height, 100dvh);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    /* Üstte .topbar mobilde gizli (display:none) — normal tarayıcıda bu
       boşluğu adres çubuğu doldururdu, ama Capacitor'ın edge-to-edge
       WebView'inde main doğrudan status bar'ın altından başlıyor. Chat/DM
       üst satırındaki geri oku ve butonlar bu yüzden status bar'a yapışıp
       tıklanamaz hale geliyordu. env() masaüstü/normal tarayıcıda 0 olduğu
       için burada bir davranış değişikliği yaratmıyor. */
    padding: env(safe-area-inset-top, 0px) 0 0;
    margin: 0;
    overflow: hidden;
  }
  body.body--chat-mobile .flash { flex: 0 0 auto; margin: 8px 10px 0; }

  /* --- messages_thread.html (class tabanlı yerleşim) --- */
  body.body--chat-mobile .thread-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
  }
  body.body--chat-mobile .chat-box {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  body.body--chat-mobile #load-older-wrap,
  body.body--chat-mobile #typing-indicator,
  body.body--chat-mobile .reply-preview-bar,
  body.body--chat-mobile #picker-panel,
  body.body--chat-mobile .chat-form,
  body.body--chat-mobile .chat-blocked-notice,
  body.body--chat-mobile #chat-record-status {
    flex: 0 0 auto;
    margin-left: 10px;
    margin-right: 10px;
  }
  body.body--chat-mobile .chat-form {
    margin: 0;
    padding: 10px 12px calc(10px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  body.body--chat-mobile #chat-record-status:not(:empty) { padding-bottom: 6px; }

  /* --- chat_supabase.html (Supabase gömülü sohbet — id tabanlı yerleşim) --- */
  body.body--chat-mobile .external-chat-embed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    /* NOT: overflow:hidden VERMİYORUZ — emoji/gif seçici panelleri (#emoji-sticker-container,
       #gif-panel) input çubuğuna göre position:absolute ile YUKARI açılıyor; bu satır
       overflow:hidden olsaydı kısa ekranlarda üstten kırpılabilirlerdi. */
  }
  /* ÖNEMLİ: display'e !important VERMİYORUZ — chat_supabase.html'in kendi JS'i
     (enterChat/leaveChat) bu iki kutuyu birbirine karşı el ile gizleyip
     gösteriyor (style.display = 'none' / ''). !important kullansaydık, JS'in
     "gizle" komutu görmezden gelinir ve giriş formuyla sohbet odası AYNI ANDA
     görünür kalırdı. display dışındaki (genişlik/dolgu gibi) özellikler JS
     tarafından hiç dokunulmadığı için onlarda !important sorun yaratmıyor. */
  body.body--chat-mobile #chat-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
  }
  body.body--chat-mobile #chat-room {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px 0 !important;
    box-sizing: border-box;
  }
  body.body--chat-mobile #chat-messages {
    flex: 1 1 auto !important;
    min-height: 0;
    height: auto !important;
    border-radius: var(--radius-sm);
  }
  body.body--chat-mobile #chat-input-bar {
    flex: 0 0 auto;
    padding-bottom: calc(8px + max(env(safe-area-inset-bottom, 0px), var(--measured-safe-bottom, 0px)));
  }
}

/* ---------- Masaüstü: header görünür, alt menü gizli ---------- */
@media (min-width: 769px) {
  body { padding-bottom: 0; }
  .topbar { display: block; }
  .bottom-nav { display: none; }
  .fab { display: none; }
  main { padding: 44px 24px 64px; }
  .post-card:hover { transform: translateY(-4px); }

  /* ---------- Chat / İletiler masaüstünde ekran yüksekliğini kullansın ----------
     Eskiden #chat-messages sabit 400px / .chat-box sabit 55vh idi — bu, büyük
     masaüstü ekranlarında altta boşa giden koca bir beyaz alan bırakıyor ve
     sayfa "dengesiz" görünüyordu. Burada da mobildeki gibi main'i dikey bir
     flex kutusuna çeviriyoruz, ama viewport - header yüksekliği kadar bir
     üst sınırla (100dvh yerine) — böylece header hâlâ görünür kalıyor,
     sayfa kaymıyor, ve mesaj listesi kalan alanı dolduruyor. */
  body.body--chat-mobile main {
    height: calc(100dvh - var(--header-h));
    max-width: 760px;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
    overflow: hidden;
  }
  body.body--chat-mobile .flash { flex: 0 0 auto; }

  /* --- messages_thread.html --- */
  body.body--chat-mobile .thread-header { flex: 0 0 auto; }
  body.body--chat-mobile .chat-box {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
  body.body--chat-mobile #load-older-wrap,
  body.body--chat-mobile #typing-indicator,
  body.body--chat-mobile .reply-preview-bar,
  body.body--chat-mobile #picker-panel,
  body.body--chat-mobile .chat-form,
  body.body--chat-mobile .chat-blocked-notice,
  body.body--chat-mobile #chat-record-status {
    flex: 0 0 auto;
  }

  /* --- chat_supabase.html --- */
  body.body--chat-mobile .external-chat-embed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body.body--chat-mobile #chat-room {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.body--chat-mobile #chat-messages {
    flex: 1 1 auto !important;
    min-height: 0;
    height: auto !important;
  }
  body.body--chat-mobile #chat-input-bar { flex: 0 0 auto; }
  body.body--chat-mobile #chat-login { display: flex; flex-direction: column; justify-content: center; }

  /* Oyun tahtaları: eski satır-içi (inline) stiller telefon genişliğine göre
     sabit bir max-width taşıyordu (ör. 260-360px) — masaüstünde bu, geniş
     ekranın ortasında gereksiz küçük kalıyordu. ID'ler inline style'dan daha
     düşük öncelikli olduğu için !important gerekiyor. */
  #tt-board { max-width: 340px !important; }
  #mm-board { max-width: 400px !important; }
  #mm6-board { max-width: 460px !important; }
  #bs-own-board, #bs-enemy-board, #bs-my-board { max-width: 460px !important; }
}

/* "Eski mesajları yükle" kontrolü — hem Chat (public oda) hem İletiler'de
   aynı görünüm; sadece Chat'te JS ile dinamik ekleniyor. */
#chat-load-older-wrap { text-align: center; margin: 0 0 10px; flex: 0 0 auto; }
#chat-load-older-btn { font-size: 0.78rem; }

/* Dokunmatik hedefleri büyüt (parmakla tıklama kolaylığı) */
@media (hover: none) and (pointer: coarse) {
  .action-btn, .bottom-nav a, .chat-upload-btn, .swatch { min-height: 36px; }
  .reply-btn { padding: 6px 8px; }
}

/* ---------- Gömülü Supabase chat ----------
   Bu widget'ın kendi CSS'i inline (style="...") olduğu için, ezmek için
   !important kullanmak gerekiyor — normal özgüllük kuralları yetmiyor. */

/* Her mesaj kutusunu dikey bir sütun haline getiriyoruz: bu şekilde metin,
   varsa görsel/ses, ve reaksiyon satırı HER ZAMAN üst üste, sırayla dizilir —
   metnin uzunluğu/satır sayısı ne olursa olsun reaksiyonlar asla yana kaymaz. */
.external-chat-embed .chat-msg {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.external-chat-embed .chat-msg:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }

.chat-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-full);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease-spring);
}
.chat-icon-btn:hover { background: var(--accent-soft); }

/* #chat-login zaten kart görünümlü .external-chat-embed'in İÇİNDE — kendine
   ayrı bir kart (arkaplan/kenarlık/gölge) vermiyoruz, yoksa iç içe iki kutu
   gibi görünüyor. Sadece ortalıyor ve biraz dikey nefes payı veriyoruz. */
#chat-login {
  margin: 16px auto;
  padding: 8px 0;
}
#chat-login input#chat-username {
  border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
  font-family: inherit; font-size: 1rem !important; background: var(--bg) !important; color: var(--ink) !important;
}
#chat-login button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important; color: #fff !important;
  border: none !important; border-radius: var(--radius-full) !important; font-weight: 700 !important;
  box-shadow: var(--shadow-accent); cursor: pointer;
}
/* Aynı sebeple #chat-room'a da ayrı kart vermiyoruz — .external-chat-embed
   zaten kart, içindeki mesaj kutusu (#chat-messages) kendi arkaplanıyla
   yeterince ayrışıyor. */
#chat-room { padding: 2px 0 0; }
#chat-messages {
  border: none !important; background: var(--bg) !important; border-radius: var(--radius-md) !important;
}
/* Eskiden hem arkaplan (var(--bg)) hem kenarlık (var(--border), %8 opak)
   beyaz karta çok yakın tonlardaydı — yazı kutusu neredeyse görünmüyordu.
   Daha belirgin bir arkaplan + kenarlık ve odaklanınca net bir vurgu veriyoruz. */
#chat-input-bar textarea, #chat-input-bar input[type="text"] {
  border: 1.5px solid var(--border-strong) !important; border-radius: var(--radius-full) !important;
  background: var(--bg-soft) !important; font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
#chat-input-bar textarea:focus, #chat-input-bar input[type="text"]:focus {
  outline: none !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
#chat-input-bar textarea::placeholder, #chat-input-bar input[type="text"]::placeholder {
  color: var(--muted-soft);
}
#chat-input-bar button {
  border-radius: var(--radius-full) !important;
}

@media (max-width: 600px) {
  .external-chat-embed #chat-room,
  .external-chat-embed #chat-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .external-chat-embed #chat-messages {
    padding: 12px 10px !important;
    font-size: 0.95rem;
  }
  .external-chat-embed .chat-msg {
    margin-bottom: 6px !important;
  }
  .external-chat-embed .chat-msg p {
    line-height: 1.4 !important;
    word-break: break-word;
  }
}

/* ---------- DM sesli arama (gelen/giden/aktif) ---------- */
.call-overlay {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 4, 20, 0.92); backdrop-filter: blur(6px);
}
.call-overlay[hidden] { display: none; }
.call-overlay-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; }
.call-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 10px;
  border: 3px solid var(--accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent);
}
.call-username { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 0; }
.call-subtitle { font-size: 0.9rem; color: var(--muted); margin: 0 0 20px; }
.call-actions { display: flex; gap: 28px; }
.call-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s var(--ease);
}
.call-btn:hover { transform: scale(1.06); }
.call-btn--accept { background: #22c55e; color: #fff; }
.call-btn--reject { background: #ef4444; color: #fff; }

.active-call-bar {
  position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  z-index: 9998; display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}
.active-call-bar[hidden] { display: none; }
.active-call-bar span { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.active-call-bar button {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
#active-call-mic { background: var(--bg-soft); }
#active-call-end { background: #ef4444; color: #fff; }

.dm-toast {
  /* Sayfa başlıklarının olduğu üst konumda çıksın diye altta değil,
     durum çubuğunun (varsa) hemen altında, üstte gösteriliyor. */
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -12px); z-index: 9999; display: flex; align-items: center; gap: 10px;
  max-width: min(90vw, 380px); padding: 10px 16px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.dm-toast[hidden] { display: none; }
.dm-toast--visible { opacity: 1; transform: translate(-50%, 0); }
.dm-toast-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dm-toast-text { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* ========================================================================
   Kitaplık
   ======================================================================== */
.library-notice {
  background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 20px; font-size: 0.88rem; line-height: 1.5;
}
.library-scan-confirm {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-md);
  padding: 12px 16px; margin: -8px 0 16px; font-size: 0.9rem; line-height: 1.5;
}
.library-scan-confirm-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Kapak fotoğrafı: çekme butonu + önizleme + kırpma penceresi
   (kullanıcı isteği: "fotoğraf çekme düğmesine basayım, fotoğrafı kırpsın") */
.library-cover-preview-wrap { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.library-cover-preview { width: 90px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.library-crop-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,14,0.65);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.library-crop-overlay[hidden] { display: none; }
.library-crop-box {
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 340px; padding: 18px;
}
.library-crop-frame {
  width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden;
  position: relative; background: #000; touch-action: none; cursor: grab;
}
.library-crop-frame:active { cursor: grabbing; }
.library-crop-frame img { position: absolute; top: 0; left: 0; transform-origin: top left; user-select: none; -webkit-user-drag: none; }
#library-crop-zoom { width: 100%; margin: 14px 0; }
.library-crop-actions { display: flex; gap: 8px; justify-content: flex-end; }
.library-form-row { display: flex; gap: 14px; }
.library-form-row label { flex: 1; }
.library-author-field { position: relative; }
.library-author-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--card-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px;
  max-height: 200px; overflow-y: auto;
}
.library-author-suggestion-item {
  display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: none;
  border-radius: var(--radius-xs); font-family: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer;
}
.library-author-suggestion-item:hover { background: var(--accent-soft); color: var(--accent); }

.library-sort-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.library-sort-tab {
  color: var(--muted); text-decoration: none; padding: 7px 16px; border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 600; background: var(--bg-soft); transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.library-sort-tab:hover { color: var(--ink); }
.library-sort-tab--active { background: var(--accent); color: #fff; }

.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.library-letter-divider {
  grid-column: 1 / -1; margin: 8px 0 -6px; padding-bottom: 4px; border-bottom: 1px solid var(--border);
  font-size: 1rem; font-weight: 700; color: var(--muted);
}
.library-letter-divider:first-child { margin-top: 0; }
.library-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.library-card-cover {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.library-card-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.library-card-title { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.library-card-author { margin: 0; font-size: 0.85rem; color: var(--muted); }
.library-card-rating { margin: 0; font-size: 0.8rem; color: var(--ink); font-weight: 600; }
.library-card-rating span { color: var(--muted); font-weight: 400; }
.library-card-meta { margin: 0; font-size: 0.78rem; color: var(--muted-soft); }
.library-card-note { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.library-card-added-by {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.78rem; color: var(--muted);
  text-decoration: none;
}
.library-card-added-by:hover { color: var(--accent); }
.library-card-added-by .avatar--tiny { width: 20px; height: 20px; font-size: 0.7rem; }
.library-card form { margin-top: 8px; }
.library-card-owner-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.library-card-owner-actions form { margin-top: 0; }

/* ---------- Kitap detay sayfası ---------- */
.library-book-page { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.library-book-cover {
  width: 180px; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); flex-shrink: 0;
}
.library-book-info { flex: 1; min-width: 220px; }
.library-book-info h1 { margin: 0 0 4px; font-size: 1.4rem; }
.library-book-author { margin: 0 0 8px; font-size: 1rem; color: var(--muted); }
.library-book-meta { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted-soft); }
.library-book-note { margin: 0 0 14px; font-size: 0.88rem; color: var(--muted); font-style: italic; }

.library-rating-box { margin-top: 16px; background: var(--bg-soft); border-radius: var(--radius-md); padding: 14px; }
.library-rating-summary { font-size: 0.95rem; margin-bottom: 6px; }
.library-rating-summary span { color: var(--muted); font-weight: 400; }
.library-rating-stars { display: flex; gap: 4px; }
.library-star {
  background: none; border: none; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 0;
  color: var(--border-strong); transition: color 0.15s var(--ease), transform 0.1s var(--ease);
}
.library-star:hover { transform: scale(1.15); }
.library-star--filled { color: #f0b400; }

/* .comment-form ile AYNI görünüm ama farklı sınıf adı — base.html'deki
   global .comment-form gönderim yakalayıcısı POST yazısı yorumlarına özel
   (data-postid, .comments-block bekliyor), kitap yorumlarında YANLIŞLIKLA
   tetiklenip formu kırmasın diye kasıtlı olarak ayrı bir sınıf. */
.library-comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.library-comment-form textarea {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); resize: none;
  max-height: 120px; overflow-y: auto; line-height: 1.4;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.library-comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.library-comment-form button {
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 10px 20px; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
.library-comment-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }

/* Sesli oda: mini yazışma (kullanıcı isteği: "sesini açmak istemeyenler
   için mini chat alanı ekler misin") */
.voice-chat-messages {
  display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto;
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-soft); margin-bottom: 12px;
}
.voice-chat-message { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; line-height: 1.4; }
.voice-chat-message .avatar--tiny { width: 20px; height: 20px; font-size: 0.7rem; flex-shrink: 0; margin-top: 2px; }
.voice-chat-message strong { color: var(--accent); }
.voice-chat-form { display: flex; gap: 8px; align-items: center; }
.voice-chat-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.voice-chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.voice-chat-form button {
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 10px 20px; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
.voice-chat-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }

/* Ortak Player (kullanıcı isteği: "youtube ya da başka bir ortamın
   linkini atınca oradan izleyeceğiz, biri pause butonuna basarsa herkes
   için duracak") — .media-set-form/.media-player-box .voice-chat-form
   ile aynı görsel dil, mini sohbet zaten .voice-chat-* sınıflarını
   doğrudan paylaşıyor (aralarında hiçbir JS bağı yok, salt görsel). */
.media-set-form { display: flex; gap: 8px; margin-bottom: 16px; }
.media-set-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-family: inherit; font-size: 0.95rem; background: var(--bg); color: var(--ink);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.media-set-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.media-set-form button {
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border-radius: var(--radius-full); padding: 10px 20px; font-family: inherit; font-weight: 600; cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease);
}
.media-set-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.media-player-box { margin-bottom: 8px; }
#media-yt-container { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
#media-yt-container iframe, #media-yt-player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#media-video-player { width: 100%; border-radius: var(--radius-md); background: #000; max-height: 400px; }

/* "🎬 Film modu" (kullanıcı isteği: "yanlışlıkla alt menüden bir şeye
   dokunması... film modu diye bir buton koysak, chat ve film modu
   dışında hiçbir şey çalışmasa, ekranı siyahlaştırsak") — .bottom-nav
   z-index:999, .topbar z-index:40 olduğu için overlay ikisinin de
   ÜSTÜNDE (5000) durup tıklamaları yutuyor; player+yazışma ondan da
   yüksek katmanda (5001) kalıp normal çalışmaya devam ediyor. */
#media-cinema-overlay {
  /* Kullanıcı isteği: "full karanlık yapalım mı diğer yerleri" — %38'lik
     hafif karartmadan, geri kalan her şeyi neredeyse tamamen gizleyen
     dolu siyaha çıkarıldı. */
  position: fixed; inset: 0; z-index: 5000; background: rgba(0, 0, 0, 0.97);
}
#media-cinema-overlay[hidden] { display: none; }
body.media-cinema-active #media-cinema-safe-zone {
  position: relative; z-index: 5001; background: var(--bg); border-radius: var(--radius-md); padding: 10px;
}
/* Açma/kapama butonunun kendisi de HER ZAMAN overlay'in üstünde kalmalı —
   yoksa film modu açılınca kendi kapatma düğmesi de örtünün altında kalıp
   tıklanamaz hale gelirdi (kullanıcı isteği: "...film modunu açıp kapatma
   butonu dışında hiçbir şey çalışmasa" — bu istisnanın ta kendisi). */
#media-cinema-toggle-btn { position: relative; z-index: 5001; }

/* "☕ Mola" bildirimi (kullanıcı isteği: "ekranda x mola istiyor... yazsa")
   — .dm-toast'tan bilerek AYRI: daha dolu/uyarı rengi, ses eşliğinde
   olduğu için daha "acil" hissettirmesi gerekiyor. */
.media-break-banner {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  z-index: 9999; max-width: min(90vw, 380px); padding: 14px 20px; text-align: center;
  background: var(--danger); color: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 0.92rem;
}
.media-break-banner[hidden] { display: none; }

.media-queue-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.media-queue-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.85rem;
}
