/* ==========================================================================
   Forsa Sport — فرصة سبورت
   ========================================================================== */

:root {
	--bg: #f3f6f9;
	--surface: #ffffff;
	--surface-2: #f7f9fb;
	--ink: #0c1726;
	--ink-2: #2b3a4d;
	--muted: #637389;
	--line: #e3e9f0;
	--line-2: #d3dce6;

	--brand: #0f9d58;
	--brand-600: #0b8249;
	--brand-50: #e6f6ee;
	--brand-100: #c9ecd9;
	--gold: #f2b631;
	--live: #e5233b;
	--win: #0f9d58;
	--draw: #8a97a8;
	--loss: #d64545;
	--tg: #229ed9;

	--hero-1: #06101d;
	--hero-2: #0a1a2b;
	--hero-3: #0d3b2c;

	--radius-sm: 10px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(12, 23, 38, .05);
	--shadow: 0 8px 24px -12px rgba(12, 23, 38, .18), 0 1px 3px rgba(12, 23, 38, .05);
	--ring: 0 0 0 3px rgba(15, 157, 88, .25);

	--font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--font-display: "Readex Pro", var(--font);
	--header-h: 64px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #070d16;
	--surface: #0e1722;
	--surface-2: #121d2a;
	--ink: #e8eef5;
	--ink-2: #c2cedb;
	--muted: #8898ab;
	--line: #1b2735;
	--line-2: #253344;
	--brand: #25c274;
	--brand-600: #3ad486;
	--brand-50: #0f2a1f;
	--brand-100: #14392a;
	--shadow: 0 8px 24px -12px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .3);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #070d16;
		--surface: #0e1722;
		--surface-2: #121d2a;
		--ink: #e8eef5;
		--ink-2: #c2cedb;
		--muted: #8898ab;
		--line: #1b2735;
		--line-2: #253344;
		--brand: #25c274;
		--brand-600: #3ad486;
		--brand-50: #0f2a1f;
		--brand-100: #14392a;
		--shadow: 0 8px 24px -12px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .3);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
