/* ============================================================
   Roborock Bilgi Portalı — tasarım sistemi
   Elle yazılmış tek dosya. Derleme adımı yok: dosyayı sunucuya
   koyduğunuz an geçerlidir, "sınıf derlenmemiş" tuzağı oluşmaz.
   ============================================================ */

/* ── 1. Değişkenler ─────────────────────────────────────── */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e7eaef;
  --border: #e2e5ea;
  --border-2: #ccd1da;
  --text: #14171c;
  --muted: #58616f;
  --subtle: #868f9e;
  --brand: #ec1313;
  --brand-hover: #c60f0f;
  --brand-soft: rgba(236, 19, 19, .085);
  --brand-line: rgba(236, 19, 19, .28);
  --wa: #1fa855;
  --wa-hover: #178e47;
  --ok: #15803d;
  --warn-bg: #fff8e6;
  --warn-line: #f0d79a;
  --warn-text: #7a5a12;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(16, 20, 28, .05);
  --sh-2: 0 2px 8px rgba(16, 20, 28, .07), 0 1px 2px rgba(16, 20, 28, .05);
  --sh-3: 0 12px 32px rgba(16, 20, 28, .12), 0 2px 8px rgba(16, 20, 28, .06);
  --sh-pop: 0 24px 64px rgba(10, 14, 22, .22);

  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 36px);
  --hdr-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Ubuntu, Cantarell, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1014;
    --surface: #15191f;
    --surface-2: #1c212a;
    --surface-3: #252b35;
    --border: #262c36;
    --border-2: #39414e;
    --text: #eef1f6;
    --muted: #a4adbb;
    --subtle: #7c8595;
    --brand: #ff4a3d;
    --brand-hover: #ff6558;
    --brand-soft: rgba(255, 74, 61, .13);
    --brand-line: rgba(255, 74, 61, .32);
    --wa: #25b862;
    --wa-hover: #34c972;
    --ok: #4ade80;
    --warn-bg: #2a2312;
    --warn-line: #55471f;
    --warn-text: #e8c877;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 2px 10px rgba(0, 0, 0, .45);
    --sh-3: 0 14px 36px rgba(0, 0, 0, .55);
    --sh-pop: 0 24px 64px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1014;
  --surface: #15191f;
  --surface-2: #1c212a;
  --surface-3: #252b35;
  --border: #262c36;
  --border-2: #39414e;
  --text: #eef1f6;
  --muted: #a4adbb;
  --subtle: #7c8595;
  --brand: #ff4a3d;
  --brand-hover: #ff6558;
  --brand-soft: rgba(255, 74, 61, .13);
  --brand-line: rgba(255, 74, 61, .32);
  --wa: #25b862;
  --wa-hover: #34c972;
  --ok: #4ade80;
  --warn-bg: #2a2312;
  --warn-line: #55471f;
  --warn-text: #e8c877;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 2px 10px rgba(0, 0, 0, .45);
  --sh-3: 0 14px 36px rgba(0, 0, 0, .55);
  --sh-pop: 0 24px 64px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
  /* Kaydırma çubuğu yeri her zaman ayrılır. Arama katmanı ya da mobil menü
     açılırken gövdenin taşması kapatılıyor; bu kural olmadan çubuk kaybolur
     ve tüm düzen çubuk genişliği kadar (~15px) yana sıçrar. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ── 3. İkonlar ─────────────────────────────────────────── */
/* svg varsayılanı block; metin içinde kullanılan ikon satırı kırardı.
   Esnek/ızgara kaplarda display zaten yok sayılır, bu güvenli bir varsayılan. */
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -.18em; }
.ico-xs { width: 14px; height: 14px; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }

:root[data-theme="dark"] .only-light,
:root[data-theme="light"] .only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme]) .only-dark { display: block; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .only-dark { display: none; }
}
:root[data-theme="dark"] .only-dark,
:root[data-theme="light"] .only-light { display: block; }

