/* ==========================================================================
   Ücretsiz araçlar — /araclar, /araclar/{slug}
   app/Views/tools/*, assets/js/tools.js
   Sayfa kabuğu, karo, SEO/SSS: social.css (.smm, .smmtile, .smmseo).
   Aracın marka rengi: Social::brandStyle (--brand, --brand-btn, --brand-ink).
   Form alanı (.field__box) 64px, solda ikon karosu; aynı satırdaki buton da 64px (--tl-h).
   ========================================================================== */

.tl { --tl-h: 64px; --tl-gap: 20px; }
/* Renkli bant (social.css .smmband) aracın rengiyle; altındaki kutu bandın üstüne biner (.smmpanel) */
.tlband { padding-bottom: clamp(96px, 10vw, 128px); }
/* Logo karosu: kontrastı hesaplanmış marka zemini (açık renkli araçlarda koyu ikon) */
.tlband .smmband__logo { background: var(--brand-btn); color: var(--brand-ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }

/* ---------- Liste (/araclar) ---------- */
.tlpanel { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.tlgroup__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.01em; color: var(--text-strong); }
.tlgroup__title .icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent);
}
.tlgroup__count {
  margin-left: auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--surface-4);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-2);
}
/* Liste: her sayfa bir satır; masaüstünde iki sütun, yukarıdan aşağı */
.tlrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--tl-gap); margin: 0; padding: 0; list-style: none; }
.tlrows > li { display: flex; min-width: 0; }
.tlrow {
  display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; min-height: 76px; padding: 12px 14px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line-card)); border-radius: var(--r-lg);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 12%, var(--bg)) 0%, var(--bg) 60%);
  color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s;
}
.tlrow:hover { border-color: var(--brand); }
.tlrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tlrow__tile { flex: none; width: 48px; height: 48px; }
.tlrow__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.tlrow__name { overflow: hidden; font-size: var(--fs-md); font-weight: 800; line-height: 1.3; color: var(--text-strong); text-overflow: ellipsis; white-space: nowrap; }
.tlrow__sum { overflow: hidden; font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tlrow__go {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--surface-4); color: var(--muted); transition: background-color .2s, color .2s;
}
.tlrow:hover .tlrow__go { background: var(--brand-btn); color: var(--brand-ink); }
@media (max-width: 760px) {
  .tlrows { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Araç sayfası ---------- */
.tlpage { display: flex; flex-direction: column; gap: var(--tl-gap); }
.tlbox { display: flex; flex-direction: column; gap: 20px; border-top: 3px solid var(--brand); }
.tlnote { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); }
.tlnote:empty { display: none; }
.tlhint { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.tlhint:empty { display: none; }

/* Form: alanlar eşit sütunlarda */
.tlform { display: flex; flex-direction: column; gap: var(--tl-gap); margin: 0; }
.tlform .field { margin: 0; min-width: 0; }
.tlgrid { display: grid; gap: var(--tl-gap); align-items: end; }
.tlgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tlgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tlgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tlbtn { height: var(--tl-h); justify-content: center; border-radius: var(--r-lg); font-weight: 800; }
/* Alan: kalın etiket, 64px kutu, solda aracın renginde ikon karosu (theme.css .field__box > .icon:first-child).
   Kutu kenarlığıyla --tl-h: yanındaki buton ile aynı boy */
.tl .field__label { margin-bottom: 10px; font-size: var(--fs-md); font-weight: 700; color: var(--text-strong); }
.tl .field__box { box-sizing: border-box; height: var(--tl-h); padding: 0 18px; border-radius: var(--r-lg); }
.tl .field__box--area { height: auto; padding: 14px 18px; }
.tl .field__input { font-size: var(--fs-base); font-weight: 600; color: var(--text-strong); }
.tl .field__input::placeholder { font-weight: 500; }
.tl .field__box:has(> .icon:first-child) { padding-left: 74px; }
.tl .field__box:has(> .icon:first-child)::before {
  top: 7px; bottom: 7px; left: 7px; width: 48px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
}
.tl .field__box > .icon:first-child { left: 31px; color: var(--smm-hl-text, var(--accent)); }
/* Çok satırlı alan: karo üstte sabit */
.tl .field__box--area:has(> .icon:first-child)::before { bottom: auto; height: 48px; }
.tl .field__box--area > .icon:first-child { top: 31px; }
/* Açılır listede yalnızca sağdaki ok döner, karo ikonu değil */
.tl .field__box--select.admselect.is-open > .icon:first-child { transform: none; }
/* Etiket ve başlık ikonu: aracın renginin kontrastlı yazı tonunda */
.tl .field__label:has(> .field__ico) { display: flex; align-items: center; gap: 7px; }
.field__ico { flex: none; color: var(--smm-hl-text, var(--accent)); }
.tl .admselect__ikon { width: 18px; height: 18px; }
.tl .admselect__btn .admselect__ikon, .tl .admselect__opt[aria-selected="true"] .admselect__ikon { color: var(--smm-hl-text, var(--accent)); }
.tltext { resize: vertical; }

/* Seçenek grubu: eşit genişlikte düğmeler */
.tlseg-wrap { min-width: 0; margin: 0; padding: 0; border: 0; }
.tlseg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.tlseg--wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.tlseg__opt { position: relative; min-width: 0; }
.tlseg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tlseg__opt > span, .tlseg__opt > a {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 56px; padding: 0 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--bg);
  font-size: var(--fs-md); font-weight: 700; color: var(--text-2); text-align: center; text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tlseg__opt small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.tlseg__opt:hover > span, .tlseg__opt > a:hover { border-color: var(--line-strong); color: var(--text-strong); }
.tlseg__opt input:checked + span, .tlseg__opt > a[aria-current="page"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--text-strong); }
.tlseg__opt input:focus-visible + span, .tlseg__opt > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Sekmeler sayfa bağlantısı (indiriciler: her içerik türü ayrı sayfa) */
.tlseg--nav { margin: 0; padding: 0; list-style: none; }

/* Sonuç */
.tlres { display: flex; flex-direction: column; gap: var(--tl-gap); }
.tlres[hidden] { display: none; }
.tlstats { display: grid; gap: 12px; }
.tlstats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tlstats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tlstats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tlstat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--bg); }
.tlstat__label { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.tlstat__value { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; color: var(--text-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tlstat__note { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.tlstat__note:empty { display: none; }
.tlstat--main {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line-card));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--bg)), color-mix(in srgb, var(--brand) 6%, var(--bg)));
}
.tlstat--main .tlstat__value { font-size: var(--fs-3xl); }
[data-seviye="0"] { --tl-lv: var(--danger); }
[data-seviye="1"] { --tl-lv: var(--warn); }
[data-seviye="2"] { --tl-lv: var(--accent); }
[data-seviye="3"] { --tl-lv: var(--ok); }
.tlstat__note[data-seviye] { color: var(--tl-lv); }