bdi { unicode-bidi: isolate; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 10px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

@media (max-width: 720px) {
	.hide-sm { display: none !important; }
}
@media (min-width: 721px) {
	.show-sm { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px;
	border-radius: 999px; border: 1px solid var(--line-2);
	background: var(--surface); color: var(--ink);
	font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
	transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn--tg:hover { background: #1b8bc0; border-color: #1b8bc0; color: #fff; }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
:root .when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .when-dark { display: inline; }
	:root:not([data-theme="light"]) .when-light { display: none; }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand b { color: var(--brand); font-weight: 700; }
.brand__mark {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
	background: linear-gradient(135deg, #0f9d58, #0a6e3e); color: #fff;
	box-shadow: 0 6px 16px -6px rgba(15, 157, 88, .7);
}
.brand__mark .icon { width: 22px; height: 22px; }
.nav { flex: 1; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: .96rem; }
.nav__list a:hover { background: var(--surface-2); color: var(--ink); }
.nav__list a[aria-current] { color: var(--brand); background: var(--brand-50); }
.site-header__actions { display: flex; align-items: center; gap: 6px; }

@media (max-width: 720px) {
	.site-header__inner { gap: 10px; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s;
	}
	.nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.nav__list { flex-direction: column; padding: 10px 16px 16px; }
	.nav__list a { padding: 12px; }
	.site-header__actions { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 400px at 85% -20%, rgba(37, 194, 116, .35), transparent 60%),
		radial-gradient(700px 300px at 10% 120%, rgba(242, 182, 49, .18), transparent 60%),
		linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
	background-image: linear-gradient(90deg, #fff 1px, transparent 1px), linear-gradient(#fff 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(to bottom, transparent, #000 40%, transparent);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 36px 34px; }
.hero__kicker { display: inline-flex; gap: 8px; align-items: center; color: #a9c3d8; font-size: .92rem; margin-bottom: 10px; }
.hero__title { font-size: clamp(1.45rem, 3.2vw, 2.15rem); max-width: 720px; }
.hero__sub { color: #c9d7e4; margin: 12px 0 0; }
.hero__live { display: inline-flex; align-items: center; gap: 6px; color: #ff8d9a; font-weight: 600; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-block: 24px 48px; align-items: start; }
.layout__side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.layout--article { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 980px) {
	.layout, .layout--article { grid-template-columns: 1fr; }
	.layout__side { position: static; }
}
.block { margin-bottom: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.layout__side .card { margin-bottom: 0; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin-bottom: 14px; }
.card__title .icon { color: var(--brand); }

.shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shead__title { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.shead__title .icon { color: var(--brand); }
.shead__link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.card .shead__title { font-size: 1.05rem; }

.page-head { padding-top: 22px; }
.page-head--tight { padding-top: 14px; padding-bottom: 12px; }
.page-title { font-size: clamp(1.4rem, 3vw, 1.9rem); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-title small { font-size: .95rem; color: var(--muted); font-weight: 500; font-family: var(--font); }
.page-head .muted { margin: 6px 0 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Day nav & tabs & chips ---------- */
.daynav { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.daynav::-webkit-scrollbar { display: none; }
.daynav__day, .daynav__arrow {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 76px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--surface); font-weight: 600; line-height: 1.3;
}
.daynav__day small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.daynav__day.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.daynav__day.is-active small { color: #d8f5e6; }
.daynav__arrow { min-width: 44px; color: var(--muted); }

.tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.tabs a:hover { border-color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Match groups & rows ---------- */
.mgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.mgroup__head {
	display: flex; align-items: center; gap: 10px; padding: 10px 16px;
	background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--font-display); font-size: .98rem;
}
.mgroup__head a:hover { color: var(--brand); }
.mgroup__flag { font-size: 1.1rem; }
.mgroup__count { margin-inline-start: auto; min-width: 26px; height: 22px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .78rem; font-family: var(--font); }
.mgroup--plain { margin-bottom: 0; }
.mgroup--feature .mrow { padding-block: 18px; }

.mrow {
	position: relative;
	display: grid; grid-template-columns: 84px minmax(0, 1fr) 76px minmax(0, 1fr);
	align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line);
	transition: background .12s;
}
.mgroup__list > .mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--surface-2); color: inherit; }
.mrow__meta { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mrow__status { font-weight: 600; color: var(--ink-2); font-size: .86rem; }
.mrow__date { font-size: .76rem; }
.mrow__league { font-size: .74rem; color: var(--brand); font-weight: 600; }
.mrow__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.mrow__team--home { justify-content: flex-end; text-align: end; }
.mrow__team--home .crest { order: 2; }
.mrow__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__score {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
	direction: ltr; /* home score sits on the right in RTL: rendered LTR then reversed below */
	flex-direction: row-reverse;
}
.mrow__score i { font-style: normal; color: var(--muted); font-weight: 500; }
.mrow__vs { color: var(--muted); font-weight: 500; }
.mrow--in .mrow__status { color: var(--live); }
.mrow--in .mrow__score { color: var(--live); }
.mrow--won-home .mrow__team--away, .mrow--won-away .mrow__team--home { color: var(--muted); font-weight: 500; }
.mrow .live-dot { position: absolute; inset-inline-end: 8px; top: 8px; }
.mrow.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { background: rgba(242, 182, 49, .25); } 100% { background: transparent; } }

.crest { width: 28px; height: 28px; object-fit: contain; flex: none; }
.crest--empty { display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--line); }

.mgroup__list--side .mrow { grid-template-columns: 58px minmax(0, 1fr) 52px minmax(0, 1fr); padding: 10px 6px; gap: 6px; font-size: .88rem; }
.mgroup__list--side .crest { width: 20px; height: 20px; }
.mgroup__list--side .mrow__team { gap: 6px; }

@media (max-width: 560px) {
	.mrow { grid-template-columns: 58px minmax(0, 1fr) 54px minmax(0, 1fr); gap: 6px; padding: 12px 10px; font-size: .92rem; }
	.mrow__team { gap: 6px; }
	.crest { width: 22px; height: 22px; }
	.mrow__score { font-size: 1.02rem; }
}

.live-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
	box-shadow: 0 0 0 0 rgba(229, 35, 59, .6); animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(229, 35, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 35, 59, 0); } }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .icon { width: 36px; height: 36px; color: var(--brand); margin-bottom: 8px; }
.empty p { margin: 0; }
.empty--404 { margin-block: 48px; padding: 56px 16px; }
.empty--404 h1 { color: var(--ink); margin-bottom: 8px; }
.empty--404 p { margin-top: 12px; }
.empty-line { padding: 16px; margin: 0; color: var(--muted); }

/* ---------- Scoreboard ---------- */
.scoreboard {
	position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 18px 20px 16px;
	background:
		radial-gradient(600px 220px at 50% -30%, rgba(37, 194, 116, .35), transparent 70%),
		linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3));
	box-shadow: var(--shadow);
}
.scoreboard__league { display: flex; justify-content: center; gap: 8px; color: #b8cadb; font-weight: 600; font-size: .92rem; }
.scoreboard__league a:hover { color: #fff; }
.scoreboard__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 18px 10px; }
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #fff; }
.scoreboard__team:hover { color: #fff; }
.scoreboard__team h2 { font-size: clamp(1rem, 2.6vw, 1.35rem); }
.scoreboard__team .crest { width: 76px; height: 76px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.scoreboard__center { text-align: center; min-width: 120px; }
.scoreboard__score { display: flex; gap: 12px; justify-content: center; align-items: center; font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; line-height: 1; direction: ltr; flex-direction: row-reverse; }
.scoreboard__score i { font-style: normal; opacity: .5; font-weight: 400; }
.scoreboard__time { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; }
.scoreboard__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .86rem; font-weight: 600; }
.scoreboard__status.is-live { background: rgba(229, 35, 59, .18); color: #ffb3bd; }
.scoreboard__pens { margin-top: 6px; color: #d7e3ee; font-size: .88rem; }
.scoreboard__facts { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: #b8cadb; font-size: .86rem; }
.scoreboard__facts li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
	.scoreboard { padding: 14px 12px; border-radius: var(--radius); }
	.scoreboard__team .crest { width: 54px; height: 54px; }
	.scoreboard__center { min-width: 92px; }
}
.match-h1 { font-size: 1.25rem; margin: 4px 0 16px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline__i { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.timeline__i:last-child { border-bottom: 0; }
.timeline__min { grid-column: 2; grid-row: 1; text-align: center; font-weight: 700; font-size: .85rem; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 2px 0; direction: ltr; }
.timeline__i--home .timeline__txt { grid-column: 1; grid-row: 1; text-align: end; }
.timeline__i--away .timeline__txt { grid-column: 3; grid-row: 1; }
.timeline__i--home .timeline__ic { grid-column: 1; grid-row: 1; justify-self: start; }
.timeline__i--away .timeline__ic { grid-column: 3; grid-row: 1; justify-self: end; }
.timeline__txt small { color: var(--muted); display: block; font-size: .78rem; }
.timeline__ic { display: inline-grid; place-items: center; color: var(--brand); }
.ev--yellow .timeline__ic { color: #e8b400; }
.ev--red .timeline__ic { color: var(--loss); }
.ev--pen_missed .timeline__ic { color: var(--loss); font-weight: 700; }
.ev--goal .timeline__txt, .ev--penalty .timeline__txt, .ev--own_goal .timeline__txt { font-weight: 700; }

/* Stats */
.stats__teams { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; font-size: .92rem; }
.stat { margin-bottom: 12px; }
.stat__row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.stat__row span { color: var(--muted); }
.stat__bar { display: flex; gap: 4px; height: 7px; margin-top: 5px; }
.stat__bar span { border-radius: 999px; background: var(--line-2); min-width: 4px; }
.stat__h.is-lead { background: var(--brand); }
.stat__a.is-lead { background: var(--gold); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-inline: -4px; }
.table-group { font-size: .98rem; margin: 16px 0 8px; color: var(--ink-2); }
.table-group:first-child { margin-top: 0; }
.standings { width: 100%; border-collapse: collapse; font-size: .9rem; }
.standings th { font-weight: 600; color: var(--muted); font-size: .78rem; padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.standings td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.standings tr:last-child td { border-bottom: 0; }
.standings .c-team { text-align: start; width: 100%; }
.standings .c-team a, .standings td.c-team { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.standings td.c-team { display: table-cell; }
.standings td.c-team > a, .standings td.c-team > span { display: inline-flex; align-items: center; gap: 8px; }
.standings .crest { width: 20px; height: 20px; }
.standings .c-pts b { font-family: var(--font-display); }
.standings tr.is-hl td { background: var(--brand-50); }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 700; font-size: .8rem; }
.rank--note { background: color-mix(in srgb, var(--nc) 22%, transparent); box-shadow: inset 3px 0 0 var(--nc); }
.standings--compact { font-size: .86rem; }
.standings--compact td { padding: 6px 3px; }

/* ---------- News ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ngrid { grid-template-columns: 1fr; } }
.ncard {
	--sec: var(--brand);
	position: relative; display: flex; flex-direction: column; gap: 10px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
	box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
	border-top: 3px solid var(--sec);
}
.ncard:hover { border-color: var(--line-2); border-top-color: var(--sec); transform: translateY(-2px); }
.ncard--saudi-football { --sec: #0f9d58; }
.ncard--world-football { --sec: #3b6fd8; }
.ncard--arab-football { --sec: #c4892a; }
.ncard--transfers { --sec: #8b4fd6; }
.ncard--other-sports { --sec: #6b7a8c; }
.ncard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); }
.tag { font-weight: 700; font-size: .78rem; color: var(--sec, var(--brand)); position: relative; z-index: 2; }
.ncard__title { font-size: 1.02rem; line-height: 1.5; }
.ncard__title a::after { content: ""; position: absolute; inset: 0; }
.ncard__sum { color: var(--ink-2); font-size: .94rem; margin: 0; }
.ncard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.ncard__foot .chip { position: relative; z-index: 2; padding: 1px 9px; font-size: .76rem; }
.ncard__src { margin-inline-end: auto; }
.ncard--lead { grid-column: 1 / -1; padding: 22px; background: linear-gradient(135deg, var(--surface), var(--brand-50)); }
.ncard--lead .ncard__title { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.ncard--mini { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; gap: 4px; }
.ncard--mini:hover { transform: none; }
.ncard--mini:last-child { border-bottom: 0; }
.ncard--mini .ncard__title { font-size: .92rem; }
.nlist { display: grid; }

/* ---------- Article ---------- */
.article { padding-top: 22px; }
.article__title { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: 12px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; }
.article__meta span, .article__meta time { display: inline-flex; align-items: center; gap: 6px; }
.article__lead { font-size: 1.12rem; line-height: 1.9; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.article .btn--lg { margin: 6px 0 10px; }
.prose { line-height: 1.95; font-size: 1.02rem; }
.prose h2 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose .card__title { margin-bottom: 12px; }

/* ---------- Team ---------- */
.team-head { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.team-head .crest { width: 72px; height: 72px; }
.team-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.form { display: inline-flex; gap: 4px; }
.form__i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: .75rem; font-weight: 700; }
.form__i:hover { color: #fff; opacity: .85; }
.form__i--w { background: var(--win); }
.form__i--d { background: var(--draw); }
.form__i--l { background: var(--loss); }

/* ---------- Leagues ---------- */
.llist { list-style: none; margin: 0; padding: 0; display: grid; }
.llist a { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .94rem; }
.llist li:last-child a { border-bottom: 0; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding-block: 20px 48px; }
.lcard { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow-sm); }
.lcard:hover { border-color: var(--brand); }
.lcard__flag { font-size: 1.5rem; }
.lcard .icon { margin-inline-start: auto; color: var(--muted); }

/* ---------- Telegram CTA ---------- */
.tgcta {
	display: grid; gap: 12px; padding: 20px; border-radius: var(--radius);
	color: #fff; background: linear-gradient(135deg, #1a8dc4, #229ed9 50%, #2bb3e8);
	box-shadow: 0 14px 30px -16px rgba(34, 158, 217, .8);
}
.tgcta__icon .icon { width: 34px; height: 34px; }
.tgcta__body strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.tgcta__body p { margin: 0; color: #e3f4fc; font-size: .92rem; }
.tgcta .btn { background: #fff; color: #1a8dc4; border-color: #fff; }
.tgcta .btn:hover { background: #eaf7fd; color: #146f9b; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-2); color: #b8cadb; margin-top: 24px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-block: 40px 24px; }
.site-footer__about p { margin: 14px 0; font-size: .92rem; max-width: 420px; }
.brand--footer, .brand--footer:hover { color: #fff; }
.site-footer__title { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-block: 16px; font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
