/* FY Kit - Fixtures and results. Layouts: list, cards (a row that scrolls), last (latest result, large). */
.fyek-fixtures { --fyek-crest-size: 34px; container-type: inline-size; }
.fyek-fixtures__list { list-style: none; margin: 0; padding: 0; }
.fyek-fixtures__month { margin: 1.6em 0 .5em; font-size: 1em; font-weight: 700; }
.fyek-fixtures__month:first-child { margin-top: 0; }
.fyek-fixtures__filter { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 18px; }
.fyek-fixtures__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fyek-fixtures__chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--fyek-line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .9375em; cursor: pointer; }
.fyek-fixtures__chip.is-on { border-color: var(--fyek-ink); background: var(--fyek-ink); color: var(--fyek-paper); }
.fyek-fixtures__chip:focus-visible { outline: 2px solid var(--fyek-accent); outline-offset: 2px; }
.fyek-fixtures__none { margin: 1em 0 0; opacity: .72; }
.fyek-fixtures--empty p { margin: 0; opacity: .72; }

/* List rows: date | competition | home score away | button */
.fyek-fixtures--list .fyek-fixture { display: grid; grid-template-columns: 64px minmax(110px, .8fr) minmax(0, 3fr) auto; align-items: center; gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--fyek-line); }
.fyek-fixtures--list .fyek-fixture:first-child { border-top: 1px solid var(--fyek-line); }
.fyek-fixture__date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.fyek-fixture__dow, .fyek-fixture__mon { font-size: .75em; }
.fyek-fixture__d { font-family: var(--fyek-num-font); font-size: 1.75em; font-weight: 700; }
.fyek-fixture__comp { display: flex; flex-direction: column; gap: .1em; margin: 0; font-size: .875em; line-height: 1.3; }
.fyek-fixture__comp > :first-child { font-weight: 700; }
.fyek-fixture__round, .fyek-fixture__team { opacity: .72; }
.fyek-fixture__match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.fyek-fixture__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fyek-fixture__match > .fyek-fixture__team:first-child { flex-direction: row-reverse; text-align: right; }
.fyek-fixture__name { font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.fyek-fixture__team.is-us .fyek-fixture__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.fyek-fixture__mid { display: flex; flex-direction: column; align-items: center; min-width: 4.2em; }
.fyek-fixture__score { display: inline-flex; gap: .2em; padding: .2em .5em; border-radius: 6px; background: var(--fyek-ink); color: var(--fyek-paper); font-family: var(--fyek-num-font); font-size: 1.125em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fyek-fixture__dash { opacity: .55; }
.fyek-fixture__time { font-family: var(--fyek-num-font); font-size: 1.125em; font-weight: 700; }
.fyek-fixture__state { font-size: .8125em; font-weight: 700; color: var(--fyek-loss); }
.fyek-fixture__note { margin-top: .3em; font-size: .8125em; opacity: .72; }
.fyek-fixture__go { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; }
.fyek-fixture__result { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: .8125em; font-weight: 700; }
.fyek-fixture.is-win .fyek-fixture__result { background: var(--fyek-win); }
.fyek-fixture.is-draw .fyek-fixture__result { background: var(--fyek-draw); }
.fyek-fixture.is-loss .fyek-fixture__result { background: var(--fyek-loss); }
.fyek-fixture__link { font-weight: 700; white-space: nowrap; }
.fyek-fixture__buy { white-space: nowrap; text-decoration: none; }
.fyek-fixture.is-postponed .fyek-fixture__match { opacity: .55; }

/* Narrow places (phones, a sidebar) stack each row. */
@container (max-width: 640px) {
	.fyek-fixtures--list .fyek-fixture { grid-template-columns: 52px minmax(0, 1fr); gap: 10px 14px; }
	.fyek-fixtures--list .fyek-fixture__date { grid-row: span 2; }
	.fyek-fixtures--list .fyek-fixture__comp { flex-direction: row; flex-wrap: wrap; gap: 0 .8em; }
	.fyek-fixtures--list .fyek-fixture__match { grid-column: 2; }
	.fyek-fixtures--list .fyek-fixture__go { grid-column: 1 / -1; justify-content: space-between; }
	.fyek-fixture__match { gap: 8px; }
	.fyek-fixture__name:has(.fyek-fixture__short) .fyek-fixture__long { display: none; }
	.fyek-fixture__short { display: inline !important; }
	.fyek-fixture__match > .fyek-fixture__team { flex-direction: column !important; text-align: center !important; gap: 6px; }
}

/* Cards: a row that scrolls sideways. */
.fyek-fixtures--cards .fyek-fixtures__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.fyek-fixtures--cards .fyek-fixture { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--fyek-line); border-radius: var(--fyek-radius); scroll-snap-align: start; }
.fyek-fixtures--cards .fyek-fixture__date { flex-direction: row; gap: .35em; align-items: baseline; }
.fyek-fixtures--cards .fyek-fixture__d { font-size: 1.25em; }
.fyek-fixtures--cards .fyek-fixture__match { grid-template-columns: 1fr auto 1fr; }
.fyek-fixtures--cards .fyek-fixture__match > .fyek-fixture__team { flex-direction: column !important; text-align: center !important; gap: 6px; }
.fyek-fixtures--cards .fyek-fixture__name:has(.fyek-fixture__short) .fyek-fixture__long { display: none; }
.fyek-fixtures--cards .fyek-fixture__short { display: inline; }
.fyek-fixtures--cards .fyek-fixture__go { margin-top: auto; justify-content: space-between; }

/* Last: the latest result, large. */
.fyek-fixtures--last { --fyek-crest-size: clamp(56px, 7vw, 92px); text-align: center; }
.fyek-fixtures--last .fyek-fixture { display: flex; flex-direction: column; gap: 18px; }
.fyek-fixtures--last .fyek-fixture__comp { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .2em .9em; }
.fyek-fixtures--last .fyek-fixture__day { opacity: .72; }
.fyek-fixtures--last .fyek-fixture__match > .fyek-fixture__team { flex-direction: column !important; text-align: center !important; }
.fyek-fixtures--last .fyek-fixture__name { font-family: var(--fyek-display); font-size: clamp(1.125rem, 2.4vw, 1.75rem); }
.fyek-fixtures--last .fyek-fixture__score { padding: .1em .35em; font-size: clamp(2.5rem, 6vw, 4.25rem); }
.fyek-fixtures--last .fyek-fixture__scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .9375em; }
.fyek-fixtures--last .fyek-fixture__goals { list-style: none; margin: 0; padding: 0; }
.fyek-fixtures--last .fyek-fixture__go { justify-content: center; }
