/* ============================================================
 *  FB Theme · main.css
 *  Содержание:
 *    1.  CSS Variables
 *    2.  Reset & Base
 *    3.  Layout (Container, Section, Grid)
 *    4.  Buttons, Pills, Links
 *    5.  Header
 *    6.  Breadcrumbs
 *    7.  Live Ticker
 *    8.  Hero — Match
 *    9.  Hero — Competition / Club / Player / Stadium
 *    10. Hero — WC 2026 (main page)
 *    11. Tabs
 *    12. Cards (generic, match)
 *    13. Match — Events, Timeline, Lineups, Stats, H2H
 *    14. Squad / Player Stats / Trophies
 *    15. Standings (Groups + Table)
 *    16. Top Scorers
 *    17. Teams Grid
 *    18. Venue
 *    19. Prose / Honors / Career
 *    20. Search / 404 / Empty
 *    21. Footer
 *    22. Gallery / Map / Sponsors
 *    23. Accessibility
 *    24. Responsive
 * ============================================================ */


/* ============================================================
 *  1. CSS Variables
 * ============================================================ */
:root {
	--c-primary:      #0b6e3a;
	--c-primary-dark: #064a26;
	--c-accent:       #ffcc00;
	--c-success:      #2ecc58;
	--c-danger:       #e63946;
	--c-ink:          #0e1116;
	--c-muted:        #5b6470;
	--c-line:         #e5e8ec;
	--c-bg:           #f6f7f9;
	--c-white:        #ffffff;

	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 20px;

	--shadow-1: 0 1px 2px rgba(14,17,22,.06), 0 2px 8px rgba(14,17,22,.04);
	--shadow-2: 0 8px 24px rgba(14,17,22,.10);
	--shadow-3: 0 20px 60px rgba(14,17,22,.16);

	--container: 1200px;
	--gap: 16px;

	--ff-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	--ff-display: 'Bebas Neue', sans-serif;
}


/* ============================================================
 *  2. Reset & Base
 * ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--ff-sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-primary); }

button { font: inherit; cursor: pointer; }

table { border-collapse: collapse; }


/* ============================================================
 *  3. Layout
 * ============================================================ */
.fb-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.fb-section          { padding: 32px 16px; }
.fb-section__head    { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.fb-section__head h2 { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: .02em; margin: 0; }
.fb-section__title   { font-family: var(--ff-display); font-size: 36px; letter-spacing: .02em; margin: 0; }

.fb-main { min-height: 50vh; }


/* ============================================================
 *  4. Buttons, Pills, Links
 * ============================================================ */
.fb-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: var(--r-md);
	font-weight: 600;
	border: 1px solid transparent;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	cursor: pointer;
}
.fb-btn--primary {
	background: var(--c-primary);
	color: #fff;
}
.fb-btn--primary:hover {
	background: var(--c-primary-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--shadow-2);
}

.fb-pill {
	display: inline-block;
	background: var(--c-line);
	color: var(--c-muted);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	margin-right: 8px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 600;
}
.fb-pill--win { background: var(--c-accent); color: var(--c-ink); }

.fb-link  { color: var(--c-primary); font-weight: 600; }
.fb-link:hover { color: var(--c-primary-dark); }

.fb-muted { color: var(--c-muted); }


/* ============================================================
 *  5. Header
 * ============================================================ */
