.okwin-odds {
	--ok-odds-bg: #0d1117;
	--ok-odds-surface: #161b22;
	--ok-odds-surface-2: #1c2129;
	--ok-odds-border: rgba(56, 139, 253, 0.18);
	--ok-odds-blue: #1f6feb;
	--ok-odds-blue-bright: #388bfd;
	--ok-odds-text: #e6edf3;
	--ok-odds-muted: #8b949e;
	--ok-odds-green: #3fb950;
	margin: 1.5rem 0;
	padding: 16px;
	border-radius: 12px;
	font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--ok-odds-text);
	background: var(--ok-odds-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.okwin-odds .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.okwin-odds .okwin-error,
.okwin-odds--error .okwin-error {
	padding: 12px 14px;
	margin-bottom: 12px;
	border-radius: 8px;
	border: 1px solid rgba(248, 81, 73, 0.35);
	background: rgba(248, 81, 73, 0.1);
	color: #ff7b72;
}

/* Toolbar: dates + search */
.okwin-odds-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.okwin-odds-date-rail {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.okwin-odds-date-rail::-webkit-scrollbar {
	display: none;
}

.okwin-odds-date-item {
	flex: 0 0 auto;
	min-width: 76px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--ok-odds-surface);
	color: var(--ok-odds-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.okwin-odds-date-item:hover {
	color: var(--ok-odds-text);
	border-color: var(--ok-odds-border);
}

.okwin-odds-date-item.is-active {
	background: var(--ok-odds-blue);
	border-color: var(--ok-odds-blue);
	color: #fff;
	box-shadow: 0 0 12px rgba(56, 139, 253, 0.35);
}

.okwin-odds-search {
	position: relative;
	display: flex;
	align-items: center;
}

.okwin-odds-search-icon {
	position: absolute;
	right: 14px;
	top: 30%;
	left: auto;
	width: 16px;
	height: 16px;
	border: 2px solid #8b949e;
	border-radius: 50%;
	pointer-events: none;
	transform: translateY(-50%);
}

.okwin-odds-search-icon::after {
	content: '';
	position: absolute;
	width: 7px;
	height: 2px;
	background: #8b949e;
	right: -5px;
	bottom: -2px;
	transform: rotate(45deg);
}

.okwin-odds-search-input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 10px 44px 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 10px;
	background: transparent;
	color: var(--ok-odds-text);
	font: inherit;
	font-size: 14px;
}

.okwin-odds-search-input::placeholder {
	color: #8b949e;
}

.okwin-odds-search-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.65);
	box-shadow: none;
}

/* Sub-toolbar */
.okwin-odds-subtoolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ok-odds-border);
}

.okwin-odds-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ok-odds-blue-bright);
}

.okwin-odds-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	overflow-y: visible;
	max-width: 100%;
	scrollbar-width: none;
}

.okwin-odds-league-slot {
	position: relative;
	flex: 0 0 auto;
	z-index: 50;
}

.okwin-odds-filters::-webkit-scrollbar {
	display: none;
}

.okwin-odds-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--ok-odds-border);
	border-radius: 8px;
	background: var(--ok-odds-surface);
	color: var(--ok-odds-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.okwin-odds-filter:hover {
	color: var(--ok-odds-text);
}

.okwin-odds-filter.is-active {
	background: rgba(31, 111, 235, 0.2);
	border-color: var(--ok-odds-blue-bright);
	color: var(--ok-odds-text);
}

.okwin-odds-filter-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ok-odds-green);
	box-shadow: 0 0 8px var(--ok-odds-green);
}

.okwin-odds-league-wrap {
	flex: 0 0 auto;
}

.okwin-odds-league-select {
	height: 36px;
	max-width: 220px;
	padding: 0 32px 0 12px;
	border: 1px solid var(--ok-odds-border);
	border-radius: 8px;
	background: var(--ok-odds-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b949e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
	color: var(--ok-odds-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
}

.okwin-odds-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ok-odds-muted);
	white-space: nowrap;
}

.okwin-odds-sort-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--ok-odds-blue-bright);
	opacity: 0.85;
}

.okwin-odds.is-busy .okwin-odds-sort-icon {
	border-top-color: transparent;
	animation: okwin-odds-spin 0.9s linear infinite;
}

@keyframes okwin-odds-spin {
	to {
		transform: rotate(360deg);
	}
}

.okwin-odds-results.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.okwin-odds-loading,
.okwin-odds-empty {
	padding: 32px 16px;
	text-align: center;
	color: var(--ok-odds-muted);
	font-size: 15px;
}

