/* STS Typy na dziś — front */
.stypy-widget {
	max-width: 820px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
}
.stypy-widget .stypy-title {
	font-size: 1.6em;
	font-weight: 800;
	margin: 0 0 .4em;
}
.stypy-widget .stypy-lead {
	font-size: 1.05em;
	font-weight: 600;
	color: #333;
}
.stypy-widget h3 {
	font-size: 1.2em;
	font-weight: 700;
	margin: 1.2em 0 .4em;
}
/* Sekcje dyscyplin — nagłówek z ikoną; kolor bierze z --stypy-accent ustawionego na sekcji */
.stypy-sport-section { margin: 22px 0 0; }
.stypy-widget .stypy-sport-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 10px;
	font-size: 1.05em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--stypy-accent, #1631fa);
}
.stypy-sport-head .stypy-ico { width: 22px; height: 22px; flex-shrink: 0; }
.stypy-sport-head::after {
	content: "";
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: #e3e8ef;
	background: color-mix(in srgb, var(--stypy-accent, #1631fa) 30%, #e3e8ef);
}

.stypy-match {
	border: 1px solid #e3e8ef;
	border-left: 4px solid var(--stypy-accent, #1631fa);
	border-radius: 10px;
	padding: 14px 16px;
	margin: 14px 0;
	background: #fff;
}
/* Meta karty: chip dyscypliny/rozgrywek + godzina */
.stypy-match__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}
.stypy-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--stypy-accent, #1631fa);
	background: #eef0ff;
	background: color-mix(in srgb, var(--stypy-accent, #1631fa) 12%, #fff);
	border-radius: 999px;
	padding: 3px 11px 3px 8px;
	line-height: 1.2;
	min-width: 0;
}
.stypy-chip .stypy-ico { width: 15px; height: 15px; flex-shrink: 0; }
.stypy-chip__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stypy-match__head {
	margin: 0 0 .4em;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
}
.stypy-match__time {
	font-size: .78em;
	font-weight: 700;
	color: var(--stypy-accent, #1631fa);
	background: rgba(22, 49, 250, .08);
	background: color-mix(in srgb, var(--stypy-accent, #1631fa) 12%, transparent);
	border-radius: 20px;
	padding: 2px 10px;
	white-space: nowrap;
	flex-shrink: 0;
}
/* Kursy 1/X/2 — segment z logo drużyn (bez cyfr gdy jest herb) */
.stypy-odds { margin: 12px 0 4px; }
.stypy-odds__label {
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #888;
	margin-bottom: 6px;
}
.stypy-odds__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	overflow: hidden;
}
/* Dopasowanie liczby kolumn do liczby wyników (mecze bez remisu = 2 komórki).
   Klasa --{n} obejmuje świeżo wygenerowaną treść; selektory :has() naprawiają też
   treść zapisaną wcześniej (bez modyfikatora), więc nie wymaga przegenerowania. */
.stypy-odds__row--2,
.stypy-odds__row:has(.stypy-odds__cell:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.stypy-odds__row--1,
.stypy-odds__row:has(.stypy-odds__cell:only-child) { grid-template-columns: 1fr; }
.stypy-odds__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px;
	background: #fff;
	border-left: 1px solid #e3e8ef;
}
.stypy-odds__row--link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.stypy-odds__row--link:hover { border-color: #1631fa; box-shadow: 0 4px 14px rgba(22, 49, 250, .12); }
.stypy-odds__cell:first-child { border-left: none; }
.stypy-odds__cell.is-fav { background: #eef0ff; }
.stypy-odds__cell.is-fav .stypy-odds__v { color: #1631fa; }
.stypy-odds__mark { height: 26px; display: flex; align-items: center; justify-content: center; }
.stypy-odds__k {
	min-width: 26px;
	height: 26px;
	border-radius: 6px;
	display: grid;
	place-items: center;
	background: #eef0f4;
	color: #888;
	font-size: .72em;
	font-weight: 800;
}
.stypy-odds__v { font-size: 1.05em; font-weight: 800; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.stypy-odds__win { font-size: .72em; color: #888; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stypy-odds__win b { color: #0a7d33; font-weight: 700; }
.stypy-odds__foot { font-size: .72em; color: #888; margin: 8px 0 0; }
.stypy-crest { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; display: block; }

/* Typy — klikalne karty (link do oferty STS) */
.stypy-picks-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 10px;
}
.stypy-picks-head strong { font-size: .95em; font-weight: 800; }
.stypy-picks-head span { font-size: .78em; color: #888; }
.stypy-picks { display: grid; gap: 8px; margin: 0; padding: 0; }
.stypy-pick {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.stypy-pick:hover { border-color: #1631fa; box-shadow: 0 4px 14px rgba(22, 49, 250, .14); transform: translateY(-1px); }
.stypy-pick__body { min-width: 0; }
.stypy-pick__market {
	display: block;
	font-size: .68em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #1631fa;
	margin-bottom: 2px;
}
.stypy-pick__sel { display: block; font-weight: 700; font-size: .98em; line-height: 1.25; }
.stypy-pick__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.stypy-pick__odds { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.stypy-pick__odds b { font-size: 1.2em; font-weight: 800; color: #1631fa; font-variant-numeric: tabular-nums; }
.stypy-pick__odds span { font-size: .62em; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.stypy-pick__go {
	display: inline-flex;
	align-items: center;
	height: 30px;
	border-radius: 999px;
	background: #f0a30a;
	color: #14183a;
	overflow: hidden;
	transition: background .2s ease, color .2s ease;
}
.stypy-pick__go-arrow {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.05em;
	flex-shrink: 0;
	transition: transform .2s ease;
}
.stypy-pick__go-txt {
	max-width: 0;
	opacity: 0;
	white-space: nowrap;
	overflow: hidden;
	font-size: .8em;
	font-weight: 800;
	line-height: 1;
	transition: max-width .28s ease, opacity .2s ease, padding .28s ease;
}
a.stypy-pick:hover .stypy-pick__go { background: #e0980a; }
a.stypy-pick:hover .stypy-pick__go-txt { max-width: 220px; opacity: 1; padding-left: 14px; }
a.stypy-pick:hover .stypy-pick__go-arrow { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
	.stypy-pick__go,
	.stypy-pick__go-txt,
	.stypy-pick__go-arrow { transition: none; }
}

/* Pasek „pełna analiza” / fallback CTA */
.stypy-more-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 14px;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	background: #fafbfe;
	font-weight: 700;
	font-size: .9em;
	color: #1a1a1a;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.stypy-more-bar:hover { background: #eef0ff; border-color: #1631fa; color: #1631fa; }
.stypy-more-bar__ico { flex-shrink: 0; }
.stypy-more-bar--cta { background: #1631fa; color: #fff; border-color: #1631fa; }
.stypy-more-bar--cta:hover { background: #1229d0; color: #fff; border-color: #1229d0; }
.stypy-closing { font-style: italic; color: #444; }
.stypy-closing a { color: #1631fa; font-weight: 600; text-decoration: underline; }
.stypy-disclaimer {
	margin-top: 18px;
	font-size: .8em;
	color: #888;
	border-top: 1px solid #eee;
	padding-top: 10px;
}
.stypy-empty {
	padding: 16px;
	background: #f4f6f9;
	border-radius: 8px;
	color: #555;
	text-align: center;
}

/* Zakłady specjalne (outrighty) — kolor akcentu z dyscypliny każdego zakładu */
.stypy-specials { margin: 22px 0 0; }
.stypy-specials__head {
	font-size: 1.05em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	margin: 22px 0 10px; color: #14183a;
}
.stypy-specials__grid { display: grid; gap: 8px; }
.stypy-special {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 12px 14px; border: 1px solid #e3e8ef; border-left: 4px solid var(--stypy-accent, #1631fa);
	border-radius: 10px; background: #fff; text-decoration: none; color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.stypy-special:hover { border-color: var(--stypy-accent, #1631fa); box-shadow: 0 4px 14px rgba(20, 24, 58, .12); transform: translateY(-1px); }
.stypy-special__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.stypy-special__sub { font-size: .78em; color: #888; }
.stypy-special__pick { font-weight: 700; font-size: 1em; line-height: 1.25; }
.stypy-special__note { font-size: .82em; color: #555; }
.stypy-special__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.stypy-special:hover .stypy-pick__go { background: #e0980a; }
.stypy-special:hover .stypy-pick__go-txt { max-width: 220px; opacity: 1; padding-left: 14px; }
.stypy-special:hover .stypy-pick__go-arrow { transform: translateX(2px); }
