/* SK Kozojídky – fotbalová data. Barvy přebírá z proměnných child šablony (s výchozími hodnotami). */
.skk-table-wrap, .skk-next, .skk-matches, .skk-stats, .skk-form {
	--_navy: var(--skk-navy, #0a1a3a);
	--_blue: var(--skk-blue, #1e5bd6);
	--_gold: var(--skk-gold, #f4c430);
	--_green: var(--skk-green, #2b8a3e);
	--_line: var(--skk-line, #e2e7f0);
	--_muted: var(--skk-muted, #5b6578);
	--_win: #1f9d4c;
	--_draw: #d9a400;
	--_loss: #d64545;
	font-variant-numeric: tabular-nums;
}

/* Tabulka */
.skk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.skk-table-wrap table.skk-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 16px; line-height: 1.3; margin: 0; border: 0; }
.skk-table-wrap table.skk-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--_muted); font-weight: 600; padding: 4px 10px; text-align: center; border: 0; }
.skk-table-wrap table.skk-table td { background: #fff; padding: 12px 10px; text-align: center; border: 0; border-top: 1px solid var(--_line); border-bottom: 1px solid var(--_line); transition: transform .25s ease, box-shadow .25s ease; }
.skk-table-wrap table.skk-table td:first-child { border-left: 1px solid var(--_line); border-radius: 10px 0 0 10px; }
.skk-table-wrap table.skk-table td:last-child { border-right: 1px solid var(--_line); border-radius: 0 10px 10px 0; }
.skk-table-wrap table.skk-table .skk-table__team { text-align: left; font-weight: 600; white-space: nowrap; }
.skk-table-wrap table.skk-table .skk-table__pts { font-weight: 800; font-size: 18px; }
.skk-table__pos span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef2f8; font-weight: 700; font-size: 14px; }
.skk-table tbody tr:nth-child(-n+3) .skk-table__pos span { background: var(--_gold); color: var(--_navy); }
.skk-table tbody tr:hover td { box-shadow: 0 6px 18px rgba(10, 26, 58, .08); }
.skk-table tr.is-us td { background: var(--_navy); color: #fff; border-color: var(--_navy); }
.skk-table tr.is-us .skk-table__pos span { background: var(--_blue); color: #fff; }
.skk-table tr.is-us .skk-table__team::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--_gold); box-shadow: 0 0 0 0 rgba(244, 196, 48, .7); animation: skk-pulse 2s infinite; vertical-align: middle; }
@keyframes skk-pulse { 70% { box-shadow: 0 0 0 10px rgba(244, 196, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); } }
@media (max-width: 640px) {
	.skk-table-wrap table.skk-table { font-size: 15px; }
	.skk-table-wrap table.skk-table td, .skk-table-wrap table.skk-table th { padding-left: 6px; padding-right: 6px; }
	.skk-table-wrap table.skk-table .skk-table__team { white-space: normal; line-height: 1.2; }
	.skk-table-wrap .skk-table th:nth-child(n+3):nth-child(-n+6), .skk-table-wrap .skk-table td:nth-child(n+3):nth-child(-n+6) { display: none; }
}

.skk-source { font-size: 13px; color: var(--_muted); margin: 10px 0 0; padding: 0; }
.skk-source a { color: inherit; text-decoration: underline; }
.skk-empty { color: var(--_muted); font-style: italic; }

/* Příští zápas */
.skk-next { color: #fff; text-align: center; }
.skk-next__notice { margin: -4px 0 40px; padding: 0; font-size: 20px; font-weight: 600; color: #fff; }
.skk-next__meta { display: flex; justify-content: center; gap: 10px; margin: 0 0 18px; padding: 0; }
.skk-next__meta span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.skk-next__venue.is-home { background: var(--_gold); color: var(--_navy); }
.skk-next__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.skk-next__team { font-family: var(--skk-font-head, inherit); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4.4vw, 52px); line-height: 1; }
.skk-next__team:first-child { text-align: right; }
.skk-next__team:last-child { text-align: left; }
.skk-next__team.is-us { color: var(--_gold); }
.skk-next__vs { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.skk-next__score { font-family: var(--skk-font-head, inherit); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1; padding: 6px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.skk-next__outcome.is-v { background: var(--_win) !important; }
.skk-next__outcome.is-r { background: var(--_draw) !important; color: var(--_navy); }
.skk-next__outcome.is-p { background: var(--_loss) !important; }
.skk-next__when { margin: 18px 0 26px; padding: 0; opacity: .9; font-size: 17px; }
.skk-countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 10px; }
.skk-countdown div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 12px 8px 8px; backdrop-filter: blur(4px); }
.skk-countdown span { display: block; font-family: var(--skk-font-head, inherit); font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1; }
.skk-countdown span.is-flip { animation: skk-flip .4s ease; }
.skk-countdown small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.skk-countdown.is-live div { border-color: var(--_gold); }
@keyframes skk-flip { from { transform: translateY(-30%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
	.skk-next__teams { grid-template-columns: 1fr; gap: 8px; }
	.skk-next__team:first-child, .skk-next__team:last-child { text-align: center; }
	.skk-next__vs { margin: 0 auto; width: 40px; height: 40px; font-size: 13px; }
	.skk-countdown { grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
	.skk-next__meta { flex-wrap: wrap; gap: 6px; }
	.skk-next__meta span { font-size: 11px; padding: 5px 10px; }
	.skk-next__score { font-size: 44px; }
}

/* Seznam zápasů */
.skk-matches { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.skk-match { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--_line); border-left: 4px solid var(--_line); border-radius: 12px; padding: 12px 16px; transition: transform .2s ease, box-shadow .2s ease; }
.skk-match:hover { transform: translateX(4px); box-shadow: 0 8px 22px rgba(10, 26, 58, .08); }
.skk-match.is-v { border-left-color: var(--_win); }
.skk-match.is-r { border-left-color: var(--_draw); }
.skk-match.is-p { border-left-color: var(--_loss); }
.skk-match.is-upcoming { border-left-color: var(--_blue); }
.skk-match__date { display: flex; flex-direction: column; line-height: 1.2; }
.skk-match__day { font-weight: 800; font-size: 18px; color: var(--_navy); }
.skk-match__time { font-size: 13px; color: var(--_muted); }
.skk-match__teams { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 500; }
.skk-match__teams .is-us { font-weight: 800; color: var(--_navy); }
.skk-match__round { flex-basis: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--_muted); }
.skk-match__dash { color: var(--_muted); }
.skk-match__result { display: flex; align-items: center; gap: 10px; }
.skk-match__score { font-weight: 800; font-size: 22px; color: var(--_navy); }
.skk-match__score.is-tbd { color: var(--_muted); font-weight: 600; }
.skk-match__badge, .skk-form b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; }
.is-v > .skk-match__result .skk-match__badge, .skk-form b.is-v { background: var(--_win); }
.is-r > .skk-match__result .skk-match__badge, .skk-form b.is-r { background: var(--_draw); }
.is-p > .skk-match__result .skk-match__badge, .skk-form b.is-p { background: var(--_loss); }
@media (max-width: 640px) {
	.skk-match { grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 12px; }
	.skk-match__day { font-size: 16px; }
	.skk-match__score { font-size: 18px; }
}

/* Bilance */
.skk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skk-stat { text-align: center; padding: 22px 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.skk-stat__num { display: block; font-family: var(--skk-font-head, inherit); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; color: var(--_gold); }
.skk-stat__label { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.skk-form { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; padding: 0; }
.skk-form span { margin-right: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
@media (max-width: 760px) {
	.skk-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.skk-stat { padding: 18px 8px; }
	.skk-stat__num { font-size: 40px; white-space: nowrap; }
	.skk-stat__label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.skk-table tr.is-us .skk-table__team::after, .skk-countdown span.is-flip { animation: none; }
	.skk-match, .skk-table td { transition: none; }
}
