/*
 * Jersey Bulls FC — Match centre (single sp_event)
 *
 * PSG-style scoreboard hero + tabbed Report / Line-ups / Stats. Dark editorial.
 * Markup: single-sp_event.php · tokens: css/tokens.css
 */

.bulls-mc {
	max-width: var(--content-base);
	margin: 0 auto;
	/* Flush top: the scoreboard board sits directly under the fixture marquee, no
	   gap (client, 13 Jun). */
	padding: 0 var(--gutter) var(--space-16);
	color: var(--c-text-inverse);
}

/* ----- Scoreboard hero ----- */
/* Full-bleed band (PSG board, design/26 P1): breaks out of the content-base
   column to span the viewport; the teams row stays centred within it. */
.bulls-mc__board {
	text-align: center;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: var(--space-10) var(--space-6);
	background: var(--grad-ink);
	border-bottom: 3px solid var(--c-bulls-red);
	margin-bottom: var(--space-8);
	box-sizing: border-box;
}

/* Featured match photo as the board's backdrop (overhaul, 12 Jun). */
.bulls-mc__board { position: relative; isolation: isolate; }
.bulls-mc__board-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	z-index: -2;
}
.bulls-mc__board-scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.72) 60%, rgba(10,10,10,0.9) 100%);
}
.bulls-mc__board.has-media { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Scorers under each side of the board (PSG pattern). */
.bulls-mc__board-scorers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	max-width: 720px;
	margin: var(--space-4) auto 0;
}
.bulls-mc__board-scorers-side {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--ff-mono);
	font-size: var(--fs-75);
	color: var(--c-white);
	font-weight: var(--fw-medium);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);   /* clearer over the photo (client 13 Jun) */
}
.bulls-mc__board-scorers-side li { margin-bottom: 2px; }
.bulls-mc__comp {
	margin: 0 0 var(--space-6);
	font-family: var(--ff-mono);
	font-size: var(--fs-50);
	letter-spacing: var(--ls-wider);
	text-transform: uppercase;
	color: var(--c-bulls-red-300);
}
.bulls-mc__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-5);
	max-width: 720px;
	margin: 0 auto;
}
.bulls-mc__team { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.bulls-mc__crest { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.bulls-mc__crest img { width: 100%; height: 100%; object-fit: contain; }
.bulls-mc__crest-ph {
	width: 88px; height: 88px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--c-white-18); border-radius: var(--radius-pill);
	font-family: var(--ff-display); font-size: var(--fs-400); color: var(--c-white-50);
}
.bulls-mc__name { font-family: var(--ff-display); font-size: var(--fs-200); font-weight: var(--fw-bold); text-transform: uppercase; color: var(--c-white); line-height: var(--lh-snug); }
.bulls-mc__score {
	position: relative;
	font-family: var(--ff-display);
	font-size: clamp(2.75rem, 9vw, 5rem);
	font-weight: var(--fw-bold);
	line-height: 1; color: var(--c-white); white-space: nowrap;
}
.bulls-mc__ft {
	display: block; margin-top: var(--space-2);
	font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide);
	color: var(--c-bulls-red-300);
}
.bulls-mc__meta { margin: var(--space-6) 0 0; font-family: var(--ff-sans); font-size: var(--fs-75); color: var(--c-white); font-weight: var(--fw-medium); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }

/* ----- Tabs ----- */
.bulls-mc__tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--t-border-strong); margin-bottom: var(--space-8); }
.bulls-mc__tab {
	appearance: none; background: transparent !important; border: 0; border-bottom: 3px solid transparent;
	margin-bottom: -1px; padding: var(--space-3) 0; cursor: pointer;
	font-family: var(--ff-display); font-size: var(--fs-300); text-transform: uppercase;
	letter-spacing: var(--ls-snug); color: var(--t-fg-muted);
	transition: color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}
.bulls-mc__tab[aria-selected="true"] { color: var(--t-fg); border-bottom-color: var(--c-bulls-red); }
.bulls-mc__tab:hover { color: var(--t-fg); }
.bulls-mc__tab:focus-visible { outline: 2px solid var(--c-focus-ring); outline-offset: 2px; }

