/*
 * FT Highlights, styled after the new FloorballToday theme:
 * Barlow Condensed for headings and scores, Inter for text, blue #0A86C9, ink #0B0D10.
 * The theme can override any --fth-* variable.
 */
.fth, .fth-feature, .fth-scores, .fth-hub, .fth-game {
	--fth-ink: #0B0D10;
	--fth-text: #4A5560;
	--fth-muted: #5F6B76;
	--fth-line: #E3E8ED;
	--fth-accent: #0A86C9;
	--fth-link: #0567A3;
	--fth-kicker: #0567A3;
	--fth-head: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
	--fth-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--fth-radius: 12px;
	font-family: var(--fth-body);
	color: var(--fth-ink);
	box-sizing: border-box;
}
.fth *, .fth-feature *, .fth-scores *, .fth-hub *, .fth-game * { box-sizing: border-box; }
.fth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Section (homepage strip, WFC hub) ---------- */
.fth { margin: 56px 0; }
.fth--dark {
	--fth-ink: #FFFFFF;
	--fth-text: #C4CDD6;
	--fth-muted: #A9B4BF;
	--fth-line: #26303A;
	--fth-kicker: #8FD3FA;
	--fth-link: #8FD3FA;
	background: #0B0D10;
	border-radius: 20px;
	padding: 36px 40px 32px;
}
.fth__head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
	border-bottom: 3px solid var(--fth-ink); padding-bottom: 12px; margin-bottom: 24px;
}
.fth--dark .fth__head { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.fth__title {
	margin: 0; display: flex; align-items: center; gap: 12px;
	font-family: var(--fth-head); font-weight: 800; font-size: 34px; line-height: 1;
	text-transform: uppercase; letter-spacing: .2px; color: var(--fth-ink);
}
.fth__title::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fth-accent); flex: none;
}
.fth__more {
	font-size: 14px; font-weight: 600; color: var(--fth-link); text-decoration: none;
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}
.fth__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.fth__credit { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: var(--fth-muted); }
.fth__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Strip: scrolls sideways on phones, four in a row on desktop */
.fth--strip .fth__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
	gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 0 -40px; padding: 0 40px 4px; scroll-padding: 0 40px;
}
.fth--strip .fth__list::-webkit-scrollbar { display: none; }
.fth--strip .fth__list > * { scroll-snap-align: start; }
@media (min-width: 640px) { .fth--strip .fth__list { grid-auto-columns: calc((100% - 80px - 20px) / 2); } }
@media (min-width: 1000px) { .fth--strip .fth__list { grid-auto-columns: calc((100% - 80px - 60px) / 4); } }

.fth--grid .fth__list, .fth--days .fth__list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px;
}
.fth__day + .fth__day { margin-top: 36px; }
.fth__daytitle {
	margin: 0 0 16px; font-family: var(--fth-head); font-weight: 700; font-size: 22px;
	text-transform: uppercase; letter-spacing: .5px; color: var(--fth-ink);
	display: flex; align-items: center; gap: 14px;
}
.fth__daytitle::after { content: ""; flex: 1; height: 1px; background: var(--fth-line); }

/* ---------- Card ---------- */
.fth-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fth-card__body { display: flex; flex-direction: column; gap: 6px; }
.fth-kicker {
	margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fth-kicker);
}
.fth-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.fth-flag { display: inline-flex; align-items: center; margin-right: 6px; }
.fth-flagsvg { display: block; width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,13,16,.12); }

