.rsb-left__row:hover,
.rsb-left__sub-row:hover,
.rsb-table tbody tr:hover {
	background: var(--color-surface-hover)
}

.rsb-countdown,
.rsb-odds-btn {
	font-variant-numeric: tabular-nums
}

.rsb-fav-tag,
.rsb-rg__title,
.rsb-track {
	letter-spacing: .04em
}

.rsb-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 0;
	min-height: calc(100vh - 64px)
}

.rsb-backdrop,
.rsb-mobile-toggle {
	display: none
}

@media (max-width:900px) {
	.rsb-layout {
		grid-template-columns: 1fr
	}

	.rsb-left {
		position: fixed;
		top: 64px;
		left: 0;
		bottom: 0;
		width: 280px;
		max-width: 85vw;
		transform: translateX(-100%);
		transition: transform .25s;
		z-index: 70;
		height: auto
	}

	.rsb-left--open {
		transform: translateX(0);
		box-shadow: 0 0 40px rgba(0, 0, 0, .5)
	}

	.rsb-backdrop {
		display: block;
		position: fixed;
		inset: 64px 0 0 0;
		background: rgba(0, 0, 0, .55);
		z-index: 65
	}

	.rsb-mobile-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 12px;
		padding: 8px 14px;
		border-radius: 8px;
		background: var(--color-surface);
		border: 1px solid var(--color-surface-border);
		color: var(--color-text-main);
		font-size: 13px;
		font-weight: 700
	}

	.rsb-mobile-toggle:hover {
		border-color: var(--color-gold);
		color: var(--color-gold)
	}
}

.rsb-left__row,
.rsb-table tbody tr {
	transition: background .15s
}

@media (max-width:720px) {

	.rsb-banner__row,
	.rsb-rcard__title {
		text-align: center
	}

	.rsb-center {
		padding: 12px 14px 24px !important
	}

	.rsb-banner {
		padding: 10px 12px 14px
	}

	.rsb-banner__row {
		grid-template-columns: 1fr;
		gap: 8px;
		justify-items: center
	}

	.rsb-banner__name,
	.rsb-r-name {
		font-size: 12px
	}

	.rsb-races,
	.rsb-tabs {
		justify-content: center
	}

	.rsb-race {
		width: 28px;
		height: 28px;
		font-size: 11px
	}

	.rsb-table {
		min-width: 0
	}

	.rsb-table thead th {
		padding: 6px 4px;
		font-size: 10px
	}

	.rsb-r-cell {
		padding: 10px 6px
	}

	.rsb-odds-cell {
		padding: 10px 4px
	}

	.rsb-odds-btn {
		min-width: 50px;
		padding: 8px 4px;
		font-size: 12px
	}

	.rsb-r-silk {
		width: 26px;
		height: 26px
	}
}

.rsb-left__row,
.rsb-table thead th.rsb-th-name {
	text-align: left
}

.rsb-left {
	border-right: 1px solid var(--color-surface-border);
	background: rgba(20, 10, 48, .6);
	padding: 12px 0 24px;
	position: sticky;
	top: 64px;
	height: calc(100vh - 64px);
	overflow-y: auto
}

.rsb-left__search {
	margin: 4px 12px 10px;
	position: relative
}

.rsb-left__search input {
	width: 100%;
	background: var(--color-base);
	border: 1px solid var(--color-surface-border);
	color: var(--color-text-main);
	font-size: 13px;
	font-weight: 600;
	padding: 9px 12px 9px 32px;
	border-radius: 8px;
	outline: 0
}

.rsb-left__search input:focus {
	border-color: var(--color-gold)
}

.rsb-left__search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: var(--color-text-dim)
}

.rsb-left__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-main);
	border-left: 3px solid transparent
}

.rsb-left__row-left,
.rsb-left__sub-row {
	display: flex;
	align-items: center;
	gap: 12px
}

.rsb-away,
.rsb-banner__title,
.rsb-left__icon,
.rsb-odds-cell,
.rsb-r-formno,
.rsb-rg {
	text-align: center
}

.rsb-left__row:hover {
	border-left-color: var(--color-gold)
}

.rsb-left__icon {
	font-size: 15px;
	width: 20px
}

.rsb-left__chev {
	font-size: 10px;
	color: var(--color-text-dim);
	transition: transform .2s
}

.rsb-left__chev--open {
	transform: rotate(90deg);
	color: var(--color-gold)
}

.rsb-crumb,
.rsb-crumb a,
.rsb-left__sub-row {
	color: #fff;
}

.rsb-left__sub {
	background: rgba(0, 0, 0, .18);
	border-top: 1px solid var(--color-surface-border);
	border-bottom: 1px solid var(--color-surface-border)
}

.rsb-left__sub-row {
	padding: 9px 16px 9px 36px;
	font-size: 12.5px;
	font-weight: 600;
	border-left: 3px solid transparent;
	transition: .15s
}

.rsb-crumb,
.rsb-topbar {
	display: flex;
	align-items: center
}

.rsb-left__sub-row:hover {
	color: var(--color-gold);
	border-left-color: var(--color-gold)
}

.rsb-center {
	padding: 14px 24px 32px;
	min-width: 0
}

.rsb-topbar {
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	background: #FF28AE;
    padding: 15px;
    border-radius: 6px 6px 0px 0px;
    font-weight: 700;
}

.rsb-crumb {
	gap: 8px;
	font-size: 12px
}

.rsb-crumb a:hover,
.rsb-track {
	color: var(--color-gold)
}

.rsb-crumb__sep,
.rsb-race--past {
	opacity: .55
}

.rsb-track {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 800
}

