/* ===== Výsledky Loto – moderní blok ===== */
:root {
	--sp-blue: #2a1fb0;
	--sp-blue-dark: #170a7a;
	--sp-orange: #ff0081;
	--sp-yellow: #ffcb00;
	--sp-green: #22a447;
	--sp-bg: #f4f6fb;
	--sp-line: #e3e7f1;
	--sp-text: #1d2433;
	--sp-muted: #6b7385;
}

.sp-box {
	background: var(--sp-bg);
	border: 1px solid var(--sp-line);
	border-radius: 14px;
	padding: 18px 20px;
	margin: 0 0 22px;
	color: var(--sp-text);
}
.sp-box > h2:first-child, .sp-box > h3:first-child { margin-top: 0; }

.sp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 14px;
}
.sp-head h2, .sp-head h3 { margin: 0; font-size: 1.3em; }
.sp-updated { font-size: 12px; color: var(--sp-muted); }

.sp-alert {
	background: #fff4e5;
	border: 1px solid #ffd59a;
	color: #7a4a00;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 16px;
}

/* tahy */
.sp-draw { margin: 0 0 14px; }
.sp-draw:last-of-type { margin-bottom: 0; }
.sp-draw-name {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--sp-blue);
	margin-bottom: 6px;
}
.sp-balls {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.sp-balls li { margin: 0; }
.sp-ball {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font: 700 21px/1 Arial, Helvetica, sans-serif;
	color: #fff;
	background: radial-gradient(circle at 32% 28%, #7a76f2 0%, var(--sp-blue) 55%, var(--sp-blue-dark) 100%);
	box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 2px 5px rgba(0,0,0,.18);
	transition: transform .15s, box-shadow .15s;
}
.sp-ball--extra {
	background: radial-gradient(circle at 32% 28%, #ff7ab8 0%, var(--sp-orange) 55%, #c8006a 100%);
}
.sp-plus { color: var(--sp-muted); font-weight: 700; font-size: 18px; padding: 0 2px; }
.sp-ball.is-hit {
	transform: scale(1.08);
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sp-green), 0 2px 6px rgba(0,0,0,.25);
}

/* šance */
.sp-sance { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.sp-sance-label { font-weight: 700; color: var(--sp-text); }
.sp-digits { display: flex; gap: 4px; }
.sp-digit {
	width: 32px;
	height: 40px;
	border-radius: 8px;
	background: var(--sp-yellow);
	color: #222;
	font: 700 22px/40px Arial, Helvetica, sans-serif;
	text-align: center;
	box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.sp-digit.is-hit { background: var(--sp-green); color: #fff; }

/* jackpoty */
.sp-jackpots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin: 0 0 22px;
}
.sp-jackpot {
	background: linear-gradient(135deg, var(--sp-blue) 0%, var(--sp-blue-dark) 100%);
	color: #fff;
	border-radius: 12px;
	padding: 12px 14px;
}
.sp-jackpot:first-child { background: linear-gradient(135deg, var(--sp-orange) 0%, #c8006a 100%); }
.sp-jackpot-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.sp-jackpot-amount { font-size: 20px; font-weight: 700; line-height: 1.3; }

/* tabulky výher */
.sp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; }
.sp-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	font-size: 14px;
	color: var(--sp-text);
}
.sp-table th, .sp-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--sp-line);
	vertical-align: top;
}
.sp-table thead th { background: var(--sp-blue); color: #fff; font-weight: 700; }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table tbody th { color: var(--sp-blue); white-space: nowrap; }
.sp-table tbody tr:nth-child(even) { background: #fafbfe; }
.sp-amount { font-weight: 700; white-space: nowrap; }
.sp-count { display: block; font-size: 12px; color: var(--sp-muted); }
.sp-none { color: #b5bccb; }

/* kontrola tiketu */
.sp-check-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.sp-check input {
	width: 54px;
	height: 44px;
	border: 2px solid var(--sp-line);
	border-radius: 10px;
	font: 700 18px Arial, Helvetica, sans-serif;
	text-align: center;
	background: #fff;
	-moz-appearance: textfield;
}
.sp-check input::-webkit-outer-spin-button,
.sp-check input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-check input:focus { outline: none; border-color: var(--sp-blue); }
.sp-check input.sp-sance-input { width: 130px; letter-spacing: .2em; }
.sp-btn {
	background: var(--sp-orange);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 20px;
	height: 44px;
	font: 700 15px Arial, Helvetica, sans-serif;
	cursor: pointer;
}
.sp-btn:hover { background: #d9006e; }
.sp-btn--ghost { background: transparent; color: var(--sp-muted); border: 2px solid var(--sp-line); }
.sp-btn--ghost:hover { background: #fff; }
.sp-check-result p { margin: 0 0 6px; }
.sp-win { color: var(--sp-green); font-weight: 700; }
.sp-error { color: #c0392b; }

@media (max-width: 600px) {
	.sp-box { padding: 14px; }
	.sp-ball { width: 40px; height: 40px; font-size: 18px; }
	.sp-balls { gap: 6px; }
	.sp-check input { width: 46px; }
	.sp-table th, .sp-table td { padding: 8px; }
}

@media (max-width: 420px) {
	.sp-box { padding: 12px; }
	.sp-ball { width: 34px; height: 34px; font-size: 15px; }
	.sp-balls { gap: 5px; }
	.sp-plus { font-size: 14px; padding: 0; }
	.sp-check-row:first-of-type { flex-wrap: nowrap; }
	.sp-check input.sp-num { flex: 1 1 0; min-width: 0; width: auto; max-width: 54px; padding: 0; }
}

/* ===== Loto – doplnky ===== */
.sp-next {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	background: #fff0f8;
	border: 1px solid #ffc2e1;
	color: #8a0047;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	margin: 0 0 14px;
}
.sp-next strong { color: #5c0030; }
.sp-countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
.sp-special { display: inline-block; background: var(--sp-orange); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; text-transform: uppercase; }
.sp-muted-amount { color: var(--sp-muted); font-weight: 600; white-space: nowrap; }
.sp-rule { font-weight: 700; white-space: nowrap; }
.sp-totals { list-style: none; padding: 0; margin: 8px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sp-muted); }
.sp-totals li { margin: 0; }
.sp-totals strong { color: var(--sp-text); }
