/* =========================================================================
   Revidience — "cam" (frosted glass) arayüzü
   Bootstrap yok; tüm stiller burada. Renkler :root üzerinde token olarak.
   ========================================================================= */

/* ---------- Yazı tipleri (uygulamaya gömülü, SIL Open Font License 1.1 — wwwroot/fonts/OFL-*.txt) ----------
   Başlıklar: Bricolage Grotesque · Gövde: Inter. Yalnız latin + latin-ext (Türkçe) alt kümeleri. */
/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokenlar: açık tema ---------- */
:root {
  color-scheme: light;

  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font: "Inter", var(--font-system);
  --font-head: "Bricolage Grotesque", "Inter", var(--font-system);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #eef1f7;
  --amb-1: rgba(255, 150, 200, .75);
  --amb-2: rgba(120, 170, 255, .80);
  --amb-3: rgba(120, 225, 190, .70);
  --amb-4: rgba(255, 195, 130, .70);

  --text: #0d1017;
  --text-2: rgba(22, 26, 36, .66);
  --text-3: rgba(22, 26, 36, .45);

  --glass-bg: rgba(255, 255, 255, .52);
  --glass-bg-strong: rgba(255, 255, 255, .74);
  --glass-solid: rgba(248, 249, 252, .97);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-edge: rgba(20, 28, 45, .08);
  --glass-highlight: rgba(255, 255, 255, .95);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 45%);
  --blur: 22px;
  --saturate: 180%;

  --shadow-sm: 0 1px 2px rgba(15, 22, 40, .06), 0 4px 12px rgba(15, 22, 40, .06);
  --shadow: 0 1px 2px rgba(15, 22, 40, .05), 0 10px 30px rgba(15, 22, 40, .08), 0 30px 60px -20px rgba(15, 22, 40, .16);
  --shadow-lift: 0 2px 4px rgba(15, 22, 40, .08), 0 18px 40px -8px rgba(15, 22, 40, .25);

  --fill: rgba(118, 128, 150, .14);
  --fill-hover: rgba(118, 128, 150, .22);
  --separator: rgba(22, 26, 36, .08);
  --placeholder: linear-gradient(160deg, #dfe5f0, #c9d2e3);

  --accent: #3f5f8f;
  --accent-hover: #34507a;
  --accent-contrast: #fff;
  --accent-soft: rgba(63, 95, 143, .10);
  --focus: rgba(63, 95, 143, .35);

  --st-plan: #0a9bd6;
  --st-watching: #e88a00;
  --st-done: #1f9d4c;
  --success: #1f9d4c;
  --success-soft: rgba(31, 157, 76, .14);
  --danger: #d93a3f;
  --danger-soft: rgba(217, 58, 63, .12);
  --warning-soft: rgba(232, 138, 0, .14);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --gutter: 16px;
  --gutter-l: max(var(--gutter), env(safe-area-inset-left));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right));
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Tokenlar: koyu tema (sistem tercihi veya elle seçilmiş) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #06070b;
    --amb-1: rgba(120, 60, 220, .60);
    --amb-2: rgba(20, 110, 200, .55);
    --amb-3: rgba(210, 40, 130, .42);
    --amb-4: rgba(20, 150, 130, .38);
    --text: #f3f5fa;
    --text-2: rgba(232, 238, 255, .68);
    --text-3: rgba(232, 238, 255, .44);
    --glass-bg: rgba(28, 31, 42, .48);
    --glass-bg-strong: rgba(34, 38, 50, .72);
    --glass-solid: rgba(22, 24, 32, .97);
    --glass-border: rgba(255, 255, 255, .10);
    --glass-edge: rgba(0, 0, 0, .45);
    --glass-highlight: rgba(255, 255, 255, .16);
    --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 45%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35), 0 30px 60px -20px rgba(0, 0, 0, .5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 20px 44px -8px rgba(0, 0, 0, .6);
    --fill: rgba(255, 255, 255, .08);
    --fill-hover: rgba(255, 255, 255, .14);
    --separator: rgba(255, 255, 255, .08);
    --placeholder: linear-gradient(160deg, #23273a, #171a26);
    --accent: #9db2d6;
    --accent-hover: #b6c7e3;
    --accent-soft: rgba(157, 178, 214, .14);
    --focus: rgba(157, 178, 214, .4);
    --accent-contrast: #0f1420;
    --st-plan: #3cc3ff;
    --st-watching: #ffad33;
    --st-done: #3ed176;
    --success: #3ed176;
    --success-soft: rgba(62, 209, 118, .16);
    --danger: #ff6b6f;
    --danger-soft: rgba(255, 107, 111, .14);
    --warning-soft: rgba(255, 173, 51, .14);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06070b;
  --amb-1: rgba(120, 60, 220, .60);
  --amb-2: rgba(20, 110, 200, .55);
  --amb-3: rgba(210, 40, 130, .42);
  --amb-4: rgba(20, 150, 130, .38);
  --text: #f3f5fa;
  --text-2: rgba(232, 238, 255, .68);
  --text-3: rgba(232, 238, 255, .44);
  --glass-bg: rgba(28, 31, 42, .48);
  --glass-bg-strong: rgba(34, 38, 50, .72);
  --glass-solid: rgba(22, 24, 32, .97);
  --glass-border: rgba(255, 255, 255, .10);
  --glass-edge: rgba(0, 0, 0, .45);
  --glass-highlight: rgba(255, 255, 255, .16);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 45%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35), 0 30px 60px -20px rgba(0, 0, 0, .5);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 20px 44px -8px rgba(0, 0, 0, .6);
  --fill: rgba(255, 255, 255, .08);
  --fill-hover: rgba(255, 255, 255, .14);
  --separator: rgba(255, 255, 255, .08);
  --placeholder: linear-gradient(160deg, #23273a, #171a26);
  --accent: #9db2d6;
  --accent-hover: #b6c7e3;
  --accent-soft: rgba(157, 178, 214, .14);
  --focus: rgba(157, 178, 214, .4);
  --accent-contrast: #0f1420;
  --st-plan: #3cc3ff;
  --st-watching: #ffad33;
  --st-done: #3ed176;
  --success: #3ed176;
  --success-soft: rgba(62, 209, 118, .16);
  --danger: #ff6b6f;
  --danger-soft: rgba(255, 107, 111, .14);
  --warning-soft: rgba(255, 173, 51, .14);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Camın arkasındaki renkli ortam ışığı */
.ambient {
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 12% 8%, var(--amb-1), transparent 70%),
    radial-gradient(45vmax 45vmax at 92% 18%, var(--amb-2), transparent 70%),
    radial-gradient(40vmax 40vmax at 78% 92%, var(--amb-3), transparent 70%),
    radial-gradient(38vmax 38vmax at 8% 85%, var(--amb-4), transparent 70%),
    var(--bg);
  animation: ambient-drift 40s var(--ease) infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2vmax, 2vmax, 0) scale(1.06); }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--accent-hover); } }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .875em; }
em { font-style: normal; font-weight: 600; color: var(--text); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.muted { color: var(--text-2); }
.small { font-size: .875rem; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-contrast);
}
.skip-link:focus { top: calc(env(safe-area-inset-top) + 8px); color: var(--accent-contrast); }

/* ---------- Cam yüzey ---------- */
.glass {
  background: var(--glass-sheen), var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, .04),
    0 0 0 .5px var(--glass-edge),
    var(--shadow);
}
.glass-strong { background: var(--glass-sheen), var(--glass-bg-strong); }

.card {
  border-radius: var(--r-lg);
  padding: 20px;
}

/* backdrop-filter desteklenmiyorsa daha opak yüzeyler */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-bg: var(--glass-solid);
    --glass-bg-strong: var(--glass-solid);
  }
}

/* Şeffaflığın azaltılması istenmişse */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass-bg: var(--glass-solid);
    --glass-bg-strong: var(--glass-solid);
  }
  .glass, .poster-badge, .icon-btn, .rail-btn, .hero .chip {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .ambient { opacity: .5; }
}

/* ---------- Yerleşim ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.page {
  flex: 1 0 auto;
  padding-top: 8px;
  padding-bottom: 32px;
}

/* ---------- Üst çubuk ---------- */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gutter-r) 10px var(--gutter-l);
}
.topbar {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  color: var(--text);
  min-height: 44px;
  margin-right: auto;
}
@media (hover: hover) { .brand:hover { color: var(--text); } }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .9), transparent 45%),
    linear-gradient(135deg, #ff5f8f, #7a5cff 50%, #2bb5ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 10px rgba(122, 92, 255, .35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px; top: 8px;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

.topnav, .topsearch { display: none; }

.topnav {
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--fill);
}
.topnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-weight: 600;
  font-size: .9375rem;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) { .topnav-link:hover { color: var(--text); background: var(--fill); } }
.topnav-link.is-active {
  color: var(--text);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
}

.topsearch { position: relative; align-items: center; }
.topsearch svg {
  position: absolute; left: 14px;
  width: 18px; height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.topsearch input { width: 220px; padding-left: 40px; transition: width .3s var(--ease); }
.topsearch input:focus { width: 280px; }

.icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  color: var(--text);
  background: var(--fill);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--spring);
}
@media (hover: hover) { .icon-btn:hover { background: var(--fill-hover); } }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }

/* Tema düğmesi: modu gösteren ikon */
.theme-toggle .i-sun, .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-auto,
:root[data-theme="dark"] .theme-toggle .i-auto { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- Alt sekme çubuğu (telefon) ---------- */
.tabbar {
  position: fixed;
  z-index: 50;
  left: var(--gutter-l);
  right: var(--gutter-r);
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: var(--tabbar-h);
  padding: 6px;
  border-radius: var(--r-pill);
  max-width: 480px;
  margin-inline: auto;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease), background-color .25s var(--ease), transform .25s var(--spring);
}
.tab svg { width: 24px; height: 24px; }
@media (hover: hover) { .tab:hover { color: var(--text); } }
.tab:active { transform: scale(.94); }
.tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

/* Arama sayfası (alt çubuktan açılır) */
.search-sheet {
  position: fixed;
  z-index: 49;
  left: var(--gutter-l);
  right: var(--gutter-r);
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 10px);
  max-width: 480px;
  margin-inline: auto;
  padding: 10px;
  border-radius: var(--r-lg);
  animation: sheet-in .35s var(--spring);
}
.search-sheet[hidden] { display: none; }
.search-sheet form { display: flex; gap: 8px; }
.search-sheet input { flex: 1; min-width: 0; }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.page { padding-bottom: calc(var(--tabbar-h) + max(12px, env(safe-area-inset-bottom)) + 32px); }
.footer { padding-bottom: calc(var(--tabbar-h) + max(12px, env(safe-area-inset-bottom)) + 24px) !important; }

@media (min-width: 768px) {
  .topnav, .topsearch { display: flex; }
  .brand { margin-right: 8px; }
  .topnav { margin-right: auto; }
  .tabbar, .search-sheet { display: none !important; }
  .page { padding-top: 16px; padding-bottom: 48px; }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .topsearch input, .topsearch input:focus { width: 160px; }
  .topnav-link { padding: 0 12px; }
}

/* ---------- Alt bilgi ---------- */
.footer {
  flex: none;
  padding-top: 24px;
  font-size: .8125rem;
  color: var(--text-3);
  text-align: center;
}
.footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Form öğeleri ---------- */
.input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 1rem; /* iOS yakınlaştırmasını önler */
  color: var(--text);
  background: var(--fill);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: var(--text-3); }
@media (hover: hover) { .input:hover { background: var(--fill-hover); } }
.input:focus {
  outline: none;
  background: var(--glass-bg-strong);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input::-webkit-search-cancel-button { -webkit-appearance: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--text);
  background: var(--fill);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--spring), box-shadow .2s var(--ease);
}
@media (hover: hover) { .btn:hover { background: var(--fill-hover); } }
.btn:active { transform: scale(.96); }
.btn-primary {
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -4px var(--focus);
}
@media (hover: hover) { .btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); } }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }

/* ---------- Başlıklar ve bölümler ---------- */
.page-head { margin: 8px 0 24px; }
.page-title {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.page-sub { margin: 6px 0 0; color: var(--text-2); }

.section { margin-bottom: 40px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 1.3125rem;
  font-weight: 700;
}
.section-sub {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin: 0 0 10px 4px;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  margin-left: 6px;
  font-size: .75rem;
  font-weight: 700;
  vertical-align: middle;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--text-2);
}

.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; } /* uzun içerik sütunu genişletmesin */
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.empty {
  padding: 24px;
  border-radius: var(--r-lg);
  color: var(--text-2);
  text-align: center;
}
.empty p:last-child { margin-bottom: 0; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* Arkadaş daveti */
.invite-nudge { text-align: center; color: var(--text-3); font-size: .875rem; margin: 12px 0 0; }
.invite-nudge a { color: var(--text-2); font-weight: 600; }
.invite-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); margin-bottom: 24px; }
.invite-hero-copy { flex: 1; min-width: 0; }
.invite-hero-copy .section-title { margin: 0 0 4px; }
.invite-hero-copy p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.invite-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--accent); }
.invite-icon svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .invite-hero { flex-direction: column; text-align: center; } .invite-hero .btn { width: 100%; } }
.invite-card { text-align: center; }
.invite-card .invite-icon { margin: 0 auto 12px; }
.invite-card .btn + .btn { margin-top: 8px; }
.invite-link .input { text-align: center; font-size: .9375rem; }
.invite-code { margin: 8px 0 16px; }
.empty-inline { color: var(--text-3); font-size: .9375rem; margin: 0; padding: 8px 4px; }

/* ---------- Afiş ızgarası ---------- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 14px;
}
@media (max-width: 380px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 20px; } }

.poster-card {
  display: block;
  min-width: 0;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .poster-card:hover { color: var(--text); } }
.poster-img {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--placeholder);
  box-shadow: 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.poster-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Specular kenar parlaması */
.poster-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: linear-gradient(155deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%);
  opacity: .7;
  transition: opacity .35s var(--ease);
}
.poster-fallback {
  padding: 12px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-2);
}
@media (hover: hover) {
  .poster-card:hover .poster-img { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 0 .5px var(--glass-edge), var(--shadow-lift); }
  .poster-card:hover .poster-img::after { opacity: 1; }
}
.poster-card:active .poster-img { transform: scale(.97); }

.poster-badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 4px 10px 4px 8px;
  font-size: .6875rem;
  font-weight: 700;
  color: #fff;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 30, .45);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 8px rgba(0, 0, 0, .2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}
.poster-badge::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot, #fff);
  box-shadow: 0 0 6px var(--dot, #fff);
}
.status-IzlenecekListesi { --dot: var(--st-plan); }
.status-Izleniyor { --dot: var(--st-watching); }
.status-Tamamlandi { --dot: var(--st-done); }
.status-AraVerildi { --dot: #a78bfa; }   /* mor: beklemede */
.status-Birakildi { --dot: #9aa3b2; }    /* gri: bırakıldı */

.poster-title {
  margin-top: 10px;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poster-sub { margin-top: 2px; font-size: .8125rem; color: var(--text-3); }

/* ---------- Yatay kaydırmalı raflar ---------- */
.rail { position: relative; }
.rail .poster-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(124px, 36vw, 168px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter-l);
  margin-left: calc(var(--gutter-l) * -1);
  margin-right: calc(var(--gutter-r) * -1);
  padding: 6px var(--gutter-r) 14px var(--gutter-l);
  scrollbar-width: none;
}
.rail .poster-grid::-webkit-scrollbar { display: none; }
.rail .poster-card { scroll-snap-align: start; }
@media (min-width: 768px) {
  .rail .poster-grid { grid-auto-columns: 176px; gap: 20px; }
}

.rail-btn {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--spring);
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.prev { left: -12px; }
.rail-btn.next { right: -12px; }
.rail-btn:disabled { opacity: 0 !important; pointer-events: none; }
.rail-btn:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) {
  .rail-btn { display: grid; }
  .rail:hover .rail-btn, .rail-btn:focus-visible { opacity: 1; }
}

/* ---------- Bölüm listesi (ana sayfa) ---------- */
.list {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--r-lg);
}
.list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease);
}
.list-row + .list-row::before {
  content: "";
  position: absolute;
  top: 0; left: 12px; right: 12px;
  border-top: 1px solid var(--separator);
}
@media (hover: hover) { .list-row:hover { background: var(--fill); } }
@media (hover: hover) { .list-row:hover::before, .list-row:hover + .list-row::before { opacity: 0; } }
.list-main { flex: 1; min-width: 0; }
/* İsim + bot/kilit işareti aynı satırda; uzun isim kısalır, işaret hep görünür */
.list-name { display: flex; align-items: center; min-width: 0; }
.list-name .list-title { min-width: 0; }
.list-name .lock-badge, .list-name .bot-badge { flex: none; }
.list-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* tüm satır tıklanabilir */
@media (hover: hover) { .list-title:hover { color: var(--text); } }
.list-meta {
  font-size: .8125rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Satır geneli linkin üstünde kalan tıklanabilir öğeler */
a.list-meta { display: block; position: relative; z-index: 1; }
@media (hover: hover) { a.list-meta:hover { color: var(--accent); } }
.list-row .watch-form { position: relative; z-index: 1; margin: -5px -4px -5px 0; }
.list-row.is-watched .list-title,
.list-row.is-watched .list-meta { color: var(--text-3); }
.code {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-3);
}

/* ---------- Çipler / rozetler ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--text-2);
}
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-date { font-variant-numeric: tabular-nums; }

/* ---------- Detay sayfası: hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 62vw, 480px);
  margin: 0 0 20px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3a2b7a, #1b4f8a 55%, #0f6d6a);
  box-shadow: 0 0 0 .5px var(--glass-edge), var(--shadow);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-content {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  padding: 20px;
}
.hero-poster {
  flex: none;
  width: 96px;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .45);
}
.hero-text { min-width: 0; }
.eyebrow {
  margin: 0 0 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .75);
}
.hero-title {
  font-size: clamp(1.625rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
  overflow-wrap: anywhere;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hero .chip {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.chip-star { color: #ffd76a !important; }

@media (min-width: 768px) {
  .hero-content { gap: 28px; padding: 32px; }
  .hero-poster { width: 180px; border-radius: var(--r-md); }
}
@media (min-width: 1024px) {
  .hero-poster { width: 220px; }
}

.detail-layout { display: grid; gap: 20px; }
.detail-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail-main > section { margin-top: 12px; }
.detail-aside { order: -1; min-width: 0; } /* telefonda "nerede izlenir" üstte */
@media (min-width: 960px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .detail-aside { order: 0; position: sticky; top: 96px; }
}
.overview { font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.panel-title {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin: 0 0 12px;
}

.callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text);
}
.callout svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.callout-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }

/* ---------- Durum seçici (segmented control) ---------- */
.status-form { display: grid; gap: 12px; }
.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--fill);
}
.segment { position: relative; display: block; min-width: 0; }
.segment input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: var(--text-2);
  transition: background-color .25s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--spring);
}
.segment span::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--text-3));
}
.segment.status-Yok span::before { display: none; }
@media (hover: hover) { .segment:hover span { color: var(--text); } }
.segment input:checked + span {
  color: var(--text);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), var(--shadow-sm);
}
.segment input:active + span { transform: scale(.97); }
.segment input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.status-save { width: 100%; }
/* JS varsa seçim anında kaydedilir; düğme gizlenir */
.js .status-form[data-autosubmit] .status-save { display: none; }
.status-form.is-saving { opacity: .6; pointer-events: none; }

/* ---------- Sezon seçici ---------- */
.pills {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 calc(var(--gutter-r) * -1) 16px calc(var(--gutter-l) * -1);
  padding: 4px var(--gutter-r) 8px var(--gutter-l);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pills li { flex: none; scroll-snap-align: start; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  color: var(--text-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) { .pill:hover { color: var(--text); background: var(--glass-bg-strong); } }
.pill.active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -6px var(--focus);
}
@media (min-width: 768px) {
  .pills { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- İlerleme ---------- */
.progress-wrap { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: .875rem; color: var(--text-2); margin-bottom: 6px; }
.progress-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
.progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--fill);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: width .6s var(--ease);
}

/* ---------- Bölüm satırları (dizi detayı) ---------- */
.episodes-panel { scroll-margin-top: 96px; transition: opacity .2s var(--ease); }
.episodes-panel.is-loading { opacity: .45; pointer-events: none; }
.episodes {
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: var(--r-lg);
}
.episode {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-md);
  scroll-margin-top: 96px;
  transition: background-color .2s var(--ease);
}
.episode + .episode::before {
  content: "";
  position: absolute;
  top: 0; left: 12px; right: 12px;
  border-top: 1px solid var(--separator);
}
@media (hover: hover) { .episode:hover { background: var(--fill); } }
.episode:target { background: var(--accent-soft); }

.episode-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  border-radius: var(--r-sm);
}
@media (hover: hover) { .episode-link:hover { color: inherit; } }
.episode-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.episode-thumb {
  position: relative;
  flex: none;
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--fill);
  box-shadow: 0 0 0 .5px var(--glass-edge);
}
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .25s var(--ease); }
.episode-thumb-fallback {
  display: grid; place-items: center; height: 100%;
  font-size: 1.5rem; font-weight: 700; color: var(--text-3);
}
.episode-num {
  position: absolute; left: 6px; bottom: 6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.episode-thumb-fallback + .episode-num { display: none; }

.episode-body { display: grid; gap: 2px; min-width: 0; }
.episode-title {
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.episode-meta { font-size: .8125rem; color: var(--text-2); }
.episode-overview {
  font-size: .8125rem; color: var(--text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.episode.is-upcoming .episode-title { color: var(--text-2); }
.episode.is-upcoming .episode-thumb img { filter: grayscale(.6) opacity(.7); }
.episode.is-watched .episode-title { color: var(--text-2); }
.episode.is-watched .episode-thumb img { filter: saturate(.55) brightness(.85); }
.episode-action { display: flex; align-items: center; }
.chip-soon { font-size: .75rem; }
.watch-form { margin: 0; }

/* Yuvarlak onay düğmesi: görünür 34px, dokunma alanı 44px */
.check-btn {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-3);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--separator-strong, var(--text-3));
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.check-btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.check-btn svg { width: 18px; height: 18px; opacity: .35; transition: opacity .2s var(--ease); }
@media (hover: hover) { .check-btn:hover { color: var(--success); box-shadow: inset 0 0 0 1.5px var(--success); } }
@media (hover: hover) { .check-btn:hover svg { opacity: .8; } }
.check-btn:active { transform: scale(.9); }
.check-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-btn.is-watched {
  color: #fff;
  background: var(--success);
  box-shadow: 0 2px 8px var(--success-soft);
}
.check-btn.is-watched svg { opacity: 1; }
.is-busy .check-btn, .is-busy .btn-watch { opacity: .7; }

/* Etiketli sürüm (bölüm sayfası) */
.btn-watch {
  width: 100%;
  min-height: 48px;
  gap: 8px;
  color: var(--text);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--separator);
}
.btn-watch svg { width: 20px; height: 20px; opacity: .45; }
.btn-watch.is-watched { color: var(--success); background: var(--success-soft); box-shadow: none; }
.btn-watch.is-watched svg { opacity: 1; }

@media (min-width: 640px) {
  .episode-thumb { width: 160px; }
}

/* ---------- Bölüm sayfası ---------- */
.crumbs { margin-bottom: 12px; }
.crumbs a {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px;
  font-weight: 600; color: var(--text-2);
}
@media (hover: hover) { .crumbs a:hover { color: var(--text); } }
.crumbs svg { width: 18px; height: 18px; }
.hero-episode .hero-content { padding-top: clamp(120px, 28vw, 260px); }

.credits { display: grid; gap: 8px; margin: 16px 0 0; }
.credits div { display: flex; gap: 12px; }
.credits dt { min-width: 80px; color: var(--text-2); font-weight: 500; }
.credits dd { margin: 0; font-weight: 600; }

.people {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px;
}
.person { display: grid; gap: 2px; text-align: center; font-size: .8125rem; }
.person-photo {
  width: 72px; height: 72px; margin: 0 auto 6px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--fill); color: var(--text-3); font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 0 0 .5px var(--glass-edge);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; } /* portre: yüz üst kısımda */
.person-name { font-weight: 600; }
.person-role { color: var(--text-2); }

.ep-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ep-nav-link {
  display: grid; gap: 2px;
  min-height: 64px; padding: 12px 16px;
  border-radius: var(--r-md);
  color: var(--text);
}
@media (hover: hover) { .ep-nav-link:hover { color: var(--text); background: var(--glass-sheen), var(--glass-bg-strong); } }
.ep-nav-link.next { grid-column: 2; text-align: right; }
.ep-nav-dir { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.ep-nav-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Arama sayfası ---------- */
.search-hero {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 28px;
  border-radius: var(--r-pill);
}
.search-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.search-field svg {
  position: absolute; left: 16px;
  width: 20px; height: 20px;
  color: var(--text-3);
  pointer-events: none;
}
.search-field .input { padding-left: 46px; background: transparent; }
.search-field .input:focus { background: var(--fill); box-shadow: none; border-color: transparent; }

/* ---------- Bildirimler, kurulum ---------- */
.notice {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-weight: 500;
}
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-warning { background: var(--warning-soft); color: var(--text); }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.codeblock {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--fill);
  overflow-x: auto;
  white-space: pre;
}
.prose { max-width: 720px; }
.text-danger { color: var(--danger); }

/* ---------- Hareketin azaltılması ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ambient { animation: none; }
}

/* Kart içindeki son öğenin alt boşluğu */
.card > :last-child, .callout p:last-child { margin-bottom: 0; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--text-2); padding-left: 4px; }
.field-hint { font-size: .8125rem; color: var(--text-3); padding-left: 4px; }
.field-error { font-size: .8125rem; font-weight: 500; color: var(--danger); padding-left: 4px; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
/* Çok satırlı alanlar hap biçimli olmasın: köşe yuvarlaklığı yazıyı kesiyordu */
.textarea, textarea.input { border-radius: var(--r-md); min-height: 96px; resize: vertical; line-height: 1.45; padding: 12px 16px; }
.input-prefix { position: relative; display: flex; align-items: center; }
.input-prefix > span { position: absolute; left: 16px; color: var(--text-3); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 34px; }
/* Şifre alanı: göster/gizle düğmesi */
.pw-field { position: relative; display: flex; align-items: center; }
.pw-field .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
@media (hover: hover) { .pw-toggle:hover { color: var(--text); background: var(--fill-hover); } }
.pw-toggle:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; color: var(--text); }
.pw-toggle .pw-slash { display: none; }
.pw-toggle[aria-pressed="true"] .pw-slash { display: inline; }
.pw-toggle[aria-pressed="true"] { color: var(--text-2); }
.input::-ms-reveal, .input::-ms-clear { display: none; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--accent); }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
@media (hover: hover) { .btn-danger:hover { color: var(--danger); background: var(--danger-soft); filter: brightness(1.08); } }
.notice-success { background: var(--success-soft); color: var(--success); }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1em; }
.notice.field-validation-valid { display: none; }

.auth { display: grid; place-items: start center; padding-top: clamp(8px, 4vw, 40px); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .page-title { margin-bottom: 4px; }
.auth-card .page-sub { margin-bottom: 20px; }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--text-2); }

.settings-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.section-link { font-size: .9375rem; font-weight: 600; white-space: nowrap; }

/* ---------- Avatar ---------- */
.avatar {
  --h: 220;
  flex: none;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 700; font-size: .9375rem; letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 40) 70% 46%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 .5px var(--glass-edge);
  user-select: none;
}
.avatar-xs { width: 24px; height: 24px; font-size: .625rem; }
.avatar-sm { width: 34px; height: 34px; font-size: .8125rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 2rem; }
.account-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.account-link.is-active .avatar { box-shadow: 0 0 0 2px var(--accent); }
@media (hover: hover) { .account-link:hover .avatar { box-shadow: 0 0 0 2px var(--accent); } }
.account-login { flex: none; }
.tab .avatar-xs { margin-bottom: 1px; }
.tab.is-active .avatar-xs { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 767px) {
  .topbar .account-link, .topbar .account-login { display: none; } /* mobilde alt çubukta */
}