/* ── 4. Düğmeler ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: var(--surface); color: var(--muted); border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--muted); transition: background .15s, color .15s;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }

/* ── 5. Üst bar ─────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .hdr { background: var(--surface); } }

.hdr__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  height: var(--hdr-h); display: flex; align-items: center; gap: 20px;
}
.hdr__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr__logo img { height: 26px; width: auto; }
.hdr__logo-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted);
  padding-left: 10px; border-left: 1px solid var(--border-2); line-height: 1.1;
}
@media (max-width: 560px) { .hdr__logo-tag { display: none; } }

.hdr__nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
@media (max-width: 900px) { .hdr__nav { display: none; } }
.hdr__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.hdr__link:hover { background: var(--surface-2); color: var(--text); }
.hdr__link.is-active { color: var(--brand); background: var(--brand-soft); }

.hdr__act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 901px) { .hdr__act { margin-left: 0; } }
.hdr__wa { height: 36px; padding: 0 14px; }
@media (max-width: 1040px) { .hdr__wa span { display: none; } .hdr__wa { width: 38px; padding: 0; } }
.hdr__burger { display: none; }
@media (max-width: 900px) { .hdr__burger { display: inline-flex; } }

/* ── 6. Mobil çekmece ───────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 120; display: flex; }
.drawer[hidden] { display: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(8, 10, 14, .55); animation: fade .18s ease; }
.drawer__panel {
  position: relative; margin-left: auto; width: min(320px, 86vw); height: 100%;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 14px; gap: 6px;
  animation: slidein .2s cubic-bezier(.2, .8, .3, 1);
  overflow-y: auto;
}
@keyframes fade { from { opacity: 0 } }
@keyframes slidein { from { transform: translateX(16px); opacity: .5 } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); }
.drawer__top img { height: 24px; width: auto; }
.drawer__links { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.drawer__link {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px;
  border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--muted);
}
.drawer__link:hover { background: var(--surface-2); color: var(--text); }
.drawer__link.is-active { background: var(--brand-soft); color: var(--brand); }
.drawer__ext { margin-left: auto; opacity: .6; }
.drawer__wa { margin-top: auto; }

/* ── 7. Uyarı şeridi ────────────────────────────────────── */
.notice {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px var(--gut); font-size: 13.5px; font-weight: 500;
  background: var(--warn-bg); color: var(--warn-text);
  border-bottom: 1px solid var(--warn-line);
}

/* ── 8. Kırıntı yolu ────────────────────────────────────── */
.crumbs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--subtle); margin-bottom: 18px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { opacity: .5; }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }

/* ── 9. Bölüm başlıkları ────────────────────────────────── */
.sec { padding-block: clamp(28px, 5vw, 48px); }
.sec--tight { padding-block: clamp(20px, 3.5vw, 32px); }
.sec--alt { background: var(--surface); border-block: 1px solid var(--border); }

.sec__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.sec__head h2 { font-size: clamp(19px, 2.4vw, 23px); }
.sec__head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sec__more {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap;
}
.sec__more:hover { text-decoration: underline; }

.eyebrow {
  font-size: 11.5px; font-weight: 800; letter-spacing: .085em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 12px;
}

/* ── 10. Ana sayfa kahraman alanı ───────────────────────── */
/* overflow:hidden YOK: arama önerileri kahraman alanının altına taşar,
   kırpılmamaları gerekir. ::before zaten inset:0 ile kutuya sığdığı için
   taşma riski yoktu. z-index, açılır listenin sonraki bölümlerin üstünde
   kalmasını garanti eder (üst bar z-index 60 ile hâlâ daha yüksek). */
.hero { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 380px at 18% -12%, var(--brand-soft), transparent 62%),
    radial-gradient(620px 340px at 96% 8%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 60%);
  pointer-events: none;
}
.hero__in {
  position: relative; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(34px, 6vw, 62px) var(--gut) clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
@media (max-width: 780px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line);
  font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(26px, 4.6vw, 40px); letter-spacing: -.028em; }
.hero__sub { margin-top: 10px; font-size: clamp(14.5px, 1.7vw, 16.5px); color: var(--muted); max-width: 56ch; }

.hero__rocky { width: clamp(120px, 18vw, 178px); height: auto; }
@media (max-width: 780px) { .hero__rocky { display: none; } }

