.rmc-scorebar {
	--rmc-accent: #d71920;
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) 76px;
	gap: 10px;
	align-items: stretch;
	width: 100%;
	min-height: 132px;
	margin: 16px 0 22px;
	padding: 10px 12px;
	border-top: 1px solid #e5e7eb;
	border-bottom: 3px solid var(--rmc-accent);
	background: #fff;
	box-shadow: 0 7px 22px rgba(17, 24, 39, .08);
	color: #17191c;
	overflow: hidden;
}

.rmc-scorebar,
.rmc-scorebar * { box-sizing: border-box; }

.rmc-scorebar__brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 10px 8px 2px;
	border-right: 1px solid #e5e7eb;
}

.rmc-scorebar__brand strong {
	max-width: 112px;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.035em;
	color: #111827;
}

.rmc-scorebar__eyebrow {
	margin-bottom: 7px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .15em;
	color: var(--rmc-accent);
}

.rmc-scorebar__line {
	width: 30px;
	height: 3px;
	margin-top: 10px;
	border-radius: 3px;
	background: var(--rmc-accent);
}

.rmc-scorebar__viewport { min-width: 0; overflow: hidden; }

.rmc-scorebar__track {
	display: flex;
	gap: 9px;
	height: 100%;
	padding: 0 1px 6px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--rmc-accent) #eceff2;
}

.rmc-scorebar__track::-webkit-scrollbar { height: 4px; }
.rmc-scorebar__track::-webkit-scrollbar-track { border-radius: 8px; background: #eceff2; }
.rmc-scorebar__track::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--rmc-accent); }

.rmc-match-card {
	flex: 0 0 224px;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 5px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #e4e7eb;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 2px 7px rgba(17, 24, 39, .05);
	color: #17191c !important;
	text-decoration: none !important;
	scroll-snap-align: start;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rmc-match-card:hover {
	transform: translateY(-1px);
	border-color: var(--rmc-accent);
	box-shadow: 0 5px 14px rgba(17, 24, 39, .09);
}

.rmc-match-card--live { border-color: var(--rmc-accent); }

.rmc-match-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.rmc-match-card__sport {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	font-size: 8px;
	letter-spacing: .045em;
	color: #515761;
}

.rmc-match-card__sport b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmc-match-card__sport svg {
	flex: none;
	width: 15px !important;
	height: 15px !important;
	max-width: 15px !important;
	max-height: 15px !important;
	fill: none !important;
	stroke: var(--rmc-accent);
}

.rmc-match-card__status {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .05em;
	color: #7a8089;
}

.rmc-match-card--live .rmc-match-card__status { color: var(--rmc-accent); }
.rmc-match-card__status i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rmc-accent);
	box-shadow: 0 0 0 3px rgba(215, 25, 32, .14);
	animation: rmc-pulse 1.6s infinite;
}

.rmc-match-card__date {
	padding-bottom: 4px;
	border-bottom: 1px solid #eceef1;
	font-size: 10px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #111827;
}

.rmc-match-card__teams { display: grid; align-content: center; gap: 4px; }
.rmc-team-row {
	display: grid;
	grid-template-columns: 27px minmax(0, 1fr) 24px;
	gap: 7px;
	align-items: center;
	min-width: 0;
}

.rmc-team-row__logo,
.rmc-team-row__fallback {
	display: grid;
	place-items: center;
	width: 26px !important;
	height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	object-fit: contain;
}

.rmc-team-row__fallback {
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #f4f5f7;
	font-size: 11px;
	font-weight: 900;
	color: #4b5563;
}

.rmc-team-row__name {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
	font-weight: 750;
	color: #17191c;
}

.rmc-team-row__score {
	text-align: right;
	font-size: 15px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #111827;
}

.rmc-match-card__competition {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 8px;
	color: #858b94;
}

.rmc-scorebar__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-left: 1px solid #e5e7eb;
}

.rmc-scorebar__arrow {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	padding: 0;
	border: 1px solid #dfe2e6;
	border-radius: 50%;
	background: #fff;
	color: #22262b;
	cursor: pointer;
	transition: .18s ease;
}

.rmc-scorebar__arrow:hover:not(:disabled) { border-color: var(--rmc-accent); background: var(--rmc-accent); color: #fff; }
.rmc-scorebar__arrow:disabled { opacity: .28; cursor: default; }
.rmc-scorebar__arrow svg {
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	fill: none !important;
	stroke: currentColor;
}

.rmc-empty-admin {
	padding: 16px 20px;
	margin: 15px 0;
	border: 1px dashed #c3c4c7;
	border-radius: 10px;
	background: #fff;
	color: #50575e;
}

@keyframes rmc-pulse { 50% { box-shadow: 0 0 0 6px rgba(215, 25, 32, 0); } }

@media (max-width: 900px) {
	.rmc-scorebar { grid-template-columns: 106px minmax(0, 1fr) 42px; gap: 8px; padding: 9px; }
	.rmc-scorebar__brand strong { font-size: 15px; }
	.rmc-scorebar__nav { flex-direction: column; }
	.rmc-match-card { flex-basis: 214px; }
}

@media (max-width: 600px) {
	.rmc-scorebar { display: block; min-height: 0; margin: 12px 0 18px; padding: 9px; }
	.rmc-scorebar__brand {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 7px;
		padding: 2px 3px 9px;
		border-right: 0;
	}
	.rmc-scorebar__brand strong { max-width: none; font-size: 14px; }
	.rmc-scorebar__eyebrow { margin: 0; font-size: 8px; }
	.rmc-scorebar__line { width: 21px; height: 2px; margin: 0; }
	.rmc-scorebar__track { padding-bottom: 7px; }
	.rmc-match-card { flex-basis: 218px; }
	.rmc-scorebar__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rmc-match-card,
	.rmc-scorebar__arrow { transition: none; }
	.rmc-match-card__status i { animation: none; }
}