/* ---------- Profil ---------- */
.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  margin-bottom: 28px;
}
.profile-name { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.profile-handle { margin: 2px 0 0; color: var(--text-2); font-weight: 500; }
.profile-bio { margin: 10px 0 0; max-width: 60ch; }
.profile-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (min-width: 640px) {
  .profile-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .profile-actions { grid-column: auto; }
}
.stats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.stats li a, .stats li { color: var(--text-2); }
.stats li, .stats a { display: inline-flex; align-items: baseline; gap: 5px; }
.stats strong { color: var(--text); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .stats a:hover strong { color: var(--accent); } }

.follow-form { margin: 0; position: relative; z-index: 1; }
.btn.is-following { color: var(--text); background: var(--fill); box-shadow: inset 0 0 0 1px var(--separator); }
@media (hover: hover) { .btn.is-following:hover .follow-label { color: var(--danger); } }
.user-list .list-row { gap: 12px; }
.user-list .list-meta { white-space: nowrap; }

/* ---------- İçe aktarma ---------- */
.import-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.import-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.import-head .muted { margin: 2px 0 0; }
.import-title { margin: 0; display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 1.125rem; color: var(--text); }
.import-logo {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-weight: 800; font-size: 1.25rem; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--success));
}
.import-card.is-planned { opacity: .7; }
.import-card.is-planned .import-head { margin-bottom: 0; }
.file-drop {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 88px; padding: 16px;
  text-align: center;
  border: 1.5px dashed var(--text-3);
  border-radius: var(--r-md);
  background: var(--fill);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
 .file-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
@media (hover: hover) { .file-drop:hover { border-color: var(--accent); background: var(--accent-soft); } }
.file-drop.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-text { display: grid; gap: 2px; }
.file-drop-text strong { color: var(--accent); }
.file-drop-name { font-size: .875rem; color: var(--text-2); overflow-wrap: anywhere; }
.howto { margin-top: 14px; color: var(--text-2); font-size: .9375rem; }
.howto summary { cursor: pointer; font-weight: 600; color: var(--text); min-height: 32px; }
.howto p { margin: 8px 0 0; }
.import-job { display: grid; gap: 14px; max-width: 640px; }
.import-message { margin: 0; font-weight: 600; }
.import-stats { margin: 0; }
.import-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.missing { margin: 8px 0 0; padding-left: 1.2em; columns: 2 220px; font-size: .875rem; }

/* ---------- Sosyal giriş ---------- */
.social-logins { display: grid; gap: 10px; margin-bottom: 4px; }
.social-btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 0 0 1px var(--separator), inset 0 1px 0 var(--glass-highlight);
}
@media (hover: hover) { .social-btn:hover { color: var(--text); background: var(--fill-hover); } }
.social-btn .provider-icon { position: absolute; left: 16px; }
.provider-icon { width: 20px; height: 20px; flex: none; }
.social-apple { color: #fff; background: #000; box-shadow: none; }
@media (hover: hover) { .social-apple:hover { color: #fff; background: #1d1d1f; } }
:root[data-theme="dark"] .social-apple { color: #000; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .social-apple { color: #000; background: #fff; } }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: .8125rem; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--separator); }
.dev-hint { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--fill); color: var(--text-2); font-size: .8125rem; }
.linked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.linked-row { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.linked-row .provider-icon { width: 22px; height: 22px; }
.linked-name { flex: 1; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.linked-row form { margin: 0; }

/* ---------- Puanlama ---------- */
.rating-panel { margin-top: 16px; display: grid; gap: 18px; transition: opacity .2s var(--ease), box-shadow .4s var(--ease); scroll-margin-top: 96px; }
.rating-panel.is-loading { opacity: .55; pointer-events: none; }
.rating-panel.is-saved { box-shadow: 0 0 0 2px var(--success), var(--shadow); }
.rating-panel > .panel-title, .community > .panel-title { margin-bottom: -6px; }
.rating-form { display: grid; gap: 12px; }
.stars { border: 0; margin: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.stars svg { width: 36px; height: 36px; fill: var(--fill-hover); stroke: var(--text-3); stroke-width: 1; transition: fill .15s var(--ease), transform .2s var(--spring); }
.stars input:checked ~ label svg { fill: #ffb400; stroke: #e69a00; }
/* Fareyle üzerine gelince önizleme (dokunmatikte "yapışkan hover" yıldızı yanlış boyamasın diye yalnız fare).
   Önizleme kuralı, seçimi söndüren kuraldan daha özgül olmalı; yoksa üzerinde durulan yıldız sönük kalır. */
@media (hover: hover) {
  .stars:hover input:checked ~ label svg { fill: var(--fill-hover); stroke: var(--text-3); }
  .stars.stars:hover label:hover svg, .stars.stars:hover label:hover ~ label svg { fill: #ffb400; stroke: #e69a00; }
}
.stars label:active svg { transform: scale(.85); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.star-caption { margin: -6px 0 0; font-weight: 600; color: var(--text-2); min-height: 1.4em; }

.cast-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.cast-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.cast-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 8px;
  margin-inline: -2px;
  scrollbar-width: thin;
}
.cast-option {
  flex: none; width: 84px;
  display: grid; justify-items: center; gap: 2px;
  text-align: center; cursor: pointer;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.cast-option input { position: absolute; opacity: 0; pointer-events: none; }
.cast-photo {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--fill); color: var(--text-3); font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 0 0 .5px var(--glass-edge);
  transition: box-shadow .2s var(--ease), transform .2s var(--spring);
}
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.cast-photo.sm { width: 44px; height: 44px; font-size: 1rem; flex: none; }
.cast-char { font-size: .75rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-actor { font-size: .6875rem; color: var(--text-2); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (hover: hover) { .cast-option:hover .cast-photo { transform: translateY(-2px); } }
.cast-option input:checked ~ .cast-photo { box-shadow: 0 0 0 3px var(--accent); }
.cast-option input:checked ~ .cast-char { color: var(--accent); }
.cast-option input:focus-visible ~ .cast-photo { outline: 2px solid var(--accent); outline-offset: 3px; }
.rating-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.community { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--separator); }
.community-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.community-score strong { font-size: 2.25rem; line-height: 1; letter-spacing: -.02em; }
.community-stars {
  font-size: 1.25rem; letter-spacing: 2px;
  background: linear-gradient(90deg, #ffb400 var(--v), var(--fill-hover) var(--v));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.histogram { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-width: 360px; }
.histogram li { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); }
.bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb400, #ff8a00); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.community-sub { margin: 6px 0 0; font-size: .9375rem; }
.top-chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top-chars li { display: flex; align-items: center; gap: 12px; }
.top-char-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.top-char-text strong, .top-char-text .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.top-char-text .muted { font-size: .75rem; }
.top-char-text .bar { margin-top: 4px; height: 6px; }
.top-char-text .bar > span { background: linear-gradient(90deg, var(--accent), var(--success)); }
.top-chars .n { font-weight: 700; color: var(--text); font-size: .875rem; }

/* ---------- Profil istatistikleri ---------- */
.stats-section { margin-bottom: 32px; }
.stat-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat-tile { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); align-content: start; }
.tile-hero { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent-soft), var(--success-soft)), var(--glass-bg); }
@media (min-width: 900px) { .tile-hero { grid-column: auto; } }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.stat-value { font-size: 1.375rem; line-height: 1.15; letter-spacing: -.01em; }
.tile-hero .stat-value { font-size: 1.75rem; }
.stat-value small { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.stat-sub { font-size: .8125rem; color: var(--text-2); }
.stat-panels { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .stat-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.month-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 150px; align-items: end; }
.week-chart { grid-template-columns: repeat(7, minmax(0, 1fr)); height: 120px; }
.month { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.month-bar { display: flex; align-items: flex-end; height: 100%; border-radius: 8px; background: var(--fill); overflow: hidden; }
.month-bar > span { display: block; width: 100%; border-radius: 8px; background: linear-gradient(180deg, var(--accent), var(--success)); transition: height .6s var(--ease); }
.month-label { font-size: .6875rem; color: var(--text-2); font-weight: 600; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 120px) 1fr 32px; align-items: center; gap: 10px; font-size: .875rem; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hbars .bar > span { background: linear-gradient(90deg, var(--accent), var(--success)); }
.top-shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rank; }
.top-shows a { display: flex; align-items: center; gap: 12px; color: inherit; padding: 4px; border-radius: var(--r-sm); }
@media (hover: hover) { .top-shows a:hover { background: var(--fill); } }
.top-shows li { counter-increment: rank; }
.top-shows a::before { content: counter(rank); width: 18px; font-weight: 800; color: var(--text-3); text-align: center; }
.top-show-poster { width: 40px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--fill); flex: none; }
.top-show-poster img { width: 100%; height: 100%; object-fit: cover; }
.top-show-text { display: grid; min-width: 0; }
.top-show-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-show-text .muted { font-size: .8125rem; }
.fav-chars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.fav-chars li { display: grid; justify-items: center; text-align: center; gap: 2px; }
.recent-ratings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent-ratings li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .9375rem; }
.recent-ratings a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.score-stars { color: #ffb400; letter-spacing: 1px; white-space: nowrap; }
.score-stars .dim { color: var(--fill-hover); }

/* ---------- Arama önerileri ---------- */
.has-suggest { position: relative; z-index: 45; } /* listesi sonraki içeriğin üstünde kalsın */
.suggest {
  position: absolute; z-index: 60;
  top: calc(100% + 8px); left: 0; right: 0;
  min-width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--glass-solid) !important; /* okunabilirlik için neredeyse opak */
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 0, 0, .25));
}
.suggest-up { top: auto; bottom: calc(100% + 18px); }
.topsearch .suggest { left: auto; right: 0; width: 380px; }
.suggest-item, .suggest-all {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 6px 10px;
  border-radius: var(--r-md);
  color: var(--text); text-align: left;
}
 .suggest-item.is-active, .suggest-all.is-active { background: var(--fill-hover); color: var(--text); }
@media (hover: hover) { .suggest-item:hover, .suggest-all:hover { background: var(--fill-hover); color: var(--text); } }
.suggest-thumb { width: 34px; height: 51px; border-radius: 6px; overflow: hidden; background: var(--fill); flex: none; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: grid; min-width: 0; }
.suggest-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-text span { font-size: .8125rem; color: var(--text-2); }
.suggest-all { font: inherit; font-weight: 600; color: var(--accent); border: 0; background: transparent; cursor: pointer; margin-top: 2px; border-top: 1px solid var(--separator); border-radius: 0 0 var(--r-md) var(--r-md); }
.suggest-empty { padding: 12px; color: var(--text-2); font-size: .875rem; }

/* ---------- Uzun adlar: satırlar taşmasın ---------- */
.list-row > .chip, .list-row > .watch-form, .list-row > .follow-form, .list-row > .avatar { flex: none; }
/* Bölüm adı iki satıra kadar sarılır, sonra "…" ile kesilir */
a.list-meta {
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.episode-title { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.poster-title, .profile-name, .hero-title, .page-title { overflow-wrap: anywhere; }

/* ---------- Tekrar izleme ---------- */
.watch-box { display: flex; align-items: center; gap: 2px; }
.watch-box:not(.is-watched) .rewatch-form { display: none; }   /* önce izlendi olmalı */
.watch-box[data-count="0"] .undo-rewatch,
.watch-box[data-count="1"] .undo-rewatch { display: none; }     /* geri alınacak tekrar yok */
.rewatch-form { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rewatch-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 34px; height: 34px; margin: 5px 0;
  padding: 0 6px;
  border: 0; border-radius: var(--r-pill);
  color: var(--text-3); background: transparent;
  font: inherit; font-size: .75rem; font-weight: 700;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.rewatch-btn::after { content: ""; position: absolute; inset: -5px -2px; }
.rewatch-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .rewatch-btn:hover { color: var(--accent); background: var(--accent-soft); } }
.rewatch-btn:active { transform: scale(.9) rotate(-30deg); }
.rewatch-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.watch-count:not(:empty) { color: var(--accent); }
.watch-box[data-count]:not([data-count="0"]):not([data-count="1"]) .rewatch-btn { color: var(--accent); }
.watch-box.just-saved .rewatch-btn, .watch-box.just-saved .btn { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.15); } }

.watch-box.labeled { display: grid; gap: 10px; align-items: stretch; }
.watch-box.labeled .rewatch-form .btn:first-child { flex: 1; }
.watch-box.labeled .btn svg { width: 18px; height: 18px; }
.watch-summary { margin: 0; font-weight: 600; color: var(--text-2); }
.watch-summary:empty { display: none; }
.movie-watch { margin: 0; }
.movie-watch .btn-primary { width: 100%; }

/* ---------- Nerede izlenir ---------- */
.providers { margin-top: 16px; display: grid; gap: 14px; }
.provider-group-title { margin: 0 0 8px; font-size: .8125rem; font-weight: 700; color: var(--text-2); }
.provider-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.provider {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px 6px 6px;
  border-radius: var(--r-md);
  color: var(--text);
  background: var(--fill);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
@media (hover: hover) { .provider:hover { color: var(--text); background: var(--fill-hover); } }
.provider:active { transform: scale(.98); }
.provider img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 0 0 .5px var(--glass-edge); }
.provider-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-ext { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.provider-credit { margin: 0; font-size: .75rem; color: var(--text-3); }
.detail-aside > .card + .card { margin-top: 16px; }

/* Gizli radyo düğmeleri kendi kutusunda konumlansın; yoksa kaydırma kutusunun dışına taşıp sayfayı genişletir */
.cast-option, .stars, .stars label, .segment { position: relative; }
.cast-option input, .stars input { left: 0; top: 0; width: 1px; height: 1px; }

/* ---------- Mobil üst çubuk: logo + arama + tema ---------- */
@media (max-width: 767px) {
  .topbar { position: relative; gap: 8px; padding: 6px 6px 6px 10px; }
  .brand { margin-right: 0; flex: none; }
  .brand > span:not(.brand-mark):not(.brand-logo) { display: none; } /* yalnızca logo; yer aramaya kalsın */
  .topsearch { display: flex; flex: 1; min-width: 0; }
  .topsearch input, .topsearch input:focus { width: 100%; min-height: 40px; }
  /* Öneri listesi tüm üst çubuk genişliğinde açılsın */
  .topbar .topsearch.has-suggest { position: static; }
  .topsearch .suggest { left: 0; right: 0; width: auto; min-width: 0; top: calc(100% + 8px); }
}

/* ---------- Avatar resmi ---------- */
.avatar { overflow: hidden; }
.avatar.has-img { background: var(--fill); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; } /* karakter portreleri 2:3; yüklenenler zaten kare */

/* ---------- Profil kartı ---------- */
.profile-card { display: grid; gap: 16px; margin-bottom: 28px; padding: 20px; }
.profile-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.profile-top .avatar-xl { width: 84px; height: 84px; box-shadow: 0 0 0 3px var(--glass-bg-strong), 0 0 0 4px var(--separator), 0 8px 24px rgba(0, 0, 0, .18); }
.profile-id { min-width: 0; display: grid; gap: 2px; }
.profile-id .profile-name { margin: 0; font-size: clamp(1.375rem, 5vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; }
.profile-id .profile-handle { margin: 0; color: var(--text-2); font-size: .875rem; font-weight: 500; }
.avatar-badge {
  justify-self: start; margin: 6px 0 0; padding: 3px 10px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .75rem; font-weight: 600; color: var(--text-2);
  border-radius: var(--r-pill); background: var(--fill);
}
.profile-card .profile-actions { grid-column: 1 / -1; display: flex; }
.profile-card .profile-actions > * { flex: 1; }
.profile-card .profile-actions .btn { width: 100%; }
.profile-card .profile-bio { margin: 0; line-height: 1.5; color: var(--text); }
.profile-stats {
  list-style: none; margin: 0; padding: 12px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--separator);
}
.profile-stats li { text-align: center; }
.profile-stats li + li { border-left: 1px solid var(--separator); }
.profile-stats li > a, .profile-stats li { display: grid; justify-items: center; gap: 1px; color: inherit; border-radius: var(--r-sm); padding: 4px 2px; }
.profile-stats li > a { padding: 0; }
@media (hover: hover) { .profile-stats li > a:hover strong { color: var(--accent); } }
.profile-stats strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.profile-stats span { font-size: .6875rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
@media (min-width: 640px) {
  .profile-card { padding: 24px 28px; }
  .profile-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
  .profile-top .avatar-xl { width: 104px; height: 104px; font-size: 2.25rem; }
  .profile-card .profile-actions { grid-column: auto; }
  .profile-card .profile-actions .btn { width: auto; }
  .profile-stats strong { font-size: 1.375rem; }
  .profile-stats span { font-size: .75rem; }
}

/* ---------- Profil resmi ayarları ---------- */
.avatar-settings { display: grid; gap: 18px; transition: opacity .2s var(--ease), box-shadow .4s var(--ease); }
.avatar-settings.is-loading { opacity: .6; pointer-events: none; }
.avatar-settings.is-saved { box-shadow: 0 0 0 2px var(--success), var(--shadow); }
@media (min-width: 900px) { .avatar-settings { grid-column: 1 / -1; } }
.avatar-current { display: flex; gap: 16px; align-items: center; }
.avatar-current .avatar-xl { width: 88px; height: 88px; }
.avatar-caption { margin: 0 0 8px; font-weight: 600; }
.avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-actions form { margin: 0; }
.file-btn { position: relative; cursor: pointer; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.char-picker { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--separator); }
.char-picker .community-sub { margin: 0; }
.char-picker .cast-option { margin: 0; }
.cast-pick-btn {
  display: grid; justify-items: center; gap: 2px; width: 84px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
@media (hover: hover) { .cast-pick-btn:hover .cast-photo { box-shadow: 0 0 0 3px var(--accent); transform: translateY(-2px); } }
.char-search { margin: 4px 0 0; }
.char-results { display: grid; gap: 2px; }
.char-results .suggest-item { border: 0; background: none; font: inherit; cursor: pointer; }
.char-results .suggest-item.is-active { background: var(--accent-soft); }
.char-cast:empty, .char-results:empty { display: none; }

/* ---------- Sezon toplu işlemleri ---------- */
.season-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.season-actions .btn svg { width: 16px; height: 16px; }
.season-actions.is-busy { opacity: .6; pointer-events: none; }
.season-unwatch { color: var(--text-2); }
@media (hover: hover) { .season-unwatch:hover { color: var(--danger); } }
@media (max-width: 639px) {
  .profile-stats span { font-size: .625rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .profile-stats li { padding-inline: 4px; }
}

/* Grid içindeki kartlar ve alt öğeleri, içlerindeki yatay kaydırma listeleri yüzünden genişlemesin */
.settings-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.avatar-settings, .char-picker, .rating-panel, .community, .rating-form { grid-template-columns: minmax(0, 1fr); }
.settings-grid > *, .card > *, .detail-main > *, .detail-aside > * { min-width: 0; }

/* ---------- Mobil üst çubuk: düzeltmeler ---------- */
@media (max-width: 767px) {
  /* Form konumlu kalsın: büyüteç simgesi kutunun içinde dursun (logonun üstüne düşmesin) */
  .topbar .topsearch, .topbar .topsearch.has-suggest { position: relative; }
  .topsearch svg { left: 14px; }
  /* Arama kutusu tema düğmesiyle aynı yükseklikte (44 px) ve aynı dolgu renginde */
  .topsearch input, .topsearch input:focus {
    height: 44px; min-height: 44px;
    padding-block: 0; padding-left: 40px;
    background: var(--fill);
    border-color: transparent;
  }
  .topsearch input:focus { background: var(--glass-bg-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
  .brand { width: 44px; height: 44px; justify-content: center; }
  .topbar { padding: 7px; }
  /* Öneri listesi ekran genişliğinde, üst çubuğun hemen altında */
  .topsearch .suggest {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 74px);
    left: var(--gutter-l); right: var(--gutter-r);
    width: auto; min-width: 0;
  }
}

/* ---------- Profil istatistikleri: simetrik, tek parça "tepsi" ---------- */
.profile-stats {
  padding: 10px 4px;
  border-top: 0;
  border-radius: var(--r-md);
  background: var(--fill);
  box-shadow: inset 0 0 0 .5px var(--separator);
}
.profile-stats li + li { border-left: 0; }
.profile-stats li { position: relative; border-radius: 0; }
/* Ayırıcı: ortada, iki ucu solan kısa çizgi (tek kenar parlaması değil) */
.profile-stats li + li::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--separator-line, rgba(127, 127, 140, .35)), transparent);
}
.profile-stats li > a { border-radius: var(--r-sm); }
.profile-stats li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- PWA: yükleme / bildirim kartı (ekranın altında) ---------- */
.pwa-toast {
  position: fixed; z-index: 70;
  left: var(--gutter-l); right: var(--gutter-r);
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 12px);
  max-width: 460px; margin-inline: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 12px 12px 12px;
  border-radius: var(--r-lg);
  background: var(--glass-solid) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .3s var(--ease), transform .35s var(--spring);
}
.pwa-toast.is-open { opacity: 1; transform: none; }
@media (min-width: 768px) { .pwa-toast { bottom: 24px; left: auto; right: 24px; margin: 0; width: 420px; } }
.pwa-toast-icon { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; align-self: start; }
.pwa-toast-text { display: grid; gap: 2px; min-width: 0; }
.pwa-toast-text strong { font-size: .9375rem; }
.pwa-toast-text span { font-size: .8125rem; color: var(--text-2); line-height: 1.4; }
.pwa-toast-actions { grid-column: 2 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pwa-toast-close {
  grid-column: 3; grid-row: 1; align-self: start;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--fill); color: var(--text-2); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
@media (hover: hover) { .pwa-toast-close:hover { background: var(--fill-hover); color: var(--text); } }

/* Ayarlar: uygulama ve bildirimler */
.app-settings { display: grid; gap: 14px; transition: opacity .2s var(--ease); }
.app-settings.is-loading { opacity: .6; pointer-events: none; }
.app-row { display: flex; align-items: center; gap: 12px; }
.app-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.app-icon { width: 48px; height: 48px; border-radius: 13px; flex: none; }
.app-icon.bell { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.app-icon.bell svg { width: 24px; height: 24px; }
.push-prefs { border: 0; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--separator); display: grid; gap: 6px; min-width: 0; }
.push-prefs legend { padding: 0; margin-bottom: 6px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; }
.switch-row > span { display: grid; gap: 1px; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 50px; height: 30px; border-radius: 999px; margin: 0;
  background: var(--fill-hover); position: relative; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .25s var(--spring);
}
.switch:checked { background: var(--success); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hidden özelliği, display tanımlayan sınıflara (.btn vb.) rağmen her zaman gizlesin */
[hidden] { display: none !important; }

/* Profil: Düzenle + Ayarlar düğmeleri */
.profile-card .profile-actions { gap: 8px; }
.profile-card .profile-actions > .icon-text { flex: 0 0 auto; }
.icon-text svg { width: 18px; height: 18px; }
@media (max-width: 639px) { .profile-card .profile-actions > .icon-text { flex: 1; } }

/* ---------- Kaydırınca çubukları gizle: parmağa eş hareket ----------
   --bars: 0 (görünür) … 1 (gizli). JS kaydırma miktarıyla orantılı günceller (geçişsiz),
   kaydırma durunca en yakın uca yumuşakça oturtur. Yalnızca transform değişir (opacity yok):
   opaklık değişimi backdrop-filter'ı yeniden çizdirip blur'un gecikmeli gelmesine yol açıyordu. */
:root { --bars: 0; }
/* transform yalnızca çubuk kaymışken uygulanır: kalıcı transform/will-change, üst çubuktaki
   position:fixed arama önerilerini çubuğa hapsederdi. */
.topbar-wrap, .tabbar { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
html.bars-shift .topbar-wrap { transform: translate3d(0, calc(var(--bars) * (-100% - 8px)), 0); }
html.bars-shift .tabbar { transform: translate3d(0, calc(var(--bars) * (100% + 24px + env(safe-area-inset-bottom))), 0); }
html.bars-dragging .topbar-wrap, html.bars-dragging .tabbar, html.bars-dragging .lib-tabs { transition: none; }
html.bars-hidden .topbar-wrap, html.bars-hidden .tabbar { pointer-events: none; }
html.bars-hidden .pwa-toast { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 12px); }
@media (prefers-reduced-motion: reduce) { .topbar-wrap, .tabbar { transition: none; } }

/* ---------- Arama: filtre çipleri ---------- */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 24px; padding: 4px 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem;
  color: var(--text-2); background: var(--fill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) { .filter-chip:hover { color: var(--text); background: var(--fill-hover); } }
.filter-chip.is-active { color: var(--accent-contrast); background: var(--accent); box-shadow: 0 4px 14px var(--accent-soft); }
.filter-count { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(127, 127, 140, .18); }
.filter-chip.is-active .filter-count { background: rgba(255, 255, 255, .25); }

/* Öneri listesinde kullanıcılar: yuvarlak avatar */
.suggest-thumb.is-user {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8125rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 40) 70% 46%));
}
.suggest-item.is-user .suggest-text span { color: var(--accent); }

/* ---------- Sosyal ---------- */
.social-links { display: flex; gap: 8px; margin: -8px 0 24px; }
.chip-link { display: inline-flex; gap: 6px; align-items: baseline; min-height: 40px; align-items: center; padding: 0 16px; border-radius: var(--r-pill); color: var(--text-2); font-weight: 600; }
.chip-link strong { color: var(--text); }
@media (hover: hover) { .chip-link:hover { color: var(--text); } }
.friend-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; margin-inline: -2px; scrollbar-width: thin; }
.friend-card {
  flex: none; width: 168px; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 18px 12px 14px; border-radius: var(--r-lg);
}
.friend-link { display: grid; justify-items: center; gap: 2px; color: inherit; min-width: 0; max-width: 100%; }
@media (hover: hover) { .friend-link:hover { color: inherit; } }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; margin-bottom: 6px; }
.friend-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-handle { font-size: .8125rem; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-reason { font-size: .75rem; color: var(--text-3); min-height: 2.4em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.friend-card .follow-form, .friend-card .follow-form .btn { width: 100%; }

.feed { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-lg); }
.feed-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--r-md); }
.feed-item + .feed-item::before { content: ""; position: absolute; top: 0; left: 58px; right: 10px; border-top: 1px solid var(--separator); }
.feed-avatar { flex: none; }
.feed-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.feed-text { margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.feed-actor { font-weight: 700; color: var(--text); margin-right: 4px; }
.feed-what { color: var(--text); }
@media (hover: hover) { .feed-what:hover { color: var(--accent); } }
.feed-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .75rem; color: var(--text-3); }
.feed-kind { font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); }
.feed-kind.kind-Completed { background: var(--success-soft); color: var(--success); }
.feed-kind.kind-Watching { background: var(--warning-soft); color: var(--text); }
.feed-kind.kind-Rated { background: rgba(255, 180, 0, .16); color: #c98500; }
.feed-kind.kind-Followed { background: var(--accent-soft); color: var(--accent); }
.feed-poster { flex: none; width: 40px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--fill); }
.feed-poster img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Afiş kartı hızlı işlemleri ---------- */
.poster-item { position: relative; min-width: 0; }
.rail .poster-item { scroll-snap-align: start; }
.poster-action {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  color: #fff;
  background: rgba(12, 14, 20, .55);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .25);
  cursor: pointer; list-style: none;
  transition: transform .2s var(--spring), background-color .2s var(--ease);
}
.poster-action::-webkit-details-marker { display: none; }
.poster-action::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; } /* 44 px dokunma alanı */
@media (hover: hover) { .poster-action:hover { background: rgba(12, 14, 20, .75); } }
.poster-action:active { transform: scale(.88); }
.poster-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.poster-action svg { width: 20px; height: 20px; }
.quick-add .i-check { display: none; }
.quick-add.is-added { background: var(--success); }
.quick-add.is-added .i-plus { display: none; }
.quick-add.is-added .i-check { display: block; }
.quick-add.is-busy { opacity: .6; pointer-events: none; }
/* Rozet sol üstte, düğme sağ üstte: çakışmasın */
.poster-item .poster-badge { max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.poster-menu { position: absolute; top: 0; right: 0; z-index: 3; }
.poster-menu[open] > .poster-action { background: var(--accent); }
.poster-menu-list {
  position: absolute; top: 50px; right: 8px;
  min-width: 170px; padding: 6px;
  display: grid; gap: 2px;
  border-radius: var(--r-md);
  background: var(--glass-solid) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
.poster-menu-list button {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer;
}
.poster-menu-list button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--text-3)); flex: none; }
@media (hover: hover) { .poster-menu-list button:hover { background: var(--fill-hover); } }
.poster-menu-list button.is-current { font-weight: 700; background: var(--fill); }
.poster-menu-list button.is-current::after { content: "✓"; margin-left: auto; color: var(--accent); }
.poster-menu-list button.danger { color: var(--danger); border-top: 1px solid var(--separator); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-top: 2px; }
.poster-menu-list button.danger::before { background: var(--danger); }
.poster-item.is-leaving { animation: leave .3s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(.9); } }

/* ---------- Alttan çıkan bildirim (Geri al) ---------- */
.snack {
  position: fixed; z-index: 80;
  left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 14px);
  transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-pill);
  color: #fff; background: rgba(24, 26, 34, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  transition: opacity .25s var(--ease), transform .3s var(--spring);
}
.snack.is-open { opacity: 1; transform: translate(-50%, 0); }
html.bars-hidden .snack { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 14px); }
@media (min-width: 768px) { .snack { bottom: 28px; } }
.snack-text { font-size: .9375rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snack-action {
  flex: none; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill);
  font: inherit; font-weight: 700; font-size: .875rem;
  color: #8ec5ff; background: rgba(255, 255, 255, .1); cursor: pointer;
}
@media (hover: hover) { .snack-action:hover { background: rgba(255, 255, 255, .18); } }

/* ---------- Listem: kategori sekmeleri ---------- */
.lib-tabs {
  position: sticky; z-index: 30;
  top: calc(env(safe-area-inset-top) + 84px * (1 - var(--bars))); /* üst çubuğun altında, onunla birlikte kayar */
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter-l)) 18px; padding: 8px var(--gutter-l);
  transition: top .32s cubic-bezier(.2, .8, .2, 1);
}
.lib-tabs::-webkit-scrollbar { display: none; }
.lib-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem;
  color: var(--text-2);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 .5px var(--separator), 0 2px 8px rgba(0, 0, 0, .08);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lib-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); flex: none; }
.lib-tab.is-upcoming::before { display: none; }
.lib-tab svg { width: 17px; height: 17px; color: var(--accent); }
@media (hover: hover) { .lib-tab:hover { color: var(--text); } }
.lib-tab.is-active { color: var(--accent-contrast); background: var(--accent); box-shadow: 0 4px 14px var(--accent-soft); }
.lib-tab.is-active::before { background: rgba(255, 255, 255, .9); }
.lib-tab.is-active svg { color: currentColor; }
.lib-count { font-size: .75rem; font-weight: 700; min-width: 22px; padding: 1px 7px; text-align: center; border-radius: var(--r-pill); background: rgba(127, 127, 140, .18); font-variant-numeric: tabular-nums; }
.lib-tab.is-active .lib-count { background: rgba(255, 255, 255, .25); }
@media (min-width: 768px) { .lib-tabs { top: 96px; flex-wrap: wrap; overflow: visible; } }

/* ---------- Yaklaşanlar ---------- */
.upcoming-bucket { margin: 18px 0 8px; font-size: .8125rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.upcoming-bucket:first-child { margin-top: 0; }
.upcoming { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-lg); }
.upcoming-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-md); }
.upcoming-row + .upcoming-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 8px; border-top: 1px solid var(--separator); }
@media (hover: hover) { .upcoming-row:hover { background: var(--fill); } }
.upcoming-row.is-today { background: var(--accent-soft); }
.upcoming-date {
  flex: none; width: 44px; display: grid; justify-items: center; line-height: 1.05;
  padding: 6px 0; border-radius: 12px; background: var(--fill);
}
.upcoming-date strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.upcoming-date span { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.upcoming-row.is-today .upcoming-date { background: var(--accent); color: var(--accent-contrast); }
.upcoming-row.is-today .upcoming-date span { color: inherit; }
.upcoming-poster { flex: none; width: 40px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--fill); }
.upcoming-poster img { width: 100%; height: 100%; object-fit: cover; }
.upcoming-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.upcoming-title { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .upcoming-title:hover { color: var(--accent); } }
.upcoming-detail { font-size: .8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .75rem; color: var(--text-3); }
.upcoming-when { font-weight: 700; color: var(--accent); text-transform: capitalize; }
.upcoming-meta .chip { min-height: 0; padding: 1px 8px; font-size: .6875rem; }
.sub-head { margin-bottom: 8px; align-items: center; }
.sub-head .section-sub { margin: 0; }

/* ---------- Eşleşme rozeti (öneriler) ---------- */
.match-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 4px 9px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(12, 14, 20, .6);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
.match-badge span { font-size: .625rem; font-weight: 700; opacity: .85; }
.match-badge.is-good { background: rgba(63, 95, 143, .85); }
.match-badge.is-high { background: rgba(31, 157, 76, .88); }

/* ---------- Seyir zevki uyumu ---------- */
.section-note { margin: -6px 0 12px; font-size: .875rem; color: var(--text-2); }
.taste-pill { font-size: .75rem; font-weight: 800; padding: 2px 9px; border-radius: var(--r-pill); color: var(--text-2); background: var(--fill); font-variant-numeric: tabular-nums; }
.taste-pill.is-good { color: var(--accent); background: var(--accent-soft); }
.taste-pill.is-high { color: var(--success); background: var(--success-soft); }
.taste-list { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-lg); }
.taste-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); }
.taste-row + .taste-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 8px; border-top: 1px solid var(--separator); }
.taste-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; }
@media (hover: hover) { .taste-who:hover { color: inherit; } }
/* Avatarın çevresinde uyum yüzdesi kadar dolu halka */
.taste-ring {
  --c: var(--text-3);
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fill) 0);
}
.taste-ring.is-good { --c: var(--accent); }
.taste-ring.is-high { --c: var(--success); }
.taste-ring .avatar { width: 42px; height: 42px; box-shadow: 0 0 0 2px var(--glass-solid); }
.taste-text { min-width: 0; display: grid; gap: 1px; }
.taste-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taste-why { font-size: .75rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taste-percent { flex: none; font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 46px; text-align: right; }
.taste-percent.is-good { color: var(--accent); }
.taste-percent.is-high { color: var(--success); }
.taste-row .follow-form .btn { min-width: 0; padding: 0 12px; }
@media (max-width: 420px) { .taste-row .follow-label { font-size: .8125rem; } }

/* ===== Sosyal: sekmeler, gönderiler, yorumlar, spoiler ===== */
.seg-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); margin: 0 0 18px; max-width: 360px; }
.seg-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px;
  border-radius: var(--r-pill); font-weight: 700; font-size: .9375rem; color: var(--text-2); text-decoration: none;
}
@media (hover: hover) { .seg-tab:hover { color: var(--text); } }
.seg-tab.is-active { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 4px 14px var(--accent-soft); }
.seg-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.seg-tab.is-active .seg-badge { background: rgba(255, 255, 255, .92); color: var(--accent); }

.post-list { display: flex; flex-direction: column; gap: 12px; }
.feed-posts .post { background: var(--glass-bg, var(--fill)); border: 1px solid var(--separator); border-radius: var(--r-lg); padding: 14px; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.comments .post { padding: 12px 0 0; border-top: 1px solid var(--separator); }
.comments .post-list { gap: 12px; margin-top: 4px; }
.post { min-width: 0; }
.post-head { display: flex; align-items: center; gap: 8px; }
.post-author { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
@media (hover: hover) { .post-author:hover { color: inherit; } }
.post-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.post-who strong, .post-who .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-who .muted { font-size: .8125rem; }
.post-delete .icon-btn { width: 34px; height: 34px; color: var(--text-3); }
.post-delete .icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .post-delete .icon-btn:hover { color: var(--danger); } }
.post-media { display: flex; gap: 12px; margin-top: 12px; padding: 8px; border-radius: var(--r-md); background: var(--fill); color: inherit; text-decoration: none; min-width: 0; }
@media (hover: hover) { .post-media:hover { color: inherit; background: var(--fill-hover); } }
.post-poster { flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--separator); }
.post-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.post-kind { font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-title { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-stars { color: #f5b301; letter-spacing: 1px; font-size: .9375rem; }
.post-stars .off { color: var(--separator); }
.comments .post-stars { display: inline-block; margin: 6px 0 0 44px; }
.post-body { margin: 10px 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.comments .post-body { margin-left: 44px; margin-top: 6px; }
.spoiler { margin-top: 10px; }
.comments .spoiler { margin-left: 44px; }
.spoiler-cover {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, var(--fill) 0 10px, transparent 10px 20px), var(--fill);
  border: 1px dashed var(--separator);
}
.spoiler-cover > svg { flex: none; width: 22px; height: 22px; color: var(--text-3); }
.spoiler-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.spoiler-text strong { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spoiler-cover .btn { flex: none; }

.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.comments-note { margin: -4px 0 12px; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.comment-form textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--separator); background: var(--fill); color: var(--text); font: inherit; line-height: 1.45;
}
.comment-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-error { color: var(--danger); font-size: .8125rem; }

.notice-list { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-lg); }
.notice-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); }
.notice-row + .notice-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 8px; border-top: 1px solid var(--separator); }
.notice-row.is-new { background: var(--accent-soft); }
.notice-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
@media (hover: hover) { .notice-who:hover { color: inherit; } }
.notice-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.notice-text .muted { margin-top: 2px; }

