.klinpredict-app {
	--kp-navy-950: #052642;
	--kp-navy-900: #07365a;
	--kp-navy-800: #0b426d;
	--kp-green: #11c979;
	--kp-green-dark: #08a966;
	--kp-green-soft: #e8fbf2;
	--kp-blue-soft: #eaf3fb;
	--kp-ink: #0b3150;
	--kp-muted: #71859a;
	--kp-line: #d9e6ef;
	--kp-white: #ffffff;
	--kp-red: #ef3340;
	--kp-amber: #f0a629;
	--kp-shadow: 0 8px 24px rgba(5,38,66,.08);
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	color: var(--kp-ink);
	background: #fff;
	container-type: inline-size;
	overflow-x: hidden;
}
.klinpredict-app * { box-sizing: border-box; }

.klinpredict-app .klinpredict-header {
	padding: 24px 22px 22px;
	text-align: left;
	background: linear-gradient(135deg, var(--kp-navy-950), var(--kp-navy-800)) !important;
	border-radius: 14px;
	box-shadow: var(--kp-shadow);
}
.klinpredict-app .klinpredict-brand {
	display: inline-block;
	color: var(--kp-navy-950);
	background: var(--kp-green);
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: none;
	font-weight: 800;
	padding: 6px 13px;
	border-radius: 999px;
	margin-bottom: 7px;
}
.klinpredict-app .klinpredict-title {
	color: #fff !important;
	font-size: clamp(25px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0 0 7px;
	font-family: inherit;
	font-style: normal;
}
.klinpredict-app .klinpredict-subdate {
	color: rgba(255,255,255,.84) !important;
	font-size: 13px;
	margin-bottom: 16px;
}
.klinpredict-date-nav { display: flex; align-items: center; gap: 10px; max-width: 320px; margin: 0; }
.klinpredict-nav-btn {
	width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
	background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.35);
	color: #fff; font-size: 17px; cursor: pointer;
}
.klinpredict-nav-btn:hover { background: var(--kp-green); color: var(--kp-navy-950); border-color: var(--kp-green); }
.klinpredict-date-pill {
	flex: 1; height: 38px; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14);
	border-radius: 999px; color: #fff; font-weight: 800; font-size: 13px;
}
.klinpredict-content { padding: 16px 0 4px; }
.klinpredict-empty { text-align: center; padding: 42px 20px; color: var(--kp-muted); font-size: 14px; }