/* Seviye ölçeği: 4 eşit dilim, işaretçi --pos */
.tlmeter { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.tlmeter__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
/* Dilimler her zaman kendi renginde soluk; seçili olan dolgun */
.tlmeter__seg {
  display: grid; place-items: center; min-height: 28px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; color: var(--text-2);
  background: color-mix(in srgb, var(--seg) 10%, var(--bg));
}
.tlmeter__seg:nth-child(1) { --seg: var(--danger); }
.tlmeter__seg:nth-child(2) { --seg: var(--warn); }
.tlmeter__seg:nth-child(3) { --seg: var(--accent); }
.tlmeter__seg:nth-child(4) { --seg: var(--ok); }
.tlmeter[data-seviye="0"] .tlmeter__seg:nth-child(1),
.tlmeter[data-seviye="1"] .tlmeter__seg:nth-child(2),
.tlmeter[data-seviye="2"] .tlmeter__seg:nth-child(3),
.tlmeter[data-seviye="3"] .tlmeter__seg:nth-child(4) { background: color-mix(in srgb, var(--tl-lv) 22%, var(--bg)); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--tl-lv); }
.tlmeter__pin { position: absolute; top: 0; left: clamp(6px, var(--pos, 0%), calc(100% - 6px)); width: 12px; height: 12px; transform: translateX(-50%); border-radius: var(--r-pill); background: var(--tl-lv, var(--accent)); box-shadow: 0 0 0 3px var(--surface); transition: left .3s ease; }
.tlmeter__ticks { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Kopyalanabilir satırlar (şık yazı) */
.tlcopylist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlcopy {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-card); border-radius: var(--r-md); background: var(--bg);
}
.tlcopy__name { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
/* Masaüstü: yan yana iki satır; ad sütunu dar karta göre kısalır */
@media (min-width: 900px) {
  .tlcopylist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tlcopy { grid-template-columns: 116px minmax(0, 1fr) auto; }
}
.tlcopy__text { font-size: var(--fs-lg); color: var(--text-strong); overflow-wrap: anywhere; }
.tlcopybtn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-mid); border-radius: var(--r-md); background: var(--surface);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tlcopybtn:hover { border-color: var(--brand); background: var(--brand-btn); color: var(--brand-ink); }
.tlstat .tlcopybtn { align-self: flex-start; margin-top: 4px; }