/* ===== Gizli profil: kilit işareti, takip istekleri ===== */
.lock-badge { display: inline-flex; vertical-align: -.1em; margin-left: .3em; color: var(--text-3); }
.lock-badge svg { width: .9em; height: .9em; }
.profile-name .lock-badge svg { width: .7em; height: .7em; }
.request-actions { display: flex; gap: 6px; flex: none; }
.notice-row.is-busy { opacity: .5; pointer-events: none; }
.btn.is-requested { color: var(--text-2); border-style: dashed; }
.privacy-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.privacy-hint .lock-badge { margin: 0; }
.locked-profile { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.locked-profile p { margin: 0; }
.locked-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-2); margin-bottom: 6px; }
.locked-icon svg { width: 26px; height: 26px; }
.privacy-note { margin: 8px 0 0; }
@media (max-width: 420px) {
  .notice-row:has(.request-actions) { flex-wrap: wrap; }
  .notice-row:has(.request-actions) .request-actions { width: 100%; padding-left: 56px; }
  .request-actions form { flex: 1; }
  .request-actions .btn { width: 100%; }
}

/* ===== Sosyal sekmesinde görülmemiş bildirim noktası ===== */
.tab, .topnav-link { position: relative; }
.nav-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--glass-bg-strong, #fff);
  pointer-events: none;
}
.tab .nav-dot { top: 6px; left: calc(50% + 7px); }
.topnav-link .nav-dot { top: 6px; right: 4px; }

/* ===== Afiş hızlı işlemi sağ altta (sol üstteki durum/eşleşme yazısını kapatmasın) =====
   Düğme afiş görselinin sağ alt köşesine oturur: öğe genişliği × 1.5 = görsel yüksekliği (2:3). */
.poster-item { container-type: inline-size; }
.poster-item > .poster-action { top: calc(150cqw - 44px); right: 8px; }
.poster-menu { top: calc(150cqw - 44px); right: 0; height: 0; }
.poster-menu > .poster-action { top: 0; }
.poster-menu-list { top: auto; bottom: 8px; }
.poster-item .poster-badge { max-width: calc(100% - 16px); }

/* Mobilde dokunulan öğelerde çıkan mavi vurgu kutusu olmasın (geri bildirim :active stilleriyle) */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:active, .tab:active, .topnav-link:active { opacity: .7; }

/* ===== İmza / Kaşe / Mühür (yorum onayları) ===== */
.seal-bar { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.comments .seal-bar { margin-left: 44px; }
.seal {
  --c: var(--accent); --soft: var(--accent-soft);
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px 0 9px;
  border: 1px solid var(--separator); border-radius: var(--r-pill); background: transparent;
  color: var(--text-2); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s, transform .2s var(--spring, ease);
}
.seal svg { width: 18px; height: 18px; flex: none; }
.seal-count { min-width: 0; font-variant-numeric: tabular-nums; }
.seal-count:empty { display: none; }
.seal-kase { --c: #8b5cf6; --soft: rgba(139, 92, 246, .14); }
.seal-muhur { --c: #d9483b; --soft: rgba(217, 72, 59, .14); }
@media (hover: hover) { .seal:not(:disabled):hover { color: var(--c); border-color: var(--c); } }
.seal:not(:disabled):active { transform: scale(.92); }
.seal.is-on { color: var(--c); background: var(--soft); border-color: var(--c); }
.seal.is-on svg { stroke-width: 2.3; }
.seal:disabled { cursor: default; opacity: 1; }
.seal.pop svg { animation: seal-pop .38s var(--spring, ease); }
@keyframes seal-pop { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.35) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
.seal-bar.is-full .seal.is-on { box-shadow: 0 0 0 2px var(--soft); }
.seal-bar.is-busy { pointer-events: none; }
@media (max-width: 380px) { .seal { padding: 0 9px 0 7px; gap: 4px; font-size: .75rem; } .seal svg { width: 16px; height: 16px; } .seal-bar { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .seal.pop svg { animation: none; } }

/* ===== Ayarlar: gruplanmış liste (iOS tarzı) ===== */
.settings { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.set-identity {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
}
@media (hover: hover) { .set-identity:hover { color: inherit; } }
.set-identity .avatar { margin: 0; width: 60px; height: 60px; }
.set-identity-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.set-identity-text strong { font-size: 1.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-identity-cta { color: var(--accent); font-size: .875rem; font-weight: 600; margin-top: 2px; }
.set-group { display: flex; flex-direction: column; min-width: 0; }
.set-title, .set-subtitle {
  margin: 0 0 7px 16px; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
}
.set-subtitle { margin-top: 16px; }
.set-card { border-radius: var(--r-lg); padding: 0; margin: 0; border: 0; min-width: 0; overflow: hidden; }
fieldset.set-card { border: 0; }
.set-row {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px;
  padding: 8px 14px; width: 100%; color: inherit; text-decoration: none; background: none; border: 0;
  font: inherit; text-align: left; cursor: pointer; list-style: none;
}
.set-row::-webkit-details-marker { display: none; }
@media (hover: hover) { .set-row:hover { color: inherit; background: var(--fill); } }
div.set-row, label.set-row:has(.switch) { cursor: default; }
label.set-row { cursor: pointer; }
/* Satırlar arası ayırıcı (ikondan sonra başlar) */
.set-card > * + *::before, .set-card > * + .set-row::before {
  content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--separator);
}
.set-card > * { position: relative; }
.push-prefs > .set-row + .set-row::before { left: 14px; }
.set-icon {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--tile, var(--accent)); color: #fff;
}
.set-icon svg { width: 18px; height: 18px; }
.set-icon.is-plain { background: var(--fill); color: inherit; overflow: hidden; }
.set-icon.is-plain img { width: 30px; height: 30px; border-radius: 8px; }
.set-icon.is-plain .provider-icon { width: 18px; height: 18px; }
.set-label { flex: 1; min-width: 0; font-weight: 600; }
.set-label-stack { display: flex; flex-direction: column; line-height: 1.3; }
.set-label-stack .muted { font-weight: 400; margin-top: 1px; }
.set-value { color: var(--text-3); font-size: .9375rem; min-width: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-value.is-ok { color: var(--success); font-weight: 600; }
.set-row .chev { flex: none; width: 16px; height: 16px; color: var(--text-3); transition: transform .2s var(--ease); }
.set-identity .chev { width: 18px; height: 18px; color: var(--text-3); }
.set-row-expand[open] > .set-row .chev { transform: rotate(90deg); }
.set-row-expand[open] > .set-row { background: var(--fill); }
.set-form { padding: 6px 14px 16px 56px; display: grid; gap: 12px; }
.set-form .btn { justify-self: start; }
.set-row form { margin: 0; flex: none; }
.set-row .switch { flex: none; }
.set-foot { margin: 7px 16px 0; font-size: .8125rem; color: var(--text-3); line-height: 1.45; }
.set-foot + .set-foot { margin-top: 4px; }
/* Hesabı silme: diğer satırlarla aynı düzen (ikon, sola hizalı ad, ok); yalnız ad kırmızı */
.set-danger .set-label { color: var(--danger); }
.set-danger .set-label .muted { color: var(--text-3); }
@media (hover: hover) { .set-danger:hover { background: var(--danger-soft); } }
.set-row-expand[open] > .set-danger { background: var(--danger-soft); }
.set-signout .set-value { font-size: .875rem; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
@media (hover: hover) { .link-btn:hover { text-decoration: underline; } }
@media (max-width: 420px) { .set-form { padding-left: 14px; } .set-value { max-width: 45%; } }
.set-select {
  flex: none; max-width: 52%; min-height: 34px; padding: 0 30px 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--separator); background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  color: var(--text); font: inherit; font-size: .9375rem; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.set-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Onay düğmeleri: yalnız ikon + sayı (ad, ipucu ve ekran okuyucu etiketinde) */
.seal { padding: 0 10px; gap: 4px; min-width: 40px; justify-content: center; }
.seal-count:not(:empty) { margin-right: 1px; }
/* Trendler: gönderinin neden gösterildiği */
.post-reason {
  display: inline-flex; align-items: center; gap: 5px; margin: -2px 0 8px; padding: 2px 9px;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent);
  font-size: .6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.post-reason::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feed-note { margin: -6px 4px 14px; }
.seg-tabs { max-width: 440px; }

/* ===== Gönderiler: kompakt zaman akışı (sosyal medya düzeni) =====
   Solda avatar, sağda içerik; gönderiler kart yerine ince çizgilerle ayrılır. Önceki .post kurallarını geçersiz kılar. */
.feed-posts {
  gap: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--separator);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.post {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: start;
  position: relative;
}
.feed-posts .post {
  padding: 12px 14px 8px; background: none; border: 0; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.feed-posts .post + .post { border-top: 1px solid var(--separator); }
.comments .post { padding: 12px 0 2px; }
.post-context {
  grid-column: 2; display: flex; align-items: center; gap: 5px; margin: -2px 0 3px;
  color: var(--text-3); font-size: .75rem; font-weight: 600;
}
.post-context svg { width: 13px; height: 13px; flex: none; }
.post-avatar { grid-column: 1; grid-row: span 6; display: block; line-height: 0; }
.post-avatar .avatar { width: 36px; height: 36px; margin: 0; }
.post-main { grid-column: 2; min-width: 0; }
.post-head { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: .9375rem; line-height: 1.3; }
.post-name { flex: 0 1 auto; min-width: 0; font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .post-name:hover { color: var(--text); text-decoration: underline; } }
.post-handle { flex: 0 1 auto; min-width: 0; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-dot, .post-time { flex: none; color: var(--text-3); }
.post-head .post-delete { margin-left: auto; align-self: center; }
.post-head .post-delete .icon-btn { width: 28px; height: 28px; }
.post-head .post-delete .icon-btn svg { width: 16px; height: 16px; }
.post .post-body, .comments .post .post-body { margin: 2px 0 0; font-size: .9375rem; line-height: 1.45; }
.post .spoiler, .comments .post .spoiler { margin: 6px 0 0; }
.post .spoiler-cover { padding: 8px 10px; gap: 8px; }
.post .spoiler-cover > svg { width: 18px; height: 18px; }
.post .spoiler-text strong { font-size: .8125rem; }
/* Ek kart: küçük afiş + tür · başlık + yıldızlar */
.post .post-media {
  margin-top: 8px; padding: 6px; gap: 10px; align-items: center;
  background: transparent; border: 1px solid var(--separator); border-radius: 12px;
}
@media (hover: hover) { .post .post-media:hover { background: var(--fill); } }
.post .post-poster { width: 34px; border-radius: 6px; }
.post .post-media-text { gap: 1px; }
.post .post-kind { font-size: .625rem; }
.post .post-title { font-size: .875rem; -webkit-line-clamp: 1; line-clamp: 1; }
.post-meta-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.post-meta-line:empty { display: none; }
.post .post-stars { font-size: .8125rem; letter-spacing: 0; margin: 0; }
.comments .post .post-stars { display: inline-block; margin: 2px 0 0; }
.post-fav { min-width: 0; color: var(--text-3); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Onaylar: çerçevesiz, küçük eylem düğmeleri */
/* Düğmeler yazı sütunuyla hizalı ve aralıklı: üçü birden verilince zeminler birbirine/kenara yapışmaz */
.post .seal-bar, .comments .post .seal-bar { margin: 6px 0 0; gap: 6px; }
.post .seal {
  min-height: 32px; min-width: 0; padding: 0 8px; border: 0; background: transparent; justify-content: flex-start;
  color: var(--text-3); font-size: .8125rem;
}
.post .seal svg { width: 18px; height: 18px; }
/* Sayının yeri hep ayrılı (boşken de): sayı gelince/gidince ikonlar kaymaz */
.post .seal-count, .post .seal-count:empty { display: inline-block; min-width: 2ch; text-align: left; margin-right: 0; }
/* Başkası onay verince (canlı güncelleme) artan sayı kısaca belirir */
.seal-count.is-bump { animation: seal-bump .6s var(--spring, ease); }
@keyframes seal-bump { 0% { transform: translateY(0); } 30% { transform: translateY(-3px) scale(1.25); color: var(--c); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .seal-count.is-bump { animation: none; } }
@media (hover: hover) { .post .seal:not(:disabled):hover { background: var(--soft); border: 0; } }
.post .seal.is-on { background: transparent; color: var(--c); }
.post .seal-bar.is-full .seal.is-on { box-shadow: none; background: var(--soft); }
.feed-note { font-size: .8125rem; margin: -6px 4px 12px; }
@media (max-width: 380px) { .post-handle { display: none; } }

/* Profil: Gönderiler / İstatistikler sekmeleri kart genişliğinde */
.profile-tabs { max-width: none; margin: 16px 0 14px; }


/* =====================================================================
   MARKA DENEMELERİ — ?marka=muhur | seyir | izlek  (çerez: tvt.brand)
   Liquid Glass yapısı aynen kalır; yalnızca renk tokenları, logo, başlık
   yazı tipi ve her markaya özgü birkaç "imza dokunuşu" değişir.
   ===================================================================== */
.brand-logo { display: inline-flex; width: 30px; height: 30px; flex: none; }
.brand-logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .18)); }
html:not([data-brand="revidience"]):not([data-brand="mercan"]) .brand-name { letter-spacing: -.02em; }

html[data-brand="muhur"] {
  --bg: #f7f1ec;
  --amb-1: rgba(214, 69, 90, .42);
  --amb-2: rgba(201, 151, 63, .45);
  --amb-3: rgba(140, 60, 110, .30);
  --amb-4: rgba(255, 196, 150, .55);
  --accent: #A3243A;
  --accent-hover: #8A1C30;
  --accent-soft: rgba(163, 36, 58, .12);
  --focus: rgba(163, 36, 58, .40);
  --brand-2: #B07E2A;
  --brand-2-soft: rgba(201, 151, 63, .18);
  --placeholder: linear-gradient(160deg, #efe3dc, #e2cfc6);
}
@media (prefers-color-scheme: dark) {
  html[data-brand="muhur"]:not([data-theme="light"]) {
  --bg: #120b0d;
  --amb-1: rgba(163, 36, 58, .55);
  --amb-2: rgba(201, 151, 63, .28);
  --amb-3: rgba(110, 17, 36, .55);
  --amb-4: rgba(120, 50, 90, .35);
  --accent: #E8566A;
  --accent-hover: #F0717F;
  --accent-soft: rgba(232, 86, 106, .20);
  --focus: rgba(232, 86, 106, .45);
  --brand-2: #E7B45A;
  --brand-2-soft: rgba(231, 180, 90, .20);
  }
}
html[data-brand="muhur"][data-theme="dark"] {
  --bg: #120b0d;
  --amb-1: rgba(163, 36, 58, .55);
  --amb-2: rgba(201, 151, 63, .28);
  --amb-3: rgba(110, 17, 36, .55);
  --amb-4: rgba(120, 50, 90, .35);
  --accent: #E8566A;
  --accent-hover: #F0717F;
  --accent-soft: rgba(232, 86, 106, .20);
  --focus: rgba(232, 86, 106, .45);
  --brand-2: #E7B45A;
  --brand-2-soft: rgba(231, 180, 90, .20);
}

html[data-brand="seyir"] {
  --bg: #f3f3fb;
  --amb-1: rgba(99, 102, 241, .45);
  --amb-2: rgba(245, 158, 11, .32);
  --amb-3: rgba(129, 140, 248, .40);
  --amb-4: rgba(255, 210, 122, .45);
  --accent: #4338CA;
  --accent-hover: #3730A3;
  --accent-soft: rgba(67, 56, 202, .12);
  --focus: rgba(67, 56, 202, .40);
  --brand-2: #D97706;
  --brand-2-soft: rgba(245, 158, 11, .16);
  --placeholder: linear-gradient(160deg, #e4e4f6, #d3d4ee);
}
@media (prefers-color-scheme: dark) {
  html[data-brand="seyir"]:not([data-theme="light"]) {
  --bg: #07081a;
  --amb-1: rgba(67, 56, 202, .60);
  --amb-2: rgba(245, 158, 11, .22);
  --amb-3: rgba(43, 35, 124, .70);
  --amb-4: rgba(99, 102, 241, .30);
  --accent: #8B85FF;
  --accent-hover: #A5A1FF;
  --accent-soft: rgba(139, 133, 255, .20);
  --focus: rgba(139, 133, 255, .45);
  --brand-2: #FFC145;
  --brand-2-soft: rgba(255, 193, 69, .18);
  }
}
html[data-brand="seyir"][data-theme="dark"] {
  --bg: #07081a;
  --amb-1: rgba(67, 56, 202, .60);
  --amb-2: rgba(245, 158, 11, .22);
  --amb-3: rgba(43, 35, 124, .70);
  --amb-4: rgba(99, 102, 241, .30);
  --accent: #8B85FF;
  --accent-hover: #A5A1FF;
  --accent-soft: rgba(139, 133, 255, .20);
  --focus: rgba(139, 133, 255, .45);
  --brand-2: #FFC145;
  --brand-2-soft: rgba(255, 193, 69, .18);
}

html[data-brand="izlek"] {
  --bg: #eef7f6;
  --amb-1: rgba(45, 212, 191, .45);
  --amb-2: rgba(255, 107, 87, .30);
  --amb-3: rgba(20, 184, 166, .35);
  --amb-4: rgba(255, 170, 140, .40);
  --accent: #0D7F76;
  --accent-hover: #0B6A62;
  --accent-soft: rgba(13, 127, 118, .12);
  --focus: rgba(13, 127, 118, .40);
  --brand-2: #E8513D;
  --brand-2-soft: rgba(255, 107, 87, .16);
  --placeholder: linear-gradient(160deg, #dcefed, #c8e3e0);
}
@media (prefers-color-scheme: dark) {
  html[data-brand="izlek"]:not([data-theme="light"]) {
  --bg: #041312;
  --amb-1: rgba(13, 148, 136, .55);
  --amb-2: rgba(255, 107, 87, .25);
  --amb-3: rgba(11, 111, 103, .60);
  --amb-4: rgba(45, 212, 191, .25);
  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --accent-soft: rgba(45, 212, 191, .18);
  --focus: rgba(45, 212, 191, .45);
  --accent-contrast: #04211e;
  --brand-2: #FF7A66;
  --brand-2-soft: rgba(255, 122, 102, .18);
  }
}
html[data-brand="izlek"][data-theme="dark"] {
  --bg: #041312;
  --amb-1: rgba(13, 148, 136, .55);
  --amb-2: rgba(255, 107, 87, .25);
  --amb-3: rgba(11, 111, 103, .60);
  --amb-4: rgba(45, 212, 191, .25);
  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --accent-soft: rgba(45, 212, 191, .18);
  --focus: rgba(45, 212, 191, .45);
  --accent-contrast: #04211e;
  --brand-2: #FF7A66;
  --brand-2-soft: rgba(255, 122, 102, .18);
}


/* ---- Başlık yazı tipleri (yalnızca başlıklar ve marka adı; gövde sistem fontu kalır) ---- */
html[data-brand="muhur"] :is(.brand-name, .page-title, .section-title, .profile-name, .hero-title, .panel-title, .set-title) {
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; letter-spacing: -.01em;
}
html[data-brand="muhur"] .brand-name { font-weight: 800; font-size: 1.2rem; }
html[data-brand="seyir"] :is(.brand-name, .page-title, .section-title, .profile-name, .hero-title) {
  font-family: "Sora", var(--font); letter-spacing: -.03em;
}
html[data-brand="seyir"] .brand-name { font-weight: 800; text-transform: lowercase; }
html[data-brand="izlek"] :is(.brand-name, .page-title, .section-title, .profile-name, .hero-title) {
  font-family: "Space Grotesk", var(--font); letter-spacing: -.025em;
}
html[data-brand="izlek"] .brand-name { font-weight: 700; text-transform: lowercase; }
html:not([data-brand="revidience"]):not([data-brand="mercan"]) :is(.set-title, .panel-title) { letter-spacing: .04em; }

/* ---- Ortak: ikinci marka rengi (onay, ilerleme, bildirim) ---- */
html:not([data-brand="revidience"]):not([data-brand="mercan"]) .nav-dot { background: var(--brand-2); }
html:not([data-brand="revidience"]):not([data-brand="mercan"]) .post-stars { color: var(--brand-2); }

/* ===== MÜHÜR: mum mühür biçimi ve kabartma ===== */
html[data-brand="muhur"] .poster-action.quick-add {
  clip-path: polygon(100.0% 50.0%, 98.8% 52.4%, 95.8% 54.5%, 92.7% 56.3%, 91.2% 58.2%, 91.9% 60.5%, 94.0% 63.4%, 96.0% 66.4%, 96.2% 69.1%, 94.1% 70.9%, 90.6% 71.7%, 87.0% 72.2%, 84.9% 73.3%, 84.7% 75.7%, 85.6% 79.2%, 86.2% 82.8%, 85.4% 85.4%, 82.8% 86.2%, 79.2% 85.6%, 75.7% 84.7%, 73.3% 84.9%, 72.2% 87.0%, 71.7% 90.6%, 70.9% 94.1%, 69.1% 96.2%, 66.4% 96.0%, 63.4% 94.0%, 60.5% 91.9%, 58.2% 91.2%, 56.3% 92.7%, 54.5% 95.8%, 52.4% 98.8%, 50.0% 100.0%, 47.6% 98.8%, 45.5% 95.8%, 43.7% 92.7%, 41.8% 91.2%, 39.5% 91.9%, 36.6% 94.0%, 33.6% 96.0%, 30.9% 96.2%, 29.1% 94.1%, 28.3% 90.6%, 27.8% 87.0%, 26.7% 84.9%, 24.3% 84.7%, 20.8% 85.6%, 17.2% 86.2%, 14.6% 85.4%, 13.8% 82.8%, 14.4% 79.2%, 15.3% 75.7%, 15.1% 73.3%, 13.0% 72.2%, 9.4% 71.7%, 5.9% 70.9%, 3.8% 69.1%, 4.0% 66.4%, 6.0% 63.4%, 8.1% 60.5%, 8.8% 58.2%, 7.3% 56.3%, 4.2% 54.5%, 1.2% 52.4%, 0.0% 50.0%, 1.2% 47.6%, 4.2% 45.5%, 7.3% 43.7%, 8.8% 41.8%, 8.1% 39.5%, 6.0% 36.6%, 4.0% 33.6%, 3.8% 30.9%, 5.9% 29.1%, 9.4% 28.3%, 13.0% 27.8%, 15.1% 26.7%, 15.3% 24.3%, 14.4% 20.8%, 13.8% 17.2%, 14.6% 14.6%, 17.2% 13.8%, 20.8% 14.4%, 24.3% 15.3%, 26.7% 15.1%, 27.8% 13.0%, 28.3% 9.4%, 29.1% 5.9%, 30.9% 3.8%, 33.6% 4.0%, 36.6% 6.0%, 39.5% 8.1%, 41.8% 8.8%, 43.7% 7.3%, 45.5% 4.2%, 47.6% 1.2%, 50.0% 0.0%, 52.4% 1.2%, 54.5% 4.2%, 56.3% 7.3%, 58.2% 8.8%, 60.5% 8.1%, 63.4% 6.0%, 66.4% 4.0%, 69.1% 3.8%, 70.9% 5.9%, 71.7% 9.4%, 72.2% 13.0%, 73.3% 15.1%, 75.7% 15.3%, 79.2% 14.4%, 82.8% 13.8%, 85.4% 14.6%, 86.2% 17.2%, 85.6% 20.8%, 84.7% 24.3%, 84.9% 26.7%, 87.0% 27.8%, 90.6% 28.3%, 94.1% 29.1%, 96.2% 30.9%, 96.0% 33.6%, 94.0% 36.6%, 91.9% 39.5%, 91.2% 41.8%, 92.7% 43.7%, 95.8% 45.5%, 98.8% 47.6%);
  width: 40px; height: 40px;
  background: radial-gradient(circle at 35% 30%, #D6455A, #A3243A 55%, #6E1124);
  box-shadow: none;
}
html[data-brand="muhur"] .poster-item > .poster-action.quick-add { top: calc(150cqw - 46px); }
html[data-brand="muhur"] .poster-action.quick-add::after { inset: 0; }
html[data-brand="muhur"] .quick-add.is-added { background: radial-gradient(circle at 35% 30%, #F3D28C, #C9973F 55%, #8A6420); }
html[data-brand="muhur"] .btn-primary, html[data-brand="muhur"] .seg-tab.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 6px 16px -6px var(--focus);
}
html[data-brand="muhur"] .seal-bar.is-full .seal.is-on { color: var(--brand-2); background: var(--brand-2-soft); box-shadow: 0 0 0 1px var(--brand-2-soft), 0 0 14px var(--brand-2-soft); }
html[data-brand="muhur"] .seal-muhur.is-on { color: var(--accent); }
html[data-brand="muhur"] .post-context { color: var(--brand-2); }
html[data-brand="muhur"] .match-badge.is-high { background: linear-gradient(135deg, #C9973F, #8A6420); color: #fff; }

/* ===== SEYİR: noktalı rota ve amber lamba ===== */
html[data-brand="seyir"] .progress {
  background: radial-gradient(circle, var(--fill-hover) 1.6px, transparent 2px) 0 50% / 10px 8px repeat-x;
  height: 8px;
}
html[data-brand="seyir"] .progress > span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-2) 55%, transparent), var(--brand-2));
  box-shadow: 0 0 10px var(--brand-2-soft);
}
html[data-brand="seyir"] .upcoming-left, html[data-brand="seyir"] .post-context { color: var(--brand-2); }
html[data-brand="seyir"] .seg-tab.is-active, html[data-brand="seyir"] .btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #a5b4fc), var(--accent));
}
html[data-brand="seyir"] .tab.is-active::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 6px var(--brand-2);
}
html[data-brand="seyir"] .seal.is-on { color: var(--brand-2); }

/* ===== İZLEK: ilerleme ucu "oynat" noktası ve mercan sosyal eylemler ===== */
html[data-brand="izlek"] .progress { overflow: visible; height: 6px; }
html[data-brand="izlek"] .progress > span { position: relative; background: linear-gradient(90deg, var(--accent), var(--brand-2)); }
html[data-brand="izlek"] .progress > span::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px var(--glass-bg-strong), 0 2px 8px var(--brand-2-soft);
}
html[data-brand="izlek"] .seal.is-on, html[data-brand="izlek"] .post-context { color: var(--brand-2); }
html[data-brand="izlek"] .follow-form .btn-primary { background: var(--brand-2); color: #fff; }
html[data-brand="izlek"] .seg-tab.is-active { border-radius: 12px; }
html[data-brand="izlek"] .seg-tabs { border-radius: 16px; }

/* ===== /marka: marka panosu ===== */
.brandboard { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.bb-eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bb-h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 10px; }
.bb-current { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); }
.bb-principles { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.bb-landscape { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bb-landscape span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--fill); font-size: .8rem; font-weight: 600; }
.bb-landscape span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.bb-concept { position: relative; overflow: hidden; }
.bb-concept::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: radial-gradient(120% 100% at 0 0, color-mix(in srgb, var(--c1) 28%, transparent), transparent 70%), radial-gradient(80% 90% at 100% 0, color-mix(in srgb, var(--c3) 22%, transparent), transparent 70%); pointer-events: none; }
.bb-concept > * { position: relative; }
.bb-concept.is-current { box-shadow: 0 0 0 2px var(--c1), var(--shadow); }
.bb-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bb-icon { width: 88px; height: 88px; flex: none; }
.bb-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--c2) 45%, transparent)); }
.bb-name-wrap { flex: 1; min-width: 160px; }
.bb-name { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.bb-tagline { margin: 6px 0 0; font-size: 1.05rem; color: var(--text-2); }
.bb-try { background: var(--c1); }
@media (hover: hover) { .bb-try:hover { background: var(--c2); } }
.bb-meaning { margin: 14px 0 6px; line-height: 1.55; }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 10px; }
.bb-h3 { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 8px; }
.bb-scales { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: var(--r-md); background: var(--fill); }
.bb-scales span, .bb-mock-top span { display: inline-flex; }
.bb-scales svg, .bb-mock-top svg { width: 100%; height: 100%; }
.s64 { width: 64px; height: 64px; } .s40 { width: 40px; height: 40px; } .s28 { width: 28px; height: 28px; } .s24 { width: 24px; height: 24px; }
.bb-lockup { align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--glass-bg-strong); }
.bb-lockup b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.bb-palette { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bb-palette li { display: flex; align-items: center; gap: 10px; }
.bb-palette .sw { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bb-palette span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.bb-palette code { font-size: .75rem; color: var(--text-3); }
.bb-palette small { color: var(--text-2); font-size: .78rem; }
.bb-mock { border-radius: 20px; padding: 12px; background: color-mix(in srgb, var(--c2) 10%, var(--glass-bg-strong)); border: 1px solid var(--separator); display: grid; gap: 10px; }
.bb-mock-top { display: flex; align-items: center; gap: 8px; } .bb-mock-top b { font-weight: 800; }
.bb-mock-tabs { display: flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--fill); font-size: .8rem; font-weight: 700; }
.bb-mock-tabs span { flex: 1; text-align: center; padding: 6px; border-radius: var(--r-pill); color: var(--text-2); }
.bb-mock-tabs .on { background: var(--c1); color: #fff; }
.bb-mock-post { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: .85rem; }
.bb-mock-post .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c3), var(--c1)); }
.bb-mock-post p { margin: 2px 0 4px; } .bb-mock-post .mu { color: var(--text-3); }
.bb-mock-act { display: flex; gap: 12px; color: var(--text-3); font-weight: 600; }
.bb-mock-act .on { color: var(--c1); } .bb-mock-act .stars { margin-left: auto; color: var(--c3); letter-spacing: 1px; }
.bb-mock-prog { height: 7px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bb-mock-prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c3)); }
.bb-mock-btns { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; }
.bb-mock-btns span { padding: 7px 12px; border-radius: var(--r-pill); }
.bb-mock-btns .b1 { background: var(--c1); color: #fff; } .bb-mock-btns .b2 { background: color-mix(in srgb, var(--c3) 18%, transparent); color: var(--text); }
.bb-touches { margin: 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.45; font-size: .92rem; }
.bb-why { margin-top: 14px; border-top: 1px solid var(--separator); padding-top: 10px; }
.bb-why summary { cursor: pointer; font-weight: 700; color: var(--c1); }
.bb-why ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; }
.bb-foot { line-height: 1.5; }

/* =====================================================================
   SADE GÖRÜNÜM DENEMESİ — ?gorunum=sade (çerez: tvt.look)
   • Üst çubuk, alt çubuk, afiş üstündeki düğmeler, menüler: Liquid Glass aynen.
   • Sayfa ortasındaki bölümler cam panel içine alınmaz: zemine yayılır,
     ince çizgi ve boşlukla ayrılır (editoryal, "yayvan" düzen).
   • Renk kararında: tek vurgu, tozlu mürekkep mavisi; birincil düğmeler
     mürekkep (siyah/beyaz). Neon arka plan ışıltısı neredeyse kapalı.
   ===================================================================== */
html[data-look="sade"] {
  --bg: #f6f6f3;
  --amb-1: rgba(160, 175, 200, .22); --amb-2: rgba(200, 190, 175, .20);
  --amb-3: rgba(170, 185, 180, .16); --amb-4: rgba(210, 200, 190, .18);
  --accent: #3f5f8f; --accent-hover: #34507a; --accent-soft: rgba(63, 95, 143, .10); --focus: rgba(63, 95, 143, .35);
  --ink: #16181d; --ink-contrast: #fff;
  --separator: rgba(22, 24, 29, .09);
  --placeholder: linear-gradient(160deg, #e6e6e1, #d9d9d3);
}
@media (prefers-color-scheme: dark) {
  html[data-look="sade"]:not([data-theme="light"]) {
    --bg: #0f0f11;
    --amb-1: rgba(70, 85, 110, .22); --amb-2: rgba(80, 70, 60, .16);
    --amb-3: rgba(50, 70, 70, .16); --amb-4: rgba(60, 60, 75, .16);
    --accent: #9db2d6; --accent-hover: #b6c7e3; --accent-soft: rgba(157, 178, 214, .14); --focus: rgba(157, 178, 214, .4);
    --accent-contrast: #0f1420;
    --ink: #ecedf0; --ink-contrast: #111214;
    --separator: rgba(255, 255, 255, .08);
  }
}
html[data-look="sade"][data-theme="dark"] {
  --bg: #0f0f11;
  --amb-1: rgba(70, 85, 110, .22); --amb-2: rgba(80, 70, 60, .16);
  --amb-3: rgba(50, 70, 70, .16); --amb-4: rgba(60, 60, 75, .16);
  --accent: #9db2d6; --accent-hover: #b6c7e3; --accent-soft: rgba(157, 178, 214, .14); --focus: rgba(157, 178, 214, .4);
  --accent-contrast: #0f1420;
  --ink: #ecedf0; --ink-contrast: #111214;
  --separator: rgba(255, 255, 255, .08);
}
html[data-look="sade"] .ambient { animation: none; opacity: .7; }

/* ---- Logo: sade mürekkep karesi ---- */
html[data-look="sade"] .brand-mark {
  background: var(--ink); box-shadow: none; border-radius: 8px;
}
html[data-look="sade"] .brand-mark::after { border-left-color: var(--ink-contrast); filter: none; }

/* ---- Sayfa ortası: cam paneller açılır ---- */
html[data-look="sade"] #main :is(.glass, .feed-posts):not(.poster-action):not(.poster-menu-list):not(.glass-strong):not(.seg-tabs):not(.lib-tabs):not(.search-hero):not(.set-identity) {
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-look="sade"] #main .card { padding: 18px 0; }
html[data-look="sade"] #main .card + .card,
html[data-look="sade"] #main .section + .section,
html[data-look="sade"] #main .card + .section,
html[data-look="sade"] #main .section + .card { border-top: 1px solid var(--separator); }
html[data-look="sade"] #main .section { padding-top: 6px; }
html[data-look="sade"] #main .empty { padding: 28px 8px; }
html[data-look="sade"] .detail-main > .card:first-child, html[data-look="sade"] .detail-aside > .card:first-child { border-top: 0; }
html[data-look="sade"] .detail-aside { border-left: 1px solid var(--separator); padding-left: 24px; }
@media (max-width: 899px) { html[data-look="sade"] .detail-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--separator); } }