/* Arama kutusu */
.hsearch { position: relative; margin-top: 22px; max-width: 620px; }
.hsearch__field {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); transition: border-color .15s, box-shadow .15s;
}
.hsearch__field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--sh-2); }
.hsearch__field .ico { color: var(--subtle); }
.hsearch input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none;
  font-size: 15.5px;
}
.hsearch input::placeholder { color: var(--subtle); }
.hsearch kbd {
  font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--subtle);
  border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px;
  padding: 2px 6px; background: var(--surface-2);
}
@media (max-width: 560px) { .hsearch kbd { display: none; } }

.hsearch__pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; max-height: 62vh; overflow-y: auto;
}
.hsearch__pop[hidden] { display: none; }

/* Öneri satırları — hem kahraman aramada hem arama katmanında */
.sug { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.sug:last-child { border-bottom: 0; }
.sug:hover, .sug.is-on { background: var(--brand-soft); }
.sug__ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--brand);
}
.sug.is-on .sug__ico { background: var(--surface); }
.sug__t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug__d { font-size: 12.5px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.sug__tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px;
}
.sug__group {
  padding: 10px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--subtle); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

/* ── 11. Kısayol kartları ───────────────────────────────── */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.tile {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.tile__ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.tile__ico .ico { width: 22px; height: 22px; }
.tile__t { font-size: 14.5px; font-weight: 700; }
.tile__d { font-size: 12.5px; color: var(--subtle); margin-top: 2px; }
.tile__body { min-width: 0; }

/* Küçük konu rozetleri */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.pill .ico { width: 17px; height: 17px; color: var(--brand); }
.pill:hover { border-color: var(--brand-line); color: var(--text); background: var(--brand-soft); }
.pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill.is-active .ico { color: #fff; }

/* ── 12. Video ızgarası ─────────────────────────────────── */
.vgrid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.vgrid--compact { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px 14px; }

.vcard { display: flex; flex-direction: column; }
.vcard__shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r);
  overflow: hidden; background: var(--surface-3); border: 1px solid var(--border);
}
/* Bulanık zemin + tam kadraj görsel: dikey kayıtlar kırpılmadan görünür. */
.shot__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(16px) saturate(1.2) brightness(.62); transform: scale(1.22);
}
.shot__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.vcard:hover .shot__img { transform: scale(1.045); }
.vcard__shot::after {
  content: ""; position: absolute; inset: 0; background: rgba(10, 12, 18, 0); transition: background .2s;
}
.vcard:hover .vcard__shot::after { background: rgba(10, 12, 18, .16); }
.vcard__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--subtle); }
.vcard__ph .ico { width: 34px; height: 34px; }
.vcard__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .93); color: var(--brand);
  display: grid; place-items: center; box-shadow: var(--sh-2);
  opacity: 0; scale: .84; transition: opacity .2s, scale .2s;
}
.vcard:hover .vcard__play { opacity: 1; scale: 1; }
.vcard__play .ico { width: 22px; height: 22px; margin-left: 2px; }

.vcard__meta { display: flex; gap: 11px; margin-top: 11px; }
.vcard__badge {
  width: 30px; height: 30px; flex: none; border-radius: 9px; margin-top: 1px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.vcard__badge .ico { width: 17px; height: 17px; }
.vcard__t {
  font-size: 14px; font-weight: 650; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.vcard:hover .vcard__t { color: var(--brand); }
.vcard__c { font-size: 12.5px; color: var(--subtle); margin-top: 3px; }

/* Yatay (liste) video kartı */
.vrow {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 13px; align-items: start;
  padding: 10px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.vrow:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); }
.vrow__shot { aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); position: relative; }
.vrow__t {
  font-size: 13.5px; font-weight: 650; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vrow:hover .vrow__t { color: var(--brand); }
.vrow__c { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--subtle); margin-top: 6px; }
@media (max-width: 420px) { .vrow { grid-template-columns: 104px minmax(0, 1fr); } }

/* ── 13. İki sütunlu sayfa düzeni ───────────────────────── */
/* Izgara alanları sayesinde okuma sırası her iki düzende de doğru:
   masaüstünde kenar çubuğu solda, dar ekranda başlık → kategoriler → liste. */
.layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  grid-template-areas: "side head" "side list";
  column-gap: 40px; row-gap: 0;
  align-items: start; padding-block: clamp(24px, 4vw, 40px);
}
.layout__head { grid-area: head; }
.layout__list { grid-area: list; }
.side { grid-area: side; position: sticky; top: calc(var(--hdr-h) + 20px); align-self: start; }

@media (max-width: 940px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "side" "list";
    row-gap: 22px;
  }
  .side { position: static; }
  /* Üst barda ve alt bilgide zaten WhatsApp düğmesi var. */
  .side__group--help { display: none; }
}
.side__group + .side__group { margin-top: 26px; }

/* Kenar çubuğu satırları: ikon | etiket | sayaç — üç sütun sabit hizalı.
   Eski sürümdeki kayma bu ızgara sayesinde oluşamaz. */
.side__link {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center; gap: 11px;
  width: 100%; padding: 9px 11px; border: 0; background: none; text-align: left;
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: background .14s, color .14s;
}
.side__link .ico { width: 20px; height: 20px; }
.side__link span:not(.side__n) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__n { font-size: 12px; font-weight: 700; color: var(--subtle); font-variant-numeric: tabular-nums; }
.side__link:hover { background: var(--surface-2); color: var(--text); }
.side__link.is-active { background: var(--brand-soft); color: var(--brand); }
.side__link.is-active .side__n { color: var(--brand); }

/* Dar ekranda kategoriler yatay kaydırılabilir şeride dönüşür */
@media (max-width: 940px) {
  .side__scroll {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .side__scroll .side__link {
    width: auto; flex: none; grid-template-columns: 18px auto auto;
    border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px;
  }
  .side__scroll .side__link.is-active { border-color: var(--brand-line); }
  .side__scroll .side__link span:not(.side__n) { white-space: nowrap; }
}

/* ── 14. Sayfa başlığı ──────────────────────────────────── */
.phead { margin-bottom: 22px; }
.phead h1 { font-size: clamp(22px, 3.2vw, 30px); }
.phead p { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 68ch; }
.phead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.count { font-size: 13px; font-weight: 600; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* Sayfa içi arama alanı */
.field {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 8px 0 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .ico { color: var(--subtle); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; }
/* Tarayıcının kendi temizle düğmesi gizlenir; her alanın kendi düğmesi var. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { display: none; -webkit-appearance: none; }

/* ── 15. Oynatıcı ─────────────────────────────────────────
   Videoların neredeyse tamamı telefonla çekilmiş dikey (9:16) kayıt.
   Sabit 16:9 kutuda ekranın çoğu siyah kalıyordu. Sahne, kapak görselinin
   bulanık bir kopyasıyla sütunu doldurur; oynatıcı kendi oranında ve
   ekran yüksekliğine sığacak biçimde ortalanır. Oran --arw/--arh ile
   sunucudan gelir, bilinmiyorsa app.js kapak yüklenince düzeltir. */
.stage {
  position: relative; display: grid; place-items: center;
  border-radius: var(--r-lg); overflow: hidden;
  background: #0a0c10; border: 1px solid var(--border); box-shadow: var(--sh-2);
  --arw: 16; --arh: 9;
  --ph: min(70vh, 660px);
}
.stage__bg {
  position: absolute; inset: -30px;
  background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.25) brightness(.5);
  transform: scale(1.08);
}
.stage__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 14, .28); }

