/* Fanline pagination (archive grids and the news archive). */
.fanline-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}
.fanline-pagination[hidden] {
	display: none;
}
.fanline-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #dfe5ec;
	border-radius: 999px;
	background: #fff;
	color: #071a2b;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(7, 26, 43, 0.04);
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.fanline-pagination__item:hover,
.fanline-pagination__item:focus-visible {
	border-color: #168cff;
	color: #168cff;
}
.fanline-pagination__item[aria-current="page"] {
	border-color: var(--fanline-selected-border, #168cff);
	background: var(--fanline-selected-bg, #168cff);
	color: var(--fanline-selected-text, #fff);
	cursor: default;
}
.fanline-pagination__item[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
}
.fanline-pagination__gap {
	padding: 0 2px;
	color: #9aa6b5;
	font-size: 12px;
}

/* Transfers page on phones: one column that never grows wider than the screen
   (grid items otherwise stretch to their longest line, e.g. long club names). */
[data-transfer-layout] > *,
[data-transfer-grid] > * { min-width: 0; }
@media (max-width: 1023px) {
	[data-transfer-layout] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	[data-transfer-grid] { grid-template-columns: minmax(0, 1fr); }
}

/* Fixture cards in a row share one height; "Match Preview" sits at the bottom.
   A collapsed card keeps its own (short) height. */
[data-fixture-card][data-state="open"] { align-self: stretch; display: flex; flex-direction: column; }
[data-fixture-card][data-state="open"] > [data-fixture-panel] { display: flex; flex: 1; flex-direction: column; }
[data-fixture-card] [data-fixture-panel] > .grid-cols-3 { margin-bottom: 16px; }
[data-fixture-card] [data-fixture-panel] > a:last-child { margin-top: auto; }

/* Matches page: each fixture card sits in a wrapper; the wrapper fills the row and the open card fills the wrapper. */
[data-fixture-grid] > [data-match-section]:not([hidden]) { display: flex; flex-direction: column; }
[data-fixture-grid] > [data-match-section] > [data-fixture-card][data-state="open"] { flex: 1; }

/* Match page: "Show more stats" below the main stats. */
.fanline-more-stats__toggle { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; margin: 4px auto 0; width: max-content; padding: 0 18px; border-radius: 999px; border: 1px solid #dfe5ec; background: #f6f8fb; color: #168cff; font-size: 12px; font-weight: 700; cursor: pointer; user-select: none; }
.fanline-more-stats__toggle::-webkit-details-marker { display: none; }
.fanline-more-stats__toggle:hover { border-color: #cde4fa; background: #eef6ff; }
.fanline-more-stats__toggle i { font-size: 10px; transition: transform .2s; }
.fanline-more-stats[open] .fanline-more-stats__toggle i { transform: rotate(180deg); }
.fanline-more-stats__close, .fanline-more-stats[open] .fanline-more-stats__open { display: none; }
.fanline-more-stats[open] .fanline-more-stats__close { display: inline; }
.fanline-more-stats__rows { margin-top: 18px; }