/* Karakter sayacı */
.tlprogress { display: flex; flex-direction: column; gap: 8px; }
.tlprogress__bar { display: block; height: 10px; border-radius: var(--r-pill); background: var(--surface-4); overflow: hidden; }
.tlprogress__bar > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); transition: width .2s ease, background-color .2s; }
.tlprogress[data-durum="yakin"] .tlprogress__bar > span { background: var(--warn); }
.tlprogress[data-durum="asim"] .tlprogress__bar > span { background: var(--danger); }
.tlprogress__text { font-size: var(--fs-md); font-weight: 700; color: var(--text-2); }
.tlprogress[data-durum="asim"] .tlprogress__text { color: var(--danger); }
.tlwarn { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlwarn:empty { display: none; }
.tlwarn__item { padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); background: var(--bg); border-left: 3px solid var(--accent); overflow-wrap: anywhere; }
.tlwarn__item--err { border-left-color: var(--danger); color: var(--text-strong); }

/* Eylem satırı: eşit genişlikte butonlar */
.tlactions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.tlgrid--search { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }

/* Hashtag çipleri: seçili olan aracın renginde dolgun */
.tltags { display: flex; flex-direction: column; gap: 16px; }
.tltags__group { padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--bg); }
.tltags__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); }
.tltags__title .icon { color: var(--brand); }
.tltags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tltag {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-mid); border-radius: var(--r-pill); background: var(--surface);
  font: inherit; font-size: var(--fs-md); font-weight: 700; color: var(--text-2); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tltag:hover { border-color: var(--brand); color: var(--text-strong); }
.tltag[aria-pressed="true"] { border-color: var(--brand-btn); background: var(--brand-btn); color: var(--brand-ink); }
.tltag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Anahtar kelime grupları */
.tlkwgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tlkw { display: flex; flex-direction: column; border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line-card)); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.tlkw__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, var(--bg)), var(--bg));
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line-card));
}
.tlkw__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); }
.tlkw__title .icon { color: var(--brand); }
.tlkw__list { display: flex; flex-direction: column; margin: 0; padding: 6px; list-style: none; }
.tlkw__item {
  display: block; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none;
  font: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--text-2); text-align: left; cursor: pointer;
}
.tlkw__item:hover, .tlkw__item:focus-visible { background: color-mix(in srgb, var(--brand) 12%, var(--bg)); color: var(--text-strong); outline: none; }

/* ---------- Çark çevir: solda panel, sağda çark (dar ekranda çark üstte) ---------- */
.tlwheel { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tlwheel__panel { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r-xl); background: var(--bg); }
.tlwheel__tip {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0; padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, var(--surface)), var(--surface));
  font-size: var(--fs-md); font-weight: 700; color: var(--text-strong); text-align: center;
}
.tlwheel__tipicon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--brand-btn); color: var(--brand-ink); }
.tlwheel__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-md); color: var(--text-2); }
.tlwheel__meta strong { color: var(--text-strong); }
.tlwheel__add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.tlwheel__add[hidden], .tlwheel__bulk[hidden] { display: none; }
.tlwheel__add .tlbtn { padding: 0 18px; }
.tlwheel__bulk { display: flex; flex-direction: column; gap: 10px; }
.tlwheel__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: wl; }
.tlwheel__item {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
  border: 1px solid var(--line-card); border-radius: var(--r-md); background: var(--surface);
}
.tlwheel__dot { width: 14px; height: 14px; border-radius: var(--r-pill); }
.tlwheel__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); font-weight: 600; color: var(--text-strong); }
.tlwheel__del {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s;
}
.tlwheel__del:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tlwheel__del:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tlwheel__opts { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-card); }
.is-spinning .tlwheel__panel { opacity: .6; pointer-events: none; }