.bulls-mc__panel[hidden] { display: none; }
.bulls-mc__h { margin: 0 0 var(--space-4); font-family: var(--ff-display); font-size: var(--fs-400); text-transform: uppercase; color: var(--t-fg); }
.bulls-mc__empty { color: var(--t-fg-muted); font-family: var(--ff-sans); }

/* ----- Written match report (event post_content) — readable editorial prose,
   consistent with the news article body ----- */
.bulls-mc__report-media { margin: 0 0 var(--space-8); }
.bulls-mc__report-media img { width: 100%; height: auto; display: block; }
.bulls-mc__report {
	margin: 0 0 var(--space-10);
	font-family: var(--ff-sans);
	font-size: var(--fs-200);
	line-height: var(--lh-loose);
	color: var(--t-fg-body);
}
.bulls-mc__report > :first-child { margin-top: 0; }
.bulls-mc__report p { margin: 0 0 var(--space-5); }
.bulls-mc__report h2,
.bulls-mc__report h3 { font-family: var(--ff-display); text-transform: uppercase; color: var(--t-fg); line-height: var(--lh-snug); margin: var(--space-8) 0 var(--space-3); }
.bulls-mc__report h2 { font-size: var(--fs-400); }
.bulls-mc__report h3 { font-size: var(--fs-300); }
.bulls-mc__report a { color: var(--c-bulls-red-300); text-decoration: underline; text-underline-offset: 2px; }
.bulls-mc__report a:hover { color: var(--c-white); }
.bulls-mc__report img { max-width: 100%; height: auto; margin: var(--space-6) 0; }
.bulls-mc__report ul,
.bulls-mc__report ol { margin: 0 0 var(--space-5) var(--space-5); }
.bulls-mc__report li { margin: 0 0 var(--space-2); }
.bulls-mc__report blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 3px solid var(--c-bulls-red); color: var(--t-fg); font-style: italic; }

/* ----- Report timeline ----- */
.bulls-mc__timeline, .bulls-mc__disc { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.bulls-mc__ev { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-2) 0; }   /* no row divider — consistent with Discipline (client 13 Jun) */
.bulls-mc__ev--a { flex-direction: row-reverse; text-align: right; }
.bulls-mc__min { font-family: var(--ff-mono); font-size: var(--fs-75); color: var(--c-bulls-red-300); min-width: 3ch; }
.bulls-mc__ev-name { font-family: var(--ff-sans); color: var(--t-fg); }
.bulls-mc__disc li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; font-family: var(--ff-sans); color: var(--t-fg-body); }
.bulls-mc__card { width: 12px; height: 16px; border-radius: var(--radius-sm); display: inline-block; }
.bulls-mc__card--yellow { background: var(--c-card-yellow); }
.bulls-mc__card--red { background: var(--c-bulls-red); }
.bulls-mc__card--sinbin, .bulls-mc__card--sin\ bin { background: var(--c-card-yellow); box-shadow: inset 0 0 0 2px var(--c-bulls-red); }

/* ----- Line-ups ----- */
.bulls-mc__lineups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.bulls-mc__xi h3 { margin: 0 0 var(--space-4); font-family: var(--ff-display); font-size: var(--fs-300); text-transform: uppercase; color: var(--t-fg); }
.bulls-mc__players { list-style: none; margin: 0; padding: 0; }
.bulls-mc__players li { padding: var(--space-2) 0; border-bottom: 1px solid var(--t-border); font-family: var(--ff-sans); color: var(--t-fg); }
.bulls-mc__players--subs li { color: var(--t-fg-muted); }
.bulls-mc__subs-label { margin: var(--space-4) 0 var(--space-2); font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-bulls-red-300); }
.bulls-mc__sub { font-family: var(--ff-mono); font-size: var(--fs-50); color: var(--t-fg-muted); }

/* ----- Stats ----- */
.bulls-mc__stats { width: 100%; border-collapse: collapse; }
/* Neutralise the FC United parent's table skin (white cells + zebra stripes
   put white numbers on white). !important: the parent uses high-specificity
   striping selectors. */