.okwin-odds-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Match card */
.okwin-odds-match {
	border: 1px solid var(--ok-odds-border);
	border-radius: 12px;
	background: var(--ok-odds-surface);
	overflow: hidden;
}

.okwin-odds-match-hero {
	position: relative;
	padding: 14px 16px 16px;
	background:
		linear-gradient(180deg, rgba(13, 17, 23, 0.35) 0%, rgba(13, 17, 23, 0.92) 100%),
		radial-gradient(ellipse at 50% 0%, rgba(31, 111, 235, 0.18) 0%, transparent 70%),
		var(--ok-odds-surface-2);
	border-bottom: 1px solid var(--ok-odds-border);
}

.okwin-odds-match-hero-league {
	margin-bottom: 12px;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--ok-odds-muted);
}

.okwin-odds-match-hero-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.okwin-odds-match-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	min-width: 0;
}

.okwin-odds-match-side--home {
	align-items: flex-end;
	text-align: right;
}

.okwin-odds-match-side--away {
	align-items: flex-start;
	text-align: left;
}

.okwin-odds-match-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.okwin-odds-match-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}

.okwin-odds-match-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 88px;
}

.okwin-odds-match-live-pill {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(63, 185, 80, 0.15);
	color: var(--ok-odds-green);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.okwin-odds-match-score {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.okwin-odds-match-score-sep {
	color: var(--ok-odds-muted);
}

.okwin-odds-match-kickoff {
	font-size: 22px;
	font-weight: 800;
}

.okwin-odds-match-kickoff-date {
	font-size: 12px;
	color: var(--ok-odds-muted);
}

.okwin-odds-match-ht {
	font-size: 11px;
	color: var(--ok-odds-muted);
}

/* Odds table block */
.okwin-odds-table-block {
	padding: 10px 12px 12px;
	background: #141824;
}

.okwin-odds-table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.okwin-odds-book-select-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--ok-odds-muted);
}

.okwin-odds-book-select {
	background: #0f131a;
	border: 1px solid #2f3548;
	color: var(--ok-odds-text);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
}

.okwin-odds-brand {
	max-height: 28px;
	max-width: 100px;
	object-fit: contain;
}

.okwin-odds-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	scrollbar-width: thin;
}

.okwin-odds-table-scroll::-webkit-scrollbar {
	height: 6px;
}

.okwin-odds-table-scroll::-webkit-scrollbar-thumb {
	background: #3b4258;
	border-radius: 3px;
}

.okwin-odds-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 11px;
}

.okwin-odds-table th,
.okwin-odds-table td {
	border: 1px solid #2f3548;
	padding: 8px 6px;
	text-align: center;
}

.okwin-odds-table thead tr:first-child th {
	background: #252b3a;
	color: #cbd5e1;
	font-weight: 700;
	font-size: 11px;
}

.okwin-odds-table thead tr:nth-child(2) th {
	background: rgba(31, 111, 235, 0.35);
	color: #e2e8f0;
	font-size: 10px;
	font-weight: 700;
}

.okwin-odds-table tbody td {
	background: #141824;
	color: #e2e8f0;
	font-weight: 700;
}

.okwin-odds-th-period,
.okwin-odds-td-period {
	min-width: 56px;
	font-weight: 800;
	color: #93c5fd;
}

.okwin-odds-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 28px;
	padding: 4px 8px;
	border-radius: 6px;
	background: #0f131a;
	border: 1px solid #2f3548;
}

.okwin-odds-footer {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.okwin-odds-load-more {
	min-width: 160px;
	height: 42px;
	padding: 0 24px;
	border: 1px solid var(--ok-odds-blue-bright);
	border-radius: 8px;
	background: rgba(31, 111, 235, 0.15);
	color: var(--ok-odds-blue-bright);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.okwin-odds-load-more:hover {
	background: var(--ok-odds-blue);
	color: #fff;
}

.okwin-odds-load-more[hidden] {
	display: none;
}

@media (max-width: 900px) {
	.okwin-odds-toolbar {
		grid-template-columns: 1fr;
	}

	.okwin-odds-subtoolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.okwin-odds-sort {
		justify-content: flex-end;
	}

	.okwin-odds-match-hero-body {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.okwin-odds-match-side--home,
	.okwin-odds-match-side--away {
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.okwin-odds {
		padding: 12px;
	}

	.okwin-odds-league-select {
		max-width: 160px;
	}
}