/* Anahtar (switch) */
.tlswitch { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-size: var(--fs-md); font-weight: 600; color: var(--text-2); cursor: pointer; }
.tlswitch__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tlswitch__track { position: relative; flex: none; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--surface-5); border: 1px solid var(--line-mid); transition: background-color .2s, border-color .2s; }
.tlswitch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--text-2); transition: transform .2s, background-color .2s; }
.tlswitch__input:checked + .tlswitch__track { background: var(--brand-btn); border-color: var(--brand-btn); }
.tlswitch__input:checked + .tlswitch__track .tlswitch__knob { transform: translateX(20px); background: var(--brand-ink); }
.tlswitch__input:focus-visible + .tlswitch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Çark */
.tlwheel__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
/* Üst boşluk göstergeye yer; çark (canvas) kendisi kare */
.tlwheel__box { position: relative; width: min(100%, 560px); padding-top: 14px; }
.tlwheel__canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
/* Gösterge: saat 12'de, çarka doğru; beyaz kenarlı marka renginde */
.tlwheel__pointer { position: absolute; top: 0; left: 50%; z-index: 2; width: 38px; height: 46px; transform: translateX(-50%); }
.tlwheel__pointer::before, .tlwheel__pointer::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 100%, 0 18%, 0 0, 100% 0, 100% 18%); }
.tlwheel__pointer::before { background: #fff; }
.tlwheel__pointer::after { inset: 4px 5px 8px; background: var(--brand-btn); }
.tlwheel__spin {
  position: absolute; top: calc(50% + 7px); left: 50%; z-index: 2; display: grid; place-items: center;
  width: 19%; aspect-ratio: 1; min-width: 56px; padding: 0; transform: translate(-50%, -50%);
  border: 6px solid #fff; border-radius: var(--r-pill); background: var(--brand-btn); color: var(--brand-ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .15s;
}
.tlwheel__spin:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.05); }
.tlwheel__spin:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tlwheel__spin:disabled { cursor: not-allowed; filter: grayscale(.6); }
.tlwheel__result {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(100%, 560px); padding: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line-card)); border-radius: var(--r-xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--bg)), var(--bg));
  text-align: center;
}
.tlwheel__result[hidden] { display: none; }
.tlwheel__resultlabel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.tlwheel__resultlabel .icon { color: var(--star); }
.tlwheel__winner { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.2; color: var(--text-strong); overflow-wrap: anywhere; }
.tlwheel__result .tlactions { width: 100%; }
@media (max-width: 899px) {
  .tlwheel { grid-template-columns: minmax(0, 1fr); }
  .tlwheel__stage { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .tlwheel__spin, .tlswitch__track, .tlswitch__knob { transition: none; }
}

/* ---------- Yazı tura, zar, rastgele sayı ---------- */
.tlrand { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tlrand__form { width: min(100%, 560px); }
.tlrand__form--wide { width: 100%; }
.tlrand__big { margin: 0; font-size: var(--fs-display); font-weight: 800; line-height: 1.1; color: var(--text-strong); text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tlrand .tlstats { width: min(100%, 560px); }
.tlrand__opts { display: flex; flex-wrap: wrap; gap: 10px 24px; }

/* Para: iki yüz, Y ekseninde döner (yazı 0°, tura 180°) */
.tlcoin { width: 168px; height: 168px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; border-radius: var(--r-pill); }
.tlcoin:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.tlcoin__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.tlcoin__face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--r-pill); backface-visibility: hidden;
  font-size: var(--fs-2xl); font-weight: 800; letter-spacing: .06em; color: #4A3200;
  background: radial-gradient(circle at 35% 30%, #FFE9A3, #E9B93A 55%, #B98510);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .35), inset 0 0 0 12px rgba(120, 80, 0, .35);
}
.tlcoin__face--tura { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #F2F4F7, #C4CAD3 55%, #8C95A3); color: #222833; }

/* Zarlar: keçe kaplı tabla; 6 yüzlü zar 3B küp (yüzler uzayda), diğerleri döner karo.
   Atış animasyonu tools.js'de (Web Animations): düşüş + iki sekme, yuvarlanma, gölge. */
.tldice-stage {
  --zar: 72px;
  position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 640px); min-height: 230px; padding: 70px 20px 34px;
  border: 10px solid #5B3A1E; border-radius: var(--r-2xl); cursor: pointer; perspective: 900px;
  background: radial-gradient(ellipse at 50% 40%, #2E7D55 0%, #1B5A3B 60%, #123F29 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 12px 30px rgba(0, 0, 0, .45), 0 10px 24px rgba(0, 0, 0, .3);
}
.tldice-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.tldice { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 26px; }
.tlroll { position: relative; display: block; width: var(--zar); height: var(--zar); }
.tlroll__body { position: absolute; inset: 0; display: block; transform-style: preserve-3d; }
.tlroll__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -12px; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); opacity: .55;
}
/* Bakış açısı: üst ve yan yüz de görünsün */
.tlcube-view { display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(24deg); }
.tlcube { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.tlcube__face {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center;
  padding: 11px; border-radius: var(--r-lg); backface-visibility: hidden;
  background: radial-gradient(circle at 30% 25%, #FFFFFF, #ECEFF4 65%, #D5DAE2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 -4px 8px rgba(0, 0, 0, .08);
}
.tlcube__face--1 { transform: translateZ(calc(var(--zar) / 2)); }
.tlcube__face--6 { transform: rotateY(180deg) translateZ(calc(var(--zar) / 2)); }
.tlcube__face--3 { transform: rotateY(90deg) translateZ(calc(var(--zar) / 2)); }
.tlcube__face--4 { transform: rotateY(-90deg) translateZ(calc(var(--zar) / 2)); }
.tlcube__face--2 { transform: rotateX(90deg) translateZ(calc(var(--zar) / 2)); }
.tlcube__face--5 { transform: rotateX(-90deg) translateZ(calc(var(--zar) / 2)); }
.tlcube__face i { width: 12px; height: 12px; border-radius: var(--r-pill); }
.tlcube__face i.is-on { background: radial-gradient(circle at 35% 35%, #3A4150, #11141A); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }
.tlcube__face--1 i.is-on { width: 16px; height: 16px; background: radial-gradient(circle at 35% 35%, #E5484D, #A3121A); }
/* d4–d20: döner karo */
.tldie {
  display: grid; grid-template-rows: 1fr auto; place-items: center; width: 100%; height: 100%; padding: 10px 0 6px; border-radius: var(--r-lg);
  background: radial-gradient(circle at 30% 25%, #FFFFFF, #ECEFF4 65%, #D5DAE2); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .3);
}
.tldie b { font-size: var(--fs-2xl); font-weight: 800; color: #1B1F27; line-height: 1; }
.tldie small { font-size: var(--fs-2xs); font-weight: 800; color: #5A6270; }
@media (max-width: 640px) {
  .tldice-stage { --zar: 58px; min-height: 190px; padding: 56px 12px 28px; border-width: 8px; }
  .tlcube__face { padding: 9px; border-radius: var(--r-md); }
  .tlcube__face i { width: 10px; height: 10px; }
  .tlcube__face--1 i.is-on { width: 13px; height: 13px; }
}

/* Geçmiş ve sayı listesi */
.tlhist { width: min(100%, 560px); }
.tlhist__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tlhist__title { margin: 0; font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); }
.tlhist__list, .tlnums { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tlhist__chip, .tlnums li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-card); background: var(--bg); font-size: var(--fs-sm); font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.tlhist__chip--a { border-color: color-mix(in srgb, #E9B93A 55%, var(--line-card)); background: color-mix(in srgb, #E9B93A 14%, var(--bg)); }
.tlhist__chip--b { border-color: color-mix(in srgb, #8C95A3 55%, var(--line-card)); }
.tlnums li { min-height: 40px; font-size: var(--fs-md); }

/* ---------- Emoji ---------- */
.tlemoji { display: flex; flex-direction: column; gap: 14px; }
.tlemoji__bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--surface); }
.tlemoji__search { flex: 1 1 280px; margin: 0; }
.tlemoji__tones { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.tlemoji__tone { position: relative; }
.tlemoji__tone input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tlemoji__tone > span { display: block; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--ton); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-mid); }
.tlemoji__tone input:checked + span { box-shadow: 0 0 0 2px var(--brand-btn); }
.tlemoji__tone input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.tlemoji__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tlemoji__nav[hidden] { display: none; }
.tlemoji__navlink { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-card); border-radius: var(--r-pill); background: var(--bg); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); text-decoration: none; }
.tlemoji__navlink:hover { border-color: var(--brand); color: var(--text-strong); }
.tlemoji__group { content-visibility: auto; contain-intrinsic-size: auto 600px; scroll-margin-top: 90px; }
.tlemoji__group[hidden] { display: none; }
.tlemoji__title { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); }
.tlemoji__title small { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.tlemoji__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.tlem {
  display: grid; place-items: center; height: 52px; padding: 0; border: 1px solid transparent; border-radius: var(--r-md); background: var(--bg);
  font-size: var(--fs-3xl); line-height: 1; cursor: pointer; transition: background-color .12s, border-color .12s, transform .12s;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.tlem[hidden] { display: none; }
.tlem:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--bg)); transform: scale(1.08); }
.tlem:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tlemoji__empty { margin: 0; padding: 24px; text-align: center; color: var(--muted); }
.tlemoji__empty[hidden] { display: none; }
.tlemoji__tray {
  position: sticky; bottom: 8px; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line-card)); border-radius: var(--r-lg); background: var(--surface);
}
.tlemoji__trayinput { box-sizing: border-box; min-width: 0; height: var(--tl-h); padding: 0 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-xl); color: var(--text-strong); }
@media (max-width: 640px) {
  .tlemoji__grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .tlem { height: 46px; font-size: var(--fs-2xl); }
  .tlemoji__tray { grid-template-columns: minmax(0, 1fr) auto; }
  .tlemoji__tray [data-em-copy] { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .tlcoin__in { transition: none; }
  .tlem { transition: none; }
}

/* ---------- Kazanç hesaplayıcı ---------- */
.tlkz__yt { display: flex; flex-direction: column; gap: 12px; }
.tlkz__yt[hidden] { display: none; }
.tlkz__channel {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line-card)); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, var(--bg)), var(--bg));
}
.tlkz__channel[hidden] { display: none; }
.tlkz__thumb { flex: none; width: 56px; height: 56px; border-radius: var(--r-pill); object-fit: cover; background: var(--surface-5); }
.tlkz__chname { display: block; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); text-decoration: none; overflow-wrap: anywhere; }
.tlkz__chname:hover { text-decoration: underline; text-underline-offset: 3px; }
.tlkz__chmeta { font-size: var(--fs-sm); color: var(--muted); }

