/**
 * Haber Fenerbahçe — futbol bileşenleri
 *
 * - Puan durumu kutusu (.es-st): Süper Lig / Şampiyonlar Ligi, Fenerbahçe satırı sarı-lacivert
 * - Maç kartı (.es-fx) ve yana kayan "Sıradaki Maçlar" şeridi (.es-fxs)
 * - Header maç bandı (.es-mband), kenar sütun ve sayfa kodları
 */

/* ======================================================================
 * Puan durumu
 * ==================================================================== */
.es-st {
	--es-st-bg-c: var(--es-st-bg, var(--es-bg));
	--es-st-text-c: var(--es-st-text, var(--es-text));
	--es-st-accent-c: var(--es-st-accent, var(--es-accent));
	--es-st-fb-bg-c: var(--es-st-fb-bg, #00205b);
	--es-st-fb-text-c: var(--es-st-fb-text, #ffcd00);
	--es-st-line: color-mix(in srgb, var(--es-st-text-c) 11%, transparent);
	--es-st-muted: color-mix(in srgb, var(--es-st-text-c) 58%, transparent);
	display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	background: var(--es-st-bg-c); color: var(--es-st-text-c);
	border: 1px solid var(--es-st-line); border-radius: var(--es-radius);
	box-shadow: 0 1px 2px rgba(0, 15, 46, .05), 0 6px 22px rgba(0, 15, 46, .07);
}
.es-st__head { flex: none; padding: 18px 18px 0; }
.es-st__title { display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--es-font-heading); font-weight: 800; font-size: 1.05rem; color: inherit; }
.es-st__title::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, #ffcd00 50%, #00205b 50%); box-shadow: 0 0 0 2px var(--es-st-bg-c), 0 0 0 3px var(--es-st-line); }
.es-st__tabs { display: flex; gap: 4px; margin-top: 12px; border-bottom: 1px solid var(--es-st-line); overflow-x: auto; scrollbar-width: none; }
.es-st__tabs::-webkit-scrollbar { display: none; }
.es-st__tabs button {
	appearance: none; display: inline-flex; align-items: center; gap: 6px; flex: none;
	margin: 0 0 -1px; padding: 10px 6px 11px; border: 0; border-bottom: 3px solid transparent; background: none;
	font: inherit; font-family: var(--es-font-heading); font-weight: 700; font-size: .86rem; color: var(--es-st-muted);
	white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s;
}
.es-st__tabs button + button { margin-left: 10px; }
.es-st__tabs button:hover { color: var(--es-st-text-c); }
.es-st__tabs button[aria-selected="true"] { color: var(--es-st-text-c); border-bottom-color: var(--es-st-accent-c); }
.es-st__pos { padding: 1px 6px; border-radius: 6px; background: var(--es-st-fb-bg-c); color: var(--es-st-fb-text-c); font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.es-st__panel { flex: 1 1 auto; min-height: 0; padding: 4px 10px 8px; }
.es-st__panel[hidden] { display: none; }
.es-st--scroll .es-st__panel {
	max-height: var(--es-st-h, 520px); overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--es-st-accent-c) color-mix(in srgb, var(--es-st-text-c) 8%, transparent);
}
.es-st__panel::-webkit-scrollbar { width: 6px; }
.es-st__panel::-webkit-scrollbar-track { background: color-mix(in srgb, var(--es-st-text-c) 8%, transparent); border-radius: 6px; }
.es-st__panel::-webkit-scrollbar-thumb { background: var(--es-st-accent-c); border-radius: 6px; }
.es-st__panel-title { display: flex; justify-content: space-between; gap: 8px; margin: 10px 6px 4px; font-family: var(--es-font-heading); font-weight: 800; font-size: .88rem; }
.es-st__panel-title span { font-family: var(--es-font-body); font-weight: 600; font-size: .72rem; color: var(--es-st-muted); }
.es-st.is-tabbed .es-st__panel-title { display: none; }
.es-st__empty { margin: 0; padding: 22px 8px; font-size: .86rem; color: var(--es-st-muted); }

.es-st__table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0 2px; table-layout: auto; font-size: .82rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.es-st__table thead th {
	position: sticky; top: 0; z-index: 1; padding: 8px 4px 6px; border: 0;
	background: var(--es-st-bg-c); color: var(--es-st-muted); font-size: .7rem; font-weight: 700; text-align: center; white-space: nowrap;
}
.es-st__table thead .es-st__team { text-align: left; }
.es-st__table abbr { text-decoration: none; cursor: help; border: 0; }
.es-st__table td,
.es-st__table tbody th { padding: 7px 4px; border: 0; background: transparent; text-align: center; font-weight: 500; transition: background-color .15s; }
.es-st__table tbody th.es-st__team { width: 100%; max-width: 0; text-align: left; font-weight: 600; }
.es-st__rank { width: 26px; font-weight: 700; }
.es-st__table td.es-st__rank[style] { box-shadow: inset 3px 0 0 var(--es-zone); }
.es-st__club { display: flex; align-items: center; gap: 8px; min-width: 0; }
.es-st__logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.es-st__logo--txt { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--es-st-text-c) 9%, transparent); font-size: .55rem; font-weight: 800; }
.es-st__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-st__n { width: 30px; }
.es-st__n--pts { font-weight: 800; }
.es-st__n--gd { width: 34px; }
.es-st__row > :first-child { border-radius: 8px 0 0 8px; }
.es-st__row > :last-child { border-radius: 0 8px 8px 0; }
.es-st__row:hover > * { background: color-mix(in srgb, var(--es-st-text-c) 5%, transparent); }

