/* Jersey Bulls FC — Season Goals promo page. Reel hero + leaderboard + goal list.
 * Markup: page-templates/goals.php · tokens: css/tokens.css */

.bulls-goals__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(420px, 70vh, 720px);
	overflow: hidden;
	isolation: isolate;
	background: var(--c-ink-900);
}
.bulls-goals__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	/* background reel — never interactive; iOS overlays native controls on an
	   autoplaying inline <video> on tap and breaks the cover (same fix as the
	   homepage feature-hero) */
	pointer-events: none;
}
.bulls-goals__video::-webkit-media-controls,
.bulls-goals__video::-webkit-media-controls-enclosure,
.bulls-goals__video::-webkit-media-controls-panel,
.bulls-goals__video::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none;
}
.bulls-goals__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--scrim-bottom);
}
.bulls-goals__hero-inner {
	max-width: var(--content-full);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter) var(--space-10);
	box-sizing: border-box;
}
@media (min-width: 1024px) { .bulls-goals__hero-inner { padding-inline: clamp(72px, 7vw, 132px); } }
.bulls-goals__kicker {
	margin: 0 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-goals__title {
	margin: 0;
	font-family: var(--ff-display);
	font-size: clamp(var(--fs-800), 8vw, var(--fs-1000));
	line-height: 0.9;
	text-transform: uppercase;
	font-weight: var(--fw-bold);
	color: var(--c-white);
}
.bulls-goals__count {
	margin: var(--space-3) 0 0;
	font-family: var(--ff-display);
	font-size: var(--fs-300);
	text-transform: uppercase;
	color: var(--c-white-82);
}

/* Leaderboard */
.bulls-goals__leaders, .bulls-goals__list-wrap {
	max-width: var(--content-full);
	margin: 0 auto;
	padding: var(--space-12) var(--gutter);
	box-sizing: border-box;
}
/* Must sit AFTER the base padding rule above — same specificity, so source
   order decides whether the desktop gutter survives. */
@media (min-width: 1024px) {
	.bulls-goals__leaders, .bulls-goals__list-wrap { padding-inline: clamp(72px, 7vw, 132px); }
}
.bulls-goals__h {
	margin: 0 0 var(--space-6);
	font-family: var(--ff-display);
	font-size: clamp(var(--fs-500), 2.4vw, var(--fs-700));
	text-transform: uppercase;
	font-weight: var(--fw-bold);
	color: var(--t-fg);
}
.bulls-goals__leaderboard {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-4);
}
.bulls-goals__leader {
	display: flex;
	align-items: baseline;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	background: var(--t-panel);
	border-radius: var(--radius-lg);
}
.bulls-goals__leader-num {
	font-family: var(--ff-display);
	font-size: var(--fs-700);
	font-weight: var(--fw-bold);
	color: var(--c-bulls-red);
	line-height: 1;
}
.bulls-goals__leader-name {
	font-family: var(--ff-display);
	font-size: var(--fs-200);
	text-transform: uppercase;
	color: var(--t-fg);
}

/* Goal-by-goal list */
.bulls-goals__list { list-style: none; margin: 0; padding: 0; }
.bulls-goals__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1.2fr) auto auto;
	gap: var(--space-4);
	align-items: baseline;
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--t-border);
}
/* Rows without footage leave the play column empty (auto collapses). */
.bulls-goals__item-min {
	font-family: var(--ff-mono);
	font-size: var(--fs-100);
	color: var(--c-bulls-red-300);   /* brand red computes ~3.6:1 on the ink canvas */
}
.bulls-goals__item-scorer {
	font-family: var(--ff-display);
	font-size: var(--fs-200);
	text-transform: uppercase;
	color: var(--t-fg);
}
.bulls-goals__tagp {
	font-family: var(--ff-mono);
	font-size: var(--fs-25);
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
	color: var(--t-fg-muted);
}
.bulls-goals__item-opp { font-family: var(--ff-sans); font-size: var(--fs-100); color: var(--t-fg-body); }
.bulls-goals__item-date { font-family: var(--ff-mono); font-size: var(--fs-50); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--t-fg-muted); text-align: right; }

/* Per-goal clip play button + lightbox. The button itself is the canonical
   .bulls-cta-button --primary --sm (site red); only placement lives here. */
.bulls-goals__play { gap: var(--space-2); }
.bulls-goals__play-icon { display: inline-flex; align-items: center; line-height: 0; }

.bulls-goals__dialog {
	width: min(960px, 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-goals__dialog::backdrop { background: rgba(10, 10, 10, 0.82); }
.bulls-goals__dialog video { display: block; width: 100%; height: auto; max-height: 80vh; aspect-ratio: var(--ar-video); background: var(--c-black); }

/* Clip player + GSAP MorphSVG play/pause overlay (item 2). Visible while paused;
   dimmed (still tappable on touch) while playing; full on hover/focus. */
.bulls-goals__player { position: relative; }
.bulls-goals__playpause {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(56px, 13%, 86px);
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: rgba(10, 10, 10, 0.55);
	color: var(--c-white);
	cursor: pointer;
	opacity: 1;
	transition: opacity var(--motion-base) var(--ease-out), background var(--motion-fast) var(--ease-out);
}
.bulls-goals__player.is-playing .bulls-goals__playpause { opacity: 0.25; }
.bulls-goals__player.is-playing:hover .bulls-goals__playpause,
.bulls-goals__playpause:focus-visible { opacity: 1; }
.bulls-goals__playpause:hover { background: var(--c-bulls-red); }
.bulls-goals__playpause:focus-visible { outline: 2px solid var(--c-focus-ring); outline-offset: 3px; }
.bulls-goals__pp-icon { width: 42%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .bulls-goals__playpause { transition: none; } }
.bulls-goals__dialog-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-goals__dialog-title {
	margin: 0;
	font-family: var(--ff-display);
	font-size: var(--fs-200);
	text-transform: uppercase;
}
.bulls-goals__dialog-close {
	appearance: none;
	box-sizing: border-box;
	padding: 0;   /* parent button skin adds padding — keep the square square */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-white-50);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--c-white);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.bulls-goals__dialog-close:hover,
.bulls-goals__dialog-close:focus-visible { background: var(--c-bulls-red); border-color: var(--c-bulls-red); }

@media (max-width: 700px) {
	.bulls-goals__item { grid-template-columns: 44px 1fr auto; row-gap: var(--space-1); }
	.bulls-goals__item-opp, .bulls-goals__item-date { grid-column: 2; text-align: left; }
	.bulls-goals__play { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
	.bulls-goals__video { display: none; }
}