.player {
  position: relative; z-index: 1;
  width: min(100%, calc(var(--arw) / var(--arh) * var(--ph)));
  aspect-ratio: var(--arw) / var(--arh);
  background: #0a0c10; overflow: hidden;
}
.player img, .player video, .player iframe { width: 100%; height: 100%; }
.player img { object-fit: cover; }
.player video { object-fit: contain; background: #0a0c10; }
@media (max-width: 640px) { .stage { --ph: min(72vh, 560px); } }
.player iframe { border: 0; }

.player__facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.player__facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 12, .12) 0%, rgba(6, 8, 12, .05) 45%, rgba(6, 8, 12, .48) 100%);
  transition: background .2s;
}
.player__facade:hover::after { background: linear-gradient(180deg, rgba(6, 8, 12, .2) 0%, rgba(6, 8, 12, .12) 45%, rgba(6, 8, 12, .55) 100%); }
.player__btn {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38); transition: scale .18s, background .18s;
}
.player__facade:hover .player__btn { scale: 1.07; background: var(--brand-hover); }
.player__btn .ico { width: 30px; height: 30px; margin-left: 4px; }
/* Yavaş bağlantı uyarısı: oynatıcının üstünde, videonun akışını engellemez. */
.player__yavas {
  position: absolute; inset: auto 12px 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r);
  background: rgba(10, 12, 18, .88); color: #fff;
  backdrop-filter: blur(8px); box-shadow: var(--sh-3);
}
.player__yavas strong { font-size: 14px; }
.player__yavas span { font-size: 12.5px; line-height: 1.5; opacity: .85; }
.player__yavas .btn { height: 34px; font-size: 13px; }

.player__hint {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 12, 18, .6); color: #fff; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.player__hint .ico { width: 15px; height: 15px; }

/* ── 16. Video detay ────────────────────────────────────── */
.vdetail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; padding-block: clamp(20px, 3vw, 32px); }
@media (max-width: 1040px) { .vdetail { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

.vinfo { margin-top: 20px; }
.vinfo h1 { font-size: clamp(20px, 2.8vw, 27px); }
.vinfo__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tagchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700;
}
.tagchip .ico { width: 15px; height: 15px; }
.vinfo__desc { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

.share { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.share .btn { height: 38px; font-size: 13.5px; }
.share .ico { width: 17px; height: 17px; }

.aside__title { font-size: 14px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.01em; }
.aside__list { display: flex; flex-direction: column; gap: 10px; }

/* ── 17. SSS ────────────────────────────────────────────── */
.faqlist { display: flex; flex-direction: column; gap: 9px; }
.faq {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.faq:hover { border-color: var(--border-2); }
.faq.is-open { border-color: var(--brand-line); box-shadow: var(--sh-2); }
/* Soru satırı: metin düğmesi ile kopyala düğmesi kardeştir.
   İç içe <button> geçersiz HTML olurdu ve klavye sırasını bozardı. */
.faq__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 10px; }
.faq__q {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; padding: 15px 10px 15px 16px; border: 0; background: none; text-align: left;
  font-size: 14.5px; font-weight: 650; line-height: 1.45; color: var(--text);
}
.faq__q:hover { color: var(--brand); }
.faq__chev { color: var(--subtle); transition: transform .25s ease, color .15s; }
.faq.is-open .faq__chev { transform: rotate(180deg); color: var(--brand); }
.faq__copy {
  width: 32px; height: 32px; border-radius: 7px; border: 0; background: none;
  color: var(--subtle); display: grid; place-items: center; transition: background .15s, color .15s;
}
.faq__copy:hover { background: var(--surface-2); color: var(--brand); }
.faq__copy.is-done { color: var(--ok); }
.faq__copy .ico { width: 16px; height: 16px; }

/* Yükseklik JS tarafından ölçülüp yazılır (bkz. app.js openFaq).
   grid 0fr/1fr numarası otomatik yükseklikli kapsayıcıda ya kapanmıyor
   ya da hiç açılmıyordu; ölçülen max-height her iki yönde de kesin çalışır.
   JS yoksa <noscript> kuralı tüm yanıtları açık bırakır. */
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.3, .8, .3, 1); }
/* Dolgu ve çizgi her zaman aynı: kapalıyken panel zaten kırpılır.
   Böylece açılışta ölçülen yükseklik gerçek yükseklikle birebir örtüşür. */
.faq__inner {
  padding: 14px 16px 16px; font-size: 14.5px; line-height: 1.7; color: var(--muted);
  border-top: 1px solid var(--border);
}
.inline-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--brand-hover); }

