/* Filmbol — Forum İstatistikleri (stats.php, şablon 'stats' FBT v3) — 2026-10-21
   Forumun panel dili (fb_istek.css ile aynı): .thead gradyan başlık + 12px köşe + Rajdhani başlıklar + Roboto metin.
   Renkler tema değişkenlerinden; gece modu html.night-mode ile otomatik. Grafikler yalnız CSS (JS yok). */
.fbst {
	--fbst-radius: 12px;
	--fbst-card: var(--trow-bg, #fff);
	--fbst-tile: var(--body-bg, #f8f8fb);
	--fbst-line: var(--default-border-color, #eee);
	--fbst-text: var(--default-color, #52536d);
	--fbst-head: var(--default-link-color, #3e3f5e);
	--fbst-dim: #6b6e86;
	--fbst-accent: var(--thead-first-bg, #005ea7);
	--fbst-accent2: var(--thead-second-bg, #003965);
	--fbst-lamp: #F88A0E;
	--fbst-bar: #1f6fb8;
	--fbst-track: rgba(62, 63, 94, .09);
	--fbst-ok: #1f9d6b;
	--fbst-link: #005ea7;
	--fbst-chip: rgba(0, 94, 167, .08);
	--fbst-hover: rgba(0, 94, 167, .06);
	color: var(--fbst-text);
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 var(--default-margin, 1rem);
}
.night-mode .fbst {
	--fbst-tile: #181e2c;
	--fbst-text: #c9cede;
	--fbst-head: #eef0f7;
	--fbst-dim: #8f96ad;
	--fbst-bar: #4d9be6;
	--fbst-track: rgba(255, 255, 255, .08);
	--fbst-ok: #5fe0aa;
	--fbst-link: #7fb8ff;
	--fbst-chip: rgba(127, 184, 255, .1);
	--fbst-hover: rgba(255, 255, 255, .05);
}
.fbst *, .fbst *::before, .fbst *::after { box-sizing: border-box; }
.fbst h1, .fbst h2, .fbst h3, .fbst p, .fbst ul, .fbst ol, .fbst dl, .fbst dd, .fbst figure { margin: 0; padding: 0; }
.fbst ul, .fbst ol { list-style: none; }
.fbst a { color: var(--fbst-link); text-decoration: none; }
.fbst a:hover { text-decoration: underline; }
.fbst a:focus-visible { outline: 2px solid var(--fbst-lamp); outline-offset: 2px; border-radius: 4px; }
.fbst small { font-size: 12px; font-weight: 400; color: var(--fbst-dim); }
.fbst .fbst-dim { color: var(--fbst-dim); font-weight: 400; }
/* Sıfırlama kuralı (.fbst ul/h1/dl: 0,1,1) bileşen boşluklarını ezmesin */
.fbst .fbst-hero__title { margin-bottom: 6px; }
.fbst .fbst-kpis { margin-bottom: 16px; }
.fbst .fbst-mini--top { margin-top: 16px; }
.fbst-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Üst şerit ─────────────────────────────────────────────── */
.fbst-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	padding: 24px 26px; border-radius: var(--fbst-radius); margin-bottom: 16px; color: #fff;
	background: linear-gradient(120deg, var(--fbst-accent), var(--fbst-accent2));
	position: relative; overflow: hidden;
}
.fbst-hero::after {
	content: ""; position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.fbst-hero__text { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.fbst-hero__title { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.15; color: #fff; }
.fbst-hero__title i { margin-right: 6px; color: var(--fbst-lamp); }
.fbst-hero__sub { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 560px; }
.fbst-hero__big {
	position: relative; z-index: 1; display: flex; align-items: center; gap: 14px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 18px;
}
.fbst-hero__num { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 52px; font-weight: 700; line-height: .95; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.fbst-hero__num small { font-size: 22px; font-weight: 700; color: var(--fbst-lamp); margin-left: 4px; }
.fbst-hero__label { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.2; }
.fbst-hero__label span { display: block; font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .78); margin-top: 3px; }

/* ── Özet kutucukları ─────────────────────────────────────── */
.fbst-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fbst-kpi { min-width: 0; }
.fbst-kpi { background: var(--fbst-card); border: 1px solid var(--fbst-line); border-radius: var(--fbst-radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.fbst-kpi, .fbst-kpi--link > a {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 14px;
}
.fbst-kpi--link { display: block; padding: 0; }
.fbst-kpi--link > a { height: 100%; color: inherit; border-radius: inherit; }
.fbst-kpi--link > a:hover { text-decoration: none; background: var(--fbst-hover); }
.fbst-kpi i {
	grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--fbst-chip); color: var(--fbst-link); font-size: 16px;
}
.fbst-kpi__num { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 26px; font-weight: 700; line-height: 1; color: var(--fbst-head); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fbst-kpi__label { font-weight: 500; color: var(--fbst-head); font-size: 13px; line-height: 1.3; }
.fbst-kpi__sub { font-size: 12px; color: var(--fbst-dim); line-height: 1.3; overflow-wrap: anywhere; }

/* ── Yerleşim + kart ─────────────────────────────────────── */
.fbst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.fbst-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fbst-grid > .fbst-card { margin-bottom: 0; }
.fbst-card { min-width: 0; background: var(--fbst-card); border-radius: var(--fbst-radius); overflow: hidden; border: 1px solid var(--fbst-line); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); margin-bottom: 16px; }
.fbst-card__head.thead { display: flex; align-items: center; gap: 12px; border-radius: var(--fbst-radius) var(--fbst-radius) 0 0; padding: 13px 18px; font-family: 'Rajdhani', 'Roboto', sans-serif; }
.fbst-card__head h2 { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.2; color: #fff; border: 0; background: none; }
.fbst-card__head div { min-width: 0; }
.fbst-card__head div > span { display: block; font-family: 'Roboto', sans-serif; font-size: 12px; color: rgba(255, 255, 255, .78); margin-top: 1px; }
.fbst-card__icon { font-size: 16px; width: 20px; text-align: center; color: rgba(255, 255, 255, .92); flex: 0 0 auto; }
.fbst-card__body { padding: 16px 18px 18px; }
.fbst-sub { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 15px; font-weight: 700; color: var(--fbst-head); margin: 18px 0 8px !important; text-transform: none; }
.fbst-cols > div > .fbst-sub:first-child { margin-top: 4px !important; }
.fbst-empty { color: var(--fbst-dim); font-style: italic; padding: 6px 0; }

/* ── Çubuklar ─────────────────────────────────────────────── */
.fbst-bars { display: flex; flex-direction: column; gap: 9px; }
.fbst-bar { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 7.6em; align-items: center; gap: 12px; }
.fbst-bar__label { font-weight: 500; color: var(--fbst-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbst-bar__track { display: block; height: 10px; border-radius: 4px; background: var(--fbst-track); overflow: hidden; }
.fbst-bar__fill { display: block; height: 100%; border-radius: 4px; background: var(--fbst-bar); }
.fbst-bar__val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fbst-bar__val b { color: var(--fbst-head); font-weight: 700; }
.fbst-bar__val small { display: inline-block; min-width: 3.2em; margin-left: 4px; }

/* ── Etiketler / küçük sayılar ───────────────────────────── */
.fbst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fbst-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--fbst-chip); color: var(--fbst-head); font-size: 13px; }
.fbst-chip i { color: var(--fbst-link); font-size: 12px; }
.fbst-chip b { font-variant-numeric: tabular-nums; }
.fbst-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fbst-mini > div { background: var(--fbst-tile); border: 1px solid var(--fbst-line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.fbst-mini dt { font-size: 12px; color: var(--fbst-dim); line-height: 1.3; }
.fbst-mini dd { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 20px; font-weight: 700; color: var(--fbst-head); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fbst-mini dd small { font-family: 'Roboto', sans-serif; display: block; font-size: 11.5px; line-height: 1.3; }

/* ── Tablo (yeni eklenenler) ─────────────────────────────── */
.fbst-tablewrap { overflow-x: auto; margin-bottom: 6px; }
.fbst-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fbst-table th, .fbst-table td { padding: 8px 10px; border-bottom: 1px solid var(--fbst-line); text-align: right; white-space: nowrap; }
.fbst-table thead th { font-size: 12px; font-weight: 500; color: var(--fbst-dim); text-transform: none; background: none; }
.fbst-table tbody th { text-align: left; font-weight: 500; color: var(--fbst-head); }
.fbst-table td { font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 18px; font-weight: 700; color: var(--fbst-head); }
.fbst-table tbody tr:last-child > * { border-bottom: 0; }
.fbst-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }

/* ── Listeler (afişli) ───────────────────────────────────── */
.fbst-list { display: flex; flex-direction: column; }
.fbst-item + .fbst-item { border-top: 1px solid var(--fbst-line); }
.fbst-item__link { display: flex; align-items: center; gap: 12px; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; color: inherit !important; min-width: 0; }
.fbst-item__link:hover { background: var(--fbst-hover); text-decoration: none !important; }
.fbst-item__poster { flex: 0 0 auto; width: 40px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--fbst-track); display: block; }
.fbst-item__poster--none { display: inline-flex; align-items: center; justify-content: center; color: var(--fbst-dim); font-size: 15px; }
.fbst-item__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fbst-item__title { font-weight: 500; color: var(--fbst-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbst-item__link:hover .fbst-item__title { color: var(--fbst-link); }
.fbst-item__year { color: var(--fbst-dim); font-weight: 400; }
.fbst-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--fbst-dim); min-width: 0; }
.fbst-item__meta i { color: var(--fbst-link); }
.fbst-item__ep { color: var(--fbst-text); margin-right: 2px; }
.fbst-item__side { flex: 0 0 auto; font-size: 12px; color: var(--fbst-dim); white-space: nowrap; }
.fbst-q { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--fbst-chip); color: var(--fbst-head); font-size: 11.5px; font-weight: 500; line-height: 1.6; }
.fbst-rank { flex: 0 0 auto; width: 22px; text-align: center; font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 18px; font-weight: 700; color: var(--fbst-dim); font-variant-numeric: tabular-nums; }
.fbst-list--rank .fbst-item:nth-child(-n+3) .fbst-rank { color: var(--fbst-lamp); }

/* ── Tanım listeleri (topluluk/forum/istek) ─────────────── */
.fbst-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--fbst-line); }
.fbst-dl > div:first-child { padding-top: 0; }
.fbst-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fbst-dl dt { color: var(--fbst-text); min-width: 0; }
.fbst-dl dd { font-weight: 700; color: var(--fbst-head); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.fbst-dl dd small { font-weight: 400; white-space: nowrap; }

/* ── İstek oranı (halka) ─────────────────────────────────── */
.fbst-rate { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--fbst-line); }
.fbst-rate p { font-size: 13px; color: var(--fbst-text); }
.fbst-rate p b { color: var(--fbst-head); }
.fbst-donut {
	--fbst-p: 0;
	flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center;
	background: conic-gradient(var(--fbst-ok) calc(var(--fbst-p) * 1%), var(--fbst-track) 0);
}
.fbst-donut::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--fbst-card); }
.fbst-donut span { position: relative; font-family: 'Rajdhani', 'Roboto', sans-serif; font-size: 19px; font-weight: 700; color: var(--fbst-head); }
.fbst .fbst-btn {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 10px;
	background: var(--fbst-accent); color: #fff; font-weight: 500; text-decoration: none;
}
.fbst .fbst-btn:hover { background: var(--fbst-accent2); text-decoration: none; }

/* ── Son tamamlanan istekler ─────────────────────────────── */
.fbst-reqs { display: flex; flex-direction: column; }
.fbst-req + .fbst-req { border-top: 1px solid var(--fbst-line); }
.fbst-req a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; margin: 0 -6px; border-radius: 8px; color: inherit; min-width: 0; }
.fbst-req a:hover { background: var(--fbst-hover); text-decoration: none; }
.fbst-req__title { flex: 1 1 auto; min-width: 0; font-weight: 500; color: var(--fbst-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbst-req time { flex: 0 0 auto; font-size: 12px; color: var(--fbst-dim); white-space: nowrap; }
.fbst-tag { flex: 0 0 auto; display: inline-block; min-width: 38px; text-align: center; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; line-height: 1.6; }
.fbst-tag--film { background: rgba(31, 111, 184, .12); color: #1f5f9e; }
.fbst-tag--dizi { background: rgba(248, 138, 14, .14); color: #a85a00; }
.night-mode .fbst-tag--film { background: rgba(77, 155, 230, .16); color: #8cc3ff; }
.night-mode .fbst-tag--dizi { background: rgba(248, 138, 14, .16); color: #ffb866; }

/* ── Konu listeleri (MyBB) ───────────────────────────────── */
.fbst-threads { display: flex; flex-direction: column; }
.fbst-thread { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-width: 0; }
.fbst-thread + .fbst-thread { border-top: 1px solid var(--fbst-line); }
.fbst-thread a { flex: 1 1 auto; min-width: 0; color: var(--fbst-head); font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fbst-thread a:hover { color: var(--fbst-link); }
.fbst-thread__n { flex: 0 0 auto; font-weight: 700; color: var(--fbst-head); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Notlar ──────────────────────────────────────────────── */
.fbst-note { font-size: 12.5px; color: var(--fbst-dim); margin: 0 0 16px !important; line-height: 1.5; }
.fbst-note i { margin-right: 4px; }
.fbst-note b { color: var(--fbst-head); }
.fbst-note--center { text-align: center; margin-top: -4px !important; }
.fbst .fbst-stale { color: #b85f00; font-weight: 500; }
.night-mode .fbst .fbst-stale { color: var(--fbst-lamp); }

/* ── Duyarlı ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
	.fbst-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fbst-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fbst-grid--3 > .fbst-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.fbst-grid, .fbst-grid--3, .fbst-cols { grid-template-columns: minmax(0, 1fr); }
	.fbst-grid--3 > .fbst-card:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
	.fbst-hero { padding: 18px 16px; gap: 14px; }
	.fbst-hero__title { font-size: 23px; }
	.fbst-hero__sub { font-size: 13px; }
	.fbst-hero__big { width: 100%; padding: 10px 14px; }
	.fbst-hero__num { font-size: 42px; }
	.fbst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.fbst-kpi, .fbst-kpi--link > a { padding: 11px 10px; column-gap: 9px; }
	.fbst-kpi--link { padding: 0; }
	.fbst-kpi i { width: 32px; height: 32px; font-size: 13px; }
	.fbst-kpi__num { font-size: 21px; }
	.fbst-card__body { padding: 14px 12px 16px; }
	.fbst-card__head.thead { padding: 12px 14px; }
	.fbst-bar { grid-template-columns: 5.6em minmax(0, 1fr) auto; gap: 8px; }
	.fbst-bar__val small { min-width: 0; }
	.fbst-mini { grid-template-columns: minmax(0, 1fr); }
	.fbst-mini > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
	.fbst-mini dd { text-align: right; font-size: 18px; }
	.fbst-mini dd small { display: inline; margin-left: 4px; }
	.fbst-table th, .fbst-table td { padding: 7px 6px; }
	.fbst-table td { font-size: 16px; }
	.fbst-table thead th { white-space: normal; font-size: 11.5px; }
	.fbst-item__side { display: none; }
	.fbst-dl > div { flex-wrap: wrap; }
	.fbst-dl dd { margin-left: auto; }
	.fbst-thread__n small { display: none; } /* başlık zaten "yanıt / görüntülenme" diyor; dar ekranda konu adına yer kalsın */
}
@media (prefers-reduced-motion: no-preference) {
	.fbst-item__link, .fbst-req a, .fbst-kpi--link > a { transition: background-color .15s ease; }
}