/* Başlıklar: daha editoryal, sakin */
html[data-look="sade"] .section-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
html[data-look="sade"] .panel-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }

/* Akış: gönderiler zemine yayılır, yalnız çizgilerle ayrılır */
html[data-look="sade"] .feed-posts .post { padding: 14px 0 8px; }
html[data-look="sade"] .post .post-media { border-color: var(--separator); }

/* İstatistik kutuları: çerçevesiz rakamlar */
html[data-look="sade"] .stat-tile { padding: 10px 0; border-radius: 0; }
html[data-look="sade"] .tile-hero { background: none; }
html[data-look="sade"] .stat-tiles { gap: 0 18px; }

/* Ayarlar: gruplar kart değil, çizgili liste */
html[data-look="sade"] .set-card .set-row { padding-left: 0; padding-right: 0; }
html[data-look="sade"] .set-title { margin-left: 0; }
html[data-look="sade"] .set-foot { margin-left: 0; }
html[data-look="sade"] .set-card > * + *::before { left: 44px; }

/* Bölüm listesi ve kişi listeleri: kenar boşluğu sıfırlanır */
html[data-look="sade"] :is(.taste-list, .notice-list, .feed) { padding: 0; }
html[data-look="sade"] :is(.taste-row, .notice-row) { padding-left: 0; padding-right: 0; }
html[data-look="sade"] .notice-row.is-new { background: none; }
html[data-look="sade"] .notice-row.is-new .notice-text strong::after { content: " •"; color: var(--accent); }

/* ---- Sekmeler: alt çizgili, sade ---- */
html[data-look="sade"] .seg-tabs {
  max-width: none; padding: 0; gap: 22px; border-radius: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--separator);
}
html[data-look="sade"] .seg-tab { flex: none; min-height: 42px; padding: 0 2px; border-radius: 0; font-weight: 600; color: var(--text-3); position: relative; }
html[data-look="sade"] .seg-tab.is-active { background: none; color: var(--text); box-shadow: none; }
html[data-look="sade"] .seg-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
html[data-look="sade"] .seg-badge { background: var(--accent); }

/* Listem kategorileri: seçili çip mürekkep */
html[data-look="sade"] .lib-tab.is-active { background: var(--ink); color: var(--ink-contrast); box-shadow: none; }
html[data-look="sade"] .lib-tab.is-active .lib-count { background: rgba(127, 127, 140, .3); }

/* ---- Düğmeler: birincil mürekkep, vurgu rengi yalnız küçük işaretlerde ---- */
html[data-look="sade"] .btn-primary { background: var(--ink); color: var(--ink-contrast); box-shadow: none; }
@media (hover: hover) { html[data-look="sade"] .btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); color: var(--ink-contrast); } }
html[data-look="sade"] .tab.is-active, html[data-look="sade"] .topnav-link.is-active { color: var(--text); }
html[data-look="sade"] .progress > span { background: var(--accent); box-shadow: none; }
html[data-look="sade"] .match-badge { background: rgba(20, 22, 28, .62); color: #fff; }
html[data-look="sade"] .match-badge.is-high, html[data-look="sade"] .match-badge.is-good { background: rgba(20, 22, 28, .62); color: #fff; }
html[data-look="sade"] .post-context { color: var(--text-3); }

/* ===== Gönderi eylemleri: onaylar solda, paylaş sağda ===== */
.post-actions { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.post-actions .seal-bar { margin-top: 0; }
.post-share {
  margin-left: auto; width: 34px; height: 32px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-3); cursor: pointer;
  transition: color .15s, background-color .15s, transform .2s var(--spring, ease);
}
.post-share svg { width: 18px; height: 18px; }
@media (hover: hover) { .post-share:not(:disabled):hover { color: var(--accent); background: var(--accent-soft); } }
.post-share:not(:disabled):active { transform: scale(.9); }
/* Spoiler kapalıyken eylemler kilitli ve soluk */
.post.is-spoiler .seal:disabled, .post-share:disabled { opacity: .4; cursor: not-allowed; }
.comments .post .post-actions { margin-top: 2px; }


/* =====================================================================
   YAZI TİPİ DENEMELERİ — ?yazi=... (çerez: tvt.font)
   --font gövde, --font-head başlıklar. Kod/rakam hizası için tabular-nums korunur.
   ===================================================================== */
:is(h1, h2, h3, .page-title, .section-title, .hero-title, .profile-name, .panel-title, .set-title, .brand-name, .seg-tab, .stat-value, .bb-name, .post-title) {
  font-family: var(--font-head);
}
/* Varsayılan: Bricolage başlıklar (optik boyut büyük başlıklara göre) */
:is(.section-title, .hero-title, .profile-name, .page-title, .bb-name) { font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 48; }
html[data-font="sistem"] { --font: var(--font-system); --font-head: var(--font-system); }
html[data-font="sistem"] :is(.section-title, .hero-title, .profile-name, .page-title) { font-variation-settings: normal; letter-spacing: -.02em; }
html[data-font="inter"] { --font: "Inter", system-ui, sans-serif; --font-head: "Inter", system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; }
html[data-font="inter"] :is(.page-title, .section-title, .hero-title, .profile-name) { letter-spacing: -.025em; }
html[data-font="geist"] { --font: "Geist", system-ui, sans-serif; --font-head: "Geist", system-ui, sans-serif; }
html[data-font="geist"] :is(.page-title, .section-title, .hero-title, .profile-name) { letter-spacing: -.035em; }
html[data-font="manrope"] { --font: "Manrope", system-ui, sans-serif; --font-head: "Manrope", system-ui, sans-serif; }
html[data-font="manrope"] :is(.section-title, .hero-title, .profile-name) { font-weight: 800; letter-spacing: -.02em; }
html[data-font="jakarta"] { --font: "Plus Jakarta Sans", system-ui, sans-serif; --font-head: "Plus Jakarta Sans", system-ui, sans-serif; }
html[data-font="jakarta"] :is(.section-title, .hero-title, .profile-name) { font-weight: 800; letter-spacing: -.025em; }
html[data-font="instrument"] { --font: "Instrument Sans", system-ui, sans-serif; --font-head: "Instrument Serif", Georgia, serif; }
/* Serif başlıklar yalnız büyük başlıklarda; küçük etiketler gövde ailesinde kalır */
html[data-font="instrument"] :is(.panel-title, .set-title, .seg-tab, .stat-value, .post-title, .brand-name) { font-family: var(--font); }
html[data-font="instrument"] :is(.section-title, .hero-title, .profile-name, .page-title, .bb-name) { font-weight: 400; letter-spacing: -.01em; }
html[data-font="instrument"] .section-title { font-size: 1.6rem; }
html[data-font="instrument"] .hero-title { font-size: clamp(2.2rem, 7vw, 3.6rem); }
html[data-font="instrument"] .profile-name { font-size: 1.9rem; }

/* ---- /marka: yazı tipi karşılaştırması ---- */
.fx-list { display: grid; gap: 0; }
.fx { padding: 18px 0; border-top: 1px solid var(--separator); display: grid; gap: 10px; }
.fx:first-child { border-top: 0; }
.fx.is-current .fx-name::after { content: " · açık"; color: var(--accent); font-weight: 600; font-size: .8rem; }
.fx-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fx-name { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.fx-top .btn { margin-left: auto; }
.fx-h { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.fx-sub { font-size: 1.05rem; font-weight: 700; margin: 0; }
.fx-p { margin: 0; line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.fx-ui { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.fx-ui .num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.4rem; }
.fx-ui .chip-like { padding: 5px 12px; border-radius: 99px; background: var(--fill); font-weight: 600; }
.fx-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 6px 18px; font-size: .86rem; color: var(--text-2); }
.fx-notes ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; }
.fx-notes b { color: var(--text); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* ===== Spoiler kapağı stilleri (deneme: ?spoiler=…, karşılaştırma: /marka/spoiler) =====
   Varsayılan "çizgili" yukarıda. Açılınca .spoiler.is-open; kapak varsayılan olarak kaybolur, gövde yumuşakça belirir. */
.spoiler.is-open .spoiler-cover { display: none; }
.spoiler.is-open .post-body { animation: spoiler-in .35s ease both; }
@keyframes spoiler-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* Kapak düğmesini tüm alana yayan stiller için: dokunulan her yer açar */
[data-spoiler-style="cam"] .spoiler, [data-spoiler-style="karartma"] .spoiler { position: relative; }
[data-spoiler-style="cam"] .spoiler-cover .btn, [data-spoiler-style="karartma"] .spoiler-cover .btn,
[data-spoiler-style="satir"] .spoiler-cover .btn {
  position: static; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--accent); font-weight: 600; font-size: .8125rem;
}
/* Yalnızca "Göster" düğmesi açar (kaydırırken metne dokunmak açmasın); düğmenin dokunma alanı geniş */
[data-spoiler-style="cam"] .spoiler-cover .btn, [data-spoiler-style="karartma"] .spoiler-cover .btn {
  min-height: 32px; padding: 4px 10px; margin: -4px -6px -4px 0; border-radius: 99px;
}
@media (hover: hover) { [data-spoiler-style="cam"] .spoiler-cover .btn:hover, [data-spoiler-style="karartma"] .spoiler-cover .btn:hover { background: var(--accent-soft); } }
[data-spoiler-style="cam"] .spoiler-cover .btn:active, [data-spoiler-style="karartma"] .spoiler-cover .btn:active { transform: scale(.95); }

/* 1) Buzlu cam: metin bulanık, üstünde cam hap */
[data-spoiler-style="cam"] .spoiler { display: grid; }
[data-spoiler-style="cam"] .spoiler > * { grid-area: 1 / 1; }
[data-spoiler-style="cam"] .spoiler .post-body { display: block !important; margin: 0; min-height: 3.6em; transition: filter .45s ease, opacity .45s ease; }
[data-spoiler-style="cam"] .spoiler:not(.is-open) .post-body { filter: blur(7px); opacity: .6; user-select: none; -webkit-user-select: none; }
[data-spoiler-style="cam"] .spoiler.is-open .post-body { animation: none; }
[data-spoiler-style="cam"] .spoiler-cover {
  place-self: center; z-index: 1; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 16px; max-width: calc(100% - 8px);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .25); transition: opacity .25s ease, transform .25s ease;
}
[data-spoiler-style="cam"] .spoiler.is-open .spoiler-cover { display: flex; opacity: 0; transform: scale(.94); pointer-events: none; }
[data-spoiler-style="cam"] .spoiler-cover > svg { width: 16px; height: 16px; }
[data-spoiler-style="cam"] .spoiler-text { flex: 0 1 auto; min-width: 0; }
[data-spoiler-style="cam"] .spoiler-text strong { font-size: .8125rem; font-weight: 600; white-space: normal; }
/* Gerekçe dar ekranda kesilmesin: en fazla iki satıra sarılır */
[data-spoiler-style="cam"] .spoiler-text .small {
  font-size: .75rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
[data-spoiler-style="cam"] .spoiler-cover .btn { flex: none; }
@media (max-width: 420px) {
  /* Gölge payı: akıştaki gönderiler (content-visibility) kendi kutusunun dışını çizmez, tam genişlikte kartın gölgesi sağdan kesiliyordu */
  [data-spoiler-style="cam"] .spoiler-cover { padding: 7px 10px; gap: 7px; max-width: calc(100% - 24px); }
  [data-spoiler-style="cam"] .spoiler-cover > svg { display: none; }
}

/* 2) Sansür şeridi: satırlar karartılmış, açılınca şerit silinir */
[data-spoiler-style="karartma"] .spoiler .post-body { display: block !important; margin-top: 4px; }
[data-spoiler-style="karartma"] .spoiler.is-open .post-body { animation: none; }
[data-spoiler-style="karartma"] .spoiler-ink {
  color: transparent; border-radius: 3px; padding: 0 2px; margin: 0 -2px;
  background: linear-gradient(color-mix(in srgb, var(--text) 82%, transparent), color-mix(in srgb, var(--text) 82%, transparent)) no-repeat 100% 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .55s cubic-bezier(.6, 0, .2, 1), color .25s ease .3s;
}
[data-spoiler-style="karartma"] .spoiler:not(.is-open) .spoiler-ink { cursor: pointer; user-select: none; -webkit-user-select: none; }
[data-spoiler-style="karartma"] .spoiler.is-open .spoiler-ink { background-size: 0% 100%; color: inherit; }
[data-spoiler-style="karartma"] .spoiler-cover { background: none; border: 0; padding: 0; gap: 6px; }
[data-spoiler-style="karartma"] .spoiler-cover > svg { width: 15px; height: 15px; }
[data-spoiler-style="karartma"] .spoiler-text { flex: 0 1 auto; flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; }
[data-spoiler-style="karartma"] .spoiler-text strong { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
[data-spoiler-style="karartma"] .spoiler-text .small { display: none; }
[data-spoiler-style="karartma"] .spoiler-cover .btn { font-size: .75rem; }

/* 3) Mühürlü: eğik "SPOILER" damgası */
[data-spoiler-style="muhur"] .spoiler-cover { background: var(--fill); border: 0; padding: 12px 14px; gap: 14px; }
[data-spoiler-style="muhur"] .spoiler-cover > svg { display: none; }
[data-spoiler-style="muhur"] .spoiler-cover::before {
  content: attr(data-stamp); flex: none; font-family: var(--font-head); font-weight: 800; font-size: .6875rem; letter-spacing: .16em;
  color: var(--accent); padding: 4px 8px 3px; border: 2px solid currentColor; border-radius: 5px;
  outline: 1px solid currentColor; outline-offset: 2px; transform: rotate(-7deg); opacity: .85;
}
[data-spoiler-style="muhur"] .spoiler-text strong { font-weight: 600; }

/* 4) Tek satır: kutu yok */
[data-spoiler-style="satir"] .spoiler-cover { background: none; border: 0; padding: 2px 0; gap: 6px; align-items: center; }
[data-spoiler-style="satir"] .spoiler-cover > svg { width: 16px; height: 16px; }
[data-spoiler-style="satir"] .spoiler-text { flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
[data-spoiler-style="satir"] .spoiler-text strong { font-weight: 500; font-size: .875rem; color: var(--text-2); }
[data-spoiler-style="satir"] .spoiler-text .small::before { content: "· "; }

/* Karşılaştırma sayfası */
.sp-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 8px; }
.sp-col h2 { margin: 0 0 4px; font-size: 1.125rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sp-col h2 .muted { font-family: var(--font); font-size: .75rem; font-weight: 500; }
.sp-col > p { margin: 0 0 10px; color: var(--text-2); font-size: .875rem; }
.sp-col ul { margin: 10px 0 0; padding-left: 18px; font-size: .8125rem; color: var(--text-2); }
.sp-col li.con { color: var(--text-3); }
.sp-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sp-posts { border-top: 1px solid var(--separator); }

/* ===== Keşfet: Bugün ne izlesem? (film slotu) ===== */
.slot { --tile-w: 96px; --tile-gap: 10px; }
.slot-modes {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--r-pill);
  background: var(--fill); margin: 0 0 14px; isolation: isolate;
}
.slot-modes button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 14px; border: 0; background: none; border-radius: var(--r-pill);
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: color .25s ease;
}
.slot-modes button svg { width: 15px; height: 15px; }
.slot-modes button[aria-checked="true"] { color: var(--text); }
.slot-modes-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill);
  background: var(--glass-bg-strong); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.18), inset 0 1px 0 var(--glass-highlight);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.slot-modes[data-mode="rastgele"] .slot-modes-thumb { transform: translateX(100%); }

.slot-window {
  position: relative; overflow: hidden; padding: 22px 0; margin: 0 -16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.slot-reel { display: flex; gap: var(--tile-gap); width: max-content; will-change: transform; }
/* Açılışta sayfa geçişi bitene kadar beklesin: geçiş sırasında hareket eden içerik yeni sayfanın
   her karede yeniden çizilmesine yol açıp telefonda takılmaya sebep oluyordu */
.slot-reel.is-idle { animation: slot-drift 60s linear .7s infinite; }
@keyframes slot-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.slot-tile {
  flex: none; width: var(--tile-w); aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--fill);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); transition: opacity .5s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1), box-shadow .5s ease, filter .3s ease;
}
.slot-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* (hız bulanıklığı kaldırıldı: geçişi tüm şeridi yeniden çizdirip takılmaya yol açıyordu) */
.slot-reel.is-done .slot-tile:not(.is-winner) { opacity: .28; transform: scale(.92); }
.slot-tile.is-winner {
  position: relative; transform: scale(1.14); z-index: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 14px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
/* Kazanan afişte bir kez parlayan ışık */
.slot-tile.is-winner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; animation: slot-shine .9s .15s ease-out both;
}
@keyframes slot-shine { to { background-position: -30% 0; } }
/* Orta işaretçi: üstte ve altta küçük üçgen */
.slot-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; pointer-events: none; }
.slot-marker::before, .slot-marker::after {
  content: ""; position: absolute; left: -7px; border: 7px solid transparent; transition: transform .12s ease;
}
.slot-marker::before { top: 0; border-top-color: var(--accent); border-bottom-width: 0; }
.slot-marker::after { bottom: 0; border-bottom-color: var(--accent); border-top-width: 0; }
.slot-marker.is-tick::before { transform: translateY(2px); }
.slot-marker.is-tick::after { transform: translateY(-2px); }

.slot-controls { display: flex; justify-content: center; margin-top: 6px; }
.slot-spin { gap: 8px; min-width: 150px; }
.slot-spin svg { width: 18px; height: 18px; }
.slot-spin.is-busy svg { animation: slot-turn .6s linear infinite; }
.slot-spin:disabled { opacity: .85; }
@keyframes slot-turn { to { transform: rotate(360deg); } }

.slot-result:empty { display: none; }
.slot-pick {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; margin-top: 18px;
  animation: slot-rise .55s cubic-bezier(.2, .9, .3, 1.1) both;
}
@keyframes slot-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.slot-pick-poster { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--fill); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.slot-pick-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-pick-body { min-width: 0; }
.slot-pick-reason { margin: 0 0 4px; font-size: .75rem; font-weight: 600; color: var(--accent); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.slot-pick-reason .match { color: var(--text-2); font-weight: 600; }
.slot-pick-title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.slot-pick-title a { color: inherit; text-decoration: none; }
.slot-pick-meta { margin: 4px 0 0; font-size: .8125rem; color: var(--text-2); }
.slot-pick-meta .star { color: #f5b301; }
.slot-pick-overview {
  margin: 8px 0 0; font-size: .875rem; line-height: 1.45; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.slot-pick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slot-pick-actions .btn { min-height: 36px; padding: 0 14px; font-size: .8125rem; gap: 6px; }
.slot-pick-actions svg { width: 16px; height: 16px; }
.slot-add .when-added, .slot-add.is-added .when-new { display: none; }
.slot-add.is-added .when-added { display: inline-flex; align-items: center; gap: 6px; }
.slot-add.is-added { color: var(--accent); }
.slot-empty { margin: 14px 0 0; text-align: center; color: var(--text-2); font-size: .875rem; }
@media (min-width: 640px) {
  .slot { --tile-w: 112px; }
  .slot-window { margin: 0; }
  .slot-pick { grid-template-columns: 132px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .slot-reel.is-idle { animation: none; }
  .slot-reel.is-fast .slot-tile { filter: none; }
  .slot-tile.is-winner::after, .slot-pick { animation: none; }
}

/* ===== Paylaşım menüsü: telefonda alttan sayfa, geniş ekranda ortada pencere ===== */
html.share-open { overflow: hidden; }
.share-sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0; background: none;
  width: 100%; max-width: 100%; max-height: 100dvh; overflow: visible; color: var(--text);
}
.share-sheet::backdrop { background: rgba(6, 8, 14, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: share-fade .25s ease both; }
.share-sheet.is-closing::backdrop { animation: share-fade .22s ease reverse both; }
.share-panel {
  position: relative; display: grid; gap: 14px;
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--glass-solid);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .22); border-top: 1px solid var(--glass-border);
  animation: share-up .38s var(--spring) both; transition: transform .25s var(--ease);
}
.share-sheet.is-closing .share-panel { animation: share-down .22s ease-in both; }
@keyframes share-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes share-down { to { transform: translateY(100%); } }
@keyframes share-fade { from { opacity: 0; } to { opacity: 1; } }
.share-grip { justify-self: center; width: 38px; height: 5px; border-radius: 99px; background: var(--fill-hover); margin-bottom: -4px; touch-action: none; }
.share-head { display: flex; align-items: center; justify-content: space-between; touch-action: none; }
.share-head h2 { margin: 0; font: 700 1.125rem/1.2 var(--font-head); }
.share-x { width: 34px; height: 34px; margin-right: 4px; flex: none; background: var(--fill); color: var(--text-2); }
.share-x svg { width: 16px; height: 16px; }

.share-preview { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--fill); }
.share-thumb { flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--placeholder); }
.share-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Profil paylaşımı: yuvarlak profil resmi (yoksa baş harfler) */
.share-thumb.is-avatar { width: 46px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9375rem;
  background: linear-gradient(140deg, hsl(var(--h, 220) 75% 62%), hsl(calc(var(--h, 220) + 40) 70% 46%)); }
.share-thumb.is-avatar:has(img) { background: var(--placeholder); }
.share-pv-text { min-width: 0; display: grid; gap: 1px; line-height: 1.3; }
.share-pv-kind { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.share-pv-title { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-pv-by { font-size: .8125rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-pv-quote { font-size: .8125rem; color: var(--text-2); font-style: italic; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.share-pv-quote[hidden] { display: none; }

.share-apps {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 6px;
  overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none;
}
.share-apps::-webkit-scrollbar { display: none; }
.share-app {
  display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text);
  text-decoration: none; font: inherit; cursor: pointer; scroll-snap-align: start;
  animation: share-pop .4s var(--spring) both; animation-delay: calc(var(--i, 0) * 30ms + 80ms);
}
.share-app[hidden] { display: none; }
.share-app-ic {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .3); transition: transform .2s var(--spring);
}
.share-app-ic svg { width: 26px; height: 26px; }
.share-app-ic.is-more { background: var(--fill-hover); color: var(--text); box-shadow: none; }
@media (hover: hover) { .share-app:hover .share-app-ic { transform: translateY(-2px); } }
.share-app:active .share-app-ic { transform: scale(.9); }
.share-app-n { font-size: .6875rem; color: var(--text-2); white-space: nowrap; }
.share-apps > :nth-child(2) { --i: 1; } .share-apps > :nth-child(3) { --i: 2; } .share-apps > :nth-child(4) { --i: 3; }
.share-apps > :nth-child(5) { --i: 4; } .share-apps > :nth-child(6) { --i: 5; } .share-apps > :nth-child(7) { --i: 6; } .share-apps > :nth-child(8) { --i: 7; }
@keyframes share-pop { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }

.share-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  border-radius: 14px; background: var(--fill); color: var(--text-3);
}
.share-link > svg { flex: none; width: 18px; height: 18px; }
.share-url {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0; color: var(--text-2);
  font: 500 .8125rem/1.2 var(--font); text-overflow: ellipsis; outline: none; box-shadow: none; min-height: 0;
}
.share-copy { flex: none; min-width: 92px; transition: background .2s ease; }
.share-copy.is-done { background: var(--success); border-color: var(--success); }

.share-toggle { display: flex; align-items: center; gap: 10px; font-size: .875rem; cursor: pointer; user-select: none; -webkit-user-select: none; }
.share-toggle[hidden] { display: none; }
.share-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.share-switch {
  flex: none; position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--fill-hover); transition: background .2s ease;
}
.share-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--spring);
}
.share-toggle input:checked + .share-switch { background: var(--accent); }
.share-toggle input:checked + .share-switch::after { transform: translateX(16px); }
.share-toggle input:focus-visible + .share-switch { box-shadow: 0 0 0 3px var(--focus); }

.share-card { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--separator); }
.share-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-card-head h3 { margin: 0; font-size: .9375rem; font-weight: 700; }
.share-format { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--fill); }
.share-format button {
  border: 0; background: none; color: var(--text-2); font: 600 .75rem/1 var(--font);
  padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.share-format button.is-on { background: var(--glass-solid); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.share-canvas {
  position: relative; justify-self: center; display: grid; place-items: center;
  border-radius: 14px; overflow: hidden; background: #0c0e14; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
}
.share-canvas canvas { display: block; height: min(38dvh, 300px); width: auto; max-width: 100%; transition: opacity .25s ease, filter .25s ease; }
.share-canvas.is-story canvas { height: min(46dvh, 380px); }
.share-canvas.is-post { background: none; }
.share-canvas.is-post canvas { width: auto; height: auto; max-width: 100%; max-height: min(44dvh, 360px); } /* boyu içeriğe göre değişir: oran korunur */
.share-canvas.is-loading canvas { opacity: .45; filter: blur(4px); }
.share-canvas-spin {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; animation: share-spin .8s linear infinite;
}
.share-canvas.is-loading .share-canvas-spin { opacity: 1; }
.share-canvas[data-error]::after { content: attr(data-error); position: absolute; color: #fff; font-size: .8125rem; }
@keyframes share-spin { to { transform: rotate(360deg); } }
.share-card-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-card-actions .btn[hidden] { display: none; }

@media (min-width: 640px) {
  .share-sheet { inset: 0; margin: auto; width: 440px; height: fit-content; }
  .share-panel { border-radius: 24px; border: 1px solid var(--glass-border); padding: 16px 20px 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation-name: share-in; }
  .share-sheet.is-closing .share-panel { animation-name: share-out; }
  .share-grip { display: none; }
  .share-apps { margin: 0; padding: 2px 0 4px; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
}
@keyframes share-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes share-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .share-panel, .share-app, .share-sheet::backdrop { animation: none !important; }
}

/* ===== Başlık altı eylemleri: tek durum düğmesi + puanla (dizi / film / bölüm) ===== */
.title-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
@media (min-width: 640px) { .title-actions { display: flex; flex-wrap: wrap; } .title-actions .ta-btn { min-width: 180px; } }
.ta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--text); background: var(--fill);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--spring), box-shadow .2s var(--ease);
}
@media (hover: hover) { .ta-btn:hover { background: var(--fill-hover); color: var(--text); } }
.ta-btn:active { transform: scale(.96); }
.ta-btn svg { flex: none; width: 18px; height: 18px; }
.ta-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-status .ta-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--text-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, transparent) 22%, transparent); }
.ta-status .ta-chev { width: 16px; height: 16px; margin-left: -2px; opacity: .55; }
.ta-status .ta-plus { display: none; }
/* Listede değilse: belirgin "Listeye ekle" */
.ta-status.is-empty, .ta-status:not(button) { color: var(--accent-contrast); background: var(--accent); }
@media (hover: hover) { .ta-status.is-empty:hover, .ta-status:not(button):hover { color: var(--accent-contrast); background: var(--accent-hover); } }
.ta-status.is-empty .ta-plus { display: block; }
.ta-status.is-empty .ta-dot, .ta-status.is-empty .ta-chev { display: none; }
.ta-rate svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ta-rate.is-rated svg { fill: #ffb400; stroke: #e69a00; }
.ta-btn.just-saved { animation: pop .5s var(--spring); }

/* Bölüm sayfası: [İzlendi] [Puanla] / altında izlenme sayısı + tekrar izleme */
.ep-actions { align-items: center; }
.ep-actions .watch-box.labeled { display: contents; }
.ep-actions .watch-form { grid-column: 1; grid-row: 1; margin: 0; display: grid; }
.ep-actions .ta-rate { grid-column: 2; grid-row: 1; }
.ep-actions .btn-watch { min-height: 48px; width: 100%; }
.ep-actions .watch-summary { grid-column: 1; grid-row: 2; font-size: .8125rem; padding-left: 6px; }
.ep-actions .rewatch-form { grid-column: 2; grid-row: 2; justify-content: flex-end; gap: 4px; }
.ep-actions .rewatch-form .btn { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.ep-actions .rewatch-form .btn:first-child { flex: none; }
.ep-actions .ep-soon { grid-column: 1; margin: 0; }
@media (min-width: 640px) {
  .ep-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); }
}
.detail-layout.is-single { grid-template-columns: minmax(0, 1fr); }

/* ===== Alttan açılan sayfa (durum menüsü, puanlama) — geniş ekranda ortada pencere ===== */
html.sheet-open { overflow: hidden; }
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0; background: none;
  width: 100%; max-width: 100%; max-height: 100dvh; overflow: visible; color: var(--text);
}
.sheet::backdrop { background: rgba(6, 8, 14, .48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: share-fade .25s ease both; }
.sheet.is-closing::backdrop { animation: share-fade .22s ease reverse both; }
.sheet-panel {
  position: relative; display: grid; gap: 14px;
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--glass-solid);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .22); border-top: 1px solid var(--glass-border);
  animation: share-up .38s var(--spring) both; transition: transform .25s var(--ease);
}
.sheet.is-closing .sheet-panel { animation: share-down .22s ease-in both; }
.sheet-grip { justify-self: center; width: 38px; height: 5px; border-radius: 99px; background: var(--fill-hover); margin-bottom: -4px; touch-action: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; touch-action: none; }
.sheet-titles { min-width: 0; }
.sheet-head h2 { margin: 0; font: 700 1.125rem/1.2 var(--font-head); }
.sheet-sub { margin: 2px 0 0; font-size: .8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-x { width: 36px; height: 36px; margin-right: 0; background: var(--fill); color: var(--text-2); }
.sheet-x svg { width: 16px; height: 16px; }
.sheet-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-spacer { flex: 1; }
.sheet-actions .btn[hidden] { display: none; }
.sheet-check { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); cursor: pointer; }
.sheet-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-danger-text { color: var(--danger); background: none; padding: 0 10px; }
@media (hover: hover) { .btn-danger-text:hover { background: var(--danger-soft); color: var(--danger); } }
@media (min-width: 640px) {
  .sheet { inset: 0; margin: auto; width: 460px; height: fit-content; }
  .sheet-panel { border-radius: 24px; border: 1px solid var(--glass-border); padding: 16px 20px 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); animation-name: share-in; }
  .sheet.is-closing .sheet-panel { animation-name: share-out; }
  .sheet-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet::backdrop { animation: none !important; } }

/* Durum menüsü */
.status-list { display: grid; gap: 4px; margin: 0 -6px; }
.status-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
@media (hover: hover) { .status-opt:hover { background: var(--fill); } }
.status-opt:active { transform: scale(.98); }
.status-opt-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--text-3)); }
.status-opt.status-Yok .status-opt-dot { background: none; box-shadow: inset 0 0 0 2px var(--text-3); }
.status-opt.status-Yok strong { color: var(--danger); }
.status-opt-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.status-opt-text strong { font-size: .9375rem; }
.status-opt-text span { font-size: .8125rem; color: var(--text-2); }
.status-opt-check { flex: none; width: 20px; height: 20px; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s var(--spring); }
.status-opt.is-current { background: var(--accent-soft); }
.status-opt.is-current .status-opt-check { opacity: 1; transform: none; }
.status-list.is-busy { opacity: .6; pointer-events: none; }
.sheet-watch { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--separator); margin: 0; }
.sheet-watch-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.sheet-watch-text strong { font-size: .875rem; }
.sheet-watch-text span { font-size: .8125rem; color: var(--text-2); }
.sheet-watch .btn { min-height: 38px; padding: 0 14px; }
.sheet-watch .btn svg { width: 16px; height: 16px; }
.sheet-watch[data-count="0"] .undo-rewatch { display: none; }
.sheet-watch.just-saved .btn-primary { animation: pop .5s var(--spring); }