/* Fenerbahçe satırı: sarı-lacivert */
.es-st__row.is-ours > * { background: var(--es-st-fb-bg-c) !important; color: var(--es-st-fb-text-c); font-weight: 800; }
.es-st__row.is-ours > .es-st__rank { box-shadow: inset 4px 0 0 var(--es-st-fb-text-c) !important; }
.es-st__row.is-ours .es-st__logo--txt { background: color-mix(in srgb, var(--es-st-fb-text-c) 18%, transparent); color: var(--es-st-fb-text-c); }

.es-st__foot { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 10px 18px 14px; border-top: 1px solid var(--es-st-line); }
.es-st__foot:empty { display: none; }
.es-st__foot a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--es-font-heading); font-weight: 700; font-size: .82rem; color: var(--es-st-muted); }
.es-st__foot a:hover { color: var(--es-st-text-c); }
.es-st__foot .es-icon { width: 13px; height: 13px; transition: transform .15s; }
.es-st__foot a:hover .es-icon { transform: translateX(3px); }
.es-st__note { margin: 0; font-size: .7rem; color: var(--es-st-muted); }

/* Sütun yoğunlukları */
.es-st--mini .es-st__table { font-size: .8rem; }
.es-st--full .es-st__table { font-size: .9rem; }
.es-st--full .es-st__table td,
.es-st--full .es-st__table tbody th { padding-block: 9px; }
.es-st--full .es-st__logo { width: 26px; height: 26px; }
@media (max-width: 520px) {
	.es-st--full .es-st__n--gf,
	.es-st--full .es-st__n--ga { display: none; }
	.es-st__table { font-size: .78rem; }
	.es-st__n { width: 24px; }
}

/* İki tablo yan yana */
.es-st--columns .es-st__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.es-st--columns .es-st__panel { padding: 6px 14px 10px; }
.es-st--columns .es-st__panel + .es-st__panel { border-left: 1px solid var(--es-st-line); }
@media (max-width: 860px) {
	.es-st--columns .es-st__cols { grid-template-columns: 1fr; }
	.es-st--columns .es-st__panel + .es-st__panel { border-left: 0; border-top: 1px solid var(--es-st-line); }
}