.fb-header { position: relative; color: #fff; overflow: hidden; }
.fb-header__bg  { position: absolute; inset: 0; z-index: 0; }
.fb-header__svg { width: 100%; height: 100%; display: block; }
.fb-header__top { position: relative; z-index: 2; padding: 14px 0; backdrop-filter: blur(2px); }
.fb-header__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fb-header__hero { position: relative; z-index: 1; padding: 48px 0 64px; }

.fb-logo        { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; }
.fb-logo__mark  { font-size: 26px; }
.fb-logo__text  { font-family: var(--ff-display); letter-spacing: .04em; font-size: 28px; }
.fb-logo__text:hover {color: #ffcc00;}

.fb-nav { flex: 1; }
.fb-nav__list { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.fb-nav__list a {
	display: inline-block;
	padding: 8px 14px;
	color: rgba(255,255,255,.92);
	border-radius: var(--r-md);
	font-weight: 500;
	transition: background .15s;
}
.fb-nav__list a:hover { background: rgba(255,255,255,.12); color: #fff; }

.fb-search { display: flex; align-items: center; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 4px 4px 14px; }
.fb-search input { border: 0; background: transparent; color: #fff; outline: none; min-width: 220px; padding: 1px 1px; font: inherit; }
.fb-search input::placeholder { color: rgba(255,255,255,.7); }
.fb-search button { background: var(--c-accent); border: 0; border-radius: 999px; width: 34px; height: 34px; color: var(--c-ink); display: flex; align-items: center; justify-content: center; }
.fb-search button:hover { background: #ffd633; }

.fb-hero__title { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 64px); margin: 0; letter-spacing: .02em; }
.fb-hero__sub   { color: rgba(255,255,255,.86); max-width: 720px; margin: 12px 0 0; font-size: 18px; }


/* ============================================================
 *  6. Breadcrumbs
 * ============================================================ */
.fb-crumbs { background: rgba(255,255,255,.08); position: relative; z-index: 2; }
.fb-crumbs ol {
	display: flex; gap: 6px; list-style: none;
	max-width: var(--container); margin: 0 auto;
	padding: 10px 16px;
	font-size: 13px; color: rgba(255,255,255,.86);
	flex-wrap: wrap;
}
.fb-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.fb-crumbs a { color: rgba(255,255,255,.86); }
.fb-crumbs a:hover { color: #fff; }


/* ============================================================
 *  7. Live Ticker & Pulse
 * ============================================================ */
.fb-ticker { background: var(--c-ink); color: #fff; position: relative; z-index: 2; }
.fb-ticker__row   { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.fb-ticker__label { font-weight: 700; letter-spacing: .08em; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.fb-ticker__track { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.fb-ticker__track::-webkit-scrollbar { display: none; }
.fb-ticker__item {
	display: inline-flex; gap: 6px; align-items: center;
	padding: 6px 10px; border-radius: 999px;
	background: rgba(255,255,255,.06);
	white-space: nowrap; font-size: 13px; color: #fff;
}
.fb-ticker__item b { color: var(--c-accent); }

.fb-pulse {
	display: inline-block;
	width: 8px; height: 8px;
	background: var(--c-danger);
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(230,57,70,.6);
	animation: fb-pulse 1.6s infinite;
	flex-shrink: 0;
}
@keyframes fb-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(230,57,70,.7); }
	70%  { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
	100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}


/* ============================================================
 *  8. Hero — Match
 * ============================================================ */
.fb-match-hero {
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	color: #fff;
	padding: 36px 0;
	position: relative;
	overflow: hidden;
}
.fb-match-hero.is-live { background: linear-gradient(135deg, #b32028, #7e131a); }

.fb-match-hero__meta { opacity: .9; font-size: 13px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-match-hero__meta a { color: var(--c-accent); }
.fb-match-hero__league { display: inline-flex; align-items: center; gap: 6px; }
.fb-match-hero__league img { border-radius: 2px; }

.fb-match-hero__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 32px;
}
.fb-match-hero__team {
	display: flex; flex-direction: column; align-items: center;
	gap: 10px; text-align: center;
	color: inherit;
	transition: transform .2s;
}
.fb-match-hero__team:hover { transform: translateY(-2px); color: inherit; }

.fb-match-hero__logo {
	width: 96px; height: 96px;
	background: #fff;
	border-radius: 16px;
	padding: 10px;
	object-fit: contain;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.fb-match-hero__name {
	font-size: clamp(18px, 2.2vw, 26px);
	margin: 0;
	font-family: var(--ff-display);
	letter-spacing: .02em;
	font-weight: 400;
}

.fb-match-hero__score { text-align: center; }
.fb-match-hero__digits {
	font-family: var(--ff-display);
	font-size: clamp(48px, 7vw, 72px);
	line-height: 1;
	letter-spacing: .04em;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.fb-match-hero__digits i { font-style: normal; opacity: .5; }
.fb-match-hero__status {
	display: inline-flex; align-items: center; gap: 6px;
	opacity: .95; font-size: 13px;
	margin-top: 6px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.fb-match-hero__time { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 48px); line-height: 1; }
.fb-match-hero__pen  { font-size: 13px; opacity: .85; margin-top: 4px; }
.fb-match-hero__ref  { text-align: center; margin-top: 18px; opacity: .8; font-size: 14px; }


/* ============================================================
 *  9. Hero — Competition / Club / Player / Stadium
 * ============================================================ */
.fb-comp-hero {
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	color: #fff;
	padding: 60px 0;
	background-size: cover;
	background-position: center;
}
.fb-comp-hero__title { font-family: var(--ff-display); font-size: clamp(40px, 6vw, 72px); margin: 0; font-weight: 400; }
.fb-comp-hero__desc  { opacity: .9; max-width: 720px; margin-top: 8px; }

.fb-club-hero {
	background: var(--club-primary, var(--c-primary));
	color: #fff;
	padding: 40px 0;
}
.fb-club-hero__row   { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fb-club-hero__logo img {
	width: 120px; height: 120px;
	background: #fff; padding: 10px;
	border-radius: 20px; object-fit: contain;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.fb-club-hero__title { font-family: var(--ff-display); font-size: clamp(32px, 4.5vw, 56px); margin: 0; font-weight: 400; }
.fb-club-hero__meta  { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 20px; flex-wrap: wrap; opacity: .92; font-size: 15px; }
.fb-club-hero__meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.fb-club-hero__meta a:hover { text-decoration-color: #fff; }

.fb-player-hero {
	background: linear-gradient(135deg, #11182b, #1f2a44);
	color: #fff;
	padding: 48px 0;
}
.fb-player-hero__row   { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.fb-player-hero__photo img,
.fb-player-hero__photo--placeholder {
	width: 180px; height: 220px;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 12px 36px rgba(0,0,0,.4);
}
.fb-player-hero__photo--placeholder {
	background: rgba(255,255,255,.08);
	display: grid; place-items: center;
	font-size: 80px;
}
.fb-player-hero__info h1 { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 56px); margin: 0; font-weight: 400; }
.fb-player-hero__meta {
	list-style: none; padding: 0; margin: 14px 0 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px;
	font-size: 14px;
}

.fb-stadium-hero { position: relative; color: #fff; padding: 100px 0; background: var(--c-ink); overflow: hidden; }
.fb-stadium-hero__img { position: absolute; inset: 0; opacity: .35; }
.fb-stadium-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.fb-stadium-hero__meta { list-style: none; padding: 0; display: flex; gap: 20px; margin: 14px 0 0; position: relative; flex-wrap: wrap; }


/* ============================================================
 *  10. Hero — WC 2026 (main page)
 * ============================================================ */
.fb-wc-hero {
	position: relative;
	overflow: hidden;
	padding: 100px 0 80px;
	color: #fff;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 204, 0, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse 60% 50% at 20% 100%, rgba(193, 39, 45, 0.25) 0%, transparent 50%),
		radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0, 122, 51, 0.25) 0%, transparent 50%),
		linear-gradient(135deg, #0a1d3b 0%, #14365e 35%, #1e3a5f 100%);
	text-align: center;
	isolation: isolate;
}

.fb-wc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(transparent 95%, rgba(255, 255, 255, 0.04) 95%),
		linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.04) 95%);
	background-size: 80px 80px;
	mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
}

.fb-wc-hero::after {
	content: '';
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: 540px;
	height: 540px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.06);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.fb-wc-hero > .fb-container { position: relative; z-index: 2; }

.fb-wc-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	margin-bottom: 18px;
	background: rgba(255, 204, 0, 0.12);
	border: 1px solid rgba(255, 204, 0, 0.35);
	color: var(--c-accent);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.fb-wc-hero__badge::before {
	content: '';
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--c-accent);
	animation: fb-wc-pulse 2s infinite;
}
@keyframes fb-wc-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
	70%  { box-shadow: 0 0 0 12px rgba(255, 204, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.fb-wc-hero__title {
	font-family: var(--ff-display);
	font-size: clamp(48px, 9vw, 112px);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0.02em;
	margin: 0 0 16px;
	background: linear-gradient(180deg, #ffffff 0%, #e8eef7 60%, #b0c1d9 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.fb-wc-hero__sub {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: clamp(15px, 1.6vw, 18px);
	font-weight: 500;
	margin: 0 auto 32px;
	max-width: 720px;
	opacity: 0.92;
	letter-spacing: 0.01em;
}

.fb-wc-hero__countdown {
	display: inline-flex;
	align-items: anchor-center;
	gap: 10px;
	padding: 12px 24px;
	margin: 0 0 36px;
	background: linear-gradient(135deg, rgba(193, 39, 45, 0.25), rgba(193, 39, 45, 0.08));
	border: 1px solid rgba(255, 100, 100, 0.3);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	box-shadow: 0 8px 24px rgba(193, 39, 45, 0.2);
}
.fb-wc-hero__countdown strong {
	font-family: var(--ff-display);
	font-size: 38px;
	color: var(--c-accent);
	line-height: 1;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
}
.fb-wc-hero__countdown--live {
	background: linear-gradient(135deg, rgba(46, 204, 88, 0.25), rgba(46, 204, 88, 0.08));
	border-color: rgba(46, 204, 88, 0.4);
	box-shadow: 0 8px 24px rgba(46, 204, 88, 0.2);
	align-items: center;
}
.fb-wc-hero__countdown--live strong {
	color: var(--c-success);
	font-size: 16px;
	text-shadow: 0 2px 8px rgba(46, 204, 88, 0.4);
}
.fb-wc-hero__countdown--live .fb-pulse { background: var(--c-success); box-shadow: 0 0 0 0 rgba(46,204,88,.6); animation-name: fb-pulse-green; }
@keyframes fb-pulse-green {
	0%   { box-shadow: 0 0 0 0 rgba(46,204,88,.7); }
	70%  { box-shadow: 0 0 0 12px rgba(46,204,88,0); }
	100% { box-shadow: 0 0 0 0 rgba(46,204,88,0); }
}

.fb-wc-hero__stats {
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(120px, 1fr));
	gap: 8px;
	padding: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--shadow-3);
}
.fb-wc-hero__stats > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 18px 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
	border-radius: 14px;
	min-width: 110px;
	transition: transform 0.25s ease, background 0.25s ease;
}
.fb-wc-hero__stats > div:hover {
	background: linear-gradient(180deg, rgba(255, 204, 0, 0.12) 0%, transparent 100%);
	transform: translateY(-2px);
}
.fb-wc-hero__stats strong {
	display: block;
	font-family: var(--ff-display);
	font-size: clamp(36px, 5vw, 52px);
	line-height: 1;
	font-weight: 400;
	color: var(--c-accent);
	letter-spacing: 0.02em;
	text-shadow: 0 2px 12px rgba(255, 204, 0, 0.3);
}
.fb-wc-hero__stats span {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 6px;
}

.fb-wc-hero__ball {
	position: absolute; z-index: 0;
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
}
.fb-wc-hero__ball--1 { top: 60px;    left: -40px;  width: 200px; transform: rotate(-20deg); }
.fb-wc-hero__ball--2 { bottom: 40px; right: -30px; width: 160px; transform: rotate(35deg); }


/* ============================================================
 *  11. Tabs
 * ============================================================ */
.fb-tabs {
	display: flex; gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--c-line);
	margin-top: 24px;
	background: #fff;
	padding: 0 16px;
	max-width: var(--container);
	margin-left: auto; margin-right: auto;
	border-radius: var(--r-md) var(--r-md) 0 0;
}
.fb-tabs a {
	padding: 14px 18px;
	color: var(--c-muted);
	font-weight: 600;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}
.fb-tabs a.is-active,
.fb-tabs a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }


/* ============================================================
 *  12. Cards
 * ============================================================ */
.fb-grid           { display: grid; gap: var(--gap); }
.fb-grid--cards    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fb-grid--matches  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.fb-card {
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-1);
	transition: transform .15s, box-shadow .15s;
	display: block;
	color: inherit;
}
.fb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.fb-card__media img { width: 100%; height: 180px; object-fit: cover; }
.fb-card__body { padding: 14px 16px 18px; }
.fb-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }

.fb-match-card {
	background: #fff;
	border-radius: var(--r-md);
	padding: 14px 16px;
	display: block;
	box-shadow: var(--shadow-1);
	border-left: 4px solid var(--c-line);
	transition: box-shadow .15s, transform .15s;
	color: inherit;
}
.fb-match-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.fb-match-card.is-live { border-left-color: var(--c-danger); }
.fb-match-card__time {
	font-size: 12px;
	color: var(--c-muted);
	display: inline-flex; align-items: center; gap: 6px;
	text-transform: uppercase; letter-spacing: .04em;
	font-weight: 600;
}
.fb-match-card__teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 10px; }
.fb-match-card__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fb-match-card__team + .fb-match-card__team { justify-content: flex-end; flex-direction: row-reverse; }
.fb-match-card__team img,
.fb-match-card__team .fb-club__logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.fb-match-card__team span {
	font-weight: 600; font-size: 14px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fb-match-card__score {
	font-family: var(--ff-display);
	font-size: 24px;
	min-width: 70px; text-align: center;
	color: var(--c-ink);
}
.fb-match-card__score b { font-weight: 400; }
.fb-match-card__score i { font-style: normal; opacity: .4; margin: 0 4px; }

.fb-club__logo--placeholder {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px;
	background: var(--c-line); border-radius: 50%;
	flex-shrink: 0;
}


/* ============================================================
 *  13. Match — Events, Timeline, Lineups, Stats, H2H
 * ============================================================ */

/* --- Match blocks generic --- */
.fb-match-block { margin: 32px 0; scroll-margin-top: 80px; }
.fb-match-block h2 {
	font-family: var(--ff-display);
	font-size: 28px; letter-spacing: .02em;
	margin: 0 0 16px;
	font-weight: 400;
}

/* --- Timeline --- */
.fb-timeline { margin: 24px 0; }
.fb-timeline__bar {
	position: relative; height: 40px;
	background: linear-gradient(to bottom, transparent 49%, var(--c-line) 50%, transparent 51%);
}
.fb-timeline__dot {
	position: absolute; top: 50%; transform: translate(-50%, -50%);
	width: 26px; height: 26px;
	background: #fff;
	border: 2px solid var(--c-line);
	border-radius: 50%;
	display: grid; place-items: center;
	font-size: 14px; cursor: pointer;
	box-shadow: var(--shadow-1);
}
.fb-timeline__dot--home { border-color: var(--c-primary); top: 25%; }
.fb-timeline__dot--away { border-color: var(--c-accent);  top: 75%; }
.fb-timeline__legend { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--c-muted); }

/* --- Events --- */
.fb-events { list-style: none; padding: 0; display: grid; gap: 6px; margin: 0; }
.fb-events__row {
	display: grid;
	grid-template-columns: 50px 30px 1fr;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--shadow-1);
	align-items: center;
}
.fb-events__row.is-home { border-left: 4px solid var(--c-primary); }
.fb-events__row.is-away { border-left: 4px solid var(--c-accent); }
.fb-events__min  { font-family: var(--ff-display); font-size: 22px; color: var(--c-primary); }
.fb-events__icon { font-size: 18px; text-align: center; }
.fb-events__player a { color: inherit; }
.fb-events__player a:hover { color: var(--c-primary); }
.fb-events__player em { display: block; font-size: 12px; color: var(--c-muted); font-style: normal; margin-top: 2px; }

/* --- Lineups --- */
.fb-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fb-lineup {
	background: #fff;
	border-radius: var(--r-md);
	padding: 20px;
	box-shadow: var(--shadow-1);
}
.fb-lineup__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fb-lineup__head strong { font-size: 18px; flex: 1; }
.fb-lineup h4 {
	margin: 16px 0 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--c-muted);
	font-weight: 700;
}
.fb-lineup__list { list-style: none; padding: 0; display: grid; gap: 4px; margin: 0; }
.fb-lineup__list li {
	display: grid; grid-template-columns: 36px 1fr 50px;
	gap: 8px; padding: 8px 0;
	border-bottom: 1px dashed var(--c-line);
	align-items: center;
}
.fb-lineup__list li:last-child { border-bottom: 0; }
.fb-lineup__num { font-family: var(--ff-display); font-size: 18px; color: var(--c-primary); text-align: center; }
.fb-lineup__pos { font-size: 11px; color: var(--c-muted); text-align: right; text-transform: uppercase; letter-spacing: .04em; }
.fb-lineup__list--subs li { opacity: .8; }
.fb-lineup__coach { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); }

/* --- Stats --- */
.fb-stats {
	background: #fff;
	border-radius: var(--r-md);
	padding: 24px;
	box-shadow: var(--shadow-1);
}
.fb-stats__head {
	display: grid; grid-template-columns: 1fr 1fr;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--c-line);
	margin-bottom: 14px;
	font-weight: 700;
}
.fb-stats__head .is-away { text-align: right; }
.fb-stats__row {
	display: grid; grid-template-columns: 60px 1fr 60px;
	gap: 14px; align-items: center;
	padding: 10px 0;
}
.fb-stats__val { text-align: center; font-weight: 700; font-size: 16px; }
.fb-stats__bar { text-align: center; }
.fb-stats__label { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.fb-stats__bars {
	display: grid; grid-template-columns: 1fr 1fr;
	height: 8px;
	background: var(--c-line);
	border-radius: 4px;
	overflow: hidden;
	margin-top: 8px;
}
.fb-stats__bar-home { background: var(--c-primary); height: 100%; transition: width .4s; }
.fb-stats__bar-away { background: var(--c-accent);  height: 100%; transition: width .4s; margin-left: auto; }

/* --- H2H --- */
.fb-h2h { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0; }
.fb-h2h__item {
	display: grid; grid-template-columns: 110px 1fr auto;
	gap: 14px; align-items: center;
	padding: 12px 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--shadow-1);
}
.fb-h2h__date  { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.fb-h2h__teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-h2h__teams b { font-family: var(--ff-display); font-size: 20px; padding: 0 6px; }
.fb-h2h__league { font-size: 12px; }


/* ============================================================
 *  14. Squad / Player Stats / Trophies
 * ============================================================ */
.fb-squad {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}
.fb-squad__group {
	margin: 28px 0 14px;
	font-family: var(--ff-display);
	letter-spacing: .04em;
	font-size: 24px;
	color: var(--c-primary);
	font-weight: 400;
}
.fb-squad__card {
	background: #fff;
	border-radius: var(--r-md);
	padding: 18px 14px;
	text-align: center;
	box-shadow: var(--shadow-1);
	transition: transform .15s, box-shadow .15s;
	color: inherit;
}
.fb-squad__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
.fb-squad__photo {
	width: 84px; height: 84px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 10px;
	background: var(--c-bg);
}
.fb-squad__num   { font-family: var(--ff-display); font-size: 28px; color: var(--c-primary); line-height: 1; }
.fb-squad__name  { font-weight: 600; line-height: 1.3; margin-top: 4px; }
.fb-squad__age   { font-size: 12px; margin-top: 4px; }

/* --- Player stats --- */
.fb-pstats {
	background: #fff;
	border-radius: var(--r-md);
	padding: 20px;
	box-shadow: var(--shadow-1);
	margin-bottom: 14px;
}
.fb-pstats__head { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.fb-pstats__head strong { font-size: 16px; }
.fb-pstats__head a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.fb-pstats__head a:hover { color: var(--c-primary); }
.fb-pstats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: 10px; text-align: center;
}
.fb-pstats__grid > div {
	display: flex; flex-direction: column;
	padding: 12px 8px;
	background: var(--c-bg);
	border-radius: 8px;
}
.fb-pstats__grid strong { font-family: var(--ff-display); font-size: 30px; color: var(--c-primary); line-height: 1; }
.fb-pstats__grid span { font-size: 10px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; font-weight: 600; }

/* --- Trophies --- */
.fb-trophies { list-style: none; padding: 0; display: grid; gap: 6px; margin: 0; }
.fb-trophies li {
	padding: 12px 16px;
	background: #fff;
	border-radius: 6px;
	box-shadow: var(--shadow-1);
	display: flex; align-items: center; gap: 10px;
	flex-wrap: wrap;
}


/* ============================================================
 *  15. Standings
 * ============================================================ */
.fb-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 18px;
}
.fb-group {
	background: #fff;
	border-radius: var(--r-md);
	padding: 18px;
	box-shadow: var(--shadow-1);
}
.fb-group__title {
	font-family: var(--ff-display);
	font-size: 24px;
	margin: 0 0 14px;
	color: var(--c-primary);
	font-weight: 400;
}

.fb-standings { width: 100%; font-size: 13px; }
.fb-standings th,
.fb-standings td {
	padding: 9px 4px;
	text-align: center;
	border-bottom: 1px solid var(--c-line);
}
.fb-standings th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--c-muted);
	font-weight: 700;
}
.fb-standings__team { text-align: left; }
.fb-standings__team a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.fb-standings__team a:hover { color: var(--c-primary); }
.fb-standings__team img { flex-shrink: 0; }
.fb-standings tbody tr { transition: background .12s; }
.fb-standings tbody tr:hover { background: var(--c-bg); }
.fb-standings td.is-positive { color: var(--c-success); font-weight: 700; }
.fb-standings td.is-negative { color: var(--c-danger);  font-weight: 700; }


/* ============================================================
 *  16. Top Scorers
 * ============================================================ */
.fb-scorers {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 8px;
	counter-reset: scorer;
	margin: 0;
}
.fb-scorer {
	display: grid;
	grid-template-columns: 30px 1fr auto auto;
	gap: 14px;
	align-items: center;
	padding: 12px 16px;
	background: #fff;
	border-radius: 8px;
	box-shadow: var(--shadow-1);
	transition: box-shadow .15s, transform .15s;
}
.fb-scorer:hover { box-shadow: var(--shadow-2); transform: translateX(2px); }
.fb-scorer::before {
	counter-increment: scorer;
	content: counter(scorer);
	font-family: var(--ff-display);
	font-size: 24px;
	color: var(--c-primary);
	text-align: center;
	font-weight: 400;
}
.fb-scorer__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	min-width: 0;
}
.fb-scorer__link img {
	width: 48px; height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--c-bg);
	flex-shrink: 0;
}
.fb-scorer__name { font-weight: 600; transition: color .15s; }
.fb-scorer__link:hover .fb-scorer__name { color: var(--c-primary); }
.fb-scorer__team {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--c-muted); font-size: 13px;
	text-decoration: none;
}
.fb-scorer__team:hover { color: var(--c-primary); }
.fb-scorer__goals {
	display: inline-flex; align-items: center; gap: 4px;
	white-space: nowrap;
}
.fb-scorer__goals strong {
	font-family: var(--ff-display);
	font-size: 24px;
	color: var(--c-primary);
	font-weight: 400;
}