/* Puanlama penceresi */
.rate-form { display: grid; gap: 14px; }
.stars-lg { justify-self: center; gap: 4px; }
.stars-lg label { width: 56px; height: 56px; }
.stars-lg svg { width: 44px; height: 44px; }
.rate-form .star-caption { text-align: center; margin: -8px 0 0; }
.rate-form.is-saving .star-caption { opacity: .6; }
.rate-form .star-caption.is-saved::after { content: " ✓"; color: var(--success); }
.rate-form .stars input:checked ~ label svg { animation: star-pop .35s var(--spring) both; }
@keyframes star-pop { 50% { transform: scale(1.2); } }

/* Puan kartındaki özet */
.my-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.my-rating-stars { color: #f5b301; font-size: 1.375rem; letter-spacing: 2px; }
.my-rating-stars .off { color: var(--separator); }
.my-rating-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.my-rating .btn { min-height: 38px; }

/* Puanlama penceresinde yorum */
.rate-comment { display: grid; gap: 6px; }
.rate-comment-label { font-size: .875rem; font-weight: 600; }
.rate-comment textarea {
  width: 100%; min-height: 64px; max-height: 220px; resize: none; padding: 10px 12px;
  border: 1px solid var(--separator); border-radius: 14px; background: var(--fill); color: var(--text); font: inherit; font-size: .9375rem; line-height: 1.45;
}
.rate-comment textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); background: var(--glass-solid); }
.rate-comment-foot { display: flex; align-items: center; gap: 8px; }
.rate-comment-foot .form-error { flex: 1; min-width: 0; font-size: .8125rem; }
.rate-comment-foot .form-error.is-ok { color: var(--success); }
.rate-comment-foot .btn { margin-left: auto; min-height: 36px; }
.rate-comment.is-busy { opacity: .6; pointer-events: none; }

/* Bölüm satırında: bu bölümü puanla / yorumla */
.ep-rate-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 5px 2px 5px 0; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.ep-rate-btn svg { width: 19px; height: 19px; }
@media (hover: hover) { .ep-rate-btn:hover { color: var(--accent); background: var(--accent-soft); } }
.ep-rate-btn:active { transform: scale(.9); }
.ep-rate-btn.is-busy { opacity: .5; pointer-events: none; }

/* ===== İkincil metin / ikon renkleri opak: yarı saydam renkte ikonun üst üste binen çizgileri ve dolgusu
   (ör. TV ikonundaki üçgen, kişi ikonundaki yaylar) koyu lekeler oluşturuyordu. Aynı tonu metin ve zemin karışımıyla
   opak elde ediyoruz; tüm temalarda --text ve --bg değiştiği için tek kural yeter. ===== */
:root:root:root:root {
  --text-2: color-mix(in srgb, var(--text) 66%, var(--bg));
  --text-3: color-mix(in srgb, var(--text) 45%, var(--bg));
}

/* Afiş menüsü açıkken kart öne çıksın: kartın kendi katmanı (container-type) yüzünden menü
   yapışkan kategori şeridinin (z-index 30) altında kalıyordu. Yukarıda yer yoksa menü aşağı açılır. */
/* Kart yalnız komşu afişlerin önüne geçsin; yapışkan kategori şeridinin (30) ve üst çubuğun altında kalsın */
.poster-item:has(> .poster-menu[open]) { position: relative; z-index: 20; }
.poster-menu.opens-down .poster-menu-list { top: 50px; bottom: auto; }
/* Yönü hesaplanana kadar görünmesin (önce yukarıda açılıp aşağı zıplamasın) */
.poster-menu[open]:not(.is-placed) .poster-menu-list { visibility: hidden; }

/* ===== Bölüm satırı (telefon): tek satır, izledim sağda =====
   Satırda özet yok (bölüm sayfasında). Sağ sütun: üstte izlendi, altında tekrar izleme + puan. */
.ep-rate-score { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-rate-score:empty { display: none; }
.ep-rate-btn.is-rated { width: auto; padding: 0 8px; border-radius: 99px; color: #c98a00; background: rgba(255, 180, 0, .14); }
.ep-rate-btn.is-rated svg { display: none; }
@media (max-width: 600px) {
  .episode { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px 4px 8px 8px; }
  .episode-link { gap: 10px; }
  .episode-thumb { width: 96px; }
  .episode-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .episode-action {
    display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
    align-items: center; justify-items: center; gap: 0 2px;
  }
  .episode-action .watch-box { display: contents; }
  .episode-action .watch-form { grid-column: 1 / -1; grid-row: 1; }
  .episode-action .rewatch-form { grid-column: 1; grid-row: 2; }
  .episode-action .ep-rate-btn { grid-column: 2; grid-row: 2; margin: 0; width: 30px; height: 30px; }
  .episode-action .ep-rate-btn.is-rated { width: auto; padding: 0 6px; }
  .episode-action .rewatch-btn { min-width: 30px; height: 30px; margin: 0; padding: 0 4px; }
  .episode-action .rewatch-btn svg, .episode-action .ep-rate-btn svg { width: 17px; height: 17px; }
  .episode-action .chip-soon { grid-column: 1 / -1; }
}

/* ===== Kendi mesaj kutumuz (tarayıcının alert / confirm kutuları yerine) ===== */
.app-dialog {
  margin: auto; padding: 0; border: 0; background: none; color: var(--text); overflow: visible;
  width: min(340px, calc(100vw - 32px)); max-width: none; max-height: none;
}
.app-dialog::backdrop { background: rgba(6, 8, 14, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: share-fade .2s ease both; }
.app-dialog.is-closing::backdrop { animation: share-fade .16s ease reverse both; }
.app-dialog-box {
  display: grid; justify-items: center; gap: 6px; padding: 22px 18px 16px; text-align: center;
  border-radius: 24px; background: var(--glass-solid); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  animation: app-dlg-in .32s var(--spring) both;
}
.app-dialog.is-closing .app-dialog-box { animation: app-dlg-out .16s ease-in both; }
@keyframes app-dlg-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes app-dlg-out { to { opacity: 0; transform: scale(.94); } }
.app-dialog-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%;
  color: var(--accent); background: var(--accent-soft);
}
.app-dialog-icon svg { width: 26px; height: 26px; }
.app-dialog.is-danger .app-dialog-icon { color: var(--danger); background: var(--danger-soft); }
.app-dialog-title { margin: 0; font: 700 1.0625rem/1.3 var(--font-head); }
.app-dialog-msg { margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.app-dialog-title[hidden] + .app-dialog-msg { color: var(--text); font-weight: 500; }
.app-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; }
.app-dialog-actions.is-single { grid-template-columns: 1fr; }
.app-dialog-actions .btn { width: 100%; min-height: 46px; padding: 0 12px; }
.btn-danger-solid { color: #fff; background: var(--danger); }
@media (hover: hover) { .btn-danger-solid:hover { color: #fff; background: var(--danger); filter: brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .app-dialog-box, .app-dialog::backdrop { animation: none !important; } }
.post.is-leaving { animation: leave .2s ease forwards; }

/* ===== Bölüm sayfası: üstte önceki / sonraki ===== */
.crumbs-ep { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crumbs-ep > a { min-width: 0; }
.crumbs-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-arrows { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: var(--fill); }
.ep-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--text); background: var(--glass-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.ep-arrow svg { width: 18px; height: 18px; }
.ep-arrow:active { transform: scale(.9); }
@media (hover: hover) { a.ep-arrow:hover { color: var(--accent); } }
.ep-arrow.is-off { opacity: .35; box-shadow: none; background: none; }
.ep-arrow-code { min-width: 58px; text-align: center; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ===== Dizi sayfası: başlığın altında hızlı geçiş ===== */
.jump-nav {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 10px calc(-1 * var(--gutter-l, 16px)) 4px; padding: 2px var(--gutter-l, 16px);
}
.jump-nav::-webkit-scrollbar { display: none; }
.jump-link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 99px; font-size: .875rem; font-weight: 600; color: var(--text-2); background: var(--fill);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.jump-link svg { width: 16px; height: 16px; }
.jump-link:active { transform: scale(.95); }
.jump-link.is-main { color: var(--accent-contrast); background: var(--accent); }
@media (hover: hover) { .jump-link:not(.is-main):hover { color: var(--text); background: var(--fill-hover); } }
.jump-count { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .25); font-variant-numeric: tabular-nums; }
#ozet, #yorumlar, #bolumler-bolumu { scroll-margin-top: 90px; }
/* Telefonda "Nerede izlenir" dizi sayfasında içerikten sonra gelsin (bölümler yukarı çıksın) */
@media (max-width: 959px) { .detail-aside-late { order: 1; } }


/* ===== Puanlama penceresi: karakterin seçilme oranı fotoğrafın etrafında halka ===== */
@property --cp { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.cast-ring {
  position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--cp), var(--fill-hover) 0);
  animation: cast-ring-fill .9s cubic-bezier(.2, .8, .2, 1) .15s both;
}
@keyframes cast-ring-fill { from { --cp: 0%; } }
.cast-ring .cast-photo { width: 64px; height: 64px; box-shadow: 0 0 0 2px var(--glass-solid); }
.cast-option > .cast-photo { margin: 7px; }           /* oy almayanlar halkalılarla aynı hizada */
.cast-option input:checked ~ .cast-ring { box-shadow: 0 0 0 2px var(--glass-solid), 0 0 0 4px var(--accent); }
.cast-option input:checked ~ .cast-ring .cast-photo { box-shadow: 0 0 0 2px var(--glass-solid); }
.cast-option input:focus-visible ~ .cast-ring { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .cast-option:hover .cast-ring { transform: translateY(-2px); } }
.cast-ring { transition: transform .2s var(--spring), box-shadow .2s var(--ease); }
.cast-share-n { font-size: .6875rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .cast-ring { animation: none; } }

/* ===== Puanlama / durum penceresi dar ekranda taşmasın ===== */
.sheet-panel { overflow-x: hidden; }
.stars-lg { max-width: 100%; }
.stars-lg label { width: min(56px, calc((100vw - 52px) / 5)); height: min(56px, calc((100vw - 52px) / 5)); }
.stars-lg svg { width: 78%; height: 78%; }
.sheet-actions .btn { flex: none; }
@media (max-width: 360px) {
  .sheet-panel { padding-left: 12px; padding-right: 12px; }
  .sheet-actions { gap: 6px; }
  .sheet-actions .btn { padding: 0 12px; }
  .cast-ring { width: 70px; height: 70px; } .cast-ring .cast-photo, .cast-option .cast-photo { width: 56px; height: 56px; }
}
/* Klavye açıkken pencere görünür alana sığsın (JS --sheet-bottom / --sheet-max'ı ayarlar) */
.sheet { bottom: var(--sheet-bottom, 0px); }
.sheet .sheet-panel { max-height: var(--sheet-max, calc(100dvh - 24px)); }
.cast-legend-note { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; color: var(--text-3); }

/* ===== Profil: favoriler — sade (tek sıra küçük afiş, Diziler | Filmler) ===== */
.favs { margin: 14px 0 4px; display: grid; gap: 8px; }
.favs.just-saved { animation: pop .5s var(--spring); }
.favs-head { display: flex; align-items: center; gap: 8px; }
.favs-title { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.favs-switch { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--fill); margin-left: auto; }
.favs-switch button { border: 0; background: none; color: var(--text-2); font: 600 .75rem/1 var(--font); padding: 6px 11px; border-radius: 99px; cursor: pointer; }
.favs-switch button.is-on { background: var(--glass-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.favs-edit-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--fill); color: var(--text-2); cursor: pointer; }
.favs-edit-btn svg { width: 15px; height: 15px; }
.favs-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.favs-row[hidden] { display: none; }
@media (min-width: 768px) { .favs-row { grid-template-columns: repeat(5, minmax(0, 84px)); gap: 10px; } }
.favs-item > a, .favs-item > button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.favs-poster {
  position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  background: var(--fill); box-shadow: 0 0 0 .5px var(--glass-edge); transition: transform .2s var(--spring);
}
.favs-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favs-noimg { padding: 4px; font-size: .625rem; text-align: center; color: var(--text-2); }
.favs-rank {
  position: absolute; left: 3px; bottom: 3px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center;
  border-radius: 99px; font-size: .625rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .62);
}
.favs-item:first-child .favs-rank, .favs-slot:first-child .favs-rank { background: #e0a800; color: #1a1300; }
/* İlk üç: altın, gümüş, bronz; 4 ve 5 renksiz */
.favs-item:nth-child(2) .favs-rank, .favs-slot:nth-child(2) .favs-rank { background: #b8c0cc; color: #15191f; }
.favs-item:nth-child(3) .favs-rank, .favs-slot:nth-child(3) .favs-rank { background: #c47a3c; color: #1f0f03; }
.favs-item > a:active .favs-poster, .favs-item > button:active .favs-poster { transform: scale(.95); }
@media (hover: hover) { .favs-item > a:hover .favs-poster { transform: translateY(-2px); } }
.favs-item.is-empty .favs-poster { color: var(--text-3); background: none; box-shadow: inset 0 0 0 1.5px var(--separator); }
.favs-item.is-empty .favs-poster svg { width: 18px; height: 18px; }
/* Boşken tek satır davet */
.favs-invite {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px;
  background: var(--fill); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.favs-invite:active { transform: scale(.99); }
.favs-invite-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 180, 0, .16); }
.favs-invite-icon svg { width: 18px; height: 18px; fill: #e0a800; }
.favs-invite-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.favs-invite-text strong { font-size: .9375rem; }
.favs-invite-text span { font-size: .8125rem; color: var(--text-2); }
.favs-invite-chev { flex: none; width: 18px; height: 18px; color: var(--text-3); }

/* Düzenleyici */
.favs-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px; background: var(--fill); }
.favs-tabs button { min-height: 36px; border: 0; border-radius: 99px; background: none; color: var(--text-2); font: 600 .875rem/1 var(--font); cursor: pointer; }
.favs-tabs button.is-on { background: var(--glass-solid); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.favs-tabs button span { font-size: .75rem; color: var(--text-3); margin-left: 4px; }
.favs-picked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.favs-slot { position: relative; }
.favs-slot-poster { display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--fill); }
.favs-slot.is-empty .favs-slot-poster { background: none; box-shadow: inset 0 0 0 1.5px var(--separator); }
.favs-slot-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favs-rank.is-ghost { position: static; background: none; color: var(--text-3); font-size: .8125rem; }
.favs-slot-x, .favs-slot-left {
  position: absolute; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: rgba(0, 0, 0, .65); cursor: pointer;
}
.favs-slot-x { top: -6px; right: -6px; background: var(--danger); box-shadow: 0 0 0 2px var(--glass-solid); }
.favs-slot-left { bottom: 3px; right: 3px; }
.favs-slot-x svg, .favs-slot-left svg { width: 13px; height: 13px; }
.favs-slot.just-added .favs-slot-poster { animation: pop .45s var(--spring); }
.favs-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; border-radius: 12px; background: var(--fill); color: var(--text-3); }
.favs-search svg { flex: none; width: 18px; height: 18px; }
.favs-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; outline: none; box-shadow: none; min-height: 0; padding: 0; }
.favs-hint { margin: -4px 0 -6px; font-size: .75rem; font-weight: 600; color: var(--text-3); }
.favs-hint:empty { display: none; }
.favs-results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; max-height: 40vh; overflow-y: auto; }
@media (max-width: 360px) { .favs-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.favs-tile { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.favs-tile-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--fill); }
.favs-tile-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favs-tile-add {
  position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--accent); font-weight: 800; font-size: .875rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.favs-tile:disabled { opacity: .45; cursor: default; }
.favs-tile:disabled .favs-tile-add { background: var(--success); }
.favs-tile:active:not(:disabled) .favs-tile-poster { transform: scale(.95); }
.favs-tile-name { font-size: .6875rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Durum menüsünde favori düğmesi */
.fav-toggle {
  display: flex; align-items: center; gap: 14px; width: calc(100% + 12px); margin: 0 -6px; padding: 10px 12px; border: 0; border-radius: 14px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-top: 1px solid var(--separator);
}
.fav-toggle-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
.fav-toggle-icon svg { width: 20px; height: 20px; fill: none; stroke: #e0a800; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s ease, transform .3s var(--spring); }
.fav-toggle.is-on .fav-toggle-icon svg { fill: #e0a800; transform: scale(1.1); }
.fav-toggle.is-busy { opacity: .6; pointer-events: none; }
@media (hover: hover) { .fav-toggle:hover { background: var(--fill); } }

/* ===== Aşağı çekince yenile: tarayıcınınki kapalı, yalnız seçili sayfalarda bizimki ===== */
html, body { overscroll-behavior-y: none; }

/* ===== Keşfet: sonsuz akış ===== */
.discover-feed .feed-posts:empty { display: none; }
.feed-loader { display: grid; gap: 12px; padding: 12px 0 calc(24px + var(--tabbar-h, 0px)); }
.feed-loader[hidden] { display: none; }
.feed-skeleton { display: flex; gap: 12px; padding: 12px 4px; }
.sk-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk-lines span { height: 12px; border-radius: 6px; background: var(--fill); }
.sk-lines span:nth-child(1) { width: 40%; } .sk-lines span:nth-child(2) { width: 90%; } .sk-lines span:nth-child(3) { width: 65%; }
.sk-avatar, .sk-lines span { animation: sk-pulse 1.2s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .sk-avatar, .sk-lines span { animation: none; } }
.feed-error { text-align: center; color: var(--text-2); font-size: .875rem; }
.feed-posts .post.is-new { animation: feed-in .4s var(--ease) both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Takip: hepsi görüldü */
.feed-end { display: grid; justify-items: center; gap: 6px; padding: 28px 16px calc(28px + var(--tabbar-h, 0px)); text-align: center; }
.feed-end[hidden] { display: none; }
.feed-end-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; color: var(--success); background: var(--success-soft); animation: pop .5s var(--spring); }
.feed-end-icon svg { width: 26px; height: 26px; }
.feed-end strong { font-size: 1rem; }
.feed-end .muted { font-size: .875rem; max-width: 320px; }
.feed-end .btn { margin-top: 8px; }

/* Keşfet: bitmeyen film ızgarası */
.endless-grid:empty { display: none; }
.endless-grid .poster-item.is-new { animation: feed-in .4s var(--ease) both; }
.poster-skeletons { padding-top: 12px; }
.sk-poster { display: grid; gap: 6px; }
.sk-poster span:first-child { aspect-ratio: 2 / 3; border-radius: var(--r-md, 14px); background: var(--fill); animation: sk-pulse 1.2s ease-in-out infinite; }
.sk-poster span:last-child { height: 12px; width: 70%; border-radius: 6px; background: var(--fill); animation: sk-pulse 1.2s ease-in-out infinite; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ===== Profil kapağı ===== */
.profile-header { position: relative; aspect-ratio: 3 / 1; border-radius: 16px; overflow: hidden; background: var(--fill); }
.profile-header img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%); pointer-events: none; }
.profile-header.is-empty { aspect-ratio: auto; height: 52px; background: none; box-shadow: inset 0 0 0 1.5px var(--separator); border-radius: 14px; }
.profile-header.is-empty::after { display: none; }
.profile-header-cap {
  position: absolute; z-index: 1; right: 10px; bottom: 8px; max-width: calc(100% - 130px); padding: 3px 9px; border-radius: 99px;
  font-size: .6875rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-header-edit {
  position: absolute; z-index: 1; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px;
  padding: 0 9px; border: 0; border-radius: 99px; color: #fff; background: rgba(0, 0, 0, .5); font: 600 .8125rem/1 var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.profile-header-edit svg { width: 17px; height: 17px; }
.profile-header.is-empty .profile-header-edit { position: static; width: 100%; height: 100%; justify-content: center; color: var(--text-2); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ===== Kapaklı profil düzeni =====
   Kapak kartın kenarlarına kadar uzanır. Üst satır: solda kapağa taşan fotoğraf, sağda düğmeler.
   Ad, kullanıcı adı ve rozet altta, tam genişlikte soldan başlar (solda boşluk kalmaz).
   Kaydırınca (--hp: 0→1, site.js) kapak yavaşça kayıp kararır, fotoğraf küçülerek kapağın içine biraz daha girer. */
.profile-card.has-header { --pad-x: 20px; --pad-t: 20px; --av: 88px; --hp: 0; overflow: hidden; }
.profile-card.has-header .profile-header {
  margin: calc(var(--pad-t) * -1) calc(var(--pad-x) * -1) 0; border-radius: inherit;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 3 / 1;
}
.profile-card.has-header .profile-header img {
  transform: translate3d(0, calc(var(--hp) * 22%), 0) scale(calc(1.02 + var(--hp) * .1));
  transform-origin: center bottom; will-change: transform;
}
.profile-card.has-header .profile-header::after {
  background: linear-gradient(to top, rgba(0, 0, 0, calc(.32 + var(--hp) * .38)), rgba(0, 0, 0, calc(var(--hp) * .3)) 70%);
}
.profile-card.has-header .profile-top {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar actions" "id id";
  align-items: end; column-gap: 12px; row-gap: 10px;
  margin-top: calc(var(--av) * -.5 - 16px); position: relative; z-index: 1;
}
.profile-card.has-header .profile-top > .avatar {
  grid-area: avatar; width: var(--av); height: var(--av); font-size: 2rem;
  box-shadow: 0 0 0 4px var(--glass-solid), 0 8px 24px rgba(0, 0, 0, .28);
  transform: translate3d(0, calc(var(--hp) * -14px), 0) scale(calc(1 - var(--hp) * .2));
  transform-origin: 50% 100%; will-change: transform;
}
.profile-card.has-header .profile-top > .profile-id { grid-area: id; margin: 0; }
.profile-card.has-header .profile-top > .profile-actions {
  grid-area: actions; grid-column: auto; justify-self: end; align-self: end; padding-bottom: 4px;
  display: flex; gap: 8px; min-width: 0; max-width: 100%;
}
.profile-card.has-header .profile-actions > * { flex: 0 1 auto; }
.profile-card.has-header .profile-actions .btn { width: auto; white-space: nowrap; }
.profile-card.has-header .profile-actions > .icon-only { flex: 0 0 36px; width: 36px; }
/* Düğmeler sığmazsa (site.js ölçer) Ayarlar yalnız simge olur */
.profile-actions.is-tight > .icon-text { flex: 0 0 auto; width: auto; aspect-ratio: 1; padding: 0; justify-content: center; }
.profile-actions.is-tight > .icon-text span { display: none; }
@media (min-width: 640px) {
  .profile-card.has-header { --pad-x: 28px; --pad-t: 24px; --av: 112px; }
  .profile-card.has-header .profile-top { column-gap: 20px; }
}

/* İlk girişte kısa bir canlanma: kapak hafifçe yaklaşır, fotoğraf yerine oturur, yazılar belirir */
@media (prefers-reduced-motion: no-preference) {
  .profile-card.has-header .profile-header { animation: ph-reveal .7s var(--ease) both; }
  .profile-card.has-header .profile-header img { animation: ph-zoom 1.1s var(--ease) both; }
  .profile-card.has-header .profile-top > .avatar { animation: ph-pop .55s var(--spring) .12s both; }
  .profile-card.has-header .profile-top > .profile-id,
  .profile-card.has-header .profile-top > .profile-actions { animation: ph-rise .5s var(--ease) .2s both; }
}
@keyframes ph-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes ph-zoom { from { scale: 1.12; } to { scale: 1; } }
@keyframes ph-pop { from { opacity: 0; translate: 0 18px; scale: .82; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ph-rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Kapak düzenleyici */
.header-step { display: grid; gap: 12px; }
.header-step[hidden] { display: none; }
.header-titles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 42vh; overflow-y: auto; }
.header-title-chev { flex: none; color: var(--text-3); font-size: 1.25rem; }
.header-scenes[hidden] { display: none; }
.header-back { justify-self: start; margin-bottom: 6px; }
.header-scene-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.header-scene { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--fill); cursor: pointer; }
.header-scene img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s var(--ease); }
.header-scene:active img { transform: scale(.96); }
.header-file { min-height: 120px; }
.crop-frame {
  position: relative; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; cursor: grab;
  box-shadow: 0 0 0 2px var(--accent);
}
.crop-frame.is-dragging { cursor: grabbing; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-select: none; pointer-events: none; transform-origin: 0 0; }
.crop-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px;
  font-size: .6875rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .5); pointer-events: none; transition: opacity .2s;
}
.crop-frame.is-dragging .crop-hint { opacity: 0; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.crop-zoom svg { flex: none; width: 18px; height: 18px; }
.crop-zoom input { flex: 1; accent-color: var(--accent); }
/* Pencere içindeki ızgara öğeleri içerikleriyle genişleyip pencereyi yana kaydırmasın */
.sheet-panel > *, .header-step > *, [data-header-pane] > * { min-width: 0; }
.header-step, [data-header-pane] { grid-template-columns: minmax(0, 1fr); }
[data-header-pane] { display: grid; gap: 12px; }
[data-header-pane][hidden] { display: none; }

/* ---------- Hukuki sayfalar & onay ---------- */
.footer-legal { display: block; margin-top: 6px; }
.legal { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal h1 { font-size: 1.6rem; line-height: 1.25; margin: 18px 0 4px; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal-meta { color: var(--text-3); font-size: .875rem; margin: 0 0 16px; }
.legal-contact { font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { padding: 6px 12px; border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); text-decoration: none; font-size: .875rem; }
.legal-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.legal-table { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: 8px; border-bottom: 1px solid var(--separator); vertical-align: top; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.cf-turnstile { margin: 4px 0 12px; min-height: 65px; }
.set-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.set-links { justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; }
.set-links a { color: var(--text-2); }
.email-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.email-banner form { margin: 0; }

/* ---------- Bildir / engelle ---------- */
.btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.btn.icon-only svg { width: 18px; height: 18px; }
.post-head .post-report { position: relative; margin-left: auto; align-self: center; width: 32px; height: 32px; margin-block: -2px; color: var(--text-3); opacity: .7; }
.post-head .post-report svg { width: 16px; height: 16px; }
.post-head .post-report::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; } /* görünmez, daha büyük dokunma alanı */
@media (hover: hover) { .post-head .post-report:hover { color: var(--danger); opacity: 1; } }
.action-list { display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.action-list form { margin: 0; }
.action-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-md); background: var(--fill); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.action-item svg { width: 20px; height: 20px; flex: none; }
.action-item.is-danger { color: var(--danger); }
.action-item.is-cancel { justify-content: center; margin-top: 6px; color: var(--text-2); }
@media (hover: hover) { .action-item:hover { background: var(--fill-hover); } }
.report-reasons { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.report-reason { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--r-md); background: var(--fill); cursor: pointer; font-size: .9375rem; }
.report-reason[hidden] { display: none; }
.report-reason input { width: 18px; height: 18px; accent-color: var(--danger); flex: none; }
.report-reason:has(input:checked) { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.report-note textarea { width: 100%; resize: vertical; min-height: 64px; }

/* ---------- Yönetici paneli ---------- */
.mod-page { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.mod-card { padding: 16px; display: grid; gap: 10px; }
.mod-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; }
.mod-kind, .mod-count, .mod-flag { padding: 3px 10px; border-radius: var(--r-pill); background: var(--fill); font-weight: 600; }
.mod-count { background: var(--danger-soft); color: var(--danger); }
.mod-flag { background: var(--danger); color: #fff; }
.mod-user { font-weight: 600; color: var(--accent); }
.mod-context { margin: 0; }
.mod-snapshot { margin: 0; padding: 10px 12px; border-left: 3px solid var(--separator); background: var(--fill); border-radius: var(--r-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.mod-reports { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .9rem; }
.mod-note { color: var(--text-2); font-style: italic; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-actions form { margin: 0; }
.profile-card .profile-actions > .icon-only { flex: 0 0 44px; width: 44px; }
/* Kapaklı düzende sahne etiketi sol üstte (sağ alt düğmelerle çakışmasın) */
.profile-card.has-header .profile-header-cap { right: auto; bottom: auto; left: 10px; top: 10px; max-width: calc(100% - 70px); }
/* Sade görünüm: kartların yan boşluğu yok; kapak içerik genişliğinde, köşeleri yuvarlak kalır */
html[data-look="sade"] .profile-card.has-header { --pad-x: 0px; --pad-t: 18px; overflow: visible; }
html[data-look="sade"] .profile-card.has-header .profile-header { border-radius: 16px; overflow: hidden; }
html[data-look="sade"] .profile-card.has-header .profile-top > .profile-actions { margin-right: 2px; }


/* ===== Alt bar: kayan sekme hapı + dokunma animasyonu ===== */
.tab { position: relative; z-index: 1; }
.tab.is-active { background: none; box-shadow: none; }
.tab-pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 20px) / 5);
  border-radius: var(--r-pill); background: var(--accent-soft); box-shadow: inset 0 1px 0 var(--glass-highlight);
  transform: translate3d(calc(var(--i, 0) * (100% + 2px)), 0, 0);
  transition: transform .45s cubic-bezier(.3, 1.35, .5, 1), opacity .2s ease; pointer-events: none;
}
.tabbar[data-active="-1"] .tab-pill { opacity: 0; }
.tabbar.pill-instant .tab-pill { transition: none; }
html[data-look="sade"] .tab-pill { background: var(--fill); box-shadow: none; }
.tab.is-tapped { color: var(--accent); }
html[data-look="sade"] .tab.is-tapped { color: var(--text); }
.tab.is-tapped > svg, .tab.is-tapped > .avatar { animation: tab-pop .45s cubic-bezier(.3, 1.5, .5, 1); }
.tab.is-active > svg, .tab.is-active > .avatar { animation: tab-settle .5s cubic-bezier(.3, 1.5, .5, 1) .05s; }
@keyframes tab-pop { 0% { transform: scale(1); } 35% { transform: scale(.78); } 70% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes tab-settle { 0% { transform: translateY(3px) scale(.9); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tab-pill { transition: none; }
  .tab.is-tapped > svg, .tab.is-tapped > .avatar, .tab.is-active > svg, .tab.is-active > .avatar { animation: none; }
}

/* ===== Sayfalar arası geçiş =====
   Tarayıcının kendi çapraz geçişi (View Transitions, varsayılan karışım): üst/alt bar iki sayfada aynı olduğundan
   kıpırdamaz ve blur'u bozulmaz (barlara view-transition-name VERİLMEZ; verilirse blur kaybolur).
   Sekmeler arası yön hissi yalnız içerik alanının (#main) kısa kaymasıyla verilir: html.enter-fwd / enter-back
   (_Layout'taki sekme hapı betiği ekler). Desteklemeyen tarayıcıda yalnız kayma görünür. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease-out; }
/* Kayan içerik sayfayı genişletmesin: telefonda genişleyen sayfa görünümü bir an ölçekliyor, alt bar inip çıkıyordu.
   Bu yüzden #main'in kendisi değil çocukları kayar; #main yatayda kırpar (clip kaydırma kabı oluşturmaz, sticky bozulmaz). */
html.enter-fwd #main, html.enter-back #main { overflow-x: clip; }
html.enter-fwd #main > * { animation: main-in-right .3s cubic-bezier(.2, .8, .2, 1) both; }
html.enter-back #main > * { animation: main-in-left .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes main-in-right { from { transform: translate3d(22px, 0, 0); } }
@keyframes main-in-left { from { transform: translate3d(-22px, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  html.enter-fwd #main > *, html.enter-back #main > * { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}


/* ===== Açılış performansı =====
   Ekranın altında kalan gönderiler ilk çizimde atlanır (tarayıcı yaklaştıkça çizer); uzun akışlar telefonda
   daha hızlı açılır, sayfa geçişi daha az bekler. İlk 4 gönderi her zaman hemen çizilir. */
.feed-posts > .post:nth-child(n+5) { content-visibility: auto; contain-intrinsic-size: auto 240px; overflow-clip-margin: 16px; } /* gölgeler kutu dışına taşabilsin */

/* ===== Bildirimler (yeniden tasarım): kısa bildirim + uygulama kartları ===== */
.snack {
  left: 50%; right: auto; width: min(420px, calc(100vw - 24px)); max-width: none;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; overflow: hidden;
  border-radius: 18px; color: var(--text);
  background: var(--glass-solid); border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 44px -12px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(18px + var(--dy, 0px))) scale(.96); opacity: 0;
  transition: opacity .28s var(--ease), transform .42s var(--spring);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
}
.snack.is-open { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)) scale(1); }
.snack.is-dragging { transition: none; }
.snack.is-leaving { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(14px + var(--dy, 0px))) scale(.96); transition: opacity .2s ease, transform .26s ease; }
.snack-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.snack-icon svg { width: 17px; height: 17px; }
.snack.is-success .snack-icon { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.snack.is-error .snack-icon { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.snack.is-info .snack-icon { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.snack-text { grid-column: 2; font-size: .9063rem; font-weight: 600; line-height: 1.35; white-space: normal; overflow: visible;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snack-action {
  grid-column: 3; min-height: 34px; padding: 0 14px; border-radius: 99px;
  color: var(--accent); background: var(--accent-soft); font-weight: 700; font-size: .8438rem;
}
@media (hover: hover) { .snack-action:hover { background: var(--accent-soft); filter: brightness(1.15); } }
.snack-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; opacity: .55; }
.snack.is-success .snack-bar { background: var(--success); }
.snack.is-error .snack-bar { background: var(--danger); }
.snack.is-info .snack-bar { background: var(--accent); }
.snack.is-open .snack-bar { animation: snack-time var(--snack-ms, 4000ms) linear forwards; }
.snack.is-paused .snack-bar, .snack.is-dragging .snack-bar { animation-play-state: paused; }
@keyframes snack-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .snack, .snack.is-open { transition: opacity .2s ease; } .snack.is-open .snack-bar { animation: none; } }

.pwa-toast {
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 14px 14px 16px;
  border-radius: 22px; border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -16px rgba(0, 0, 0, .5);
  transform: translateY(calc(24px + var(--dy, 0px))) scale(.97); touch-action: none;
}
.pwa-toast.is-open { transform: translateY(var(--dy, 0px)); }
.pwa-toast.is-dragging { transition: none; }
.pwa-toast-grip { display: none; }
.pwa-toast-media { position: relative; grid-row: span 2; align-self: start; }
.pwa-toast-icon { display: block; width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .12); }
.pwa-toast-badge {
  position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; font-size: .6875rem; font-weight: 800; color: #fff; background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--glass-solid);
}
.pwa-toast.is-success .pwa-toast-badge { background: var(--success); }
.pwa-toast.is-push .pwa-toast-badge { background: #ff9f0a; }
.pwa-toast-text { padding-right: 4px; }
.pwa-toast-text strong { font: 700 1rem/1.25 var(--font-head); }
.pwa-toast-text span { margin-top: 2px; }
.pwa-toast-points { grid-column: 2 / -1; list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pwa-toast-points li {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px;
  font-size: .75rem; font-weight: 600; color: var(--text-2); background: var(--fill);
}
.pwa-toast-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.pwa-toast-actions { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.pwa-toast-actions .btn { width: 100%; min-height: 42px; }
.pwa-toast-close { display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -2px 0 0; }
.pwa-toast-close svg { width: 15px; height: 15px; }

/* ===== "Yükle" ve "Bildirimleri aç" kartları: Liquid Glass (üst ve alt çubukla aynı dil) =====
   Yarı saydam yüzey + güçlü bulanıklık/doygunluk, üstte ışık yansıması, kenarda ışık kıran ince çerçeve.
   Altındaki içerik hafifçe seçilir ama yazı her zaman okunur (yüzey çubuklardan biraz daha yoğun). */
.pwa-toast {
  --pt-surface: rgba(255, 255, 255, .58);
  --pt-rim-a: rgba(255, 255, 255, .95);
  --pt-rim-b: rgba(255, 255, 255, .18);
  --pt-chip: rgba(255, 255, 255, .55);
  --pt-btn: rgba(255, 255, 255, .5);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .55), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 40%),
    var(--pt-surface) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.04);
  border: 0;
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, .06),
    0 0 0 .5px var(--glass-edge),
    0 30px 70px -20px rgba(0, 0, 0, .45),
    0 10px 24px -12px rgba(0, 0, 0, .25);
  isolation: isolate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pwa-toast {
    --pt-surface: rgba(30, 33, 44, .55);
    --pt-rim-a: rgba(255, 255, 255, .38);
    --pt-rim-b: rgba(255, 255, 255, .04);
    --pt-chip: rgba(255, 255, 255, .08);
    --pt-btn: rgba(255, 255, 255, .1);
  }
}
:root[data-theme="dark"] .pwa-toast {
  --pt-surface: rgba(30, 33, 44, .55);
  --pt-rim-a: rgba(255, 255, 255, .38);
  --pt-rim-b: rgba(255, 255, 255, .04);
  --pt-chip: rgba(255, 255, 255, .08);
  --pt-btn: rgba(255, 255, 255, .1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pwa-toast { background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .09), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%), var(--pt-surface) !important; }
}
:root[data-theme="dark"] .pwa-toast { background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .09), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%), var(--pt-surface) !important; }

/* Işık kıran kenar: köşelerde parlak, ortada sönük ince çerçeve */
.pwa-toast::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, var(--pt-rim-a), var(--pt-rim-b) 32%, var(--pt-rim-b) 68%, var(--pt-rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Üstte süzülen yumuşak ışık lekesi (cam içindeki yansıma) */
.pwa-toast::after {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 55% at 30% 0%, rgba(255, 255, 255, .16), transparent 70%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pwa-toast { --pt-surface: var(--glass-solid); }
}

.pwa-toast-icon { border-radius: 14px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .3); }
.pwa-toast-badge {
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 4px 10px -3px rgba(0, 0, 0, .45);
}
.pwa-toast-text strong { letter-spacing: -.01em; }
.pwa-toast-points li {
  background: var(--pt-chip); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 .5px var(--glass-edge);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pwa-toast-close {
  background: var(--pt-btn); color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 .5px var(--glass-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* İkincil düğme: cam hap; birincil: dolu (vurgu) */
.pwa-toast-actions .btn:not(.btn-primary) {
  background: var(--pt-btn); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 .5px var(--glass-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pwa-toast-actions .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -8px var(--accent); }

/* ===== Kısa bildirimler ve mesaj kutuları da Liquid Glass (yükle/bildirim kartlarıyla aynı yüzey) ===== */
.snack, .app-dialog-box {
  --pt-surface: rgba(255, 255, 255, .58);
  --pt-rim-a: rgba(255, 255, 255, .95);
  --pt-rim-b: rgba(255, 255, 255, .18);
  --pt-btn: rgba(255, 255, 255, .5);
  --pt-glow: rgba(255, 255, 255, .55);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--pt-glow), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 45%),
    var(--pt-surface);
  -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(200%) brightness(1.04);
  border: 0;
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, .06),
    0 0 0 .5px var(--glass-edge),
    0 24px 60px -18px rgba(0, 0, 0, .45),
    0 8px 20px -10px rgba(0, 0, 0, .22);
  isolation: isolate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.snack, .app-dialog-box) {
    --pt-surface: rgba(30, 33, 44, .55); --pt-rim-a: rgba(255, 255, 255, .38); --pt-rim-b: rgba(255, 255, 255, .04);
    --pt-btn: rgba(255, 255, 255, .1); --pt-glow: rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] :is(.snack, .app-dialog-box) {
  --pt-surface: rgba(30, 33, 44, .55); --pt-rim-a: rgba(255, 255, 255, .38); --pt-rim-b: rgba(255, 255, 255, .04);
  --pt-btn: rgba(255, 255, 255, .1); --pt-glow: rgba(255, 255, 255, .08);
}
.app-dialog-box { position: relative; border-radius: 28px; }
.snack { border-radius: 22px; }
/* Işık kıran kenar */
.snack::before, .app-dialog-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, var(--pt-rim-a), var(--pt-rim-b) 32%, var(--pt-rim-b) 68%, var(--pt-rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .snack, .app-dialog-box { --pt-surface: var(--glass-solid); }
}
/* Kısa bildirim: simge hafif parlak, eylem düğmesi cam hap */
.snack-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -4px rgba(0, 0, 0, .4) !important; }
.snack-action {
  background: var(--pt-btn); color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 .5px var(--glass-edge);
}
.snack-bar { opacity: .7; }
/* Mesaj kutusu: arka plan biraz daha koyu bulanık, simge camsı halka, düğmeler cam / dolu */
.app-dialog::backdrop { background: rgba(6, 8, 14, .42); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); }
.app-dialog-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 .5px var(--glass-edge); }
.app-dialog-actions .btn:not(.btn-primary):not(.btn-danger-solid) {
  background: var(--pt-btn); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 .5px var(--glass-edge);
}
.app-dialog-actions .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -8px var(--accent); }
.app-dialog-actions .btn-danger-solid { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px var(--danger); }

/* ===== Yönetim › Kullanıcılar ===== */
.adm-page { gap: 16px; }
.adm-nav { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-tab { flex: 1 0 auto; text-align: center; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: .875rem; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.adm-tab.is-active { background: var(--surface, var(--glass-solid)); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 .5px var(--glass-edge); }
@media (hover: hover) { .adm-tab:not(.is-active):hover { color: var(--text); } }
.adm-back { margin: 0; font-size: .875rem; }
.adm-back a { color: var(--accent); text-decoration: none; font-weight: 600; }
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); gap: 8px; }
.adm-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); color: inherit; text-decoration: none; min-width: 0; }
.adm-stat b { font: 700 1.35rem/1.15 var(--font-head); font-variant-numeric: tabular-nums; }
.adm-stat span { font-size: .78rem; color: var(--text-2); line-height: 1.3; }
.adm-stat.is-alert b { color: var(--danger); }
.adm-search { display: flex; gap: 8px; }
.adm-search .input { flex: 1; min-width: 0; }
.adm-chips { list-style: none; margin: 0 calc(var(--gutter-r) * -1) 0 calc(var(--gutter-l) * -1); padding: 2px var(--gutter-r) 4px var(--gutter-l); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.adm-chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .adm-chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }
.adm-chips li { flex: none; }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600; color: var(--text-2); background: var(--fill); text-decoration: none; white-space: nowrap; }
.adm-chip span { font-size: .75rem; opacity: .75; font-variant-numeric: tabular-nums; }
.adm-chip.is-on { background: var(--accent); color: var(--accent-contrast); }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.adm-sort .input { min-height: 36px; padding-block: 0; width: auto; }
.adm-list { list-style: none; margin: 0; padding: 4px; border-radius: var(--r-lg); }
.adm-list li + li { border-top: 1px solid var(--separator); }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: inherit; text-decoration: none; border-radius: var(--r-md); }
@media (hover: hover) { .adm-row:hover { background: var(--fill); } }
.adm-row .avatar { flex: none; }
.adm-row .chev { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.adm-who { flex: 1; min-width: 0; display: grid; gap: 1px; }
.adm-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; overflow-wrap: anywhere; }
.adm-meta { font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.adm-meta a { color: var(--accent); }
.adm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.adm-badge { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 700; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.adm-badge.is-admin { background: var(--accent-soft); color: var(--accent); }
.adm-badge.is-danger { background: var(--danger-soft); color: var(--danger); }
.adm-badge.is-warn { background: var(--warning-soft); color: var(--warning, #b86e00); }
.adm-badge.is-ok { background: var(--success-soft); color: var(--success); }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }
.adm-card { padding: 16px; border-radius: var(--r-lg); display: grid; gap: 12px; min-width: 0; }
.adm-card > * { min-width: 0; }
.adm-h { margin: 0; font: 700 1rem/1.3 var(--font-head); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.adm-h a { color: var(--accent); font-family: var(--font-body, inherit); font-weight: 600; }
.adm-profile { display: flex; align-items: center; gap: 14px; }
.adm-profile .avatar-lg { margin: 0; flex: none; }
.adm-profile-text { min-width: 0; }
.adm-title { margin: 0; font: 700 1.3rem/1.2 var(--font-head); overflow-wrap: anywhere; }
.adm-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .9rem; }
.adm-dl dt { color: var(--text-2); }
.adm-dl dd { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 420px) { .adm-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .adm-dl dd { margin-bottom: 8px; } }
.adm-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--separator); margin: 0; }
.adm-card .adm-h + .adm-act { border-top: 0; padding-top: 0; }
.adm-act p { margin: 2px 0 0; }
.adm-act form { margin: 0; }
.adm-suspend { grid-template-columns: minmax(0, 1fr); }
.adm-suspend-fields { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 520px) { .adm-suspend-fields { grid-template-columns: minmax(0, 1fr); } }
.adm-suspend-fields .input { min-height: 40px; }
.adm-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adm-comments li { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--separator); }
.adm-comments form { margin: 0; justify-self: start; }
.adm-comment-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .875rem; }
.adm-comment-head a { color: var(--accent); font-weight: 600; text-decoration: none; }
.adm-comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.adm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .875rem; }
.adm-log.adm-card { padding: 16px; }
.adm-log li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.adm-log a { color: var(--accent); }
.adm-danger { box-shadow: inset 0 0 0 1px var(--danger-soft); }
.adm-danger .adm-h { color: var(--danger); }
.adm-delete { display: grid; gap: 8px; margin: 0; }
.adm-delete .btn { justify-self: start; }
a.action-item { text-decoration: none; }