.klinpredict-league-group {
	background: var(--kp-white); border: 1px solid var(--kp-line); border-radius: 12px;
	margin-bottom: 18px; overflow: hidden; box-shadow: var(--kp-shadow);
}
.klinpredict-league-header {
	padding: 11px 16px; background: var(--kp-navy-900); display: flex; align-items: center; justify-content: space-between;
}
.klinpredict-league-name { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.klinpredict-table-wrap { width: 100%; overflow: hidden; }
.klinpredict-prediction-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.klinpredict-prediction-table th {
	padding: 12px 10px; background: var(--kp-navy-950); color: #fff; border-right: 1px solid rgba(255,255,255,.08);
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: left;
}
.klinpredict-prediction-table th:last-child { border-right: 0; }
.klinpredict-prediction-table td {
	padding: 11px 10px; border-bottom: 1px solid #e5edf3; vertical-align: middle; background: #fff;
}
.klinpredict-prediction-table tbody tr:last-child td { border-bottom: 0; }
.klinpredict-prediction-table tbody tr:hover td { background: #f8fbfd; }
.kp-col-number { width: 5%; text-align: center !important; color: var(--kp-muted); font-weight: 800; }
.kp-col-match { width: 30%; }
.kp-col-pick { width: 20%; }
.kp-col-odds { width: 9%; text-align: center !important; }
.kp-col-confidence { width: 16%; }
.kp-col-status { width: 12%; text-align: center !important; }
.kp-col-time { width: 8%; text-align: center !important; white-space: nowrap; }

.kp-match-inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.kp-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kp-team.kp-away { justify-content: flex-end; text-align: right; }

/* Desktop match presentation: crest above team name.
 * Mobile rules below intentionally retain the existing mobile layout. */
@media (min-width: 761px) {
	.kp-team {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 4px;
		text-align: center;
		padding: 2px 4px;
	}
	.kp-team.kp-away { justify-content: center; text-align: center; }
	.kp-team-name {
		font-size: 11.5px;
		line-height: 1.15;
		max-width: 120px;
		overflow-wrap: break-word;
		word-break: normal;
		white-space: normal;
	}
}
.kp-team-name { font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.kp-crest { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid var(--kp-line); }
.kp-crest-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--kp-navy-900); color: #fff; font-size: 9px; font-weight: 800; }
.kp-vs { color: var(--kp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.kp-pick-badge { display: inline-flex; align-items: center; background: var(--kp-green); color: var(--kp-navy-950); border-radius: 999px; padding: 4px 9px; font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: .03em; }
.kp-pick-value { display: block; margin-top: 4px; color: var(--kp-ink); font-size: 13px; line-height: 1.2; }
.kp-odds-value { display: inline-flex; min-width: 48px; justify-content: center; padding: 6px 8px; border-radius: 7px; background: var(--kp-blue-soft); color: var(--kp-navy-900); font-size: 13px; font-weight: 900; }
.kp-confidence-value { font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.kp-confidence-track { width: 100%; max-width: 105px; height: 7px; overflow: hidden; border-radius: 999px; background: #dce8f1; }
.kp-confidence-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--kp-green-dark), var(--kp-green)); }

.kp-live-badge, .kp-result-badge, .kp-pending-badge, .kp-upcoming-badge {
	display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 4px 7px;
	font-size: 9px; font-weight: 900; letter-spacing: .04em; white-space: nowrap;
}
.kp-live-badge { background: var(--kp-red); color: #fff; }
.kp-live-score, .kp-final-score { display: block; margin-top: 3px; font-size: 13px; color: var(--kp-ink); }
.kp-live-score { color: var(--kp-red); }
.kp-won-badge { background: var(--kp-green); color: var(--kp-navy-950); }
.kp-lost-badge { background: #ffe8ea; color: #bd2530; }
.kp-ft-badge { background: var(--kp-navy-900); color: #fff; }
.kp-pending-badge { background: #fff3d8; color: #8b6415; }
.kp-upcoming-badge { background: #edf4f8; color: var(--kp-muted); }
.kp-time-value { font-size: 12px; font-weight: 800; color: var(--kp-navy-900); }
.kp-time-live { color: var(--kp-red); font-size: 10px; font-weight: 900; }

/* Search / filter bar */
.klinpredict-toolbar { padding: 0 0 12px; }
.klinpredict-search { width: 100%; max-width: 360px; padding: 10px 13px; border: 1px solid var(--kp-line); border-radius: 9px; background: #fff; font-size: 14px; color: var(--kp-ink); }
.klinpredict-search:focus { outline: none; border-color: var(--kp-green-dark); box-shadow: 0 0 0 3px rgba(17,201,121,.12); }
.klinpredict-loading { text-align: center; padding: 14px; color: var(--kp-muted); font-size: 13px; }
.klinpredict-countdown { display: none; }

/* Keep legacy class names harmless for other plugin fragments. */
.klinpredict-match { position: relative; }
.klinpredict-teams-row, .klinpredict-stat-row { display: flex; }

@media (max-width: 760px) {
	.klinpredict-prediction-table { table-layout: auto; }
	.klinpredict-prediction-table th { padding: 10px 7px; font-size: 10px; }
	.klinpredict-prediction-table td { padding: 10px 7px; }
	.kp-col-number { width: 38px; }
	.kp-col-match { min-width: 230px; }
	.kp-col-pick { min-width: 115px; }
	.kp-col-confidence { min-width: 95px; }
	.kp-col-status { min-width: 90px; }
	.kp-col-time { min-width: 62px; }
	.kp-team-name { font-size: 12px; }
}

/* Phone: preserve the same information hierarchy but convert each table row
   into a compact card. No horizontal scrolling and no scattered columns. */

@media (max-width: 560px) {
	.klinpredict-winnings-table tbody tr {
		border-bottom: 1px solid #c9d8e3;
	}
	.klinpredict-winnings-table tbody tr:last-child {
		border-bottom: 0;
	}
	.klinpredict-winnings-table td {
		border-bottom: 0;
	}

	.klinpredict-app .klinpredict-header { padding: 18px 15px; border-radius: 11px; }
	.klinpredict-content { padding-top: 10px; }
	.klinpredict-league-group { margin-bottom: 12px; border-radius: 10px; }
	.klinpredict-league-header { padding: 9px 12px; }
	.klinpredict-prediction-table, .klinpredict-prediction-table tbody { display: block; width: 100%; }
	.klinpredict-prediction-table thead { display: none; }
	.klinpredict-prediction-table tr {
		display: grid;
		grid-template-columns: 25px minmax(0,1fr) 54px 74px;
		grid-template-areas:
			"num match match status"
			"num pick odds time"
			"num conf conf time";
		column-gap: 7px; row-gap: 5px; padding: 10px 9px; border-bottom: 1px solid #e5edf3;
	}
	.klinpredict-prediction-table tr:last-child { border-bottom: 0; }
	.klinpredict-prediction-table td { display: block; width: auto; min-width: 0 !important; padding: 0; border: 0; background: transparent !important; text-align: left !important; }
	.kp-col-number { grid-area: num; align-self: start; padding-top: 7px !important; }
	.kp-col-match { grid-area: match; }
	.kp-col-pick { grid-area: pick; }
	.kp-col-odds { grid-area: odds; align-self: center; text-align: center !important; }
	.kp-col-confidence { grid-area: conf; display: flex !important; align-items: center; gap: 8px; }
	.kp-col-status { grid-area: status; align-self: start; text-align: right !important; }
	.kp-col-time { grid-area: time; align-self: center; text-align: right !important; }
	.kp-col-confidence::before { content: 'CONF.'; color: var(--kp-muted); font-size: 8px; font-weight: 900; letter-spacing: .04em; }
	.kp-confidence-value { margin: 0; font-size: 10px; white-space: nowrap; }
	.kp-confidence-track { flex: 1; max-width: none; height: 5px; }
	.kp-match-inner { gap: 5px; }
	.kp-team { gap: 5px; }
	.kp-crest { width: 26px; height: 26px; flex-basis: 26px; }
	.kp-team-name { font-size: 10.5px; }
	.kp-vs { font-size: 8px; }
	.kp-pick-badge { font-size: 7px; padding: 3px 6px; }
	.kp-pick-value { font-size: 10.5px; }
	.kp-odds-value { min-width: 42px; padding: 5px 5px; font-size: 11px; }
	.kp-live-badge, .kp-result-badge, .kp-pending-badge, .kp-upcoming-badge { font-size: 7px; padding: 3px 5px; }
	.kp-live-score, .kp-final-score { font-size: 10px; }
	.kp-time-value { font-size: 10px; }
	.kp-time-live { font-size: 8px; }
}

@media (max-width: 380px) {
	.klinpredict-title { font-size: 24px; }
	.klinpredict-prediction-table tr { grid-template-columns: 22px minmax(0,1fr) 50px 66px; }
	.kp-team-name { font-size: 9.5px; }
	.kp-pick-value { font-size: 10px; }
}

@container (min-width: 640px) {
	.klinpredict-content { padding: 18px 0 4px; }
	.klinpredict-league-header { padding: 11px 16px; }
}

/* ---------- Standings table ---------- */
.klinpredict-standings-wrap { background: var(--t180-card); border: 1px solid var(--t180-line); border-radius: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 14px 18px; }
.klinpredict-standings-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 12.5px; }
.klinpredict-standings-table th, .klinpredict-standings-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--t180-line); }
.klinpredict-standings-table th { background: var(--t180-teal-900); color: #f2ead6; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.klinpredict-standings-table td:nth-child(3) { text-align: left; font-weight: 600; }
.klinpredict-standings-logo { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.klinpredict-scorer-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.klinpredict-scorers-table td:nth-child(3) { text-align: left; font-weight: 600; }

/* ---------- Sidebar carousel widgets (League Table / Top Scorers Table) ---------- */
.klinpredict-sidebar-box {
	max-width: 320px;
	background: var(--t180-card);
	border: 1px solid var(--t180-line);
	border-radius: 10px;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--t180-ink);
}
.klinpredict-sidebar-box-title { font-size: 16px; font-weight: 800; margin: 0 0 12px; color: var(--t180-teal-900); }

.klinpredict-sidebar-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.klinpredict-sidebar-prev, .klinpredict-sidebar-next {
	background: none; border: none; cursor: pointer;
	font-size: 16px; color: var(--t180-ink-soft); line-height: 1; padding: 4px;
}
.klinpredict-sidebar-prev:hover, .klinpredict-sidebar-next:hover { color: var(--t180-teal-900); }
.klinpredict-sidebar-dots { display: flex; align-items: center; gap: 5px; }
.klinpredict-sidebar-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--t180-draw); cursor: pointer;
}
.klinpredict-sidebar-dot.is-active { background: var(--t180-teal-900); }

.klinpredict-sidebar-pane { display: none; }
.klinpredict-sidebar-pane.is-active { display: block; }

.klinpredict-sidebar-league-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.klinpredict-sidebar-league-head img { width: 26px; height: 26px; object-fit: contain; }
.klinpredict-sidebar-league-head div { display: flex; flex-direction: column; line-height: 1.25; }
.klinpredict-sidebar-league-head strong { font-size: 13px; }
.klinpredict-sidebar-league-head span { font-size: 11px; color: var(--t180-ink-soft); }

.klinpredict-sidebar-scroll { max-height: 320px; overflow-y: auto; }
.klinpredict-sidebar-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.klinpredict-sidebar-table th {
	position: sticky; top: 0;
	background: var(--t180-card);
	text-align: left;
	font-size: 10px; text-transform: uppercase; letter-spacing: .03em;
	color: var(--t180-ink-soft);
	padding: 6px 4px;
	border-bottom: 1px solid var(--t180-line);
}
.klinpredict-sidebar-table td { padding: 7px 4px; border-bottom: 1px solid var(--t180-line); vertical-align: middle; }
.klinpredict-sidebar-table tr:last-child td { border-bottom: none; }
.klinpredict-sidebar-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.klinpredict-sidebar-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.klinpredict-sidebar-subtext { font-size: 10.5px; color: var(--t180-ink-soft); }
.klinpredict-sidebar-table th:first-child, .klinpredict-sidebar-table td:first-child { width: 20px; }

/* ---------- Recent winnings table ---------- */
.klinpredict-winnings-wrap { background: var(--t180-card); border: 1px solid var(--t180-line); border-radius: 10px; overflow: hidden; margin: 0 14px 18px; }
.klinpredict-winnings-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.klinpredict-winnings-table th, .klinpredict-winnings-table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid #c9d8e3; word-break: break-word; }
.klinpredict-winnings-table th { background: var(--t180-teal-900); color: #f2ead6; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }

.klinpredict-view-more { text-align: center; margin: 0 14px 20px; }
.klinpredict-view-more a {
	display: inline-block;
	background: var(--kp-navy-950);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 999px;
	text-decoration: none;
}
.klinpredict-view-more a:hover { background: var(--kp-navy-900); color: #fff; }
.klinpredict-result-value.klinpredict-result-won { display: inline-flex; align-items: center; gap: 4px; background: var(--kp-green); color: var(--kp-navy-950); border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 900; }

/* ---------- Pagination (Recent Winnings) ---------- */
.klinpredict-pagination { text-align: center; margin: 0 14px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.klinpredict-pagination-summary { font-size: 12.5px; color: var(--t180-ink-soft); }
.klinpredict-pagination-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.klinpredict-pagination-link,
.klinpredict-pagination-arrow {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 32px; height: 32px;
	padding: 0 6px;
	border: 1px solid var(--t180-line);
	border-radius: 8px;
	background: var(--t180-card);
	color: var(--t180-teal-900);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.klinpredict-pagination-link:hover,
.klinpredict-pagination-arrow:hover { border-color: var(--t180-teal-900); }
.klinpredict-pagination-link.is-active { background: var(--t180-teal-900); border-color: var(--t180-teal-900); color: #fff; }
.klinpredict-pagination-arrow.is-disabled { opacity: .35; pointer-events: none; }
.klinpredict-pagination-ellipsis { padding: 0 4px; color: var(--t180-ink-soft); font-size: 13px; }

/* Stacked-card layout below 560px so long team names / scores never get
   clipped — each row becomes a labeled block instead of a table row. */
@media (max-width: 760px) {
  .klinpredict-match { display: block; padding: 14px 12px; border-bottom: 1px solid var(--t180-line); }
  .klinpredict-teams-row { display: flex; width: 100%; justify-content: center; align-items: center; gap: 10px; }
  .klinpredict-team { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; }
  .klinpredict-team-name { display: block; max-width: 120px; font-size: 11px; line-height: 1.2; white-space: normal; word-break: normal; overflow-wrap: break-word; text-align: center; }
  .klinpredict-score-wrap { flex: 0 0 auto; text-align: center; }
  .klinpredict-stat-row { display: flex; width: 100%; margin-top: 10px; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .klinpredict-stat-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 7px; }
}

@media (max-width: 560px) {
	.klinpredict-winnings-table thead { display: none; }
	.klinpredict-winnings-table, .klinpredict-winnings-table tbody, .klinpredict-winnings-table tr, .klinpredict-winnings-table td {
		display: block;
		width: 100%;
	}
	.klinpredict-winnings-table tr {
		padding: 12px 12px;
		border-bottom: 2px solid var(--t180-line);
	}
	.klinpredict-winnings-table tr:last-child { border-bottom: 0; }
	.klinpredict-winnings-table td {
		border-bottom: none;
		padding: 4px 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		white-space: normal;
	}
	.klinpredict-winnings-table td::before {
		content: attr(data-label);
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: var(--t180-ink-soft);
		flex: 0 0 auto;
	}
}

@media (max-width: 380px) {
	.klinpredict-title { font-size: 27px; }
}

/* =================================================================
   WIDE LAYOUT — reflows each match into a compact inline row instead
   of the stacked mobile ticket card. Uses a CONTAINER query (keyed to
   this widget's own rendered width) rather than a viewport media
   query — a theme sidebar, narrow column, or embedded widget can all
   leave far less room than the browser window suggests, and a
   viewport-based breakpoint would switch to the row layout even when
   there isn't actually space for it, causing overlapping/cut-off text.
   ================================================================= */
@container (min-width: 640px) {
	.klinpredict-header { padding: 28px 32px 24px; }
	.klinpredict-title { font-size: 36px; }

	.klinpredict-content { padding: 20px 24px 4px; }
	.klinpredict-toolbar { padding: 0 24px 16px; display: flex; gap: 10px; }
	.klinpredict-search { max-width: 360px; }

	.klinpredict-league-group { margin-bottom: 20px; }
	.klinpredict-league-header { padding: 12px 20px; text-align: left; }

	.klinpredict-match {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px 20px;
		padding: 14px 20px;
		border-bottom: 1px solid var(--t180-line);
	}
	.klinpredict-match:last-child { border-bottom: none; }

	.klinpredict-teams-row { display: flex; flex: 1 1 320px; min-width: 260px; justify-content: flex-start; align-items: center; gap: 20px; }
	.klinpredict-team { min-width: 110px; flex: 1 1 140px; gap: 5px; flex-direction: column; align-items: center; text-align: center; }
	.kp-team-name { font-size: 11.5px; line-height: 1.18; overflow-wrap: break-word; word-break: normal; white-space: normal; max-width: 120px; }
	.kp-team.kp-away { justify-content: center; text-align: center; }
	.kp-match-inner { gap: 10px; }

	.klinpredict-score-box { font-size: 16px; flex-shrink: 0; }

	.klinpredict-stat-row {
		display: flex;
		margin: 0;
		border-top: none;
		flex: 0 1 auto;
		flex-wrap: wrap;
		gap: 10px;
	}
	.klinpredict-stat-cell { padding: 6px 4px; flex-direction: column; gap: 3px; }
	.klinpredict-odds, .klinpredict-tips { background: transparent; }
}

/* Browsers without container-query support (rare by now) simply stay on
   the mobile card layout at all widths — safe and still fully usable. */

/* Final KlinPredict desktop team-name fix: keep crest above each team name and prevent awkward mid-word breaks. */
@media (min-width: 761px) {
  .klinpredict-prediction-table .kp-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
  .klinpredict-prediction-table .kp-team-name {
    display: block !important;
    width: 100% !important;
    max-width: 135px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-align: center !important;
  }
}

/* Final Recent Winnings separators: clearly divide every result, especially on mobile. */
.klinpredict-winnings-table tbody tr {
  border-bottom: 2px solid #c9d8e3 !important;
}
.klinpredict-winnings-table tbody tr:last-child {
  border-bottom: 0 !important;
}
@media (max-width: 560px) {
  .klinpredict-winnings-table tbody tr {
    padding: 13px 12px !important;
    border-bottom: 2px solid #c9d8e3 !important;
  }
  .klinpredict-winnings-table tbody tr:last-child {
    border-bottom: 0 !important;
  }
  .klinpredict-winnings-table tbody tr + tr {
    border-top: 0 !important;
  }
}

/* Sports card visibility/fix: the sport renderers use klinpredict-* classes, not the football table's kp-* classes. */
@media (min-width: 761px) {
  .klinpredict-match .klinpredict-teams-row { display:flex !important; width:100%; justify-content:center; align-items:center; gap:18px; }
  .klinpredict-match .klinpredict-team { display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; min-width:120px; max-width:180px; gap:5px; text-align:center; }
  .klinpredict-match .klinpredict-team-name { display:block !important; max-width:150px !important; font-size:11px !important; line-height:1.18 !important; white-space:normal !important; word-break:normal !important; overflow-wrap:break-word !important; text-align:center !important; }
  .klinpredict-match .klinpredict-stat-row { display:flex !important; width:100%; justify-content:center; align-items:center; gap:10px; margin-top:10px; }
  .klinpredict-match .klinpredict-stat-cell { display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 8px; }
}


/* Optional manual prediction preview + compact note menu. These controls
 * are additive and do not change the existing mobile prediction layout. */
.kp-preview-link { color: inherit; text-decoration: none; }
.kp-preview-link:hover, .kp-preview-link:focus { text-decoration: underline; }
.kp-vs-link { text-decoration: none !important; }

.kp-col-match { position: relative; padding-right: 34px !important; }
.kp-note-toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--kp-navy-900, #172b4d);
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
	z-index: 2;
}
.kp-note-toggle:hover, .kp-note-toggle:focus {
	background: var(--kp-blue-soft);
	color: var(--kp-navy-900);
	outline: none;
}
.kp-note-panel {
	margin-top: 7px;
	padding: 8px 10px;
	border: 1px solid var(--kp-line);
	border-radius: 7px;
	background: #f7fafc;
	color: var(--kp-ink);
	font-size: 11px;
	line-height: 1.45;
	text-align: left;
}
.kp-card-note-toggle { top: 4px; right: 4px; }
.kp-card-note-panel { position: relative; margin: 6px 8px 0; }

.kp-col-number .kp-note-toggle{margin:0 auto}.kp-col-number{text-align:center}

/* v1.10.12: keep the table note icon inside the serial-number cell; preserve card note positioning. */
.kp-col-number > .kp-note-toggle { position: static !important; top: auto !important; right: auto !important; display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; margin: 0 auto; }
.kp-col-number { text-align: center; }