/* ---------- Scoreboard ---------- */
.fth-sb {
	margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
	font-family: var(--fth-head); font-weight: 700; font-size: 22px; line-height: 1.1;
	text-transform: uppercase; color: var(--fth-ink);
}
.fth-sb__team { min-width: 0; overflow-wrap: anywhere; opacity: .62; }
.fth-sb__team.is-win { opacity: 1; }
.fth-sb__team--away { text-align: right; }
.fth-sb__score {
	display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap;
	font-weight: 800; font-size: 1.15em; font-variant-numeric: tabular-nums;
	background: var(--fth-ink); color: var(--fth-bg-on-ink, #FFFFFF);
	padding: 4px 10px 3px; border-radius: 8px;
}
.fth--dark .fth-sb__score { background: #FFFFFF; color: #0B0D10; }
.fth-sb__score--vs { font-size: .8em; font-weight: 700; background: transparent; color: var(--fth-muted); }
.fth-sb__sep { opacity: .5; font-weight: 700; }
.fth-sb__suffix {
	font-family: var(--fth-body); font-size: 10px; font-weight: 700; letter-spacing: .6px;
	text-decoration: none; align-self: center; margin-left: 2px; opacity: .75;
}
/* Cards are narrow: stack teams left-aligned, score on the right */
.fth-card .fth-sb { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 2px; font-size: 20px; }
.fth-card .fth-sb__team--home { grid-column: 1; grid-row: 1; }
.fth-card .fth-sb__team--away { grid-column: 1; grid-row: 2; text-align: left; }
.fth-card .fth-sb__score { grid-column: 2; grid-row: 1 / span 2; font-size: 26px; padding: 6px 10px 5px; }

/* ---------- Player ---------- */
.fth-player {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--fth-radius); background: #11161C; border: 0; color: #FFFFFF; text-decoration: none;
	isolation: isolate;
}
.fth-player--large { border-radius: 14px; }
.fth-player__img {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .4s ease;
}
/* hqdefault is 4:3 with black bars: scale so only the 16:9 picture shows */
.fth-player__img--crop { height: 133.4%; top: -16.7%; }
.fth-player__shade {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(11,13,16,0) 45%, rgba(11,13,16,.55) 100%);
	transition: opacity .3s;
}
.fth-player__play {
	position: absolute; z-index: 2; left: 14px; bottom: 14px;
	width: 48px; height: 48px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; padding-left: 3px;
	background: var(--fth-accent); color: #FFFFFF; box-shadow: 0 6px 18px rgba(0,0,0,.3);
	transition: transform .25s ease, background-color .25s;
}
.fth-player--large .fth-player__play { width: 76px; height: 76px; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.fth-player--large .fth-player__play svg { width: 32px; height: 32px; }
.fth-player__badge {
	position: absolute; z-index: 2; top: 12px; left: 12px;
	background: #0B0D10; color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .8px;
	text-transform: uppercase; padding: 5px 9px; border-radius: 6px;
}
.fth-player:hover .fth-player__img { transform: scale(1.04); }
.fth-player:hover .fth-player__play { transform: scale(1.08); background: #0567A3; }
.fth-player--large:hover .fth-player__play { transform: translate(-50%, -50%) scale(1.08); }
.fth-player:focus-visible { outline: 3px solid var(--fth-accent); outline-offset: 3px; }
iframe.fth-player { display: block; }
@media (prefers-reduced-motion: reduce) {
	.fth-player__img, .fth-player__play { transition: none; }
	.fth-player:hover .fth-player__img { transform: none; }
}

/* ---------- Under an article ---------- */
.fth-feature { margin: 48px 0 8px; padding-top: 20px; border-top: 3px solid var(--fth-ink); }
.fth-feature__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fth-feature .fth-sb { font-size: clamp(24px, 4vw, 34px); max-width: 640px; }
.fth-feature .fth-sb__score { padding: 6px 14px 4px; border-radius: 10px; }
.fth-feature__foot {
	margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
	font-size: 13px; color: var(--fth-muted);
}
.fth-feature__foot a { color: var(--fth-link); font-weight: 600; text-decoration: none; }
.fth-feature__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.fth-note { font-size: 14px; padding: 12px 16px; border: 1px dashed #9AA6B1; border-radius: 10px; }

@media (max-width: 639px) {
	.fth--dark { padding: 28px 20px 24px; border-radius: 16px; }
	.fth--strip .fth__list { margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
	.fth__title { font-size: 28px; }
}

/* ---------- Refinements ---------- */
/* Desktop: exactly four cards, no half card at the edge. Phones keep swiping through all of them. */
@media (min-width: 1000px) {
	.fth--strip .fth__list { overflow: visible; margin: 0; padding: 0; grid-auto-columns: calc((100% - 60px) / 4); }
	.fth--strip .fth__list > :nth-child(n+5) { display: none; }
}
@media (min-width: 640px) and (max-width: 999px) {
	.fth--strip .fth__list { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
/* One line per team in cards; the full name stays available as a tooltip */
.fth-card .fth-sb__team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Under an article: team, score, team close together */
.fth-feature .fth-sb { grid-template-columns: auto auto auto; justify-content: start; gap: 16px; }
.fth-feature .fth-sb__team--away { text-align: left; }
/* WK hub on phones: two smaller cards per row */
@media (max-width: 639px) {
	.fth--days .fth__list, .fth--grid .fth__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.fth--days .fth-card .fth-sb, .fth--grid .fth-card .fth-sb { font-size: 16px; }
	.fth--days .fth-card .fth-sb__score, .fth--grid .fth-card .fth-sb__score { font-size: 19px; padding: 4px 7px 3px; }
	.fth--days .fth-player__play, .fth--grid .fth-player__play { width: 38px; height: 38px; left: 10px; bottom: 10px; }
	.fth--days .fth-kicker, .fth--grid .fth-kicker { font-size: 11px; letter-spacing: .8px; }
	.fth__daytitle { font-size: 19px; }
}

/* =====================================================================
 * 0.3: scores block, hub and game pages
 * ===================================================================== */
.fth-h2 {
	margin: 0 0 14px; font-family: var(--fth-head); font-weight: 800; font-size: 24px; line-height: 1.05;
	text-transform: uppercase; letter-spacing: .2px; color: var(--fth-ink);
}
.fth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; background: var(--fth-accent); color: #FFFFFF; font: 600 14px/1 var(--fth-body);
	text-decoration: none; border: 0; cursor: pointer;
}
.fth-btn:hover { background: #0567A3; color: #FFFFFF; }
.fth-btn--ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.fth-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Scores block ---------- */
.fth-scores {
	background: #FFFFFF; border: 1px solid var(--fth-line); border-radius: 16px; padding: 18px 18px 14px;
	margin: 0 0 32px;
}
.fth-scores__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fth-scores__title {
	margin: 0; font-family: var(--fth-head); font-weight: 800; font-size: 24px; line-height: 1;
	text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--fth-ink);
}
.fth-scores__title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fth-accent); }
.fth-tabs { display: inline-flex; background: #F1F4F7; border-radius: 999px; padding: 3px; }
.fth-tab {
	border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 7px 12px; min-height: 32px;
	font: 600 13px/1 var(--fth-body); color: var(--fth-muted);
}
.fth-tab[aria-selected="true"] { background: #FFFFFF; color: var(--fth-ink); box-shadow: 0 1px 3px rgba(11,13,16,.12); }
.fth-tab:focus-visible { outline: 2px solid var(--fth-accent); outline-offset: 1px; }
.fth-scores__comp {
	margin: 14px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--fth-kicker);
}
.fth-scores__list { list-style: none; margin: 0; padding: 0; }
.fth-scores__list li { border-top: 1px solid var(--fth-line); }
.fth-scores__list li:first-child { border-top: 0; }
.fth-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 30px; align-items: center; gap: 8px;
	padding: 9px 2px; min-height: 44px; text-decoration: none; color: var(--fth-ink);
}
.fth-row:hover .fth-row__team { text-decoration: underline; text-underline-offset: 2px; }
.fth-row__team {
	font-size: 14px; font-weight: 500; color: var(--fth-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fth-row__team.is-win { font-weight: 700; color: var(--fth-ink); }
.fth-row__team--away { text-align: right; }
.fth-row__score {
	font-family: var(--fth-head); font-weight: 800; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums;
	background: var(--fth-ink); color: #FFFFFF; border-radius: 6px; padding: 4px 8px 3px; display: inline-flex; gap: 3px;
}
.fth-row__score span { opacity: .55; }
.fth-row__time { font-size: 13px; font-weight: 600; color: var(--fth-muted); font-variant-numeric: tabular-nums; padding: 0 6px; }
.fth-row__live {
	font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #C62828;
	display: inline-flex; align-items: center; gap: 5px;
}
.fth-row__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: fth-pulse 1.4s infinite; }
@keyframes fth-pulse { 50% { opacity: .3; } }
.fth-row__play {
	width: 30px; height: 30px; border-radius: 50%; background: #E62117; color: #FFFFFF;
	display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; justify-self: end;
	box-shadow: 0 3px 10px rgba(230,33,23,.35); transition: transform .2s ease;
}
.fth-row.has-video:hover .fth-row__play { transform: scale(1.12); }
.fth-row__soon { width: 30px; height: 30px; justify-self: end; border-radius: 50%; border: 2px dashed var(--fth-line); }
.fth-scores__comphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 2px; }
.fth-scores__comphead .fth-scores__comp { margin: 0; }
.fth-scores__watch { font-size: 12px; font-weight: 600; color: var(--fth-link); text-decoration: none; white-space: nowrap; }
.fth-scores__watch:hover { text-decoration: underline; }
.fth-scores__more {
	display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 10px;
	border-radius: 10px; background: #F1F4F7; font-size: 14px; font-weight: 600; color: var(--fth-ink); text-decoration: none;
}
.fth-scores__more:hover { background: #E6EBF0; }
@media (prefers-reduced-motion: reduce) { .fth-row__live::before { animation: none; } .fth-row__play { transition: none; } }

/* ---------- Tiles (hub shelves, strip) ---------- */
.fth-tile { min-width: 0; }
.fth-tile__link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fth-ink); }
.fth-tile__body { display: flex; flex-direction: column; gap: 5px; }
.fth-tile .fth-sb { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 2px; font-size: 19px; }
.fth-tile .fth-sb__team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fth-tile .fth-sb__team--home { grid-column: 1; grid-row: 1; }
.fth-tile .fth-sb__team--away { grid-column: 1; grid-row: 2; text-align: left; }
.fth-tile .fth-sb__score { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; padding: 6px 9px 5px; }
.fth-tile__ch { font-size: 12px; color: var(--fth-muted); }
.fth-tile__link:hover .fth-player__img { transform: scale(1.04); }
.fth-tile__link:hover .fth-player__play { transform: scale(1.08); background: #0567A3; }
.fth-tile__link:focus-visible { outline: 3px solid var(--fth-accent); outline-offset: 4px; border-radius: var(--fth-radius); }
.fth--strip .fth-tile, .fth--days .fth-tile, .fth--grid .fth-tile { scroll-snap-align: start; }
.fth--dark .fth-tile__link { color: #FFFFFF; }

/* ---------- Hub ---------- */
.fth-hub { margin: 8px 0 56px; }
.fth-hub__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 40px; }
@media (min-width: 1000px) { .fth-hub__top { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); align-items: start; } }
.fth-hub__side .fth-scores { margin: 0; }
.fth-hero__media { display: block; text-decoration: none; }
.fth-hero__body { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fth-hero__link { text-decoration: none; color: var(--fth-ink); }
.fth-hero .fth-sb, .fth-game__head .fth-sb {
	grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 2px; column-gap: 18px;
	font-size: clamp(26px, 3.2vw, 40px); max-width: 720px;
}
.fth-hero .fth-sb__team, .fth-game__head .fth-sb__team { overflow-wrap: normal; word-break: normal; white-space: normal; overflow: visible; }
.fth-hero .fth-sb__team--home, .fth-game__head .fth-sb__team--home { grid-column: 1; grid-row: 1; }
.fth-hero .fth-sb__team--away, .fth-game__head .fth-sb__team--away { grid-column: 1; grid-row: 2; text-align: left; }
.fth-hero .fth-sb__score, .fth-game__head .fth-sb__score { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: clamp(30px, 3.6vw, 46px); }
.fth-hero__media:hover .fth-player__img { transform: scale(1.03); }

.fth-rail { margin: 0 0 40px; }
.fth-rail__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.fth-rail__title {
	margin: 0; font-family: var(--fth-head); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--fth-ink);
}
.fth-rail__watch { font-size: 13px; font-weight: 600; color: var(--fth-link); text-decoration: none; }
.fth-rail__watch:hover { text-decoration: underline; }
.fth-rail__nav { margin-left: auto; display: none; gap: 6px; }
@media (min-width: 760px) { .fth-rail__nav { display: inline-flex; } }
.fth-rail__btn {
	width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fth-line); background: #FFFFFF; cursor: pointer;
	font-size: 22px; line-height: 1; color: var(--fth-ink);
}
.fth-rail__btn:hover { background: #F1F4F7; }
.fth-rail__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.fth-rail__list::-webkit-scrollbar { display: none; }
.fth-rail__list > * { scroll-snap-align: start; }
@media (min-width: 640px) { .fth-rail__list { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (min-width: 1100px) { .fth-rail__list { grid-auto-columns: calc((100% - 54px) / 4); } }

/* ---------- Game page ---------- */
.fth-game { margin: 0 0 56px; }
.fth-game__back { margin: 0 0 14px; font-size: 14px; }
.fth-game__back a { color: var(--fth-link); text-decoration: none; font-weight: 600; }
.fth-game__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .fth-game__grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.fth-game__main { min-width: 0; }
.fth-game__novideo {
	aspect-ratio: 16 / 9; border-radius: 14px; background: #11161C; color: #C4CDD6; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; font-size: 16px;
}
.fth-game__novideo p { margin: 0; max-width: 420px; }
.fth-game__head { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; }
.fth-game__head .fth-sb__team--away { text-align: left; }
.fth-game__alts { margin: 0 0 28px; }
.fth-game__alts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fth-game__altlabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fth-kicker); margin-bottom: 8px; }
.fth-game__report { border-top: 3px solid var(--fth-ink); padding-top: 18px; margin-bottom: 20px; }
.fth-game__report p { font-size: 17px; line-height: 1.6; color: var(--fth-text); margin: 0 0 10px; max-width: 68ch; }
.fth-game__report .fth-game__ai, .fth-game__credit { font-size: 12px; color: var(--fth-muted); }
.fth-game__side { min-width: 0; }
.fth-next { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fth-next__item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; text-decoration: none; color: var(--fth-ink); align-items: start; }
.fth-next__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #11161C; }
.fth-next__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fth-next__item:hover img { transform: scale(1.05); }
.fth-next__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fth-next .fth-sb { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 1px; font-size: 16px; gap: 6px; }
.fth-next .fth-sb__team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fth-next .fth-sb__team--home { grid-column: 1; grid-row: 1; }
.fth-next .fth-sb__team--away { grid-column: 1; grid-row: 2; text-align: left; }
.fth-next .fth-sb__score { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; padding: 4px 7px 3px; }
.fth-next__meta { font-size: 12px; color: var(--fth-muted); }
.fth-upnext {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; padding: 14px 16px;
	border-radius: 12px; background: #0B0D10; color: #FFFFFF;
}
.fth-upnext__label { font-family: var(--fth-head); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.fth-upnext__what { flex: 1; min-width: 160px; font-size: 14px; color: #C4CDD6; }
.fth-upnext__btns { display: inline-flex; gap: 8px; }
.fth-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.fth-table th { text-align: right; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fth-muted); padding: 6px 6px; border-bottom: 2px solid var(--fth-ink); }
.fth-table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--fth-line); color: var(--fth-text); }
.fth-table th:first-child, .fth-table td:first-child { text-align: left; width: 28px; }
.fth-table .t { text-align: left; color: var(--fth-ink); }
.fth-table tr.is-here td { background: #EAF5FC; color: var(--fth-ink); font-weight: 600; }
.fth-table b { color: var(--fth-ink); }
/* Phones: big scoreboards stack the teams, score on the right */
@media (max-width: 639px) {
	.fth-hero .fth-sb, .fth-game__head .fth-sb { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 2px; font-size: 26px; }
	.fth-hero .fth-sb__team--home, .fth-game__head .fth-sb__team--home { grid-column: 1; grid-row: 1; }
	.fth-hero .fth-sb__team--away, .fth-game__head .fth-sb__team--away { grid-column: 1; grid-row: 2; }
	.fth-hero .fth-sb__score, .fth-game__head .fth-sb__score { grid-column: 2; grid-row: 1 / span 2; font-size: 32px; }
	.fth-next__item { grid-template-columns: 128px minmax(0, 1fr); }
}
.fth--dark .fth-tile .fth-sb__score { background: #FFFFFF; color: #0B0D10; }
.fth--dark .fth-tile__ch { color: var(--fth-muted); }

/* Break out of the theme's text column: the hub and game pages use the full width (max 1280). */
.fth-hub.alignwide, .fth-game.alignwide {
	width: min(1280px, calc(100vw - 48px)) !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
	position: relative; left: 50%; transform: translateX(-50%);
}
@media (max-width: 639px) {
	.fth-hub.alignwide, .fth-game.alignwide { width: calc(100vw - 32px) !important; }
}

/* The hub and game pages bring their own heading */
.fth-page .wp-block-post-title, .fth-page .entry-title, .fth-page .page-title { display: none; }
.fth-hub__h1 { margin: 0 0 6px; font-family: var(--fth-head); font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: .95; text-transform: uppercase; color: var(--fth-ink); }
.fth-hub__intro { margin: 0 0 28px; font-size: 17px; color: var(--fth-muted); max-width: 62ch; }

/* ---------- Spoiler-free ----------
 * html.fth-ns-all      everything hidden (set in <head>, so no flash)
 * html.fth-ns-pending  "my teams" chosen, script has not marked the games yet: hide all for a moment
 * .fth-hide            a game with one of my teams (set by the script)
 * .fth-shown           revealed by a click
 */
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) :is(.fth-sb__score:not(.fth-sb__score--vs), .fth-row__score) {
	color: transparent !important; position: relative; cursor: pointer; min-width: 3.2em; justify-content: center;
}
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) :is(.fth-sb__score:not(.fth-sb__score--vs), .fth-row__score) * { color: transparent !important; }
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) :is(.fth-sb__score:not(.fth-sb__score--vs), .fth-row__score)::after {
	content: "?"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #FFFFFF;
}
.fth--dark :is(html.fth-ns-all [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) .fth-sb__score::after { color: #0B0D10; }
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) .fth-sb__team {
	color: var(--fth-ink) !important; font-weight: 700 !important; opacity: 1 !important;
}
/* In lists, spoiler-free shows both names in the normal weight, exactly like a game that has not been played yet. */
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) .fth-row__team {
	color: var(--fth-text) !important; font-weight: 500 !important; opacity: 1 !important;
}
.fth--dark :is(html.fth-ns-all [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) .fth-sb__team { color: #FFFFFF !important; opacity: 1 !important; }
/* Thumbnails often show the score bug: blur them */
:is(html.fth-ns-all [data-fth-teams], html.fth-ns-pending [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) :is(.fth-player__img, .fth-next__thumb img) {
	filter: blur(16px) brightness(.75); transform: scale(1.15);
}
/* Standings and the report */
.fth-tablewrap { position: relative; }
.fth-tablewrap__reveal { display: none; }
:is(html.fth-ns-all .fth-tablewrap, html.fth-ns-pending .fth-tablewrap, .fth-tablewrap.fth-hide):not(.fth-shown) .fth-table { filter: blur(6px); user-select: none; pointer-events: none; }
:is(html.fth-ns-all .fth-tablewrap, html.fth-ns-pending .fth-tablewrap, .fth-tablewrap.fth-hide):not(.fth-shown) .fth-tablewrap__reveal {
	display: inline-flex; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fth-ink); color: #FFFFFF;
	font: 600 14px/1 var(--fth-body); align-items: center; cursor: pointer;
}
.fth-game__preview { display: none; border-top: 3px solid var(--fth-ink); padding-top: 18px; margin-bottom: 20px; }
.fth-game__preview p { font-size: 17px; line-height: 1.6; color: var(--fth-text); margin: 0 0 10px; max-width: 68ch; }
:is(html.fth-ns-all .fth-game__main, html.fth-ns-pending .fth-game__main, .fth-game__main.fth-hide):not(.fth-shown) .fth-game__report { display: none; }
:is(html.fth-ns-all .fth-game__main, html.fth-ns-pending .fth-game__main, .fth-game__main.fth-hide):not(.fth-shown) .fth-game__preview { display: block; }
.fth-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--fth-link); text-decoration: underline; cursor: pointer; }