.bulls-mc__stats tr,
.bulls-mc__stats th,
.bulls-mc__stats td {
	background: transparent !important;
	border: 0 !important;
}
.bulls-mc__stats th, .bulls-mc__stats td { padding: var(--space-4); font-family: var(--ff-sans); }
.bulls-mc__stats thead th {
	font-family: var(--ff-display);
	font-size: var(--fs-200);
	text-transform: uppercase;
	color: var(--t-fg);
	border-bottom: 2px solid var(--c-bulls-red) !important;
}
.bulls-mc__stats thead th:first-child { text-align: right; }
.bulls-mc__stats thead th:last-child { text-align: left; }
.bulls-mc__stats tbody th {
	width: 34%;
	font-family: var(--ff-mono);
	font-size: var(--fs-50);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--t-fg-body);
	text-align: center;
}
.bulls-mc__stats tbody td {
	text-align: center;
	color: var(--t-fg);
	font-family: var(--ff-display);
	font-size: var(--fs-500);
	line-height: 1;
}
.bulls-mc__stats tbody tr { border-bottom: 1px solid var(--t-border) !important; }
.bulls-mc__stats tbody tr:last-child { border-bottom: 0 !important; }
.bulls-mc__note { margin-top: var(--space-5); font-family: var(--ff-sans); font-size: var(--fs-75); color: var(--t-fg-muted); }

.bulls-mc__back { margin-top: var(--space-10); }
.bulls-mc__back a { font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-muted); text-decoration: none; }
.bulls-mc__back a:hover { color: var(--c-bulls-red-300); }

@media (max-width: 600px) {
	.bulls-mc { padding: 0 var(--gutter-sm) var(--space-12); }
	.bulls-mc__crest, .bulls-mc__crest-ph { width: 56px; height: 56px; }
	.bulls-mc__lineups { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ============================================================
 * Line-up pitch view — Bulls XI in position bands on a pitch
 * ============================================================ */

.bulls-mc__pitch {
	position: relative;
	max-width: 520px;
	margin: 0 auto var(--space-8);
	aspect-ratio: 3 / 4;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: var(--space-3);
	padding: var(--space-6) var(--space-4);
	border: 1px solid var(--c-white-18);
	background:
		linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
		repeating-linear-gradient(180deg, #0e3d20 0, #0e3d20 12.5%, #0b3319 12.5%, #0b3319 25%);
	overflow: hidden;
}
/* halfway line + centre circle */
.bulls-mc__pitch::before {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	top: 50%;
	height: 2px;
	background: var(--c-white-18);
}
.bulls-mc__pitch::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 92px;
	height: 92px;
	transform: translate(-50%, -50%);
	border: 2px solid var(--c-white-18);
	border-radius: 50%;
}

.bulls-mc__pitch-row {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	gap: var(--space-3);
}

.bulls-mc__pitch-player {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 88px;
	text-align: center;
}
.bulls-mc__pitch-dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--c-bulls-red);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.bulls-mc__pitch-name {
	font-family: var(--ff-mono);
	font-size: var(--fs-50);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--c-white);
	line-height: 1.15;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ----- Match highlights embed (Report tab, video-first) ----- */
.bulls-mc__video {
	margin: 0 0 var(--space-6);
	aspect-ratio: var(--ar-video);
	background: var(--c-black);
}
.bulls-mc__video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ----- Match photo gallery (attached images; lightbox) ----- */
.bulls-mc__gallery {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
}
@media (max-width: 700px) { .bulls-mc__gallery { grid-template-columns: repeat(2, 1fr); } }
.bulls-mc__gallery-thumb {
	appearance: none;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--c-ink-700);
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 3 / 2;
}
.bulls-mc__gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--motion-base) var(--ease-out);
}
.bulls-mc__gallery-thumb:hover img,
.bulls-mc__gallery-thumb:focus-visible img { transform: scale(1.04); }
.bulls-mc__gallery-thumb:focus-visible { outline: 2px solid var(--c-focus-ring); outline-offset: 2px; }