/* Manşet yanında: kutu manşetin yüksekliğine uyar, liste içeride aşağı kayar */
.es-manset .es-st { border-color: var(--es-box-line, var(--es-st-line)); box-shadow: var(--es-box-shadow, none); }
.es-manset__aside .es-st { height: 100%; }
@media (min-width: 920px) {
	.es-manset__aside > .es-st { position: absolute; inset: 0; }
	.es-manset__aside .es-st__panel { max-height: none; overflow-y: auto; }
}
@media (max-width: 919px) {
	.es-manset__aside .es-st { height: auto; }
	.es-manset__aside .es-st__panel { max-height: 380px; overflow-y: auto; }
}

/* Kenar sütun */
.es-sbox--standings { --es-st-h: 440px; }
.es-sidebar .es-st { box-shadow: none; }
.es-sidebar .es-st__head { padding: 14px 14px 0; }
.es-sidebar .es-st__panel { padding-inline: 6px; }

/* Sayfa içeriğinde tema tablo/liste stilleri karışmasın */
.es-content .es-st__table,
.es-content .es-st__table th,
.es-content .es-st__table td { border: 0; }
.es-content .es-st__table { margin: 0; }
.es-content .es-st__title,
.es-content .es-st__panel-title { margin-top: 0; }

/* ======================================================================
 * Maç kartı
 * ==================================================================== */
.es-fx {
	--es-fx-acc: var(--es-fx-accent, var(--es-primary));
	position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px 16px 14px;
	list-style: none; overflow: hidden;
	background: var(--es-fx-card, var(--es-bg)); color: var(--es-text);
	border: 1px solid color-mix(in srgb, var(--es-text) 10%, transparent); border-radius: var(--es-radius);
	box-shadow: 0 1px 3px rgba(0, 15, 46, .06), 0 8px 20px rgba(0, 15, 46, .06);
}
.es-fx::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #ffcd00 0 50%, #00205b 50% 100%); }
.es-fx.is-live { border-color: #e10600; box-shadow: 0 0 0 1px #e10600, 0 8px 20px rgba(225, 6, 0, .15); }
.es-fx__top { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 700; }
.es-fx__comp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--es-fx-acc); letter-spacing: .04em; text-transform: uppercase; }
.es-fx__side { flex: none; color: var(--es-muted); font-weight: 600; }
.es-fx__badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 8px; border-radius: 999px; background: #e10600; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.es-fx__badge[hidden] { display: none; }
.es-fx__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: es-fx-pulse 1.2s ease-in-out infinite; }
@keyframes es-fx-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .es-fx__dot { animation: none; } }

.es-fx__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.es-fx__team { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; }
.es-fx__logo { width: 46px; height: 46px; object-fit: contain; }
.es-fx__logo--txt { display: grid; place-items: center; border-radius: 50%; background: var(--es-surface); color: var(--es-muted); font-family: var(--es-font-heading); font-size: .82rem; font-weight: 800; }
.es-fx__team.is-ours .es-fx__logo--txt { background: #00205b; color: #ffcd00; }
.es-fx__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; font-weight: 700; line-height: 1.2; }
.es-fx__team.is-ours .es-fx__name { color: var(--es-fx-acc); font-weight: 800; }
.es-fx__mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 66px; padding-top: 9px; }
.es-fx__score { display: flex; align-items: center; gap: 6px; font-family: var(--es-font-heading); font-size: 1.55rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.es-fx__score[hidden], .es-fx__time[hidden] { display: none; }
.es-fx__sep { opacity: .45; }
.es-fx__time { font-family: var(--es-font-heading); font-size: 1.3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.es-fx__vs { font-size: .95rem; color: var(--es-muted); }
.es-fx__status { font-size: .7rem; font-weight: 800; color: #e10600; text-align: center; }
.es-fx--post .es-fx__status { color: var(--es-muted); font-weight: 700; }
.es-fx__foot { display: flex; flex-direction: column; gap: 3px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--es-text) 14%, transparent); font-size: .74rem; color: var(--es-muted); }
.es-fx__date { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--es-text); }
.es-fx__date .es-icon { flex: none; width: 14px; height: 14px; color: var(--es-fx-acc); }
.es-fx__venue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sıkışık kart (kenar sütun) */
.es-fx--compact { gap: 8px; padding: 12px 12px 10px; box-shadow: none; }
.es-fx--compact .es-fx__logo { width: 30px; height: 30px; }
.es-fx--compact .es-fx__name { font-size: .76rem; }
.es-fx--compact .es-fx__time { font-size: 1.05rem; }
.es-fx--compact .es-fx__score { font-size: 1.2rem; }
.es-fx--compact .es-fx__mid { min-width: 52px; padding-top: 4px; }
.es-fx--compact .es-fx__foot { padding-top: 8px; }
.es-sfx__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ======================================================================
 * Sıradaki Maçlar şeridi (yana kayar)
 * ==================================================================== */