/* The switch */
.fth-spoil { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 28px; }
.fth-spoil__label { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--fth-muted); }
.fth-spoil__opts { display: inline-flex; flex-wrap: wrap; background: #F1F4F7; border-radius: 999px; padding: 3px; }
.fth-spoil__opts button {
	border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 8px 14px; min-height: 36px;
	font: 600 13px/1 var(--fth-body); color: var(--fth-muted);
}
.fth-spoil__opts button[aria-checked="true"] { background: #FFFFFF; color: var(--fth-ink); box-shadow: 0 1px 3px rgba(11,13,16,.12); }
.fth-spoil__opts button:focus-visible, .fth-eye:focus-visible { outline: 2px solid var(--fth-accent); outline-offset: 1px; }
.fth-spoil__teams { flex-basis: 100%; }
.fth-spoil__teams p { margin: 0 0 8px; font-size: 13px; color: var(--fth-muted); }
.fth-spoil__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fth-chip {
	border: 1px solid var(--fth-line); background: #FFFFFF; border-radius: 999px; padding: 6px 12px; min-height: 34px; cursor: pointer;
	font: 500 13px/1 var(--fth-body); color: var(--fth-text);
}
.fth-chip[aria-pressed="true"] { background: var(--fth-ink); border-color: var(--fth-ink); color: #FFFFFF; }
.fth-eye {
	margin-left: auto; height: 34px; padding: 0 12px; gap: 6px; border-radius: 999px; border: 1px solid var(--fth-line); background: #FFFFFF;
	color: var(--fth-text); font: 600 13px/1 var(--fth-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; order: 3; white-space: nowrap;
}
.fth-eye__sw { position: relative; width: 28px; height: 16px; border-radius: 999px; background: var(--fth-line); transition: background .15s; }
.fth-eye__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.fth-eye[aria-pressed="true"] .fth-eye__sw { background: var(--fth-accent); }
.fth-eye[aria-pressed="true"] .fth-eye__sw::after { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) { .fth-eye__sw, .fth-eye__sw::after { transition: none; } }
.fth-eye[aria-pressed="true"] { background: var(--fth-ink); border-color: var(--fth-ink); color: #FFFFFF; }
.fth-scores__head .fth-tabs { order: 2; }

/* Homepage band: the competitions side by side */
.fth-homeband { margin-top: var(--wp--preset--spacing--70, 56px) !important; }
.fth-homeband--top { margin-top: 0 !important; }
.fth-scores--band { padding: 22px 24px 18px; margin: 0; }
.fth-scores--band .fth-scores__title { font-size: 30px; }
.fth-scores--band .fth-scores__day { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 28px; }
.fth-scores--band .fth-scores__col { min-width: 0; }

.fth-scores__day[hidden] { display: none !important; }

/* ---------- 0.6: Match Center ---------- */
.fth-subnav {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 22px; padding: 0 0 12px;
	border-bottom: 1px solid var(--fth-line);
}
.fth-subnav__brand { font-family: var(--fth-head); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--fth-ink); }
.fth-subnav__links { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fth-subnav__links a {
	padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px;
	font: 600 14px/1 var(--fth-body); color: var(--fth-muted); text-decoration: none;
}
.fth-subnav__links a:hover { background: #F1F4F7; color: var(--fth-ink); }
.fth-subnav__links a.is-on { background: var(--fth-ink); color: #FFFFFF; }
.fth-sponsor { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fth-muted); }
.fth-sponsor a { display: inline-flex; align-items: center; color: var(--fth-ink); text-decoration: none; }
.fth-sponsor img { height: 28px; width: auto; display: block; }
.fth-scores__head .fth-sponsor { order: 2; margin-left: 12px; }

.fth-mc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .fth-mc__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.fth-mc__side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.fth-scores--page { padding: 22px 24px 18px; margin: 0; }
.fth-scores--page .fth-scores__title { font-size: 28px; }
.fth-scores--page .fth-row { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 34px; min-height: 52px; gap: 12px; }
.fth-scores--page .fth-row > .fth-row__team:first-child { text-align: right; }
.fth-scores--page .fth-row__team--away { text-align: left; }
.fth-scores--page .fth-row__score, .fth-scores--page .fth-row__time, .fth-scores--page .fth-row__live { justify-self: center; }
.fth-scores--page .fth-row__team { font-size: 15px; }
.fth-row__report { margin: -4px 0 10px; font-size: 13px; text-align: center; }
.fth-row__report a { color: var(--fth-link); text-decoration: none; }
.fth-row__report a:hover { text-decoration: underline; }
:is(html.fth-ns-all .fth-row__report, html.fth-ns-pending .fth-row__report, .fth-row__report.fth-hide):not(.fth-shown) { display: none; }

.fth-stand__tabs { margin: 0 0 12px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fth-stand__tabs::-webkit-scrollbar { display: none; }
.fth-stand__tabs .fth-tab { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; padding-inline: 12px; }
.fth-stand__name { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fth-kicker); }
.fth-stand__panel[hidden] { display: none !important; }

.fth-scores__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fth-scores__foot .fth-scores__more { flex: 1 1 200px; margin-top: 0; }
.fth-scores__more--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--fth-line); }
.fth-xmore { display: none; }
.fth-xmore a { display: block; padding: 10px 2px; font-size: 13px; font-weight: 600; color: var(--fth-link); text-decoration: none; }
@media (max-width: 759px) {
	.fth-scores--band .fth-x { display: none; }
	.fth-scores--band .fth-xmore { display: block; }
}

.fth-share { display: flex; gap: 8px; flex-wrap: wrap; }
.fth-share .fth-chip { text-decoration: none; display: inline-flex; align-items: center; }
.fth-donate {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 40px 0 0;
	padding: 20px 24px; border-radius: 16px; background: #F1F4F7;
}
.fth-donate p { margin: 0; font-size: 16px; color: var(--fth-text); max-width: 60ch; }
.fth-n-short { display: none; }
@media (max-width: 639px) { .fth-n-full { display: none; } .fth-n-short { display: inline; } .fth-scores--page { padding: 16px 14px 12px; } .fth-scores--page .fth-row { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 30px; gap: 8px; } }

/* Homepage band: fold away */
.fth-fold {
	height: 34px; padding: 0 12px; gap: 6px; border-radius: 999px; border: 1px solid var(--fth-line); background: #FFFFFF;
	color: var(--fth-text); font: 600 13px/1 var(--fth-body); cursor: pointer; display: inline-flex; align-items: center; order: 4; white-space: nowrap;
}
.fth-fold:focus-visible { outline: 2px solid var(--fth-accent); outline-offset: 1px; }
.fth-fold__show, .fth-band-closed .fth-fold__hide { display: none; }
.fth-band-closed .fth-fold__show { display: inline; }
.fth-band-closed .fth-fold svg { transform: rotate(180deg); }
.fth-band-closed .fth-scores--band .fth-scores__day, .fth-band-closed .fth-scores--band .fth-scores__foot,
.fth-band-closed .fth-scores--band .fth-tabs, .fth-band-closed .fth-scores--band .fth-eye { display: none !important; }
.fth-band-closed .fth-scores--band { padding-bottom: 22px; }
.fth-band-closed .fth-scores--band .fth-fold { margin-left: auto; }

/* Day tabs never widen the page: on small screens they scroll sideways */
.fth-scores__head .fth-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fth-scores__head .fth-tabs::-webkit-scrollbar { display: none; }
.fth-scores__head .fth-tab { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 600px) { .fth-band-closed .fth-scores--band .fth-scores__head { flex-wrap: nowrap; } }
.fth-band-closed .fth-scores--band .fth-scores__title { white-space: nowrap; }

/* ---------- Dark mode: follows the theme (html[data-theme="dark"]) ---------- */
html[data-theme="dark"] :is(.fth, .fth-feature, .fth-scores, .fth-hub, .fth-game):not(.fth--dark) {
	--fth-ink: #DCE1E6;
	--fth-text: #C4CDD6;
	--fth-muted: #A3AEB9;
	--fth-line: #333C46;
	--fth-link: #5DBBEF;
	--fth-kicker: #5DBBEF;
	--fth-bg-on-ink: #0B0D10;
}
html[data-theme="dark"] :is(.fth-scores, .fth-game__box, .fth-card-box) { background: #20262E; }
html[data-theme="dark"] .fth-scores { background: #20262E; border-color: #333C46; }
html[data-theme="dark"] :is(.fth-tabs, .fth-spoil__opts) { background: #181C22; }
html[data-theme="dark"] :is(.fth-tab[aria-selected="true"], .fth-spoil__opts button[aria-checked="true"]) { background: #343D48; color: #FFFFFF; box-shadow: none; }
html[data-theme="dark"] :is(.fth-scores__more, .fth-donate) { background: #272E37; color: #DCE1E6; }
html[data-theme="dark"] .fth-scores__more:hover { background: #2F3742; }
html[data-theme="dark"] .fth-scores__more--ghost { background: transparent; }
html[data-theme="dark"] :is(.fth-rail__btn, .fth-chip, .fth-eye, .fth-fold) { background: #20262E; color: #DCE1E6; border-color: #3A4550; }
html[data-theme="dark"] .fth-rail__btn:hover, html[data-theme="dark"] .fth-subnav__links a:hover { background: #272E37; color: #FFFFFF; }
html[data-theme="dark"] :is(.fth-chip[aria-pressed="true"], .fth-eye[aria-pressed="true"], .fth-subnav__links a.is-on, .fth-spoil__btn) { background: #DCE1E6; border-color: #DCE1E6; color: #0B0D10; }
html[data-theme="dark"] .fth-eye__sw { background: #3A4550; }
html[data-theme="dark"] .fth-eye[aria-pressed="true"] .fth-eye__sw { background: var(--fth-accent); }
html[data-theme="dark"] .fth-row__score { background: #DCE1E6; color: #0B0D10; }
html[data-theme="dark"] .fth-table tr.is-here td { background: #16384F; color: #FFFFFF; }
html[data-theme="dark"] :is(html.fth-ns-all [data-fth-teams], [data-fth-teams].fth-hide):not(.fth-shown) .fth-row__score { color: transparent; }