/* ===== Kendi profilinde avatara / kapağa dokununca düzenle ===== */
.profile-avatar-edit { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.profile-avatar-edit .avatar { display: grid; }
.profile-avatar-cam {
  position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--text); background: var(--glass-solid); box-shadow: 0 0 0 2.5px var(--glass-bg-strong), 0 4px 10px rgba(0, 0, 0, .25);
}
.profile-avatar-cam svg { width: 15px; height: 15px; }
.profile-avatar-edit:active .avatar { transform: scale(.97); }
.profile-avatar-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .profile-avatar-edit:hover .avatar { filter: brightness(.92); } }
.profile-header-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.profile-header-edit, .profile-header-cap { z-index: 2; }
.avatar-sheet-body { padding-top: 4px; }
.avatar-sheet-body.is-saved { box-shadow: none; }
/* Profili düzenle › kapak */
.header-settings { display: grid; gap: 12px; }
.header-preview {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--fill); cursor: pointer; color: var(--text-2); font: 600 .9rem/1 var(--font);
}
.header-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-preview.is-empty { display: flex; align-items: center; justify-content: center; gap: 8px; background: none; box-shadow: inset 0 0 0 1.5px var(--separator); }
.header-preview.is-empty svg { width: 20px; height: 20px; }
.header-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 900px) { .header-settings { grid-column: 1 / -1; } }

/* ===== Kapaklı profil: dokunulabilir avatar (kendi profilin) aynı yerde, solda dursun;
   düğmeler kapağın altında, ona değmeden ===== */
.profile-card.has-header .profile-top > .profile-avatar-edit {
  grid-area: avatar; align-self: end; border-radius: 50%;
  transform: translate3d(0, calc(var(--hp) * -14px), 0) scale(calc(1 - var(--hp) * .2));
  transform-origin: 50% 100%; will-change: transform;
}
.profile-card.has-header .profile-top > .profile-avatar-edit .avatar {
  width: var(--av); height: var(--av); font-size: 2rem;
  box-shadow: 0 0 0 4px var(--glass-solid), 0 8px 24px rgba(0, 0, 0, .28);
}
.profile-card.has-header .profile-top > .profile-avatar-edit .profile-avatar-cam { right: 2px; bottom: 4px; }
.profile-card.has-header .profile-top > .profile-actions {
  align-self: start; padding-bottom: 0;
  margin-top: calc(var(--av) * .5 + 16px + 12px); /* kapağın alt kenarından 12px aşağı */
}
@media (prefers-reduced-motion: no-preference) {
  .profile-card.has-header .profile-top > .profile-avatar-edit { animation: ph-pop .55s var(--spring) .12s both; }
}

/* ===== Emoji yerine satır içi simgeler ===== */
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }
.avatar-badge { display: inline-flex; align-items: center; gap: 6px; }
.avatar-badge .ico { width: 14px; height: 14px; opacity: .8; }
.avatar-badge > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-header-cap { display: inline-flex; align-items: center; gap: 5px; }
.profile-header-cap .ico { width: 12px; height: 12px; opacity: .9; }
.profile-header-cap > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-fav { display: inline-flex; align-items: center; gap: 4px; }
.post-fav .ico { width: 10px; height: 10px; color: #ff5a7a; }
.post-fav > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-note { display: inline-flex; align-items: center; gap: 5px; }
.icon-note .ico { width: 12px; height: 12px; }
.icon-note .ico[fill="currentColor"] { color: #ff5a7a; }
.pwa-toast-badge svg { width: 12px; height: 12px; }
.inline-ico { display: inline-flex; vertical-align: -.15em; margin: 0 1px; }
.inline-ico svg { width: 1.05em; height: 1.05em; }
/* Ad yanındaki kilit: satırın (büyük harf yüksekliğinin) ortasına hizalı */
.profile-id .profile-name { display: flex; align-items: center; gap: .32em; min-width: 0; }
.profile-id .profile-name .lock-badge { margin: 0; flex: none; vertical-align: 0; color: var(--text-2); }
.profile-id .profile-name .lock-badge svg { width: .62em; height: .62em; display: block; }
.profile-id .profile-name .lock-badge { transform: translateY(-.05em); }

/* ===== Aşağı çekince yenile: içerik parmağı birebir izler, rozet açılan boşluğun ortasında durur ===== */
.ptr {
  position: fixed; z-index: 45; left: 50%; top: calc(env(safe-area-inset-top) + 74px);
  height: 34px;
  pointer-events: none; color: var(--text);
  /* Görünürlük ve yer parmağı anında izler (--pr); göstergenin kendi ilerlemesi yumuşatılmış --p ile */
  opacity: clamp(0, calc(var(--pr, 0) * 2.2 - .25), 1);
  /* Boşluğun ortası: içerik --pull kadar indi, rozet yarısı kadar (en az 6px aşağıda başlar) */
  transform: translateX(-50%) translateY(calc(max(6px, var(--pull, 0px) / 2) - 17px)) scale(calc(.7 + var(--pr, 0) * .3));
}
html.bars-hidden .ptr { top: calc(env(safe-area-inset-top) + 18px); }
/* Rozet: beş yıldızlık puan şeridi */
.ptr-badge {
  height: 34px; display: flex; align-items: center; gap: 3px; padding: 0 11px; border-radius: 99px;
  background: var(--glass-solid);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45), 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-highlight);
}
.ptr-star {
  /* Her yıldızın dolma oranı: çekiş beşe bölünür (0. yıldız ilk %20'de, 4. yıldız son %20'de dolar) */
  --f: clamp(0, calc(var(--p, 0) * 5 - var(--i)), 1);
  position: relative; width: 16px; height: 16px; display: block;
  transform: scale(calc(.72 + var(--f) * .28)) rotate(calc((1 - var(--f)) * -72deg));
}
.ptr-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ptr-star svg:first-child { fill: var(--fill-hover, rgba(127, 127, 127, .25)); }
.ptr-star svg:last-child { fill: var(--accent); opacity: var(--f); }
.ptr.is-ready .ptr-badge { animation: ptr-pop .34s var(--spring); }
.ptr.is-ready .ptr-star { animation: ptr-twinkle .5s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
.ptr.is-release { transition: transform .42s var(--spring), opacity .3s ease; }
.ptr.is-loading .ptr-star { animation: ptr-wave .9s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
@keyframes ptr-pop { 40% { scale: 1.08; } 100% { scale: 1; } }
@keyframes ptr-twinkle { 40% { scale: 1.3; } 100% { scale: 1; } }
@keyframes ptr-wave { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -5px; } }

/* ---- Diğer göstergeler (rastgele seçilir; bkz. site.js PTR_VARIANTS). Renkler: metin, soluk metin ve vurgu ---- */
.ptr-art { display: block; overflow: visible; }
.ptr-art * { transform-box: fill-box; }
/* Klaket */
.pk-body, .pk-arm rect { fill: var(--text); }
.pk-lines, .pk-arm path { fill: none; stroke: var(--glass-solid); stroke-width: 1.6; }
.pk-arm { transform-origin: 0 100%; rotate: calc(var(--p, 0) * -34deg); }
.ptr.is-ready .pk-arm rect { fill: var(--accent); }
.ptr.is-loading .pk-arm { animation: ptr-clap .7s var(--ease) infinite; }
@keyframes ptr-clap { 0% { rotate: -34deg; } 35%, 70% { rotate: 0deg; } 100% { rotate: -34deg; } }
/* Film şeridi */
.ps-bg { fill: var(--text); opacity: .12; }
.ps-frames rect { fill: var(--text-3); opacity: .55; }
.ps-frames { translate: calc(var(--p, 0) * -14px) 0; }
.ptr.is-ready .ps-hero, .ptr.is-loading .ps-hero { fill: var(--accent); opacity: 1; }
.ps-holes { fill: none; stroke: var(--text); stroke-width: 1.3; stroke-dasharray: 3 3; opacity: .45; }
.ptr.is-loading .ps-frames { animation: ptr-film .5s linear infinite; }
@keyframes ptr-film { from { translate: 0 0; } to { translate: -14px 0; } }
/* Televizyon: karıncalanma çektikçe azalır, eşikte ekranda Rv belirir */
.pt-body { fill: var(--text); }
.pt-stand { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.pt-noise rect { fill: var(--glass-solid); opacity: calc(.25 + var(--p, 0) * .65); animation: ptr-static .24s steps(2) infinite; animation-delay: calc(var(--i) * -37ms); }
.pt-rv { font: 800 10px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.06em; fill: var(--glass-solid); opacity: 0; transform-origin: center; }
.pt-rv tspan { fill: var(--accent); }
.pt-scan { fill: var(--accent); opacity: 0; }
.ptr.is-ready .pt-noise { opacity: 0; transition: opacity .15s ease; }
.ptr.is-ready .pt-rv { opacity: 1; animation: ptr-tv-on .32s var(--spring) both; }
.ptr.is-loading .pt-scan { opacity: .7; animation: ptr-scan .6s linear infinite; }
@keyframes ptr-static { 50% { translate: 1.5px -1px; opacity: .3; } }
@keyframes ptr-tv-on { 0% { scale: 1 .1; opacity: 0; } 60% { scale: 1.1 1; opacity: 1; } 100% { scale: 1; } }
@keyframes ptr-scan { from { translate: 0 0; } to { translate: 0 15px; } }
/* Mısır kovası: çektikçe mısırlar tek tek dolar */
.pv-fill { fill: var(--glass-solid); }
.pv-stripes { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.pv-edge { fill: none; stroke: var(--text); stroke-width: 1.2; stroke-linejoin: round; }
.pv-corn > g > g {
  --f: clamp(0, calc(var(--p, 0) * 6 - var(--i)), 1);
  opacity: var(--f); transform-origin: center; scale: calc(.25 + var(--f) * .75);
}
.pv-puff { fill: var(--glass-solid); stroke: var(--text); stroke-width: .8; stroke-linejoin: round; }
.pv-hull { fill: none; stroke: var(--text-3); stroke-width: .8; stroke-linecap: round; }
.ptr.is-ready .pv-corn > g > g { animation: ptr-twinkle .4s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
.ptr.is-loading .pv-corn > g > g { animation: ptr-corn-hop .6s ease-in-out infinite; animation-delay: calc(var(--i) * 80ms); }
@keyframes ptr-corn-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -2.5px; } }
/* Bölüm sayacı: S1 · B1 → B5, yenilenirken bölümler akar */
.pc { display: inline-flex; align-items: baseline; gap: 4px; font: 700 .875rem/1 var(--font); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pc-s { color: var(--text-3); }
.pc-dot { color: var(--text-3); opacity: .6; }
.pc-e b { display: inline-block; min-width: 1.1em; font-weight: 800; }
.pc-e b.is-flip { animation: ptr-flip .22s var(--spring); }
.ptr.is-ready .pc-e { color: var(--accent); }
@keyframes ptr-flip { from { translate: 0 6px; opacity: 0; } }

/* Çekerken içerik: tüm bölümler birlikte iner. "translate" kullanılır, "transform" değil: sekme geçişi ve
   yenileme sonrası giriş animasyonları transform'u (fill: both) tuttuğundan, transform'la kaydırılan bölümler
   bazen hiç kıpırdamıyordu. translate onlarla çakışmaz, üst üste eklenir. */
#main.is-pulling > *, #main.is-ptr-release > *, #main.is-ptr-loading > * { translate: 0 var(--pull, 0px); }
#main.is-pulling > * { will-change: translate; }
#main.is-ptr-release > * { transition: translate .48s var(--spring); }
#main.is-ptr-loading > * { transition: translate .4s var(--spring), opacity .3s ease; opacity: .6; }

/* Yenilemeden sonra: bölümler sırayla süzülerek gelir */
#main .ptr-enter { animation: ptr-enter .6s var(--ease) both; animation-delay: calc(var(--ptr-i, 0) * 70ms); }
@keyframes ptr-enter { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); } to { opacity: 1; transform: none; } }

/* "Güncellendi" işareti */
.ptr-done {
  position: fixed; z-index: 46; left: 50%; top: calc(env(safe-area-inset-top) + 78px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 10px; border-radius: 99px;
  font: 600 .8125rem/1 var(--font); color: var(--text);
  background: var(--glass-solid); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45), 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-highlight);
  animation: ptr-done-in .45s var(--spring) both; pointer-events: none;
}
.ptr-done svg { width: 15px; height: 15px; color: var(--success); }
.ptr-done.is-out { transition: opacity .35s ease, transform .35s ease; opacity: 0; transform: translateX(-50%) translateY(-10px); }
html.bars-hidden .ptr-done { top: calc(env(safe-area-inset-top) + 14px); }
@keyframes ptr-done-in { from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.92); } }

@media (prefers-reduced-motion: reduce) {
  #main .ptr-enter { animation: none !important; }
  .ptr-star { transform: none; }
  .ptr.is-ready .ptr-star, .ptr.is-loading .ptr-star { animation: none; }
  .ptr .ptr-art, .ptr .ptr-art * { animation: none !important; }
}

/* ===== Liquid Glass (ucuz katman): üst ve alt çubuk =====
   Yeni bulanıklık katmanı yok (performans aynı). Gerçekçilik şunlardan gelir:
   • kenar ışığı: köşelerde parlayan, ortada sönen ince çerçeve (ışık yönü --lg-a),
   • kalınlık: iç kenarda yumuşak parıltı + altta hafif iç gölge, dışta temas gölgesi ve kalkık gölge,
   • kayan parlama: camın üstünde yavaşça kayan ışık lekesi (--lg-x; kaydırınca / telefonu eğince JS günceller),
   • esneme: sekmeye basınca çubuk hafifçe içe göçer, bırakınca yaylanır. */
.topbar, .tabbar {
  --lg-x: 30%; --lg-a: 125deg;
  --lg-rim-a: rgba(255, 255, 255, .95); --lg-rim-b: rgba(255, 255, 255, .12);
  --lg-glow: rgba(255, 255, 255, .55); --lg-sheen: rgba(255, 255, 255, .42); --lg-under: rgba(20, 28, 45, .07);
  isolation: isolate;
  border-color: transparent;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate)) brightness(1.05);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate)) brightness(1.05);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 1px 0 var(--lg-under),
    inset 0 0 16px -4px var(--lg-glow),
    0 0 0 .5px var(--glass-edge),
    0 1px 2px rgba(0, 0, 0, .08),
    0 16px 36px -16px rgba(0, 0, 0, .38);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.topbar, .tabbar) {
    --lg-rim-a: rgba(255, 255, 255, .34); --lg-rim-b: rgba(255, 255, 255, .03);
    --lg-glow: rgba(255, 255, 255, .07); --lg-sheen: rgba(255, 255, 255, .11); --lg-under: rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] :is(.topbar, .tabbar) {
  --lg-rim-a: rgba(255, 255, 255, .34); --lg-rim-b: rgba(255, 255, 255, .03);
  --lg-glow: rgba(255, 255, 255, .07); --lg-sheen: rgba(255, 255, 255, .11); --lg-under: rgba(0, 0, 0, .35);
}
/* Kenar ışığı */
.topbar::before, .tabbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(var(--lg-a), var(--lg-rim-a), var(--lg-rim-b) 30%, var(--lg-rim-b) 70%, var(--lg-rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Kayan parlama (üstte) + karşı köşede sönük yansıma (altta) */
.topbar::after, .tabbar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(55% 130% at var(--lg-x) -25%, var(--lg-sheen), transparent 62%),
    radial-gradient(40% 90% at calc(100% - var(--lg-x)) 125%, var(--lg-sheen), transparent 70%);
  opacity: .9;
}
/* Esneme: sekmeye basınca çubuk hafifçe göçer (transform'dan bağımsız "scale" — gizleme kaymasıyla çakışmaz) */
.tabbar { transition: transform .32s cubic-bezier(.2, .8, .2, 1), scale .45s var(--spring); }
.tabbar:has(.tab:active) { scale: .985; transition-duration: .32s, .12s; }
/* Seçili sekme göstergesi: düz dolgu yerine içi ışıklı küçük bir cam damla */
.tab-pill, html[data-look="sade"] .tab-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 60%), var(--fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .06), 0 3px 10px -4px rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab-pill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 3px 10px -4px rgba(0, 0, 0, .5); }
}
:root[data-theme="dark"] .tab-pill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 3px 10px -4px rgba(0, 0, 0, .5); }
/* Düğmelere basınca esnek tepki (cam düğmeler) */
.icon-btn:active, .btn:active { scale: .96; transition: scale .1s ease; }
@media (prefers-reduced-motion: reduce) { .tabbar:has(.tab:active), .icon-btn:active, .btn:active { scale: none; } }
@media (prefers-reduced-transparency: reduce) { .topbar::after, .tabbar::after { display: none; } }

/* ===== Liquid Glass: diğer cam yüzeyler (çubuklarla aynı dil) + biraz daha az bulanıklık ===== */
:root {
  --blur: 17px;
  --lg-x: 28%; --lg-a: 125deg;
  --lg-rim-a: rgba(255, 255, 255, .95); --lg-rim-b: rgba(255, 255, 255, .12);
  --lg-glow: rgba(255, 255, 255, .55); --lg-sheen: rgba(255, 255, 255, .42); --lg-under: rgba(20, 28, 45, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lg-rim-a: rgba(255, 255, 255, .34); --lg-rim-b: rgba(255, 255, 255, .03);
    --lg-glow: rgba(255, 255, 255, .07); --lg-sheen: rgba(255, 255, 255, .11); --lg-under: rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --lg-rim-a: rgba(255, 255, 255, .34); --lg-rim-b: rgba(255, 255, 255, .03);
  --lg-glow: rgba(255, 255, 255, .07); --lg-sheen: rgba(255, 255, 255, .11); --lg-under: rgba(0, 0, 0, .35);
}

/* A) Kaymayan yüzeyler: kenar ışığı (::before) + parlama (::after) + derinlik */
:is(.search-hero, .set-identity) { position: relative; }
:is(.pwa-toast, .snack, .app-dialog-box, .poster-menu-list, .search-hero, .set-identity) {
  isolation: isolate; border-color: transparent;
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 1px 0 var(--lg-under),
    inset 0 0 16px -4px var(--lg-glow),
    0 0 0 .5px var(--glass-edge),
    0 1px 2px rgba(0, 0, 0, .08),
    0 18px 44px -18px rgba(0, 0, 0, .42);
}
:is(.pwa-toast, .snack, .app-dialog-box, .poster-menu-list, .search-hero, .set-identity)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(var(--lg-a), var(--lg-rim-a), var(--lg-rim-b) 30%, var(--lg-rim-b) 70%, var(--lg-rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
:is(.pwa-toast, .snack, .app-dialog-box, .poster-menu-list, .search-hero, .set-identity)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  left: 0; right: 0; top: 0; height: auto; opacity: .9;
  background:
    radial-gradient(55% 120% at var(--lg-x) -25%, var(--lg-sheen), transparent 62%),
    radial-gradient(40% 80% at calc(100% - var(--lg-x)) 125%, var(--lg-sheen), transparent 70%);
}

/* B) Kayan (içi kaydırılan) yüzeyler: süs katmanı içerikle kaymasın diye arka plan + gölgeyle */
.suggest {
  background: radial-gradient(60% 40% at 25% 0%, var(--lg-sheen), transparent 70%), var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 16px -4px var(--lg-glow), 0 0 0 .5px var(--glass-edge), 0 20px 48px -18px rgba(0, 0, 0, .45);
}
.sheet-panel, .share-panel {
  background: radial-gradient(70% 30% at 25% 0%, var(--lg-sheen), transparent 70%), var(--glass-solid);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 18px -6px var(--lg-glow), 0 -12px 40px rgba(0, 0, 0, .22);
}

/* C) Küçük yuvarlak cam düğmeler (afiş + / ⋯, raf okları, kapak düğmesi): üstten ışık, alttan gölge */
.poster-action, .profile-header-edit {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(12, 14, 20, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .22), 0 0 0 .5px rgba(255, 255, 255, .2), 0 4px 12px rgba(0, 0, 0, .28);
}
.rail-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%), var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 -1px 0 var(--lg-under), 0 0 0 .5px var(--glass-edge), 0 6px 16px -6px rgba(0, 0, 0, .3);
}

/* Bulanıklık: biraz daha az (cam daha berrak; yazı okunurluğu yüzey tonundan gelir) */
:is(.snack, .app-dialog-box, .pwa-toast) {
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.05);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.05);
}
.poster-action { -webkit-backdrop-filter: blur(8px) saturate(160%); backdrop-filter: blur(8px) saturate(160%); }
.lib-tab, .rail-btn { -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); }
@media (prefers-reduced-transparency: reduce) {
  :is(.pwa-toast, .snack, .app-dialog-box, .poster-menu-list, .search-hero, .set-identity)::after { display: none; }
}