/* Gönderi tablosu: her hücrenin üstünde küçük etiket; satırlar eşit sütunlu */
.tlposts { display: flex; flex-direction: column; gap: 12px; }
.tlposts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.tlposts__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); }
.tlposts__grid { display: flex; flex-direction: column; gap: 8px; }
.tlposts__row {
  display: grid; grid-template-columns: 32px repeat(var(--kol, 3), minmax(0, 1fr)) 36px; align-items: end; gap: 14px;
  padding: 12px 12px 12px 14px; border: 1px solid var(--line-card); border-radius: var(--r-md); background: var(--bg);
}
/* YouTube: Shorts kutucuğu kendi genişliğinde, giriş sütunu kadar yer kaplamasın */
.tlposts__row--yt { grid-template-columns: 32px repeat(var(--kol, 3), minmax(0, 1fr)) auto 36px; }
.tlposts__no { align-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--brand) 18%, var(--surface)); font-size: var(--fs-sm); font-weight: 800; color: var(--text-strong); }
.tlposts__cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tlposts__lbl { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.tlposts__lbl .icon { color: var(--smm-hl-text, var(--accent)); }
/* box-sizing: dolgu genişliğe eklenip kutu hücreden taşmasın (komşusuna yapışırdı) */
.tlposts__input {
  box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface);
  font: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums;
}
.tlposts__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.tlposts__short { display: inline-flex; align-items: center; gap: 6px; height: 40px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); cursor: pointer; }
.tlposts__short input { width: 18px; height: 18px; accent-color: var(--brand-btn); }
.tlposts__del { display: grid; place-items: center; width: 36px; height: 40px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; }
.tlposts__del:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tlposts__del:focus-visible { outline: 2px solid var(--accent); }
.tlposts__paste { display: flex; flex-direction: column; gap: 10px; }
.tlposts__paste[hidden] { display: none; }