.faq__cat {
  display: flex; align-items: center; gap: 9px; margin: 26px 0 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle);
}
.faq__cat:first-child { margin-top: 0; }
.faq__cat .ico { width: 17px; height: 17px; color: var(--brand); }
.faq__cat::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ── 18. Makale ─────────────────────────────────────────── */
.prose { font-size: 15.5px; line-height: 1.78; color: var(--muted); max-width: 74ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 20px; color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 17px; color: var(--text); margin-top: 1.6em; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); border: 1px solid var(--border); }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; color: var(--text);
}
.prose code {
  background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.tablewrap { overflow-x: auto; }

.card {
  display: block; padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.card__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.card__t { font-size: 15px; font-weight: 700; line-height: 1.4; }
.card__d { margin-top: 7px; font-size: 13.5px; color: var(--subtle); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__go { margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand); }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

/* ── 19. Boş durum ──────────────────────────────────────── */
.empty { text-align: center; padding: 56px 20px; }
.empty__ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: var(--surface-2); color: var(--subtle); display: grid; place-items: center; }
.empty__ico .ico { width: 26px; height: 26px; }
.empty h3 { font-size: 17px; }
.empty p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.empty__act { margin-top: 18px; display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* ── 20. Arama katmanı (/ veya Ctrl+K) ──────────────────── */
.palette { position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center; padding: clamp(12px, 8vh, 96px) 16px 16px; }
.palette[hidden] { display: none; }
.palette__bg { position: absolute; inset: 0; background: rgba(8, 10, 14, .5); backdrop-filter: blur(3px); }
.palette__box {
  position: relative; width: min(660px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-pop); overflow: hidden;
  animation: pop .16s cubic-bezier(.2, .8, .3, 1);
  display: flex; flex-direction: column; max-height: min(70vh, 620px);
}
@keyframes pop { from { transform: translateY(-8px) scale(.985); opacity: 0 } }
.palette__head { display: flex; align-items: center; gap: 11px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); }
.palette__ico { color: var(--subtle); }
.palette__head input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.palette__body { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.palette__foot {
  display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--border);
  background: var(--surface-2); font-size: 11.5px; color: var(--subtle);
}
.palette__foot kbd {
  font-family: var(--font); font-size: 10.5px; font-weight: 700;
  border: 1px solid var(--border-2); border-radius: 4px; padding: 1px 5px; margin-right: 3px;
  background: var(--surface);
}
@media (max-width: 560px) { .palette__foot { display: none; } }
.palette__msg { padding: 34px 20px; text-align: center; color: var(--subtle); font-size: 14px; }

/* ── 21. Alt bilgi ──────────────────────────────────────── */
.ftr { background: var(--surface); border-top: 1px solid var(--border); margin-top: clamp(32px, 6vw, 64px); }
.ftr__in {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(32px, 5vw, 52px) var(--gut);
  display: grid; gap: 34px; grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 860px) { .ftr__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__in { grid-template-columns: 1fr; gap: 26px; } }
.ftr__brand img { height: 28px; width: auto; }
.ftr__brand p { margin: 14px 0 18px; font-size: 13.5px; color: var(--muted); max-width: 34ch; line-height: 1.65; }
.ftr__col h3 { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.ftr__col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.ftr__col a:hover { color: var(--brand); }
.ftr__bar {
  max-width: var(--wrap); margin-inline: auto; padding: 16px var(--gut);
  border-top: 1px solid var(--border); display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--subtle);
}

/* ── 22. Satır içi <span> kutuları ───────────────────────
   Kartların içi <a> altında span ile kurulur (geçerli HTML).
   Blok davranışı burada bir kez verilir; her kart aynı hizada durur. */
.tile__body, .tile__t, .tile__d,
.vcard__shot, .vcard__ph, .vcard__t, .vcard__c,
.vrow__shot, .vrow__t, .vrow__c,
.card__t, .card__d, .card__go,
.sug__t, .sug__d,
.hsearch__pop .sug > span { display: block; }
.vcard__meta > span:last-child,
.vrow > span:last-child { min-width: 0; }
.vrow__c, .card__go { display: flex; align-items: center; }
.sug > span:nth-child(2) { min-width: 0; }

/* ── 23. Yardımcılar ────────────────────────────────────── */
.is-hidden { display: none !important; }
.stack-16 > * + * { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .hdr, .ftr, .drawer, .palette, .share, .side { display: none !important; }
  body { background: #fff; }
}