/* ============================================================
 *  17. Teams Grid
 * ============================================================ */
.fb-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}
.fb-team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 12px;
	background: #fff;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-1);
	color: var(--c-ink);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, color .15s;
	text-align: center;
}
.fb-team-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-2);
	color: var(--c-primary);
}
.fb-team-card img {
	width: 56px; height: 56px;
	object-fit: contain;
}
.fb-team-card span {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}


/* ============================================================
 *  18. Venue
 * ============================================================ */
.fb-venue {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-1);
}
.fb-venue__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.fb-venue__info { padding: 24px; }
.fb-venue__info ul { list-style: none; padding: 0; display: grid; gap: 8px; margin: 12px 0 0; }


/* ============================================================
 *  19. Prose / Honors / Career / Broadcasters
 * ============================================================ */
.fb-prose       { max-width: 780px; font-size: 17px; line-height: 1.7; }
.fb-prose p     { margin: 0 0 1em; }
.fb-prose h2,
.fb-prose h3    { font-family: var(--ff-display); letter-spacing: .02em; margin-top: 1.6em; font-weight: 400; }
.fb-prose a     { color: var(--c-primary); text-decoration: underline; }

.fb-honors      { list-style: none; padding: 0; display: grid; gap: 6px; margin: 0; }
.fb-honors li   { padding: 10px 14px; background: #fff; border-radius: 6px; box-shadow: var(--shadow-1); }
.fb-honors strong { color: var(--c-primary); }

.fb-career      { width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1); }
.fb-career th,
.fb-career td   { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line); }
.fb-career th   { background: var(--c-bg); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }

.fb-broadcasters    { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0; }
.fb-broadcasters li { padding: 12px 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-1); }

.fb-video-embed iframe,
.fb-video-embed video {
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: var(--r-md);
}

.fb-club-block,
.fb-player-block { margin: 32px 0; scroll-margin-top: 80px; }


/* ============================================================
 *  20. Search / 404 / Empty
 * ============================================================ */
.fb-search__list      { list-style: none; padding: 0; }
.fb-search__item      { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.fb-search__item a    { display: flex; align-items: center; gap: 10px; }
.fb-search__item strong { font-weight: 600; }

.fb-404           { text-align: center; padding: 80px 16px; }
.fb-404__title    { font-family: var(--ff-display); font-size: 120px; line-height: 1; margin: 8px 0 0; color: var(--c-primary); font-weight: 400; }
.fb-404__lead     { font-size: 20px; color: var(--c-muted); max-width: 520px; margin: 8px auto 24px; }
.fb-404__actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fb-search--inline           { background: #fff; box-shadow: var(--shadow-1); }
.fb-search--inline input     { color: var(--c-ink); }
.fb-search--inline input::placeholder { color: var(--c-muted); }
.fb-search--inline button    { background: var(--c-primary); color: #fff; padding: 0 46px; border-radius: 999px; height: 38px; }

.fb-empty       { text-align: center; padding: 60px 16px; }
.fb-empty__icon { font-size: 56px; margin-bottom: 8px; }
.fb-empty__title { font-family: var(--ff-display); font-size: 32px; margin: 0; font-weight: 400; }
.fb-empty__text { color: var(--c-muted); margin: 8px 0 16px; }


/* ============================================================
 *  21. Footer
 * ============================================================ */
.fb-footer            { background: #0e1116; color: #c8cdd6; margin-top: 48px; }
.fb-footer__grid      { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 40px 16px; }
.fb-footer h4         { color: #fff; margin: 0 0 12px; font-size: 16px; }
.fb-footer__menu      { list-style: none; padding: 0; display: grid; gap: 8px; }
.fb-footer__menu a    { color: #c8cdd6; }
.fb-footer__menu a:hover { color: #fff; }
.fb-footer__small     { font-size: 13px; color: #8b94a5; }
.fb-footer__bottom    { border-top: 1px solid rgba(255,255,255,.06); padding: 12px 0; font-size: 13px; }


/* ============================================================
 *  22. Gallery / Map / Sponsors
 * ============================================================ */
.fb-gallery        { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 16px 0; }
.fb-gallery figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; }
.fb-gallery img    { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.fb-map            { border: 0; border-radius: var(--r-md); width: 100%; }

.fb-sponsors       { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.fb-sponsors img   { max-height: 60px; opacity: .75; transition: opacity .2s; }
.fb-sponsors a:hover img { opacity: 1; }


/* ============================================================
 *  23. Custom theme для API-Sports widgets (если используются)
 * ============================================================ */
api-sports-widget[data-theme="fb"] {
	--primary-color: var(--c-primary);
	--success-color: var(--c-success);
	--warning-color: var(--c-accent);
	--danger-color:  var(--c-danger);
	--light-color:   var(--c-muted);

	--home-color: var(--primary-color);
	--away-color: var(--c-accent);

	--text-color:      var(--c-ink);
	--text-color-info: var(--c-muted);

	--background-color: #fff;

	--primary-font-size:   14px;
	--secondary-font-size: 13px;
	--button-font-size:    14px;
	--title-font-size:     16px;

	--header-text-transform: uppercase;
	--button-text-transform: none;
	--title-text-transform:  uppercase;

	--border:        1px solid var(--c-line);
	--game-height:   3rem;
	--league-height: 3.2rem;

	--score-size: 2.5rem;
	--flag-size:  20px;
	--teams-logo-size:    22px;
	--teams-logo-size-xl: 6rem;
	--hover: rgba(11, 110, 58, 0.05);
}


/* ============================================================
 *  24. Accessibility
 * ============================================================ */
.screen-reader-text {
	border: 0;
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	height: 1px; width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff;
	color: var(--c-ink);
	padding: 8px 12px;
	border-radius: 4px;
	clip: auto; clip-path: none;
	height: auto; width: auto;
	left: 8px; top: 8px;
	z-index: 100000;
}

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


/* ============================================================
 *  25. Responsive
 * ============================================================ */
@media (max-width: 768px) {
	.fb-header__top { padding: 10px 0; }
	.fb-search input { min-width: 140px; }

	.fb-match-hero__teams { grid-template-columns: 1fr; gap: 16px; text-align: center; }
	.fb-match-hero__team  { justify-content: center; }
	.fb-match-hero__logo  { width: 72px; height: 72px; }

	.fb-h2h__item         { grid-template-columns: 1fr; gap: 4px; text-align: center; }
	.fb-h2h__teams        { justify-content: center; }

	.fb-stats__row        { grid-template-columns: 50px 1fr 50px; gap: 10px; }
	.fb-venue             { grid-template-columns: 1fr; }
	.fb-lineups           { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.fb-section          { padding: 24px 12px; }
	.fb-wc-hero          { padding: 70px 0 50px; }
	.fb-wc-hero__stats {
		grid-template-columns: repeat(3, 1fr);
		width: 100%;
		max-width: 360px;
	}
	.fb-wc-hero__stats > div { padding: 14px 8px; min-width: 0; }
	.fb-wc-hero__stats strong { font-size: 32px; }
	.fb-wc-hero__stats span   { font-size: 10px; letter-spacing: 0.08em; }
	.fb-wc-hero::after        { width: 360px; height: 360px; }

	.fb-events__row      { grid-template-columns: 40px 24px 1fr; padding: 10px 12px; }
	.fb-events__min      { font-size: 18px; }

	.fb-scorer           { grid-template-columns: 24px 1fr auto; gap: 10px; padding: 10px 12px; }
	.fb-scorer__team     { display: none; }
	.fb-scorer__link img { width: 36px; height: 36px; }

	.fb-standings        { font-size: 12px; }
	.fb-standings th,
	.fb-standings td     { padding: 6px 2px; }
}

/* === Admin bar edit button === */
#wpadminbar .fb-virtual-edit-button > .ab-item {
	background: #2ecc58 !important;
	color: #fff !important;
	font-weight: 700 !important;
}
#wpadminbar .fb-virtual-edit-button:hover > .ab-item {
	background: #27ae47 !important;
}

/* ============================================================
 *  Group cards (страница матча)
 * ============================================================ */
.fb-group-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 32px 0;
}
.fb-group-cards--single { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
	.fb-group-cards { grid-template-columns: 1fr; }
}

.fb-group-card {
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-1);
}

.fb-group-card__head {
	padding: 16px 20px;
	background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
	color: #fff;
}
.fb-group-card__title { margin: 0; display: flex; align-items: center; gap: 10px; }
.fb-group-card__badge {
	font-family: var(--ff-display);
	font-size: 26px;
	letter-spacing: .04em;
	font-weight: 400;
}

.fb-group-card__standings {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.fb-group-card__standings th,
.fb-group-card__standings td {
	padding: 10px 8px;
	text-align: center;
	border-bottom: 1px solid var(--c-line);
}
.fb-group-card__standings th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--c-muted);
	font-weight: 700;
	background: var(--c-bg);
}
.fb-group-card__standings tbody tr { transition: background .12s; }
.fb-group-card__standings tbody tr:hover { background: var(--c-bg); }

.fb-group-card__standings tr.is-highlighted {
	background: linear-gradient(90deg, rgba(255, 204, 0, 0.15), rgba(255, 204, 0, 0.04));
	border-left: 3px solid var(--c-accent);
}
.fb-group-card__standings tr.is-highlighted td:first-child {
	font-weight: 700;
	color: var(--c-primary);
}

.fb-group-card__team { text-align: left; }
.fb-group-card__team a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.fb-group-card__team a:hover { color: var(--c-primary); }
.fb-group-card__team img { flex-shrink: 0; }

.fb-group-card__standings td.is-positive { color: var(--c-success); font-weight: 700; }
.fb-group-card__standings td.is-negative { color: var(--c-danger);  font-weight: 700; }

/* Форма (W/D/L) */
.fb-form { display: inline-flex; gap: 3px; }
.fb-form__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px; height: 18px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	border-radius: 50%;
	background: var(--c-muted);
}
.fb-form__dot.is-win  { background: var(--c-success); }
.fb-form__dot.is-draw { background: var(--c-muted); }
.fb-form__dot.is-lose { background: var(--c-danger); }

/* Скрываем колонки на мобильном */
@media (max-width: 480px) {
	.fb-hidden-sm { display: none; }
}

/* Tabs */
.fb-group-card__tabs {
	display: flex;
	border-top: 1px solid var(--c-line);
	background: var(--c-bg);
}
.fb-group-card__tab {
	flex: 1;
	padding: 12px 14px;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--c-muted);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	transition: color .15s, border-color .15s, background .15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.fb-group-card__tab:hover { color: var(--c-primary); }
.fb-group-card__tab.is-active {
	color: var(--c-primary);
	border-bottom-color: var(--c-primary);
	background: #fff;
}
.fb-group-card__count {
	display: inline-block;
	font-size: 10px;
	background: var(--c-line);
	color: var(--c-muted);
	border-radius: 999px;
	padding: 1px 7px;
	font-weight: 700;
}
.fb-group-card__tab.is-active .fb-group-card__count {
	background: var(--c-primary);
	color: #fff;
}

.fb-group-card__pane { display: none; padding: 8px; }
.fb-group-card__pane.is-active { display: block; }

.fb-group-card__matches {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 4px;
}
.fb-group-card__match a {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background .12s;
}
.fb-group-card__match a:hover { background: var(--c-bg); }
.fb-group-card__match.is-current a {
	background: linear-gradient(90deg, rgba(255, 204, 0, 0.18), rgba(255, 204, 0, 0.04));
	border-left: 3px solid var(--c-accent);
	padding-left: 9px;
}
.fb-group-card__match.is-live a { border-left: 3px solid var(--c-danger); padding-left: 9px; }

.fb-group-card__date {
	font-size: 11px;
	color: var(--c-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.fb-group-card__teams {
	display: grid;
	grid-template-columns: 1fr 50px 1fr;
	gap: 8px;
	align-items: center;
	min-width: 0;
}
.fb-group-card__t {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.fb-group-card__t:nth-child(3) {
	flex-direction: row-reverse;
	text-align: right;
}
.fb-group-card__t span {
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fb-group-card__t img { flex-shrink: 0; }
.fb-group-card__t.is-winner span { color: var(--c-primary); }
.fb-group-card__vs {
	text-align: center;
	font-size: 13px;
	color: var(--c-muted);
}
.fb-group-card__vs b {
	font-family: var(--ff-display);
	font-size: 18px;
	color: var(--c-ink);
	font-weight: 400;
}
.fb-group-card__current-badge {
	font-size: 10px;
	font-weight: 700;
	color: var(--c-primary);
	text-transform: uppercase;
	letter-spacing: .06em;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.fb-group-card__match a { grid-template-columns: 55px 1fr; gap: 8px; padding: 8px 10px; }
	.fb-group-card__current-badge { display: none; }
	.fb-group-card__teams { grid-template-columns: 1fr 40px 1fr; gap: 4px; }
	.fb-group-card__t span { font-size: 12px; }
}

/* Скрытый для глаз, но видимый для SEO/screen-readers */
.fb-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ===== All matches page ===== */
.fb-allmatches__day { margin-bottom: 28px; }
.fb-allmatches__date { font-size: 18px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #0b6e3a; }
.fb-allmatches__table { width: 100%; border-collapse: collapse; }
.fb-allmatches__row td { padding: 10px 8px; border-bottom: 1px solid #eceef1; vertical-align: middle; }
.fb-allmatches__row.is-live { background: rgba(179,38,30,.05); }
.fb-allmatches__time { width: 70px; font-weight: 600; white-space: nowrap; }
.fb-allmatches__home { text-align: right; }
.fb-allmatches__home a, .fb-allmatches__away a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.fb-allmatches__home a { flex-direction: row; justify-content: flex-end; }
.fb-allmatches__score { text-align: center; white-space: nowrap; font-weight: 700; width: 70px; }
.fb-allmatches__score a { color: inherit; text-decoration: none; }
.fb-allmatches__link { text-align: right; width: 90px; }
@media (max-width: 600px) {
	.fb-allmatches__link { display: none; }
	.fb-allmatches__home a span, .fb-allmatches__away a span { font-size: 13px; }
}

/* ===== Match prediction ===== */
.fb-prediction { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: #fff; border: 1px solid #eceef1; border-radius: 12px; padding: 20px; }
.fb-prediction__chart { flex: 0 0 180px; }
.fb-prediction__donut { width: 180px; height: 180px; }
.fb-prediction__donut-top { font-size: 11px; fill: #646970; text-transform: uppercase; letter-spacing: .5px; }
.fb-prediction__donut-main { font-size: 30px; font-weight: 700; fill: #1d2327; }
.fb-prediction__legend { flex: 1 1 300px; min-width: 280px; }
.fb-prediction__bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fb-prediction__label { flex: 0 0 130px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.fb-prediction__label i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.fb-prediction__track { flex: 1; height: 10px; background: #eceef1; border-radius: 6px; overflow: hidden; }
.fb-prediction__fill { display: block; height: 100%; border-radius: 6px; }
.fb-prediction__pct { flex: 0 0 90px; text-align: right; font-weight: 700; font-size: 14px; }
.fb-prediction__pct em { font-weight: 400; color: #646970; font-size: 12px; }
.fb-prediction__advice { margin: 14px 0 4px; font-size: 14px; }
.fb-prediction__note { font-size: 12px; margin: 0; }
@media (max-width: 560px) {
	.fb-prediction { justify-content: center; }
	.fb-prediction__label { flex-basis: 100px; font-size: 13px; }
}

/* ===== Host cities grid ===== */
.fb-allcities__intro, .fb-allmatches__intro { margin-bottom: 24px; }
.fb-cities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.fb-city-card {
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.fb-city-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.fb-city-card__img { position: relative; aspect-ratio: 16/10; background: #f3f4f6; }
.fb-city-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-city-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; opacity: .35; }
.fb-city-card__flag { position: absolute; top: 10px; left: 10px; font-size: 28px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.fb-city-card__body { padding: 14px 16px 18px; }
.fb-city-card__country { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #646970; font-weight: 600; }
.fb-city-card__city { margin: 4px 0 8px; font-size: 20px; }
.fb-city-card__stadium, .fb-city-card__capacity { font-size: 14px; color: #3c434a; margin-top: 4px; }


/* ===== Edit page button (front-end, admin only) ===== */
.fb-section { position: relative; }
.fb-edit-page-btn {
	position: absolute;
	top: 0;
	right: 16px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #0b6e3a;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	transition: background .2s;
}
.fb-edit-page-btn:hover { background: #064a26; color: #fff; }

/* ===== Flag image inside city card ===== */
.fb-city-card__flag {
	position: absolute;
	top: 10px;
	left: 10px;
	line-height: 0;
}
.fb-city-card__flag img {
	width: 32px;
	height: 24px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0,0,0,.4);
	display: block;
}