.tlres__title { margin: 0; font-size: var(--fs-h3); font-weight: 800; color: var(--text-strong); }

/* İzlenme çubukları */
.tlbars { padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--bg); }
.tlbars__title { margin: 0 0 12px; font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); }
.tlbars__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlbars__item { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.tlbars__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tlbars__track { height: 12px; border-radius: var(--r-pill); background: var(--surface-4); overflow: hidden; }
.tlbars__bar { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--brand) 55%, var(--surface-5)); }
.tlbars__item.is-best .tlbars__bar { background: var(--brand-btn); }
.tlbars__item.is-best .tlbars__label, .tlbars__item.is-best .tlbars__value { color: var(--text-strong); font-weight: 800; }
.tlbars__value { font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Kazanç kartı */
.tlearn {
  padding: 18px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line-card)); border-radius: var(--r-xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 14%, var(--bg)), var(--bg) 70%);
}
.tlearn__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); }
.tlearn__title .icon { color: var(--ok); }
.tlearn__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tlearn__item { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line-card); }
.tlearn__item:first-child { border-top: 0; }
.tlearn__label { font-size: var(--fs-md); color: var(--text-2); }
.tlearn__value { font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.tlearn__item.is-total .tlearn__value { font-size: var(--fs-xl); color: var(--ok); }
.tlearn__item.is-note .tlearn__value { font-size: var(--fs-sm); font-weight: 600; color: var(--warn); }
.tlearn__note { margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }

@media (max-width: 640px) {
  .tlposts__row { grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 36px; }
  .tlposts__row > .tlposts__cell:nth-of-type(n+3), .tlposts__row > .tlposts__short { grid-column: 2 / span 1; }
  .tlbars__item { grid-template-columns: minmax(0, 1fr) auto; }
  .tlbars__track { grid-column: 1 / -1; grid-row: 2; }
}

/* Büyüme */
.tlmore { border: 1px solid var(--line-card); border-radius: var(--r-md); background: var(--bg); }
.tlmore > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font-size: var(--fs-md); font-weight: 700; color: var(--text-2); }
.tlmore > summary:hover { color: var(--text-strong); }
.tlmore[open] > summary { border-bottom: 1px solid var(--line-card); }
.tlmore__body { padding: 16px; }
.tlmore > .tlhint { padding: 0 16px 16px; }
.tltable-wrap { overflow-x: auto; border: 1px solid var(--line-card); border-radius: var(--r-lg); }
.tltable { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tltable th, .tltable td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--line-card); }
.tltable thead th { border-top: 0; background: var(--bg); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.tltable tbody th { font-weight: 600; color: var(--text-2); }
.tltable td { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.tltable .is-num { text-align: right; }
.tltable tr.is-hedef th, .tltable tr.is-hedef td { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--text-strong); font-weight: 700; }

/* Hassasiyet: iki taraf + yer değiştir */
.tlswap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--tl-gap); }
.tlswap__side { display: flex; flex-direction: column; gap: var(--tl-gap); min-width: 0; }
.tlswap__btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-mid); border-radius: var(--r-pill); background: var(--bg); color: var(--text-2); cursor: pointer;
  transition: border-color .15s, color .15s, transform .25s;
}
.tlswap__btn:hover { border-color: var(--brand); color: var(--text-strong); transform: rotate(180deg); }

