/* Kurzový Radar – frontend (data komponenty). Světlý prémiový vzhled (Tipsport modrá). Prefix .kr- */

.kr {
	--kr-bg: #ffffff;
	--kr-surface: #ffffff;
	--kr-soft: #f8fafc;
	--kr-border: #e6eaf2;
	--kr-border-soft: #eef1f7;
	--kr-text: #0f172a;
	--kr-muted: #5b6678;
	--kr-blue: #0b5fd0;
	--kr-blue-dark: #0a4aa0;
	--kr-accent: #0b5fd0;
	--kr-accent-2: #0a4aa0;
	--kr-green: #16a34a;
	--kr-green-dark: #15803d;
	--kr-up: #dc2626;
	--kr-down: #16a34a;
	--kr-amber: #f59e0b;
	--kr-radius: 16px;
	--kr-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
	--kr-glow: 0 0 0 1px rgba(11,95,208,.25), 0 14px 34px rgba(11,95,208,.14);
	color: var(--kr-text); font-size: 16px; line-height: 1.5;
	font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.kr *, .kr *::before, .kr *::after { box-sizing: border-box; }

/* ---------- Grid karet ---------- */
.kr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 0 0 22px; }
.kr-card { position: relative; background: var(--kr-surface); border: 1px solid var(--kr-border); border-radius: var(--kr-radius); box-shadow: var(--kr-shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kr-card:hover { transform: translateY(-3px); border-color: #c9dbfa; box-shadow: var(--kr-glow); }
.kr-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kr-card__title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.kr-card__title a { color: var(--kr-text); text-decoration: none; }
.kr-card__title a:hover { color: var(--kr-blue); }
.kr-card__meta, .kr-card__time { font-size: 13px; color: var(--kr-muted); }
.kr-card__time { font-weight: 600; }

/* Kurzová tlačítka 1 X 2 */
.kr-card__odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 2px; }
.kr-odd { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border: 1px solid var(--kr-border); border-radius: 10px; background: var(--kr-soft); transition: background .12s ease, border-color .12s ease; }
.kr-odd:hover { border-color: var(--kr-blue); background: #eef3fb; }
.kr-odd__name { font-size: 11px; color: var(--kr-muted); font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-odd__rate { font-weight: 800; font-size: 16px; color: var(--kr-blue); font-variant-numeric: tabular-nums; }
.kr-odd--up .kr-odd__rate { color: var(--kr-up); }
.kr-odd--down .kr-odd__rate { color: var(--kr-down); }

.kr-card__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kr-card__actions .kr-btn-cta { flex: 1; min-width: 150px; }
.kr-card__link { font-size: 14px; color: var(--kr-blue); text-decoration: none; font-weight: 600; }
.kr-card__link:hover { text-decoration: underline; }

/* ---------- Štítky ---------- */
.kr-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef3fb; color: var(--kr-blue-dark); }
.kr-tag--competition { background: #f1f5f9; color: var(--kr-muted); }

/* ---------- Radar score badge ---------- */
.kr-score { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #fff; background: #94a3b8; }
.kr-score--high { background: var(--kr-up); }
.kr-score--mid { background: var(--kr-amber); }
.kr-score--low { background: #94a3b8; }

/* ---------- Pohyb kurzu ---------- */
.kr-move { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-move--up { color: var(--kr-up); }
.kr-move--down { color: var(--kr-down); }
.kr-move--same { color: var(--kr-muted); }

/* ---------- Tabulky ---------- */
.kr-table { width: 100%; border-collapse: collapse; background: var(--kr-surface); border: 1px solid var(--kr-border); border-radius: var(--kr-radius); overflow: hidden; margin: 0 0 12px; box-shadow: var(--kr-shadow); }
.kr-table th, .kr-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--kr-border-soft); font-size: 14px; }
.kr-table thead th { background: var(--kr-soft); color: var(--kr-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kr-table tbody tr:last-child td { border-bottom: none; }
.kr-table tbody tr:nth-child(even) { background: #fcfdff; }
.kr-table tbody tr:hover { background: #f4f8ff; }
.kr-table__rate { font-weight: 800; font-variant-numeric: tabular-nums; }
.kr-table__match a { color: var(--kr-text); text-decoration: none; font-weight: 700; }
.kr-table__match a:hover { color: var(--kr-blue); }
.kr-odd--up { color: var(--kr-up); }
.kr-odd--down { color: var(--kr-down); }

/* ---------- Detail zápasu ---------- */
.kr-detail__head { margin-bottom: 16px; }
.kr-detail__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kr-detail__title { margin: 0 0 8px; font-size: 26px; }
.kr-detail__sub { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--kr-muted); }
.kr-odds__market { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }

/* ---------- CTA box ---------- */
.kr-cta { margin: 24px 0; }
.kr-cta__inner { background: linear-gradient(135deg, #0e7a37, #16a34a); color: #fff; border-radius: var(--kr-radius); padding: 28px 24px; text-align: center; box-shadow: 0 12px 30px rgba(22,163,74,.26); }
.kr-cta__heading { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.kr-cta__button { display: inline-block; background: #fff; color: var(--kr-green-dark); font-weight: 800; font-size: 16px; padding: 14px 30px; border-radius: 12px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.kr-cta__button:hover { transform: translateY(-1px); background: #f0fdf4; }
.kr-cta__note { margin: 14px 0 0; font-size: 13px; opacity: .92; }

/* ---------- Inline CTA tlačítka ---------- */
.kr-btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--kr-green); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; text-decoration: none; line-height: 1; box-shadow: 0 4px 14px rgba(22,163,74,.25); transition: background .15s ease, transform .15s ease; }
.kr-btn-cta:hover { background: var(--kr-green-dark); color: #fff; transform: translateY(-1px); }
.kr-btn-cta--live { background: var(--kr-up); color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.28); }
.kr-btn-cta--live:hover { background: #b91c1c; color: #fff; }
.kr-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: kr-pulse 1.4s infinite; }
@keyframes kr-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- Horní CTA banner ---------- */
.kr-topcta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, #0b5fd0, #0a4aa0); color: #fff; border-radius: var(--kr-radius); padding: 16px 22px; margin: 0 0 22px; }
.kr-topcta__text { font-weight: 700; font-size: 16px; }
.kr-topcta .kr-btn-cta { background: #fff; color: var(--kr-green-dark); }
.kr-topcta .kr-btn-cta:hover { background: #f0fdf4; color: var(--kr-green-dark); }

/* ---------- Stats bar ---------- */
.kr-statsbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--kr-border); border: 1px solid var(--kr-border); border-radius: 14px; overflow: hidden; box-shadow: var(--kr-shadow); }
.kr-statsbar__item { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kr-statsbar__value { font-size: 24px; font-weight: 800; color: var(--kr-text); font-variant-numeric: tabular-nums; }
.kr-statsbar__label { font-size: 12px; color: var(--kr-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 768px) { .kr-statsbar { grid-template-columns: 1fr 1fr; } }

/* ---------- Filtr ---------- */
.kr-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--kr-surface); border: 1px solid var(--kr-border); border-radius: var(--kr-radius); padding: 16px; margin: 0 0 20px; box-shadow: var(--kr-shadow); }
.kr-filter__field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--kr-muted); font-weight: 600; }
.kr-filter__field select, .kr-filter__field input { border: 1px solid var(--kr-border); border-radius: 9px; padding: 9px 10px; font-size: 14px; background: #fff; color: var(--kr-text); min-width: 130px; font-family: inherit; }
.kr-filter__field input[type="number"] { min-width: 90px; }
.kr-filter__submit { background: var(--kr-blue); color: #fff; border: 0; border-radius: 9px; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; height: 38px; }
.kr-filter__submit:hover { background: var(--kr-blue-dark); }
@media (max-width: 600px) { .kr-filter__field, .kr-filter__field select, .kr-filter__field input { width: 100%; min-width: 0; } .kr-filter__submit { width: 100%; } }

/* ---------- SEO obsah: intro, statistiky, FAQ, prolinky, explain ---------- */
.kr-intro { margin: 0 0 18px; color: #334155; font-size: 16px; line-height: 1.7; }
.kr-intro p { margin: 0; }
.kr-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.kr-stat { flex: 1; min-width: 120px; background: var(--kr-soft); border: 1px solid var(--kr-border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kr-stat__value { font-size: 24px; font-weight: 800; color: var(--kr-blue); font-variant-numeric: tabular-nums; }
.kr-stat__label { font-size: 13px; color: var(--kr-muted); }
.kr-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.kr-links__label { font-weight: 700; color: var(--kr-muted); font-size: 14px; }
.kr-links__item { display: inline-flex; align-items: center; background: #eef3fb; color: var(--kr-blue-dark); border: 1px solid #d6e4fb; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; text-decoration: none; }
.kr-links__item:hover { background: #e0ecfc; }
.kr-faq { margin: 28px 0 0; }
.kr-faq__title { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.kr-faq__item { border: 1px solid var(--kr-border); border-radius: 12px; margin: 0 0 10px; background: #fff; overflow: hidden; }
.kr-faq__q { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: 16px; position: relative; padding-right: 44px; }
.kr-faq__q::-webkit-details-marker { display: none; }
.kr-faq__q::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--kr-blue); font-weight: 700; }
.kr-faq__item[open] .kr-faq__q::after { content: '–'; }
.kr-faq__a { padding: 0 18px 16px; color: #475569; line-height: 1.6; }
.kr-explain { display: flex; gap: 14px; align-items: flex-start; background: #eef3fb; border: 1px solid #c9dbfa; border-left: 4px solid var(--kr-blue); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.kr-explain__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--kr-blue); color: #fff; font-weight: 800; font-style: italic; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.kr-explain__title { margin: 0 0 4px; font-size: 16px; }
.kr-explain__text { margin: 0; color: #334155; line-height: 1.55; font-size: 15px; }

/* ---------- Věková brána 18+ ---------- */
.kr-agegate[hidden] { display: none; }
.kr-agegate { position: fixed; inset: 0; z-index: 9999; background: rgba(10,20,40,.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.kr-agegate__card { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 30px 26px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.kr-agegate__badge { display: inline-block; background: #9a3412; color: #fff; font-weight: 800; border-radius: 8px; padding: 4px 10px; font-size: 15px; margin-bottom: 12px; }
.kr-agegate__title { font-size: 20px; margin: 0 0 10px; }
.kr-agegate__text { color: var(--kr-muted); margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.kr-agegate .kr-btn-cta { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.kr-agegate__link { display: inline-block; margin-top: 12px; color: var(--kr-blue); font-size: 14px; text-decoration: none; }
.kr-agegate__link:hover { text-decoration: underline; }
body.kr-agegate-open { overflow: hidden; }

/* ---------- Ukázková data ---------- */
.kr-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--kr-amber); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 6px 14px; margin: 0 0 14px; }
.kr-demo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--kr-amber); }

/* ---------- Sticky mobilní CTA ---------- */
.kr-sticky { display: none; }
.kr-sticky__inner { display: flex; align-items: center; gap: 10px; background: #0b1f3f; padding: 10px 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.kr-sticky__text { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.25; color: #fff; }
.kr-sticky .kr-btn-cta { white-space: nowrap; }
.kr-sticky__close { background: transparent; border: 0; color: #9fb3d4; font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.kr-sticky__close:hover { color: #fff; }
@media (max-width: 768px) { .kr-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; } body.kr-has-sticky { padding-bottom: 64px; } }

/* ---------- Poznámky, prázdné a loading stavy ---------- */
.kr-note { font-size: 13px; color: var(--kr-muted); margin: 8px 0 0; }
.kr-empty { background: var(--kr-soft); border: 1px dashed #cbd5e1; border-radius: var(--kr-radius); padding: 30px 20px; text-align: center; color: var(--kr-muted); font-size: 15px; }
.kr-empty .kr-btn-cta { margin-top: 14px; }
.kr-archive__title { font-size: 22px; margin: 0 0 16px; }
.kr-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--kr-muted); }
.kr-spinner { width: 22px; height: 22px; border: 3px solid var(--kr-border); border-top-color: var(--kr-blue); border-radius: 50%; animation: kr-spin .8s linear infinite; }
@keyframes kr-spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.kr-grid { grid-template-columns: 1fr; }
	.kr-detail__title { font-size: 22px; }
	.kr-table th, .kr-table td { padding: 11px 12px; font-size: 13px; }
	.kr-cta__inner { padding: 22px 16px; }
}