.rsb-banner {
	position: relative;
	background: linear-gradient(rgb(118, 42, 144), rgb(76, 13, 98) 100%);
	border: 1px solid var(--color-surface-border);
	overflow: hidden;
	padding: 10px 14px 14px;
	margin-bottom: 14px
}

.rsb-races {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 12px
}

.rsb-race {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	background: rgba(255, 255, 255, .5);
	border: 1px solid var(--color-surface-border);
	color: var(--color-text-main);
	transition: .15s
}

.rsb-odds-btn:hover,
.rsb-race:hover,
.rsb-tab:hover,
.rsb-odds-btn[disabled] {
	border-color: var(--color-gold);
	color: var(--color-gold)
}

.rsb-race--active,
.rsb-tab--active {
	background: #FF28AE;
	color: #fff;
	border-color: var(--color-gold)
}

.rsb-table tbody tr,
.rsb-table thead th {
	border-bottom: 1px solid var(--color-surface-border)
}

.rsb-race--upcoming {
	color: var(--color-text-muted)
}

.rsb-banner__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px
}

.rsb-distance {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 800;
	color: var(--color-text-main)
}

.rsb-banner__name {
	font-size: 13px;
	font-weight: 800;
	color: #fff
}

.rsb-banner__when,
.rsb-r-trainer {
	font-size: 11px;
	color: #000;
	margin-top: 2px
}

.rsb-countdown {
	background: #dc2626;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 12px;
	border-radius: 6px
}

.rsb-away {
	padding: 22px 0 18px
}

.rsb-away__icon {
	font-size: 32px;
	opacity: .85;
	margin-bottom: 4px
}

.rsb-away__text,
.rsb-rcard__title {
	font-size: 14px;
	color: var(--color-text-main)
}

.rsb-away__text {
	font-weight: 600
}

.rsb-rcard__title {
	font-weight: 800;
	margin: 6px 0 12px
}

.rsb-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px
}

.rsb-tab {
	font-size: 12px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(99, 102, 241, .12);
	border: 1px solid rgba(99, 102, 241, .25);
	color: var(--color-text-main);
	transition: .15s
}

.rsb-r-chev,
.rsb-table thead th {
	color: var(--color-text-muted);
	font-size: 11px
}

.rsb-tablewrap {
	overflow-x: auto
}

.rsb-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 560px
}

.rsb-table thead th {
	font-weight: 800;
	text-transform: capitalize;
	letter-spacing: .02em;
	padding: 8px 10px;
	text-align: center
}

.rsb-table tbody tr:last-child {
	border-bottom: 0
}

.rsb-r-chev {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center
}

.rsb-r-cell {
	padding: 12px 10px;
	vertical-align: middle
}

.rsb-r-silk {
	width: 30px;
	height: 30px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 800;
	color: rgba(255, 255, 255, .85)
}

.silk-red {
	background: #dc2626
}

.silk-stripe {
	background: repeating-linear-gradient(180deg, #fff 0 6px, #000 6px 12px, #fff 12px 18px, #000 18px 24px, #ef4444 24px 30px)
}

.silk-white {
	background: #f1f5f9;
	color: #111;
	border: 1px solid rgba(0, 0, 0, .2)
}

.silk-blue {
	background: #1d4ed8
}

.silk-yellow {
	background: #facc15;
	color: #111
}

.silk-green {
	background: #15803d
}

.silk-black {
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, .2)
}

.silk-pink {
	background: #ec4899
}

.rsb-r-formno {
	font-size: 10px;
	color: #000;
	margin-top: 4px;
	font-weight: 700
}

.rsb-r-name {
	font-size: 13px;
	font-weight: 800;
	color: #000;
}

.rsb-r-tag {
	display: inline-block;
	font-size: 9px;
	font-weight: 800;
	padding: 2px 6px;
	margin-left: 6px;
	border-radius: 4px;
	background: rgba(124, 58, 237, .35);
	color: #c4b5fd;
	border: 1px solid rgba(124, 58, 237, .55);
	vertical-align: middle
}

.rsb-odds-cell {
	padding: 12px 8px
}

.rsb-odds-btn {
	position: relative;
	min-width: 64px;
	padding: 10px 8px;

	border: 1px solid rgba(99, 102, 241, .25);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	color: #000;
	transition: .15s;
	cursor: pointer
}

.rsb-fav-tag {
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 9px;
	font-weight: 800;
	color: var(--color-base);
	padding: 2px 6px;
	border-radius: 4px;
	background: linear-gradient(135deg, var(--color-gold), var(--color-gold-2))
}

.rsb-scratched {
	padding: 14px 4px;
	border-bottom: 1px solid var(--color-surface-border);
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap
}

.rsb-scratched__name {
	font-size: 13px;
	font-weight: 800;
	color: var(--color-text-main);
	text-decoration: line-through;
	opacity: .7
}

.rsb-rules,
.rsb-scratched__nodd,
.rsb-scratched__when {
	color: var(--color-text-muted)
}

.rsb-scratched__when {
	font-size: 11px;
	margin-top: 4px
}

.rsb-scratched__nodd {
	font-size: 11px
}

.rsb-rules {
	font-size: 12px;
	padding: 12px 4px 0;
	line-height: 1.5
}

.rsb-rg {
	margin-top: 22px;
	background: #fff;
	color: #0a0a0a;
	border-radius: var(--radius-md);
	padding: 18px 18px 16px
}

.rsb-rg__title {
	font-size: 13px;
	font-weight: 800
}

.rsb-rg__body {
	font-size: 12px;
	margin-top: 8px;
	color: #1f2937
}

.rsb-rg__body a {
	color: #1d4ed8;
	text-decoration: underline
}