/* Kullanıcı adı önerileri */
.tlnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlname {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-card); border-radius: var(--r-md); background: var(--bg);
  font: inherit; font-size: var(--fs-md); font-weight: 700; color: var(--text-strong); cursor: pointer; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.tlname span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlname .icon { flex: none; color: var(--muted); }
.tlname:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }

/* Takımlar ve kura */
.tlteams { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; }
.tlteam { padding: 16px; border: 1px solid var(--line-card); border-radius: var(--r-lg); background: var(--bg); }
.tlteam__title { margin: 0 0 10px; font-size: var(--fs-md); font-weight: 800; color: var(--text-strong); }
.tlteam__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; font-size: var(--fs-md); color: var(--text-2); }
.tldraw { padding-top: 20px; border-top: 1px solid var(--line-card); }
.tldraw__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); }
.tldraw__title .icon { color: var(--accent); }
.tlwinners { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: k; }
.tlwinners li {
  counter-increment: k; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px;
  border: 1px solid color-mix(in srgb, var(--star) 50%, var(--line-card)); border-radius: var(--r-pill); background: color-mix(in srgb, var(--star) 12%, var(--bg));
  font-size: var(--fs-md); font-weight: 700; color: var(--text-strong);
}
.tlwinners li::before { content: counter(k); display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--star); color: color-mix(in srgb, var(--star) 15%, #000); font-size: var(--fs-sm); font-weight: 800; }

/* Hizmet yönlendirmesi: aracın renginde tonlu şerit */
.tlcta {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line-card)); border-radius: var(--r-xl);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, var(--surface)), var(--surface) 75%);
}
/* Takipçi ikonu + köşede beğeni rozeti: hizmetin ne olduğu ilk bakışta anlaşılsın */
.tlcta__tile { position: relative; overflow: visible; }
.tlcta__badge {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--danger-fill); color: #fff; box-shadow: 0 0 0 3px var(--surface);
}
.tlcta__text { flex: 1; margin: 0; font-size: var(--fs-md); line-height: 1.5; font-weight: 600; color: var(--text-strong); }
.tlcta__btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--brand-btn); color: var(--brand-ink); font-size: var(--fs-md); font-weight: 800; text-decoration: none;
  transition: filter .2s;
}
.tlcta__btn:hover { color: var(--brand-ink); filter: brightness(1.08); }
.tlcta__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sosyal medya hizmetleri (social.css .smmrow; her satır kendi platform renginde) */
.tlsvc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tlsvc__head .smmsec__title { margin: 0; }
.tlsvc__all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: var(--fs-md); font-weight: 700; color: var(--accent); text-decoration: none; }
.tlsvc__all:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Vurgu değişkenleri .smm'de çözülür; satırın kendi platform rengi için burada yeniden */
.tlsvc .smmrow { --smm-hl: var(--brand-btn); --smm-hl-ink: var(--brand-ink); --smm-hl-text: var(--brand-text-d, var(--text-strong)); }
:root[data-theme="light"] .tlsvc .smmrow { --smm-hl-text: var(--brand-text-l, var(--text-strong)); }
.tl .smmseo { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Aynı aracın diğer sayfaları (show.php) ---------- */
.tlrel { display: flex; flex-direction: column; gap: 12px; }
.tlrel__title { margin: 0; font-size: var(--fs-lg); font-weight: 800; color: var(--text-strong); }
.tlrel__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlrel__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-soft); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.tlrel__link:hover { border-color: var(--brand); color: var(--text-strong); }
.tlrel__link[aria-current="page"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--text-strong); }

/* ---------- İndiriciler (_indir.php) ---------- */
.tldl__paste {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s;
}
.tldl__paste:hover { border-color: var(--brand); color: var(--text-strong); }
.tldl__paste[hidden] { display: none; }
.tlhint.tldl__err { color: var(--danger); font-weight: 600; }
.tldl__author { flex-wrap: wrap; }
.tldl__author > .min-w-0 { flex: 1 1 180px; }
.tldl__author .tlkz__thumb[hidden], .tldl__all[hidden] { display: none; }
.tldl__all { flex: none; height: var(--tl-h); }
.tldl__caption {
  display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  font-size: var(--fs-md); line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere;
}
.tldl__caption:empty { display: none; }