/* ===== Akıcılık: çubuk gizleme ve sekme geçişi =====
   • Çubuklar kalıcı ayrı katmanda (will-change): her gizlenişte katmana alınıp çıkarılmaları bulanıklığı yeniden
     hesaplatıyordu. Üst çubukta arama açıkken kaldırılır (öneriler listesi ekrana sabitlenebilsin).
   • Konum JS'ten doğrudan transform ile gelir (değişkenli calc değil); CSS'teki eski --bars kuralları devre dışı.
   • Listem sekmeleri: sticky "top" her karede değişip yerleşim hesaplatıyordu; artık sabit, kayma transform ile. */
.tabbar { will-change: transform; }
.topbar-wrap { will-change: transform; }
.topbar-wrap:focus-within { will-change: auto; }
html.bars-shift .topbar-wrap, html.bars-shift .tabbar { transform: none; }
.lib-tabs { top: calc(env(safe-area-inset-top) + 84px); will-change: transform; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
html.bars-dragging .lib-tabs { transition: none; }
/* Parlama yeni yerine yumuşakça geçsin (yalnız kaydırma bitince değişir) */
.topbar::after, .tabbar::after { transition: opacity .3s ease; }
/* Sekmeye basınca bütün çubuğu ölçeklemek bulanık katmanı yeniden çizdiriyordu: kaldırıldı (sekmenin kendi tepkisi yeter) */
.tabbar:has(.tab:active) { scale: none; }
/* Sekme hapı ekran kartında kaysın */
.tab-pill { will-change: transform; }
/* Telefonda sayfa geçişinde tüm sayfanın görüntüsünü alıp karıştırmak (çapraz geçiş) pahalı: kapalı.
   Yön hissini içerik kayması verir; tarayıcı yeni sayfa çizilene kadar eskisini tutar (beyaz çakma olmaz). */
@media (pointer: coarse) { @view-transition { navigation: none; } }

/* ===== Bölüm sayfası: önceki / sonraki bölüm kartları =====
   Sade görünüm sayfa ortasındaki cam kutuları düzleştirdiği için düğmeler havada yazıya dönüşmüştü;
   artık kendi dolgulu kartları var. Ok yuvarlak bir rozette, bölüm adı iki satıra kadar sığar. */
.ep-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.ep-nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 12px; min-width: 0;
  border: 0; border-radius: 18px; color: var(--text); text-decoration: none;
  background: var(--fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 .5px var(--separator);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .2s var(--ease), scale .15s ease;
}
.ep-nav-link.next { grid-column: 2; justify-content: flex-end; text-align: right; }
@media (hover: hover) { .ep-nav-link:hover { background: var(--fill-hover, var(--fill)); } }
.ep-nav-link:active { scale: .97; }
.ep-nav-arrow {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--text); background: var(--glass-bg-strong); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge), 0 2px 6px -2px rgba(0, 0, 0, .3);
}
.ep-nav-arrow svg { width: 16px; height: 16px; }
.ep-nav-text { min-width: 0; display: grid; gap: 3px; }
.ep-nav-dir { font-size: .72rem; font-weight: 600; color: var(--text-3); text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-nav-title {
  font-weight: 700; font-size: .9rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Sade görünümün cam düzleştirmesi bu kartlara dokunmasın */
html[data-look="sade"] #main .ep-nav-link { background: var(--fill); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 .5px var(--separator); }

/* ===== Bölüm sayfası: hızlı geçiş kapsülü (görselin sağ üst köşesi) =====
   Önceden geri bağlantısıyla aynı satırdaydı: dizi adı kesiliyor, ok daireleri kapsülden taşıyordu.
   Artık görselin üstünde, başlıktan uzakta küçük bir cam kapsül: ‹  S01E02  › */
.crumbs-ep { display: block; }
.crumbs-ep > a { max-width: 100%; }
.hero-episode .ep-arrows {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px;
  color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 60%), rgba(12, 14, 20, .5);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 .5px rgba(255, 255, 255, .18), 0 6px 18px -6px rgba(0, 0, 0, .45);
}
.hero-episode .ep-arrow {
  width: 32px; height: 32px; border-radius: 50%; color: #fff; background: none; box-shadow: none;
  display: grid; place-items: center; transition: background-color .2s var(--ease), scale .12s ease;
}
.hero-episode .ep-arrow svg { width: 16px; height: 16px; }
.hero-episode a.ep-arrow:active { transform: none; scale: .88; background: rgba(255, 255, 255, .16); }
@media (hover: hover) { .hero-episode a.ep-arrow:hover { color: #fff; background: rgba(255, 255, 255, .14); } }
.hero-episode .ep-arrow.is-off { opacity: .3; }
.hero-episode .ep-arrow-code {
  min-width: 0; padding: 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .92);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .hero-episode .ep-arrows { top: 16px; right: 16px; }
  .hero-episode .ep-arrow { width: 36px; height: 36px; }
}

/* Bölüm geçiş düğmeleri: art arda hızlı dokununca içerik seçilip (mavi seçim) ya da odak halkası takılı kalıyordu.
   Seçim ve uzun basma menüsü kapalı; çift dokunma yakınlaştırma/seçim yerine iki ayrı dokunma sayılır.
   Odak halkası yalnızca klavyeyle gezerken ve düğmeye oturan beyaz bir halka olarak görünür. */
.hero-episode .ep-arrows, .hero-episode .ep-arrow, .ep-nav-link {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hero-episode .ep-arrow:focus:not(:focus-visible), .ep-nav-link:focus:not(:focus-visible) { outline: none; }
.hero-episode .ep-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 50%; }
.ep-nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 18px; }

/* ===== Görsel yüklenmeden önce: mavi yerine nötr koyu zemin; görsel gelince yumuşakça belirir =====
   Üstündeki cam kapsüller (bölüm geçişi, tarih / süre / puan çipleri) arkalarındaki rengi alıyor; zemin maviyken
   bazı telefonlar görsel yüklendikten sonra camı yeniden hesaplamıyor ve mavi takılı kalıyordu. */
.hero { background: linear-gradient(135deg, #262931, #16181d); }
.js .hero-bg { opacity: 0; transition: opacity .35s ease; }
.js .hero-bg.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .hero-bg { transition: none; } }

/* ===== Değerlendir: tek pencere (puan + yorum), düzenleme ve onay uyarısı ===== */
.star-caption { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.star-clear { font-size: .8125rem; color: var(--text-3); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); cursor: pointer; }
.rate-warn {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 14px;
  font-size: .8125rem; line-height: 1.4; color: var(--text); background: var(--warning-soft);
}
.rate-warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--warning, #b86e00); }
.my-review-text {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--fill); font-size: .9rem; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.review-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.review-cta p { margin: 0; flex: 1 1 200px; }
.post-edited { color: var(--text-3); font-size: .75rem; white-space: nowrap; }
.post-head .post-edit { margin-left: auto; }
.post-head .post-edit + .post-delete { margin-left: 0; }
.post-edit svg { width: 16px; height: 16px; }
.post-head .post-edit { width: 28px; height: 28px; align-self: center; }

/* ===== Değerlendir: tek giriş noktası, izlemeden kilitli ===== */
.ta-rate .ta-lock { display: none; }
.ta-rate.is-locked { opacity: .6; }
.ta-rate.is-locked .ta-lock { display: block; }
.ta-rate.is-locked .ta-star { display: none; }
.ep-rate-btn[data-review-lock]:not([data-review-lock=""]) { display: none; }
.my-score-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: .9rem; }
.review-hint { margin: 0 0 12px; }

/* ===== Tema değişince kısa bildirim: yeni temanın renkleriyle, temaya özgü simge ===== */
.snack.is-theme .snack-icon svg { width: 17px; height: 17px; }
.snack.is-theme-light .snack-icon { color: #7a4b00; background: linear-gradient(145deg, #ffe08a, #ffb627); box-shadow: 0 0 0 4px rgba(255, 182, 39, .22) !important; }
.snack.is-theme-dark .snack-icon { color: #e9ecff; background: linear-gradient(145deg, #5b63d6, #2a2f6b); box-shadow: 0 0 0 4px rgba(91, 99, 214, .25) !important; }
.snack.is-theme-auto .snack-icon { color: var(--text); background: var(--fill); box-shadow: 0 0 0 4px var(--fill) !important; }
.snack.is-theme .snack-icon svg { animation: theme-icon-in .45s var(--spring) both; }
@keyframes theme-icon-in { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .snack.is-theme .snack-icon svg { animation: none; } }

/* Tema bildirimi: küçük hap (içeriğe göre genişlik, ortada, süre çubuğu yok) */
.snack.is-theme {
  width: auto; max-width: calc(100vw - 32px); grid-template-columns: auto auto; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
}
.snack.is-theme .snack-icon { width: 24px; height: 24px; }
.snack.is-theme .snack-icon svg { width: 14px; height: 14px; }
.snack.is-theme .snack-text { font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.snack.is-theme .snack-bar { display: none; }
.snack.is-theme-light .snack-icon, .snack.is-theme-dark .snack-icon, .snack.is-theme-auto .snack-icon { box-shadow: none !important; }

/* ===== iPhone (WebKit) bulanıklık taşması önlemi =====
   Bulanık camın kapsayıcısı kalıcı katmana (will-change / transform) alınınca iOS bulanıklığı kapsayıcının tüm
   alanına yayıyor, çubukların çevresinde ekran genişliğinde gri bir şerit görünüyordu.
   • Kayma artık camın kendisinde (.topbar); kapsayıcı (.topbar-wrap) hiç katmana alınmaz.
   • iOS'ta kalıcı will-change yok (yalnız kayarken geçici katman). Diğer tarayıcılarda akıcılık için kalıyor. */
.topbar-wrap, .topbar-wrap:focus-within { will-change: auto; transform: none !important; }
.topbar { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
html.bars-dragging .topbar { transition: none; }
.topbar { will-change: transform; }
.topbar-wrap:focus-within .topbar { will-change: auto; } /* öneriler listesi ekrana sabitlenebilsin */
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } }
@supports (-webkit-touch-callout: none) {
  .topbar, .tabbar, .tab-pill, .lib-tabs { will-change: auto; }
}


/* ===== Ana ekrana eklenmiş uygulama (iPhone): üst çubuk iOS'un saat çubuğu bulanıklığından uzak dursun =====
   iOS, ana ekran uygulamalarında saat / pil yazıları okunsun diye ekranın en üstüne kendi yumuşak bulanıklığını
   (kenar efekti) uygular; sayfa saat çubuğunun altına uzandığı için (black-translucent) üst çubuğumuzun üst kısmı
   bu şeride giriyor ve bulanık görünüyordu. Tarayıcıda bu efekt yok; yalnızca uygulama modunda çubuğu biraz
   aşağı alıyoruz. Çubuğa bağlı konumlar (Listem sekmeleri, aşağı çekince yenile rozeti) da aynı kadar kayar. */
:root { --standalone-gap: 0px; }
@media (display-mode: standalone) {
  :root { --standalone-gap: 14px; }
  .topbar-wrap { padding-top: calc(env(safe-area-inset-top) + 10px + var(--standalone-gap)); }
  .lib-tabs { top: calc(env(safe-area-inset-top) + 84px + var(--standalone-gap)); }
  .ptr { top: calc(env(safe-area-inset-top) + 74px + var(--standalone-gap)); }
}

/* Alt çubuk etiketleri: "Ana Sayfa" kenarlara yapışmasın */
.tabbar { gap: 0; }
.tab > span:not(.nav-dot):not(.tab-pill) { letter-spacing: -.015em; font-size: .6rem; }

/* ===== Ne izlesem: kazanan patlaması ve sonuç açılışı ===== */
.slot { position: relative; }
.slot-fx { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.slot-ring {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--accent); transform: translate(-50%, -50%) scale(.3); opacity: .9;
  animation: slot-ring .7s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes slot-ring { to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; border-width: .5px; } }
.slot-spark {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.slot-spark.is-gold { background: #f5b301; box-shadow: 0 0 8px #f5b301; width: 5px; height: 5px; }
.slot-pick.is-reveal { animation: none; position: relative; z-index: 2; }
.slot-pick.is-reveal::before {
  content: ""; position: absolute; inset: -18px -10px; z-index: -1; border-radius: 24px; pointer-events: none;
  background: radial-gradient(60% 70% at 20% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  animation: slot-glow 1.6s ease-out forwards;
}
@keyframes slot-glow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .35; } }
.slot-pick.is-reveal .slot-pick-poster::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0; animation: slot-shine 1s .55s ease-out both;
}
@media (prefers-reduced-motion: reduce) { .slot-fx { display: none; } .slot-pick.is-reveal::before { animation: none; opacity: .35; } }

/* Ayarlar: son grup (çıkış) biraz ayrık */
.set-group-end { margin-top: 10px; }

/* ===== Ayarlar: grup listesi + paneller (JS yoksa her şey alt alta) ===== */
.set-menu { display: none; }
.settings.is-panels .set-menu { display: flex; flex-direction: column; gap: 22px; }
.settings.is-panels .set-group[data-set-panel]:not(.is-open) { display: none; }
.settings.is-panel-open > :not(.is-open):not(.notice) { display: none; }
.set-panel-head { display: none; }
.settings.is-panels .set-panel-head { display: flex; flex-direction: column; align-items: flex-start; margin: -6px 0 12px; }
.settings.is-panels .set-group.is-open > .set-title { display: none; }
.set-back {
  display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 6px 10px 6px 2px; min-height: 40px;
  background: none; border: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; border-radius: 999px;
}
.set-back svg { width: 22px; height: 22px; }
.set-back:active { opacity: .6; }
.set-panel-title { margin: 2px 0 0 2px; font-size: 1.75rem; line-height: 1.15; }
.set-menu .set-value { max-width: 48%; }
.set-menu .set-row.is-return { background: var(--fill); transition: background .6s ease; }
.set-menu .set-label { flex: 1 0 auto; white-space: nowrap; }
.set-menu .set-value { flex: 0 1 auto; text-align: right; }

/* iPhone dokunsal geri bildirim: düğmenin üstünde görünmez gerçek switch */
.slot-spin-wrap { position: relative; display: inline-flex; }
.slot-haptic-switch { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; -webkit-tap-highlight-color: transparent; }
.slot-spin:disabled + .slot-haptic-switch { pointer-events: none; }

/* Detay: yerel ⇄ orijinal ad geçişi */
.title-swap {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 5px 11px 5px 9px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
  transition: background .2s, transform .15s;
}
.title-swap svg { width: 15px; height: 15px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.title-swap[aria-pressed="true"] svg { transform: rotate(180deg); }
.title-swap:hover { background: rgba(255, 255, 255, .2); }
.title-swap:active { transform: scale(.96); }
.hero-title, .hero-poster { transition: opacity .16s ease, filter .16s ease; }
.hero-title.is-swapping, .hero-poster.is-swapping { opacity: 0; filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .title-swap svg, .hero-title, .hero-poster { transition: none; } }

/* Platformlarım (Ayarlar) */
.plat-empty { margin: 0; padding: 14px 16px; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.plat-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 10px; border-radius: var(--r-md); background: var(--glass, var(--fill));
  box-shadow: 0 0 0 .5px var(--glass-edge); cursor: pointer; text-align: center;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.plat-tile:active { transform: scale(.96); }
.plat-tile input { position: absolute; opacity: 0; pointer-events: none; }
.plat-tile img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 .5px var(--glass-edge); transition: filter .2s, opacity .2s; }
.plat-name { font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plat-check {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.plat-check svg { width: 12px; height: 12px; }
.plat-tile:has(input:checked) { box-shadow: 0 0 0 2px var(--accent); }
.plat-tile:has(input:checked) .plat-check { transform: scale(1); }
.plat-tile:has(input:checked) .plat-name { color: var(--text); }
.plat-tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plat-save { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 32px; }
.plat-form.is-auto [data-platforms-save] { display: none; }

/* Nerede izlenir: üyeliğin olan platformlar */
.provider-owned {
  display: flex; align-items: center; gap: 8px; margin: -4px 0 0; padding: 9px 12px;
  border-radius: var(--r-md); background: color-mix(in srgb, #30d158 16%, transparent);
  color: var(--text); font-size: .85rem; font-weight: 600;
}
.provider-owned-icon { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #30d158; color: #fff; }
.provider-owned-icon svg { width: 13px; height: 13px; }
.is-owned .provider { box-shadow: inset 0 0 0 1.5px #30d158; }
.provider-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 8px 3px 6px; border-radius: 999px;
  background: #30d158; color: #fff; font-size: .7rem; font-weight: 700;
}
.provider-badge svg { width: 11px; height: 11px; }
.provider-hint { font-size: .8rem; font-weight: 600; }

/* Alt sayfalarda geri düğmesi (üst çubuğun solu) */
.topbar.has-back { padding-left: 6px; gap: 8px; }
.topbar-back { flex: none; width: 44px; height: 44px; margin-right: -2px; color: var(--text); }
/* Geri düğmesinin dokunma alanı görünenden büyük ve logoya doğru taşar: parmak yanlışlıkla logoya (ana sayfa)
   değil geriye denk gelsin. Logo üstte kalmasın diye geri düğmesi bir kat yukarıda. */
.topbar-back { position: relative; z-index: 2; }
.topbar-back::before { content: ""; position: absolute; top: -6px; bottom: -6px; left: -8px; right: -22px; border-radius: 16px; }
.topbar.has-back .brand { position: relative; z-index: 1; }
.topbar-back svg { width: 22px; height: 22px; transform: translateX(-1px); }
@media (max-width: 767px) {
  /* Dar ekranda geri düğmesine yer: marka adı gizlenir, logo kalır */
  .topbar.has-back .brand-name { display: none; }
}

/* ===== Gönderi: tek sayfa, çevir, onaylayanlar ===== */
.post[data-post-href] { cursor: pointer; }
a.post-time { text-decoration: none; }
@media (hover: hover) { a.post-time:hover { text-decoration: underline; color: var(--text-2); } }
.post-head .post-report:disabled { opacity: .3; cursor: not-allowed; }
.post-translate {
  display: inline-block; margin: 4px 0 0; padding: 2px 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); font: inherit; font-size: .8125rem; font-weight: 600;
}
.post-translate[hidden] { display: none; }
.post-translate:disabled { opacity: .6; cursor: progress; }
@media (hover: hover) { .post-translate:not(:disabled):hover { text-decoration: underline; } }
.post.is-translated [data-post-text] { font-style: normal; }
.post-endorsers {
  display: flex; align-items: center; gap: 7px; min-width: 0; margin: 8px 0 4px; padding: 2px 0;
  color: var(--text-3); font-size: .75rem; text-decoration: none;
}
@media (hover: hover) { .post-endorsers:hover { color: var(--text-2); } .post-endorsers:hover .endorser-line { text-decoration: underline; } }
.endorser-stack { display: inline-flex; flex: none; }
.endorser-stack .avatar { width: 18px; height: 18px; font-size: .5rem; margin: 0; box-shadow: 0 0 0 2px var(--glass-solid, var(--bg)); }
.endorser-stack .avatar + .avatar { margin-left: -5px; }
.endorser-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tek gönderi sayfası */
.post-single { margin-bottom: 18px; }
.post-single .post { padding: 16px 16px 10px; }
.post-single .post-body { font-size: 1.0625rem; line-height: 1.5; }
.endorsers .section-head { margin-bottom: 8px; }
.endorser-kinds { display: inline-flex; gap: 4px; flex: none; position: relative; z-index: 1; }
.seal-mini { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--c, var(--accent)); background: var(--soft, var(--accent-soft)); }
.seal-mini svg { width: 16px; height: 16px; }
.endorsers-note { margin: 8px 4px 0; }

/* ===== Tek gönderi sayfası: kart. Açılınca öne çıkar; parmakla her yöne sürüklenir, fırlatılınca kapanır ===== */
.post-page {
  position: relative; padding: 6px 6px 14px; border-radius: var(--r-lg);
  background: var(--glass-bg); border: 1px solid var(--separator);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transform-origin: 50% 30%;
  animation: post-card-in .34s cubic-bezier(.2, .9, .25, 1.12) backwards; /* "both" olsaydı bitiş karesi sürüklemeyi ezerdi */
}
.post-page .feed-posts { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.post-page .endorsers { padding: 0 6px; }
.post-page .endorsers .list { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.post-page.is-dragging { will-change: transform, opacity; transition: none; user-select: none; -webkit-user-select: none; }
.post-page.is-settling { transition: transform .42s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease; }
.post-page.is-flying { transition: transform .3s cubic-bezier(.4, 0, .9, .6), opacity .28s ease; pointer-events: none; }
@keyframes post-card-in { from { opacity: 0; transform: scale(.92) translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .post-page { animation: none; } }
/* Tek gönderi başlığı: solda alt alta ad, @kullanıcı adı ve tarih; sağda Takip et (ad ne kadar uzun olursa olsun yeri sabit) */
.post.is-single .post-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 6px; row-gap: 1px; align-items: center;
}
.post.is-single .post-name { grid-column: 1; grid-row: 1; }
.post.is-single .post-handle { display: block; grid-column: 1; grid-row: 2; font-size: .875rem; }
.post.is-single .post-dot { display: none; }
.post.is-single .post-follow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.post.is-single .post-head .post-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; } /* kendi gönderinde: düzenle + sil */
.post.is-single .post-head .post-report, .post.is-single .post-head .post-delete {
  grid-column: 3; grid-row: 1 / span 2; margin-left: 0; align-self: center;
}
.post-follow .follow-form { margin: 0; }
/* Tek gönderi: avatar başlık satırında, içerik kartın tam genişliğinde (onay düğmeleri adlarıyla sığsın) */
.post.is-single { display: block; position: relative; }
.post-page .feed-posts .post.is-single { padding: 14px 12px 8px; }
.post.is-single .post-avatar { position: absolute; top: 14px; left: 12px; }
.post.is-single .post-avatar .avatar { width: 40px; height: 40px; }
.post.is-single .post-head { padding-left: 52px; min-height: 42px; }
.post.is-single .post-body { margin-top: 10px; }
.post.is-single .seal-bar { flex-wrap: nowrap; }
.post.is-single .post-actions { margin-top: 8px; }
/* Tek gönderi: tarih/saat içeriğin altında */
.post-stamp { margin: 10px 0 2px; color: var(--text-3); font-size: .8125rem; }
/* Tek gönderi: onay düğmelerinde adlar da yazar */
.post.is-single .seal { gap: 5px; padding: 0 8px; }
.post.is-single .seal-label { font-size: .8125rem; font-weight: 600; }
.post.is-single .seal { flex: 0 0 auto; white-space: nowrap; }
.post.is-single .seal-count { font-weight: 700; }
@media (max-width: 359px) { .post.is-single .seal-label { display: none; } } /* çok dar ekranda yalnızca simge + sayı */
/* Onaylayanlar: gönderinin altında ikinci planda (küçük başlık, sıkı ve soluk satırlar) */
.post-page .endorsers { margin-top: 6px; padding: 12px 10px 0; border-top: 1px solid var(--separator); }
.post-page .endorsers .section-head { margin: 0 0 4px; }
.post-page .endorsers .section-title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.post-page .endorsers .section-head .muted { font-size: .75rem; }
.post-page .endorsers .list-row { min-height: 44px; padding: 6px 4px; gap: 10px; }
.post-page .endorsers .list-row + .list-row::before { left: 4px; right: 4px; opacity: .6; }
.post-page .endorsers .avatar { width: 28px; height: 28px; font-size: .6875rem; }
.post-page .endorsers .list-title { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.post-page .endorsers .list-meta { font-size: .75rem; color: var(--text-3); }
.post-page .endorsers .seal-mini { width: 22px; height: 22px; background: transparent; opacity: .75; }
.post-page .endorsers .seal-mini svg { width: 14px; height: 14px; }
.post-page .endorsers .endorser-kinds { gap: 0; }
.post-page .endorsers .empty { padding: 12px; font-size: .875rem; background: none; border: 0; box-shadow: none; color: var(--text-3); }
.post-page .endorsers-note { margin: 6px 4px 0; font-size: .75rem; }
.post-follow .btn { min-height: 30px; padding: 0 14px; }
/* Daha önce açılmış spoiler: animasyonsuz, doğrudan açık gelir */
.spoiler.no-anim .post-body, .spoiler.no-anim .spoiler-cover { animation: none !important; transition: none !important; }

/* ===== Hızlı başlangıç (/start): yeni hesaplar izlediklerini dokunarak işaretler ===== */
.start { padding-bottom: 96px; }
.start-head { margin-bottom: 16px; }
.start-steps { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: st; }
.start-steps li { counter-increment: st; }
.start-steps a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; color: var(--text-3); background: var(--fill);
}
.start-steps a::before {
  content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fill-hover); color: var(--text-2); font-size: .75rem;
}
.start-steps .is-current a { color: var(--text); background: var(--accent-soft); }
.start-steps .is-current a::before { background: var(--accent); color: var(--accent-contrast); }
.start-steps .is-done a::before { content: "✓"; background: var(--st-done, #34c759); color: #fff; }
.start-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.start-tools .seg-tabs { margin: 0; flex: none; }
.start-search { position: relative; flex: 1 1 220px; max-width: 420px; display: flex; align-items: center; }
.start-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.start-search .input { padding-left: 40px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 560px) { .start-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 14px; } }
.start-tile {
  display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text);
  text-align: left; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.start-tile .poster-img { transition: transform .3s var(--spring), box-shadow .3s var(--ease), filter .3s var(--ease); }
.start-tile:active .poster-img { transform: scale(.95); }
.start-tile.is-on .poster-img { box-shadow: 0 0 0 3px var(--accent), var(--shadow-sm); }
.start-tile.is-on .poster-img img { filter: brightness(.62) saturate(.9); }
.start-tile.is-busy { pointer-events: none; }
.start-check {
  position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transform: translate(-50%, -50%) scale(.4); opacity: 0;
  transition: transform .35s var(--spring), opacity .2s var(--ease);
}
.start-check svg { width: 24px; height: 24px; }
.start-tile.is-on .start-check { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.start-tile.is-busy .start-check { animation: start-pulse .8s ease-in-out infinite; }
@keyframes start-pulse { 50% { opacity: .55; } }
.start-progress {
  position: absolute; z-index: 2; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .62); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.start-progress[hidden] { display: none; }
.start-name { margin-top: 6px; font-size: .8125rem; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.start-year { font-size: .75rem; color: var(--text-3); }
.start-empty { margin-top: 8px; }
.start .feed-loader { padding-bottom: 12px; overflow-anchor: none; } /* yükleme kalıbı kaydırma çapası olmasın: yoksa sayfa dibe yapışıp durmadan yükler */
.start-bar {
  position: fixed; z-index: 45; left: var(--gutter-l, 12px); right: var(--gutter-r, 12px); margin-inline: auto; max-width: 480px;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 10px);
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill);
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .35);
  transition: bottom .3s var(--ease);
}
html.bars-hidden .start-bar { bottom: max(12px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .start-bar { bottom: 24px; } }
.start-count { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font-size: .875rem; color: var(--text-2); }
.start-count strong { font: 700 1.25rem/1 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.start-bar .btn { min-height: 40px; }
.start-skip[hidden] { display: none; }
.start-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.start-picker .field > span { font-size: .8125rem; font-weight: 600; color: var(--text-2); padding-left: 4px; }
.start-picker .set-select { max-width: none; width: 100%; min-height: 42px; }
.start-sheet-hint { margin: -6px 0 0; }

/* ===== Misafir: hesap açma daveti ===== */
.join-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  margin: 4px 0 28px; padding: 22px 20px; border-radius: var(--r-lg);
}
.join-brand {
  margin: 0 0 10px; font: 800 clamp(1.9rem, 8vw, 2.6rem)/1 'Bricolage Grotesque', var(--font-head); letter-spacing: -.035em; color: var(--text);
}
.join-brand span { color: var(--accent); }
.join-title { margin: 0; font: 800 clamp(1.2rem, 4.3vw, 1.7rem)/1.2 var(--font-head); letter-spacing: -.01em; }
.join-sub { margin: 8px 0 0; color: var(--text-2); max-width: 52ch; }
.join-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.join-hero .signup-perks { margin-top: 16px; }
.join-posters { display: none; }
@media (min-width: 760px) {
  .join-hero { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; padding: 30px 32px; }
  .join-posters { display: block; position: relative; height: 260px; }
  .join-posters img {
    position: absolute; width: 140px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-md);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  }
  .join-posters img:nth-child(1) { left: 0; top: 30px; transform: rotate(-8deg); }
  .join-posters img:nth-child(2) { left: 70px; top: 0; z-index: 2; }
  .join-posters img:nth-child(3) { left: 140px; top: 30px; transform: rotate(8deg); }
}
.join-hero.is-compact { grid-template-columns: minmax(0, 1fr); }
.signup-perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.signup-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--text-2); line-height: 1.4; }
.signup-perks strong { display: block; color: var(--text); font-size: .9375rem; }
.perk-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.perk-ico svg { width: 18px; height: 18px; }
.signup-lead { margin: -4px 0 0; color: var(--text-2); }
.signup-actions { display: grid; gap: 8px; margin-top: 4px; }
.signup-actions .btn { min-height: 46px; justify-content: center; }
.quickstart { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); }
.quickstart p { margin: 4px 0 0; color: var(--text-2); font-size: .9375rem; }
.signup-banner {
  position: fixed; z-index: 44; left: var(--gutter-l, 12px); right: var(--gutter-r, 12px); margin-inline: auto; max-width: 480px;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--tabbar-h) + 10px);
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; border-radius: 20px;
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px); transition: opacity .25s var(--ease), transform .35s var(--spring), bottom .3s var(--ease);
}
.signup-banner.is-in { opacity: 1; transform: none; }
.signup-banner[hidden] { display: none; }
html.bars-hidden .signup-banner { bottom: max(12px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .signup-banner { bottom: 24px; left: auto; right: 24px; margin: 0; width: 420px; } }
.signup-banner-text { flex: 1; min-width: 0; display: grid; font-size: .8125rem; color: var(--text-2); line-height: 1.3; }
.signup-banner-text strong { color: var(--text); font-size: .9375rem; }
.signup-banner-x { flex: none; width: 32px; height: 32px; background: none; color: var(--text-3); }
.signup-banner-x svg { width: 16px; height: 16px; }
html.sheet-open .signup-banner { display: none; }

/* ===== Gelişmiş Liquid Glass (Ayarlar → Görünüm, html[data-liquid]) =====
   iOS'taki cama yakın his için:
   • neredeyse saydam gövde, çok az bulanıklık: arkadaki içerik net görünür,
   • kırılma yalnızca ince kenar eğiminde (bevel) olur, ortası düz cam (Chromium: site.js mercek haritası),
   • renkli çerçeve yok; tek yönden (sol üst) gelen beyaz parlama: üst-sol kenar parlak, alt-sağ kenarda zayıf yansıma,
   • dokununca cam "canlanır": sekme damlası büyüyüp parlar, sekmeler arası kayarken sıvı gibi esner.
   Hareket/şeffaflık azaltma tercihine uyar. */
html[data-liquid] {
  --blur: 5px;
  --saturate: 170%;
  /* Hafif ton + arka planın parlaklık aralığını sıkıştırma (iOS'un okunurluk çözümü):
     açık temada arkadaki koyu içerik açılır, koyu temada parlak içerik kısılır; yazılar her zeminde seçilir */
  --lq-adapt: contrast(.72) brightness(1.16);
  --lq-vibe: rgba(255, 255, 255, .7);
  --glass-bg: rgba(250, 250, 252, .4);
  --glass-bg-strong: rgba(250, 250, 252, .6);
  --glass-sheen: linear-gradient(transparent, transparent);
  --lq-spec: rgba(255, 255, 255, .9);
  --lq-spec-2: rgba(255, 255, 255, .35);
  --lq-edge: rgba(255, 255, 255, .5);
  --lq-shade: rgba(0, 0, 0, .06);
}
@media (prefers-color-scheme: dark) {
  html[data-liquid]:not([data-theme="light"]) {
    --glass-bg: rgba(22, 22, 26, .42); --glass-bg-strong: rgba(22, 22, 26, .62);
    --lq-adapt: contrast(.72) brightness(.78); --lq-vibe: rgba(0, 0, 0, .55);
    --lq-spec: rgba(255, 255, 255, .5); --lq-spec-2: rgba(255, 255, 255, .16); --lq-edge: rgba(255, 255, 255, .2); --lq-shade: rgba(0, 0, 0, .25);
  }
}
html[data-liquid][data-theme="dark"] {
  --glass-bg: rgba(22, 22, 26, .42); --glass-bg-strong: rgba(22, 22, 26, .62);
  --lq-adapt: contrast(.72) brightness(.78); --lq-vibe: rgba(0, 0, 0, .55);
  --lq-spec: rgba(255, 255, 255, .5); --lq-spec-2: rgba(255, 255, 255, .16); --lq-edge: rgba(255, 255, 255, .2); --lq-shade: rgba(0, 0, 0, .25);
}
html[data-liquid] :is(.glass, .topbar, .tabbar, .snack, .start-bar, .signup-banner) {
  border-color: transparent;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate)) var(--lq-adapt);
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate)) var(--lq-adapt);
  box-shadow:
    inset 1.5px 1.5px 0 -.5px var(--lq-spec),      /* sol üst kenar: ışığın vurduğu yer */
    inset -1px -1px 0 -.25px var(--lq-spec-2),     /* sağ alt kenar: içeriden yansıyan zayıf ışık */
    inset 0 0 0 .5px var(--lq-edge),               /* camın ince sınırı */
    inset 0 -10px 18px -14px var(--lq-shade),      /* kalınlık: alt kenarda hafif koyuluk */
    0 6px 22px -8px rgba(0, 0, 0, .22),
    0 1px 3px rgba(0, 0, 0, .06);
}
/* Cam üstündeki yazı ve simgeler: arkasındaki zeminden ayrışsın diye yumuşak hale (iOS "vibrancy") */
html[data-liquid] :is(.topbar, .tabbar, .snack, .start-bar, .signup-banner) { text-shadow: 0 0 10px var(--lq-vibe), 0 0 2px var(--lq-vibe); }
html[data-liquid] :is(.topbar, .tabbar) svg { filter: drop-shadow(0 0 4px var(--lq-vibe)); }
/* Çubuklar: kayan büyük parlama lekeleri yerine keskin kenar parlaması */
html[data-liquid] :is(.topbar, .tabbar)::after { opacity: 0; }
html[data-liquid] :is(.topbar, .tabbar)::before {
  padding: 1px;
  background: linear-gradient(135deg, var(--lq-spec), transparent 22%, transparent 78%, var(--lq-spec-2));
}
/* Sekme damlası: içi boş, kenarı ışıklı küçük cam; basınca büyüyüp parlar, kayarken sıvı gibi esner */
html[data-liquid] .tab-pill {
  background: rgba(255, 255, 255, .1);
  box-shadow:
    inset 1.5px 1.5px 0 -.5px var(--lq-spec), inset -1px -1px 0 -.25px var(--lq-spec-2), inset 0 0 0 .5px var(--lq-edge),
    inset 0 0 12px -4px rgba(255, 255, 255, .35), 0 4px 14px -6px rgba(0, 0, 0, .3);
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), scale .35s cubic-bezier(.3, 1.6, .5, 1), background .2s ease, opacity .2s ease;
}
/* Seçili sekmeye basılı tutunca damla büyüyüp parlar (kayma site.js/_Layout: tvtPill) */
html[data-liquid] .tabbar:has(.tab.is-active:active) .tab-pill { scale: 1.12 1.18; background: rgba(255, 255, 255, .2); }
/* Alttan açılan sayfalar: buzlu ama içi görünen cam */
html[data-liquid] .sheet-panel {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.04);
  backdrop-filter: blur(12px) saturate(180%) brightness(1.04);
  box-shadow: inset 1.5px 1.5px 0 -.5px var(--lq-spec), inset 0 0 0 .5px var(--lq-edge), 0 -12px 40px rgba(0, 0, 0, .22);
}
/* Dokununca cam canlanır: hafif büyür ve parlar (iOS'taki gibi içe göçmek yerine) */
html[data-liquid] :is(.btn, .icon-btn, .seg-tab) { transition: scale .35s cubic-bezier(.3, 1.6, .5, 1), filter .2s ease; }
html[data-liquid] :is(.btn, .icon-btn, .seg-tab):active { scale: 1.06; filter: brightness(1.12); transition-duration: .15s; }
html[data-liquid] .start-tile:active .poster-img { transform: scale(.96); }
@media (prefers-reduced-transparency: reduce) {
  html[data-liquid] { --blur: 22px; --saturate: 180%; --glass-bg: var(--glass-solid); --glass-bg-strong: var(--glass-solid); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-liquid] :is(.btn, .icon-btn, .seg-tab):active, html[data-liquid] .tabbar:has(.tab.is-active:active) .tab-pill { scale: none; }
}
/* Ayarlardaki damla simgesi */
.set-icon-liquid { background: linear-gradient(160deg, #5ad8f5, #2a8fd6 55%, #6d5df0); }

/* ===== Odak sayfası (data-focus: hızlı başlangıç): üst/alt çubuk yok ===== */
html[data-focus="1"] .page { padding-top: calc(env(safe-area-inset-top) + 20px); padding-bottom: 32px; }
html[data-focus="1"] .start-bar { bottom: max(16px, env(safe-area-inset-bottom)); }
html[data-focus="1"] .snack { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px); }
/* Hızlı başlangıçtaki Diziler / Filmler: her görünümde yuvarlak, küçük bir anahtar (sade görünümün alt çizgili sekmesi değil) */
.start-types.seg-tabs, html[data-look="sade"] .start-types.seg-tabs {
  display: inline-flex; gap: 2px; padding: 3px; max-width: none; border: 0; border-radius: var(--r-pill);
  background: var(--fill); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.start-types .seg-tab, html[data-look="sade"] .start-types .seg-tab {
  flex: none; min-height: 36px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 600; color: var(--text-2);
}
.start-types .seg-tab.is-active, html[data-look="sade"] .start-types .seg-tab.is-active {
  background: var(--accent); color: var(--accent-contrast); box-shadow: 0 2px 8px var(--accent-soft);
}
html[data-look="sade"] .start-types .seg-tab.is-active::after { content: none; }
/* Cam çubuklardaki yazı halesi (vibrancy) dolu düğmelerin yazısına geçmesin: koyu temada siyah parlama gibi görünüyordu */
html[data-liquid] .btn { text-shadow: none; }

/* Yarım kalan hızlı başlangıç: ana sayfanın en üstünde */
.quickstart-resume { margin-bottom: 24px; }
.quickstart-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quickstart-actions form { margin: 0; }
.start-done { display: contents; }

/* Liquid Glass + sade görünüm: sekme grupları (Sosyal, Profil) sade görünümün alt çizgili şeridi olarak kalsın.
   Köşesiz şeride cam çizilince köşeli bir dikdörtgen oluşuyordu; burada cam yok (site.js kırılma da uygulamaz). */
html[data-liquid][data-look="sade"] .seg-tabs {
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: none;
  border: 0; border-bottom: 1px solid var(--separator); text-shadow: none;
}

/* ===== İstatistik grafikleri =====
   Renk görevle verilir: Dizi = --chart-1, Film = --chart-2 (her temada sabit; sıra değişmez). Paletler
   renk körlüğü ayrımı ve kontrast için doğrulandı (dataviz validate_palette: açık/koyu, sade/klasik).
   İnce çubuklar, tabana oturan 4px yuvarlak uçlar, segmentler arası 2px boşluk, silik ızgara. */
:root { --chart-1: #3f5f8f; --chart-2: #c4700a; --chart-grid: rgba(127, 127, 140, .16); --chart-axis: rgba(127, 127, 140, .38); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --chart-1: #9db2d6; --chart-2: #c9822c; }
  html[data-look="sade"]:not([data-theme="light"]) { --chart-1: #6b96e3; --chart-2: #c9822c; }
}
:root[data-theme="dark"] { --chart-1: #9db2d6; --chart-2: #c9822c; }
html[data-look="sade"] { --chart-1: #3a63a8; --chart-2: #b86e1e; }
html[data-look="sade"][data-theme="dark"] { --chart-1: #6b96e3; --chart-2: #c9822c; }
.sw-1 { background: var(--chart-1); }
.sw-2 { background: var(--chart-2); }
.chart-swatch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

.chart-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.chart-titles { min-width: 0; }
.chart-titles .panel-title { margin: 0; }
.chart-headline { margin: 8px 0 0; font-size: .875rem; color: var(--text-2); }
.chart-headline strong { font: 700 1.375rem/1.1 var(--font-head); letter-spacing: -.01em; color: var(--text); margin-right: 2px; }
.chart-note { margin: 3px 0 0; font-size: .8125rem; color: var(--text-3); }
.chart-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; font-weight: 600; color: var(--text-2); }
.chart-legend li { display: inline-flex; align-items: center; white-space: nowrap; }
.chart-empty { margin: 4px 0 0; font-size: .875rem; color: var(--text-2); }

/* Dikey sütun grafiği: soldaki eksen etiketleri, yatay silik ızgara, tabanda tek çizgi */
.vchart { position: relative; height: 196px; padding: 20px 0 0 38px; }
.vchart-week { height: 168px; }
.vchart-grid { position: absolute; inset: 20px 0 24px 0; pointer-events: none; }
.vchart-grid span { position: absolute; left: 38px; right: 0; border-top: 1px dashed var(--chart-grid); }
.vchart-grid em { position: absolute; right: calc(100% + 6px); top: -.65em; font: normal 600 .6875rem/1.2 var(--font); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vchart-grid::after { content: ""; position: absolute; left: 38px; right: 0; bottom: 0; border-top: 1px solid var(--chart-axis); }
.vchart-cols { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.vchart-week .vchart-cols { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.vcol { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 24px; height: 100%; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vcol-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; border-radius: 6px 6px 0 0; transition: background .15s ease; }
.vcol:is(:hover, .is-active, :focus-visible) .vcol-plot { background: var(--fill); }
.vcol:focus-visible .vcol-plot { box-shadow: 0 0 0 2px var(--focus, var(--accent)); }
.vcol-stack { display: flex; flex-direction: column; gap: 2px; width: min(72%, 22px); border-radius: 4px 4px 0 0; overflow: hidden; }
.vchart-week .vcol-stack { width: min(70%, 30px); }
.vcol-stack .seg { flex: 1 1 0; min-height: 2px; }
.vcol.is-muted .seg { opacity: .42; }
.vcol.is-muted:is(:hover, .is-active) .seg { opacity: .7; }
.vcol-val { position: absolute; left: 50%; transform: translate(-50%, -3px); font-size: .6875rem; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.vcol-label { align-self: end; text-align: center; font-size: .6875rem; font-weight: 600; line-height: 22px; color: var(--text-3); overflow: hidden; white-space: nowrap; }
.vcol.is-peak .vcol-label { color: var(--text); }
@media (max-width: 380px) { .vchart:not(.vchart-week) .vcol-label { font-size: .625rem; letter-spacing: -.02em; } }

/* Yatay çubuklar (türler): değer çubuğun sağında, metin renginde */
.hchart { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hchart li { display: grid; grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: .875rem; }
.hchart-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hchart-track { display: block; height: 12px; border-left: 1px solid var(--chart-axis); }
.hchart-bar { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; }
.hchart-n { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Ayrıntı balonu (site.js): sütuna dokununca / üzerine gelince */
.chart-tip {
  position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -100%);
  display: grid; gap: 5px; min-width: 168px; padding: 9px 11px; border-radius: 12px;
  background: var(--glass-solid); color: var(--text); font-size: .75rem;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .3), 0 0 0 .5px var(--separator, rgba(127, 127, 140, .25));
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-size: .8125rem; }
.chart-tip span { display: flex; align-items: center; gap: 0; color: var(--text-2); white-space: nowrap; }
.chart-tip b { margin-left: auto; padding-left: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip em { font-style: normal; color: var(--text-3); padding-left: 6px; font-variant-numeric: tabular-nums; }

/* Kapak yokken "Kapak ekle": tek çerçeveli, kesik çizgili ekleme kutusu (profil ve profil düzenleme aynı).
   Önceden boş alanın kendi çerçevesi ile içindeki hap biçimli cam düğmenin çerçevesi üst üste binip köşelerde kesiliyordu. */
.profile-header.is-empty { height: 56px; background: none; box-shadow: none; overflow: visible; }
.profile-header.is-empty .profile-header-edit,
.header-preview.is-empty {
  gap: 8px; padding: 0 14px; border: 1.5px dashed rgba(127, 127, 140, .4); border-radius: 14px;
  background: var(--fill); box-shadow: none; color: var(--text-2); font: 600 .875rem/1 var(--font);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.header-preview.is-empty { border-radius: 16px; }
.profile-header.is-empty .profile-header-edit svg, .header-preview.is-empty svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .profile-header.is-empty .profile-header-edit:hover, .header-preview.is-empty:hover { background: var(--fill-hover); color: var(--text); border-color: var(--accent); }
}
.profile-header.is-empty .profile-header-edit:active, .header-preview.is-empty:active { background: var(--fill-hover); color: var(--text); }
.profile-header.is-empty .profile-header-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Sitedeki diğer grafikler istatistik grafikleriyle aynı dilde =====
   Yeşile kayan renk geçişleri yok: tek renk (--chart-1), tabana oturan 4px uç, silik taban çizgisi,
   değerler metin renginde. Vurgu renk tonuyla değil doygunlukla: en yüksek değer tam renk, diğerleri soluk. */
/* Puan dağılımı (.histogram) eski hâlinde kalır: sarı-turuncu yıldız rengi */
.top-char-text .bar { height: 6px; border-radius: 0; background: none; overflow: visible; border-left: 1px solid var(--chart-axis); }
.top-char-text .bar > span { background: var(--chart-1); border-radius: 0 4px 4px 0; box-shadow: none; }
/* Eski çubuk sınıfları (kullanılırsa) da aynı renkte */
.month-bar > span, .hbars .bar > span { background: var(--chart-1); }
/* İlerleme çubuğu: tek renk */
.progress > span { background: var(--accent); box-shadow: none; }
/* Zevk uyumu: yüzdeye göre aynı rengin doygunluğu (gri → soluk → tam); yüzde yazısı metin renginde */
.taste-ring.is-good { --c: color-mix(in srgb, var(--chart-1) 55%, transparent); }
.taste-ring.is-high { --c: var(--chart-1); }
.taste-percent.is-good, .taste-percent.is-high { color: var(--text); }
.taste-pill.is-good { color: var(--text); background: color-mix(in srgb, var(--chart-1) 14%, transparent); }
.taste-pill.is-high { color: var(--text); background: color-mix(in srgb, var(--chart-1) 30%, transparent); }
.match-badge.is-good { background: rgba(58, 99, 168, .72); }
.match-badge.is-high { background: rgba(40, 80, 156, .94); }

/* Profil fotoğrafı kırpma: kare çerçeve + dairesel önizleme maskesi */
.avatar-crop-frame { aspect-ratio: 1; width: min(100%, 340px); margin: 4px auto 14px; border-radius: 16px; }
.avatar-crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); outline: 2px solid rgba(255, 255, 255, .85); outline-offset: -1px; pointer-events: none; }
.avatar-crop-sheet .crop-zoom { width: min(100%, 340px); margin: 0 auto; }

/* Karakterli profil resmi: 2 aşama (yapım → karakter) */
.char-step { display: grid; gap: 10px; min-width: 0; }
.char-step[hidden] { display: none; }
.char-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.char-back { flex: none; margin-left: -6px; }
.char-title .suggest-thumb { flex: none; }
.char-title-text { display: grid; min-width: 0; line-height: 1.25; }
.char-title-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-title-text span { font-size: .8125rem; color: var(--text-2); }
.char-cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 6px; padding-top: 2px; }
.char-cast-grid .cast-pick-btn { width: 100%; min-width: 0; }
.char-cast-grid .cast-pick-btn.is-current .cast-photo { box-shadow: 0 0 0 3px var(--accent); }
.char-cast-grid .cast-pick-btn.is-current .cast-char { color: var(--accent); }

/* Odak modu (çubuksuz sayfalar): alt çubuk yokmuş gibi yerleş (bildirimler vb. en alta yakın dursun) */
html[data-focus="1"] { --tabbar-h: 0px; }
/* Tek gönderi: çubuk yok; sol üstte sabit geri düğmesi, içerik onun altından başlar */
#main .post-back, .post-ov .post-back {
  position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left)); top: calc(env(safe-area-inset-top) + 12px);
  width: 40px; height: 40px; border-radius: 50%; color: var(--text);
  background: var(--glass-solid);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45), 0 0 0 .5px var(--glass-edge), inset 0 1px 0 var(--glass-highlight);
}
#main .post-back svg, .post-ov .post-back svg { width: 20px; height: 20px; }
html[data-focus="1"] .page:has(> .post-back) { padding-top: calc(env(safe-area-inset-top) + 64px); }

/* ===== Gönderi katmanı: akışın üstünde açılan tek gönderi; --ov-p 0 = açık, 1 = kart yuvasında ===== */
html.post-ov-open { overflow: hidden; }
.post-ov { position: fixed; inset: 0; z-index: 70; --ov-p: 0; }
.post-ov-scrim {
  position: absolute; inset: 0; background: var(--bg);
  opacity: calc(1 - var(--ov-p)); /* sürükledikçe arkadaki sayfa ortaya çıkar */
}
.post-ov-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top) + 64px) 0 calc(env(safe-area-inset-bottom) + 32px);
}
.post-ov-inner { width: min(100% - 24px, 760px); margin: 0 auto; }
@media (min-width: 720px) { .post-ov-inner { width: min(100% - 48px, 760px); } }
.post-ov-card { transform-origin: 0 0; animation: none; will-change: transform; }
/* Yuvaya yaklaştıkça kartın çerçevesi ve onaylayanlar söner; geriye yalnız gönderi kalır, yuvadakiyle birleşir */
.post-ov .post-ov-card { background: color-mix(in srgb, var(--glass-bg) calc((1 - var(--ov-p)) * 100%), transparent); border-color: color-mix(in srgb, var(--separator) calc((1 - var(--ov-p)) * 100%), transparent); box-shadow: 0 18px 50px -20px rgba(0, 0, 0, calc(.45 * (1 - var(--ov-p)))); }
.post-ov .post-ov-card { -webkit-backdrop-filter: blur(calc(20px * (1 - var(--ov-p)))); backdrop-filter: blur(calc(20px * (1 - var(--ov-p)))); }
.post-ov .post-ov-card .endorsers { opacity: clamp(0, calc(1 - var(--ov-p) * 2.2), 1); }
.post-ov .post-back { z-index: 2; opacity: calc(1 - var(--ov-p) * 1.6); }
.post-ov.is-anim .post-ov-card { transition: transform .36s cubic-bezier(.2, .9, .25, 1), background-color .36s ease, border-color .36s ease, box-shadow .36s ease; }
.post-ov.is-anim .post-ov-scrim, .post-ov.is-anim .post-back, .post-ov.is-anim .endorsers { transition: opacity .32s ease; }
.post-ov.is-closing { pointer-events: none; }
.post-ov.is-closing .post-ov-card { transition-timing-function: cubic-bezier(.3, .7, .2, 1); }
.post-ov.is-dragging .post-ov-card { user-select: none; -webkit-user-select: none; }
/* Akıştaki yuva: gönderi katmandayken yeri boş kalır */
.post.is-ov-slot { visibility: hidden; }
.post.is-ov-loading { opacity: .7; transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { .post-ov.is-anim .post-ov-card { transition: none; } }

/* Gönderi katmanı: sürüklemeye başlayınca (ve açılıp kapanırken) kart akıştaki şekline döner */
.post-ov .post-follow, .post-ov .post-stamp, .post-ov .seal-label, .post-ov .endorsers, .post-ov .post-single .post-body {
  transition: opacity .24s ease, max-height .3s var(--ease), max-width .3s var(--ease), margin .3s var(--ease), padding .3s var(--ease), font-size .3s var(--ease), transform .24s ease;
}
.post-ov .post-stamp { max-height: 3em; overflow: hidden; }
.post-ov .seal-label { display: inline-block; max-width: 6em; overflow: hidden; vertical-align: middle; }
.post-ov .seal { transition: gap .3s var(--ease), padding .3s var(--ease); }
.post-ov .endorsers { max-height: var(--en-h, 70vh); overflow: hidden; } /* --en-h: listenin gerçek yüksekliği (site.js); sabit 70vh uzun listenin sonunu kesiyordu */
.post-ov.is-morph .post-follow { opacity: 0; transform: scale(.85); pointer-events: none; }
.post-ov.is-morph .post-stamp { max-height: 0; margin: 0; opacity: 0; }
.post-ov.is-morph .seal-label { max-width: 0; opacity: 0; }
.post-ov.is-morph .post.is-single .seal { gap: 4px; padding: 0 8px; }
.post-ov.is-morph .endorsers { max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; opacity: 0; }
.post-ov.is-morph .post-single .post-body { font-size: 1rem; }
.post-ov.is-morph .post-single { margin-bottom: 0; }

/* Tek gönderide özet onay satırı yalnızca katman kaydırılırken görünür (tam liste kapanırken yerine açılır) */
.post.is-single .post-endorsers { display: none; }
.post-ov .post.is-single .post-endorsers {
  display: flex; max-height: 0; margin: 0; padding: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height .3s var(--ease), margin .3s var(--ease), padding .3s var(--ease), opacity .24s ease;
}
.post-ov.is-morph .post.is-single .post-endorsers { max-height: 2.8em; margin: 8px 0 4px; padding: 2px 0; opacity: 1; }
/* Kaydırırken içerik, akıştaki gibi profil fotoğrafının sağında bir sütuna geçer */
.post-ov .post.is-single .post-main, .post-ov .post.is-single .post-head { transition: padding .3s var(--ease); }
.post-ov .post.is-single .post-avatar .avatar { transition: width .3s var(--ease), height .3s var(--ease); }
.post-ov.is-morph .post.is-single .post-main { padding-left: 46px; }
.post-ov.is-morph .post.is-single .post-head { padding-left: 0; min-height: 36px; }
.post-ov.is-morph .post.is-single .post-avatar .avatar { width: 36px; height: 36px; }

/* Kaydırırken kullanıcı adı da söner; geçişler tek eğriyle ve yukarıdan aşağıya kısa arayla (yalnız sönerken) */
.post-ov { --ov-ease: cubic-bezier(.22, .9, .3, 1); }
.post-ov .post.is-single .post-handle { max-height: 1.6em; overflow: hidden; }
.post-ov .post-follow, .post-ov .post.is-single .post-handle, .post-ov .post-stamp, .post-ov .seal-label, .post-ov .endorsers,
.post-ov .post-single .post-body, .post-ov .post.is-single .post-endorsers, .post-ov .post.is-single .post-main,
.post-ov .post.is-single .post-head, .post-ov .post.is-single .post-avatar .avatar, .post-ov .seal {
  transition-property: opacity, max-height, max-width, margin, padding, font-size, transform, width, height, gap, min-height, background-color, color, border-color, box-shadow;
  transition-duration: .3s; transition-timing-function: var(--ov-ease);
}
.post-ov.is-morph .post.is-single .post-handle { max-height: 0; opacity: 0; }
.post-ov.is-morph .post-follow { transition-delay: 0s; }
.post-ov.is-morph .post.is-single .post-handle { transition-delay: .02s; }
.post-ov.is-morph .post.is-single .post-avatar .avatar, .post-ov.is-morph .post.is-single .post-main, .post-ov.is-morph .post.is-single .post-head { transition-delay: .03s; }
.post-ov.is-morph .post-stamp { transition-delay: .05s; }
.post-ov.is-morph .seal-label, .post-ov.is-morph .post.is-single .seal { transition-delay: .07s; }
.post-ov.is-morph .endorsers { transition-delay: .09s; }
.post-ov.is-morph .post.is-single .post-endorsers { transition-delay: .14s; }
.post-ov.is-anim .post-ov-card { transition-timing-function: var(--ov-ease); }
/* İniş: katman söner, akıştaki gönderi belirir */
.post-ov.is-landed { opacity: 0; transition: opacity .17s ease; }
.post.is-ov-land { animation: ov-land .24s ease both; }
@keyframes ov-land { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .post-ov * { transition-delay: 0s !important; } }

/* Sürüklerken kart, akıştaki gönderinin birebir kopyasına (site.js: makeOvGhost) çapraz geçişle dönüşür */
.post-ov .post-ov-card { transition-property: transform, background-color, border-color, box-shadow, opacity; }
.post-ov.is-ghosted .post-ov-card { opacity: 0; transition: opacity .16s ease; }
.post-ov.is-anim .post-ov-card { transition: transform .36s var(--ov-ease), opacity .2s ease, background-color .36s ease, border-color .36s ease, box-shadow .36s ease; }

/* Katman açıkken arkadaki sayfa ve katmanın kaydırma kabı esnemesin/zincirlenmesin (iOS'ta sayfa boş şekilde kayıyordu) */
html.post-ov-open, html.post-ov-open body { overscroll-behavior: none; }
.post-ov { touch-action: none; }
.post-ov-scroll { overscroll-behavior: none; touch-action: pan-y; }

/* Tek gönderide (sayfa ve açılan kart) imza/kaşe/mühür: görünüm aynı, dokunma alanı ~48px yüksek ve yanlara taşar */
.post.is-single .seal { position: relative; }
.post.is-single .seal::before { content: ""; position: absolute; inset: -8px -3px; border-radius: 14px; }
/* Profil sekmesi yüklenirken */
.profile-pane.is-loading { opacity: .5; transition: opacity .2s; pointer-events: none; }
/* Bot hesap işareti (isim yanında): yalnızca küçük robot simgesi */
.bot-badge { display: inline-flex; vertical-align: -.12em; margin-left: .3em; color: var(--text-3); }
.bot-badge svg { width: 1em; height: 1em; }
.profile-name .bot-badge { vertical-align: 0; }
.profile-name .bot-badge svg { width: .72em; height: .72em; }
/* Gönderide bot işareti: avatarın altında; isim yanındaki yalnızca ekran okuyucular için */
/* Açılan (tek) gönderide avatarın altı yazıyla dolu: işaret orada ismin yanında görünür */
/* Akış gönderisi başlığı sığmazsa önce @kullanıcı adı kısalır; isim ancak tek başına sığmayacak kadar uzunsa kırpılır */
.post:not(.is-single) .post-name { flex-shrink: 0; max-width: 72%; }
.post:not(.is-single) .post-handle { flex-shrink: 1; }

/* ---- Logo denemesi (?marka=mercan): sade görünüm aynen kalır; yalnız mavi vurgu mercan olur, üst çubukta "Rv" ---- */
html[data-look="sade"][data-brand="mercan"] {
  --accent: #C8462F; --accent-hover: #AE3B26; --accent-soft: rgba(232, 85, 62, .10); --focus: rgba(232, 85, 62, .35);
  --chart-1: #C8462F;
}
@media (prefers-color-scheme: dark) {
  html[data-look="sade"][data-brand="mercan"]:not([data-theme="light"]) {
  --accent: #F08A76; --accent-hover: #F5A595; --accent-soft: rgba(240, 138, 118, .14); --focus: rgba(240, 138, 118, .4);
  --accent-contrast: #1a0f0c;
  --chart-1: #F08A76;
  }
}
html[data-look="sade"][data-brand="mercan"][data-theme="dark"] {
  --accent: #F08A76; --accent-hover: #F5A595; --accent-soft: rgba(240, 138, 118, .14); --focus: rgba(240, 138, 118, .4);
  --accent-contrast: #1a0f0c;
  --chart-1: #F08A76;
}
html[data-brand="mercan"] .match-badge.is-good { background: color-mix(in srgb, var(--accent) 85%, transparent); }
html:is([data-brand="revidience"], [data-brand="mercan"]) .brand-name { display: none; }
html:is([data-brand="revidience"], [data-brand="mercan"]) .brand-logo { width: 30px; height: 30px; }
.rv-mark {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 8px; background: var(--ink, #16181d); color: var(--ink-contrast, #fff);
  font: 800 16px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.06em;
  padding-right: 1px;
}
.rv-mark b { color: #E8553E; font-weight: 800; }
/* Liquid görünümde üst çubuk yazılarına verilen parıltı logoya gelmesin */
html .rv-mark, html .rv-mark b { text-shadow: none; }

/* ---- Varsayılan marka: Rv işareti, "v" marka mavisi (#3F5F8F); karenin rengine göre okunur ton ---- */
html[data-brand="revidience"] .rv-mark b { color: #9DB2D6; }
@media (prefers-color-scheme: dark) {
  html[data-brand="revidience"]:not([data-theme="light"]) .rv-mark b { color: #3F5F8F; }
}
html[data-brand="revidience"][data-theme="dark"] .rv-mark b { color: #3F5F8F; }

/* ---- Favori hikâyeleri (profildeki favorilere dokununca) ---- */
html.fst-open { overflow: hidden; }
.fst { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.fst::backdrop { background: rgba(0, 0, 0, .9); }
.fst[open] { display: grid; place-items: center; animation: fst-in .22s cubic-bezier(.2, .8, .2, 1); }
.fst.is-closing { animation: fst-out .2s ease forwards; }
@keyframes fst-in { from { opacity: 0; transform: scale(.94); } }
@keyframes fst-out { to { opacity: 0; transform: scale(.94); } }
.fst-stage { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; overflow: hidden; background: #111; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s ease; }
@media (min-width: 600px) and (min-height: 600px) { .fst-stage { height: min(94dvh, 860px); width: calc(min(94dvh, 860px) * 9 / 16); border-radius: 18px; } }
.fst-bg { position: absolute; inset: 0; background: #1a1a1d center / cover no-repeat; transform: scale(1.02); transition: filter .3s ease; }
.fst-bg.is-lo { filter: blur(18px) saturate(1.1); transform: scale(1.12); }
.fst-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 22%, rgba(0,0,0,.35) 46%, rgba(0,0,0,.88) 72%, #000 100%); }
.fst-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: max(10px, env(safe-area-inset-top)) 12px 0; }
.fst-bars { display: flex; gap: 4px; }
.fst-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.fst-fill { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.fst-bar.is-done .fst-fill { width: 100%; }
.fst-bar.is-now .fst-fill { animation: fst-fill var(--fst-d, 7s) linear forwards; }
.fst.is-paused .fst-bar.is-now .fst-fill { animation-play-state: paused; }
@keyframes fst-fill { from { width: 0; } to { width: 100%; } }
.fst-head { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.fst-av .avatar { width: 32px; height: 32px; font-size: .75rem; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.fst-who { display: grid; line-height: 1.2; min-width: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.fst-who strong { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fst-who small { font-size: .75rem; opacity: .8; }
.fst-x { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.fst-x svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.fst-nav { position: absolute; z-index: 1; top: 70px; bottom: 0; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fst-nav.is-prev { left: 0; width: 32%; }
.fst-nav.is-next { right: 0; width: 68%; }
.fst-nav:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -4px; }
.fst-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 18px max(18px, env(safe-area-inset-bottom)); pointer-events: none; }
.fst-card { display: grid; gap: 12px; animation: fst-card .28s ease; }
@keyframes fst-card { from { opacity: 0; transform: translateY(8px); } }
.fst-card a { pointer-events: auto; }
.fst-title { display: flex; align-items: flex-end; gap: 14px; }
.fst-poster { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); flex: none; }
.fst-kind { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.fst-title h2 { margin: 2px 0 4px; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.fst-meta { margin: 0; font-size: .8125rem; opacity: .8; }
.fst-ov { margin: 0; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .92); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.fst-skel { display: grid; gap: 8px; }
.fst-skel i { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); animation: fst-pulse 1.1s ease-in-out infinite alternate; }
.fst-skel i:last-child { width: 60%; }
@keyframes fst-pulse { to { opacity: .45; } }
.fst-take { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 4px; }
.fst-take-h { display: flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.fst-stars { letter-spacing: 1px; font-size: .8125rem; }
.fst-stars span { color: rgba(255, 255, 255, .3); }
.fst-stars span.on { color: #f5c518; }
.fst-take-b { margin: 0; font-size: .8125rem; line-height: 1.45; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.fst-take-b.is-hidden { font-style: italic; opacity: .75; }
.fst-take-b a { color: #fff; font-style: normal; font-weight: 600; text-decoration: underline; }
.fst-go { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px 9px 16px; border-radius: 99px; background: #fff; color: #111; font-weight: 700; font-size: .875rem; text-decoration: none; }
.fst-go svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .fst[open], .fst.is-closing, .fst-card { animation: none; } }

/* ---- Kapalı beta: başvuru, davet kodu alanı, yönetim ---- */
.beta-note { margin: 0 0 4px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); font-size: .875rem; line-height: 1.45; }
.beta-note a { color: var(--accent); font-weight: 600; }
.invite-input { text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; }
.invite-input::placeholder { letter-spacing: .12em; text-transform: none; }
.invite-field .field-hint a { color: var(--accent); font-weight: 600; }
.beta-brand { margin: 0 0 2px; }
.beta-done { text-align: center; justify-items: center; }
.beta-done-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 4px auto 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.beta-done-icon svg { width: 28px; height: 28px; }
.beta-app { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; }
.beta-note-text { margin: 4px 0 2px; font-size: .875rem; line-height: 1.45; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.beta-actions { flex: none; display: flex; gap: 6px; align-items: center; }
.beta-actions form { margin: 0; }
.beta-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.beta-new { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); }
.beta-new .beta-code { font-size: 1.5rem; }
.beta-link { font-size: .8125rem; }
.beta-create-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.beta-create .field > span { font-size: .8125rem; font-weight: 600; color: var(--text-2); padding-left: 4px; }
.beta-create > .btn { justify-self: start; }
@media (max-width: 560px) { .beta-app { flex-direction: column; } }