.es-fxs { --es-chip-on-bg: var(--es-primary); --es-chip-border: color-mix(in srgb, var(--es-text) 16%, transparent); }
.es-fxs__track {
	display: flex; flex: 1; gap: 14px; min-width: 0; margin: -8px -8px -16px; padding: 8px 8px 16px;
	list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.es-fxs__track::-webkit-scrollbar { display: none; }
.es-fxs__track > .es-fx { flex: 0 0 280px; scroll-snap-align: start; }
.es-fxs__note { margin: 14px 0 0; font-size: .75rem; color: var(--es-muted); }
@media (prefers-reduced-motion: reduce) { .es-fxs__track { scroll-behavior: auto; } }
@media (max-width: 760px) {
	.es-fxs__track { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.es-fxs__track > .es-fx { flex-basis: 80%; }
}

/* ======================================================================
 * Sayfa kodları: [fb_puan_durumu], [fb_fikstur]
 * ==================================================================== */
.es-fbpage { margin: 0 0 2em; }
.es-fbpage__title { margin: 1.4em 0 .7em; font-size: 1.3rem; }
.es-fbpage__title:first-child { margin-top: 0; }
.es-fbpage__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.es-content .es-fbpage__list > li { margin: 0; }
.es-fbpage--standings .es-st { box-shadow: none; }

/* ======================================================================
 * Header maç bandı
 * ==================================================================== */
.es-mband { background: var(--es-mb-bg, #00205b); color: var(--es-mb-text, #fff); border-bottom: 3px solid var(--es-mb-accent, #ffcd00); font-size: .8rem; }
.es-mband__inner { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.es-mband__label { flex: none; padding: 3px 10px; border-radius: 4px; background: var(--es-mb-accent, #ffcd00); color: var(--es-mb-bg, #00205b); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.es-mband__list { display: flex; flex: 1; gap: 22px; min-width: 0; margin: 0; padding: 7px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.es-mband__list::-webkit-scrollbar { display: none; }
.es-mband__item { display: flex; align-items: center; gap: 9px; flex: none; white-space: nowrap; }
.es-mband__item + .es-mband__item { padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--es-mb-text, #fff) 20%, transparent); }
.es-mband__when { display: inline-flex; align-items: center; gap: 6px; color: var(--es-mb-accent, #ffcd00); font-weight: 700; font-variant-numeric: tabular-nums; }
.es-mband__when [hidden] { display: none; }
.es-mband__teams { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.es-mband__team { display: inline-flex; align-items: center; gap: 5px; }
.es-mband__team img { width: 18px; height: 18px; object-fit: contain; }
.es-mband__score { font-weight: 900; color: var(--es-mb-accent, #ffcd00); font-variant-numeric: tabular-nums; }
.es-mband__score[hidden], .es-mband__vs[hidden] { display: none; }
.es-mband__vs { opacity: .6; }
.es-mband__comp { font-size: .72rem; opacity: .65; }
.es-mband .es-fx__badge { padding: 1px 7px; }
@media (max-width: 760px) {
	.es-mband__label, .es-mband__comp { display: none; }
	.es-mband__list { gap: 16px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.es-mband__item + .es-mband__item { padding-left: 16px; }
}