/* Öne çıkanlar: yuvarlak kapaklar */
.tldl__hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tldl__hl[hidden] { display: none; }
.tldl__hlbtn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 12px 6px;
  border: 1px solid transparent; border-radius: var(--r-lg); background: none; color: var(--text-strong); font: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.tldl__hlbtn:hover { background: var(--surface); }
.tldl__hlbtn[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--bg)); }
.tldl__hlimg { width: 72px; height: 72px; border-radius: var(--r-pill); object-fit: cover; background: var(--surface-5); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.tldl__hlname { max-width: 100%; overflow: hidden; font-size: var(--fs-sm); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tldl__hlcount { font-size: var(--fs-xs); color: var(--muted); }

/* İçerik kartları: önizleme + indirme seçenekleri */
.tldl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--tl-gap); margin: 0; padding: 0; list-style: none; }
.tldl__grid:empty { display: none; }
.tldl__card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-card); border-radius: var(--r-xl); background: var(--bg); overflow: hidden; }
.tldl__media {
  position: relative; display: grid; place-items: center; aspect-ratio: var(--ar, 4 / 5); max-height: 440px;
  background: var(--surface-4); color: var(--muted);
}
.tldl__media img { width: 100%; height: 100%; object-fit: cover; }
.tldl__badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pill); background: var(--overlay-bg); color: var(--text-strong); font-size: var(--fs-xs); font-weight: 700;
}
.tldl__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); align-content: start; gap: 8px; padding: 14px; }
.tldl__opt {
  position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 8px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); color: var(--text-strong);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; overflow: hidden; transition: border-color .2s, background-color .2s;
}
.tldl__opt:hover { border-color: var(--brand); }
.tldl__opt > .icon { flex: none; color: var(--smm-hl-text, var(--accent)); }
.tldl__optt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tldl__optl { font-size: var(--fs-md); font-weight: 800; }
.tldl__optn { overflow: hidden; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tldl__opt--main { grid-column: 1 / -1; border-color: var(--brand-btn); background: var(--brand-btn); color: var(--brand-ink); }
.tldl__opt--main:hover { border-color: var(--brand-ink); }
.tldl__opt--main > .icon, .tldl__opt--main .tldl__optn { color: inherit; }
.tldl__bar { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: color-mix(in srgb, currentColor 18%, transparent); opacity: 0; }
.tldl__bar > span { display: block; width: 0; height: 100%; background: var(--ok); transition: width .3s ease; }
.tldl__opt.is-busy { cursor: progress; }
.tldl__opt.is-busy .tldl__bar { opacity: 1; }
.tldl__opt.is-ready:not(.tldl__opt--main) > .icon { color: var(--ok); }
/* Tek içerik: önizleme solda, seçenekler sağda */
.tldl__grid--tek { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .tldl__grid--tek .tldl__card { flex-direction: row; }
  .tldl__grid--tek .tldl__media { flex: 0 0 min(40%, 320px); align-self: flex-start; max-height: 480px; }
  .tldl__grid--tek .tldl__opts { flex: 1; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 18px; }
}

/* ---------- Dar ekran ---------- */
@media (max-width: 899px) {
  .tlgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlstats--4, .tlstats--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlstats--5 > :first-child { grid-column: 1 / -1; }
  .tlteams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tlgrid--2, .tlgrid--3, .tlgrid--4, .tlgrid--search, .tlstats--3 { grid-template-columns: minmax(0, 1fr); }
  .tlactions { grid-auto-flow: row; }
  .tlgrid .field__label[aria-hidden="true"] { display: none; }
  .tlseg { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .tlseg--wrap, .tldl .tlseg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tldl__all { flex-basis: 100%; }
  .tlswap { grid-template-columns: minmax(0, 1fr); }
  .tlswap__btn { justify-self: center; transform: rotate(90deg); }
  .tlswap__btn:hover { transform: rotate(270deg); }
  .tlcopy { grid-template-columns: minmax(0, 1fr) auto; }
  .tlcopy__name { grid-column: 1 / -1; }
  .tlteams { grid-template-columns: minmax(0, 1fr); }
  .tlcta { flex-direction: column; align-items: stretch; }
  .tlcta__btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tlrow, .tlrow__go, .tlswap__btn, .tlmeter__pin, .tlprogress__bar > span, .tldl__bar > span, .tldl__opt, .tldl__hlbtn, .tldl__paste { transition: none; }
}