.bulls-mc__gallery-dialog {
	width: min(1200px, calc(100vw - 2 * var(--gutter)));
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--c-ink-900);
	color: var(--c-white);
	overflow: hidden;
}
.bulls-mc__gallery-dialog::backdrop { background: rgba(10, 10, 10, 0.85); }
.bulls-mc__gallery-dialog img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: var(--c-black); }
.bulls-mc__gallery-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
	min-height: 56px;
}
.bulls-mc__gallery-count { margin: 0; font-family: var(--ff-mono); font-size: var(--fs-75); letter-spacing: var(--ls-wide); }
.bulls-mc__gallery-nav {
	display: flex;
	justify-content: space-between;
	padding: var(--space-2) var(--space-2) var(--space-3);
}
.bulls-mc__gallery-arrow {
	appearance: none;
	box-sizing: border-box;
	padding: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-white-50);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--c-white);
	font-size: 20px;
	cursor: pointer;
	transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.bulls-mc__gallery-arrow:hover,
.bulls-mc__gallery-arrow:focus-visible { background: var(--c-bulls-red); border-color: var(--c-bulls-red); }

/* ----- Upcoming match: tickets CTA + opposition profile + head-to-head ----- */
.bulls-mc__upcoming-cta { margin: 0 0 var(--space-10); }
.bulls-mc__opposition { margin: 0 0 var(--space-10); }
.bulls-mc__opposition-card {
	display: flex;
	gap: var(--space-6);
	align-items: flex-start;
	padding: var(--space-6);
	background: var(--t-panel);
	border: 1px solid var(--t-border);
	border-radius: var(--radius-lg);
}
.bulls-mc__crest--sm { width: 64px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; }
.bulls-mc__crest--sm img { max-width: 100%; max-height: 100%; }
.bulls-mc__opposition-name { margin: 0; font-family: var(--ff-display); font-size: var(--fs-300); text-transform: uppercase; color: var(--t-fg); }
.bulls-mc__opposition-meta { margin: var(--space-1) 0 0; font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-muted); }
.bulls-mc__opposition-about { margin: var(--space-3) 0 0; font-size: var(--fs-100); line-height: var(--lh-loose); color: var(--t-fg-body); max-width: 60ch; }
.bulls-mc__opposition-link {
	display: inline-block;
	margin-top: var(--space-3);
	font-family: var(--ff-mono);
	font-size: var(--fs-75);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--c-bulls-red);
	text-decoration: none;
	/* 24px tap target */
	padding-block: var(--space-2);
	margin-block: calc(var(--space-3) - var(--space-2)) calc(-1 * var(--space-2));
}
.bulls-mc__opposition-link:hover,
.bulls-mc__opposition-link:focus-visible { text-decoration: underline; }

.bulls-mc__h2h-tally { margin: 0 0 var(--space-4); font-family: var(--ff-mono); font-size: var(--fs-75); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-body); }
.bulls-mc__h2h-list { margin: 0; padding: 0; list-style: none; }
.bulls-mc__h2h-list li { border-bottom: 1px solid var(--t-border); }
.bulls-mc__h2h-list a {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	gap: var(--space-4);
	align-items: baseline;
	padding: var(--space-4) 0;
	text-decoration: none;
	color: var(--t-fg-body);
}
.bulls-mc__h2h-list a:hover .bulls-mc__h2h-fixture,
.bulls-mc__h2h-list a:focus-visible .bulls-mc__h2h-fixture { color: var(--c-bulls-red); }
.bulls-mc__h2h-date { font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-muted); }
.bulls-mc__h2h-fixture { color: var(--t-fg); transition: color var(--motion-fast) var(--ease-out); }
.bulls-mc__h2h-fixture strong { font-family: var(--ff-display); padding: 0 var(--space-1); }
.bulls-mc__h2h-comp { font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-muted); }
@media (max-width: 700px) {
	.bulls-mc__h2h-list a { grid-template-columns: 1fr; gap: var(--space-1); }
	.bulls-mc__opposition-card { flex-direction: column; }
}
