.match-scoreboard-modern {
	--win: #10b981;
	--draw: #f59e0b;
	--loss: #ef4444;
	--bg-dark: var(--theme-palette-color-4, #192a3d);
	--bg-card: var(--theme-palette-color-5, #192a3d);
	--text-primary: var(--theme-palette-color-3, #ffffff);
	--text-secondary: var(--theme-palette-color-9, #3A4F66);
	--text-muted: var(--theme-palette-color-9, #3A4F66);
	--border-color: var(--theme-palette-color-8, #3A4F66);
	--accent-green: var(--win);
	--accent-yellow: var(--draw);
	--accent-red: var(--loss);
}

.match-scoreboard-modern .clash-card {
	width: 100%;
	margin: 0 auto;
	background: var(--bg-card);
	position: relative;
	overflow: hidden;
}
.prediction-box {
  display: flex;
  flex-direction: column;
}
.match-scoreboard-modern .bg-split {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

.match-scoreboard-modern .bg-split::before {
	content: '';
	position: absolute;
	width: 60%;
	height: 100%;
	left: -10%;
	background: radial-gradient(circle at center, var(--home-club-color-rgba, var(--home-club-color)) 0%, transparent 70%);
	transform: skewX(-15deg);
	opacity: var(--home-club-opacity, 0.3);
}

.match-scoreboard-modern .bg-split::after {
	content: '';
	position: absolute;
	width: 60%;
	height: 100%;
	right: -10%;
	background: radial-gradient(circle at center, var(--away-club-color-rgba, var(--away-club-color)) 0%, transparent 70%);
	transform: skewX(-15deg);
	opacity: var(--away-club-opacity, 0.3);
}

/* Noise texture for dark theme */
.match-scoreboard-modern .noise {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.05;
	background: url('https://grainy-gradients.vercel.app/noise.svg');
	z-index: 2;
	pointer-events: none;
}

/* Hide glow effects and noise on light theme */
[data-color-mode="light"] .match-scoreboard-modern .bg-split::before,
[data-color-mode="light"] .match-scoreboard-modern .bg-split::after,
[data-color-mode="light"] .match-scoreboard-modern .noise {
	display: none;
}

.match-scoreboard-modern .card-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 25px 60px;
	box-sizing: border-box;
}

.match-scoreboard-modern .header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--text-muted);
	font-weight: 600;
	margin-bottom: 20px;
}

.match-scoreboard-modern .header > span {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

.match-scoreboard-modern .match-scoreboard__kickoff {
	white-space: nowrap;
}

.match-scoreboard-modern .header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.match-scoreboard-modern .share-scoreboard-btn {
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	line-height: 1;
}

.match-scoreboard-modern .share-scoreboard-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--accent-green);
	color: var(--accent-green);
}

.match-scoreboard-modern .share-scoreboard-btn:active {
	transform: scale(0.95);
}

.match-scoreboard-modern .share-scoreboard-btn.loading {
	opacity: 0.6;
	cursor: wait;
	pointer-events: none;
}

.match-scoreboard-modern .share-scoreboard-btn svg {
	width: 18px;
	height: 18px;
}

/* Social Share Tooltip */
.scoreboard-share-tooltip {
	position: absolute;
	z-index: 10000;
	background: var(--bg-card, #192a3d);
	border: 1px solid var(--border-color, #3A4F66);
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 10px 15px rgba(0,0,0,0.15);
	min-width: 200px;
}

.scoreboard-share-tooltip-content {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.scoreboard-share-tooltip .scoreboard-share-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-color, #3A4F66);
	color: var(--text-muted, #3A4F66);
	transition: all 0.2s;
	text-decoration: none;
	cursor: pointer;
}

.scoreboard-share-tooltip .scoreboard-share-link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--accent-green, #10b981);
	color: var(--accent-green, #10b981);
	transform: translateY(-2px);
}

.scoreboard-share-tooltip .scoreboard-share-link svg {
	width: 20px;
	height: 20px;
}

.match-scoreboard-modern .live-tag {
	color: var(--accent-green);
	display: flex;
	align-items: center;
	gap: 6px;
}

.match-scoreboard-modern .live-tag--live {
	color: #ff9800;
}

.match-scoreboard-modern .live-dot {
	width: 6px;
	height: 6px;
	background: var(--accent-green);
	border-radius: 50%;
	box-shadow: 0 0 5px var(--accent-green);
	animation: pulse 2s infinite;
}

.match-scoreboard-modern .live-dot--live {
	background: #ff9800;
	box-shadow: 0 0 5px rgba(255, 152, 0, 0.6);
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.match-scoreboard-modern .battle-stage {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

.match-scoreboard-modern .team-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 35%;
	transition: transform 0.3s ease;
	position: relative;
}

.match-scoreboard-modern .team-col:hover {
	transform: translateY(-3px);
}

.match-scoreboard-modern .logo-container {
	width: 90px;
	height: 90px;
	background: rgba(255,255,255,0.05);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(5px);
	border: 1px solid var(--border-color);
	box-shadow: 0 10px 15px rgba(0,0,0,0.15);
	margin-bottom: 15px;
}

.match-scoreboard-modern .logo-img {
	width: 55px;
	height: 55px;
	object-fit: contain;
}

.match-scoreboard-modern .team-name {
	font-size: 1.4rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 4px;
	color: var(--text-primary);
	text-align: center;
  line-height: 1;
}

.match-scoreboard-modern .team-pos {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.match-scoreboard-modern .side-stats {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 20;
}

.match-scoreboard-modern .stats-left {
	left: 25px;
}

.match-scoreboard-modern .stats-right {
	right: 25px;
}

.match-scoreboard-modern .stat-label {
	transform: rotate(-90deg);
	font-size: 0.6rem;
	letter-spacing: 2px;
	color: var(--text-secondary);
	text-transform: uppercase;
	margin-bottom: 5px;
}

/* Mobile side stats - hidden on desktop */
.match-scoreboard-modern .side-stats-mobile {
	display: none;
}

.match-scoreboard-modern .bars-group {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 60px;
}

.match-scoreboard-modern .bar {
	width: 6px;
	border-radius: 3px;
	transition: height 0.3s ease;
	position: relative;
}

.match-scoreboard-modern .h-win {
	height: 100%;
	background: #00e676;
	box-shadow: 0 0 5px rgba(0,230,118,0.2);
}

.match-scoreboard-modern .h-draw {
	height: 60%;
	background: #ffea00;
	box-shadow: 0 0 5px rgba(255,234,0,0.15);
}

.match-scoreboard-modern .h-loss {
	height: 30%;
	background: #ff3d00;
	box-shadow: 0 0 5px rgba(255,61,0,0.2);
}

.match-scoreboard-modern .center-info {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.match-scoreboard-modern .vs-badge {
	font-size: 1rem;
	font-weight: 900;
	color: var(--bg-card);
	background: var(--text-primary);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.match-scoreboard-modern .match-time {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--text-primary);
}

.match-scoreboard-modern .match-date {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin-top: 5px;
	font-weight: 600;
}

.match-scoreboard-modern .betting-strip {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 12px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid var(--border-color);
	margin-top: 20px;
}

.match-scoreboard-modern .pred-label {
	font-size: 0.65rem;
	color: var(--text-muted);
	text-transform: uppercase;
}

.match-scoreboard-modern .pred-val {
	color: var(--accent-green);
	font-weight: 700;
	font-size: 0.95rem;
}

.match-scoreboard-modern .odds-group-custom {
	display: flex;
	gap: 10px;
}

.match-scoreboard-modern .odds-group-custom .odd-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.4);
	width: 60px;
	height: 45px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: 0.2s;
}

.match-scoreboard-modern .odds-group-custom .odd-item:hover {
	background: rgba(255,255,255,0.1);
	border-color: var(--border-color);
}

.match-scoreboard-modern .odds-group-custom .odd-name {
	font-size: 0.6rem;
	color: var(--text-muted);
}

.match-scoreboard-modern .odds-group-custom .odd-num {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
}

.match-scoreboard-modern .match-scoreboard__scores {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.match-scoreboard-modern .match-scoreboard__score-number {
	font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 0;
}

.match-scoreboard-modern .match-scoreboard__score-separator {
	font-size: 2rem;
	color: var(--text-muted);
}

/* Convert form items to bars */
.match-scoreboard-modern .bars-group {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 60px;
	justify-content: center;
}

.match-scoreboard-modern .bars-group .club-form {
	display: flex !important;
	align-items: flex-end !important;
	gap: 4px !important;
	height: 60px !important;
	justify-content: center !important;
	margin: 0 !important;
}

.match-scoreboard-modern .bars-group .club-form__item-pro {
	width: 6px !important;
	min-width: 6px !important;
	margin: 0 !important;
	border-radius: 3px !important;
	display: block !important;
	flex-shrink: 0;
}

/* Scale heights to fit 60px max */
.match-scoreboard-modern .bars-group .club-form__item-pro[style*="height"] {
	max-height: 60px !important;
}

.match-scoreboard-modern .bars-group .club-form__item-pro.anwp-bg-success {
	background: #00e676 !important;
	box-shadow: 0 0 5px rgba(0,230,118,0.2);
}

.match-scoreboard-modern .bars-group .club-form__item-pro.anwp-bg-warning {
	background: #ffea00 !important;
	box-shadow: 0 0 5px rgba(255,234,0,0.15);
}

.match-scoreboard-modern .bars-group .club-form__item-pro.anwp-bg-danger {
	background: #ff3d00 !important;
	box-shadow: 0 0 5px rgba(255,61,0,0.2);
}

/* Events Styles - Minimalistic */
.match-scoreboard-modern .card-content .match-scoreboard__events {
	margin: 15px 0;
	padding: 0;
	gap: 20px;
}

.match-scoreboard-modern .match-scoreboard__event-wrapper {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
	padding: 0;
}

.match-scoreboard-modern .match-scoreboard__event-icon {
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.match-scoreboard-modern .match-scoreboard__event-player {
	flex: 1;
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 400;
}

.match-scoreboard-modern .match-scoreboard__event-minute {
	color: var(--text-muted);
	font-size: 0.7rem;
	font-weight: 500;
	/* min-width: 35px; */
	text-align: left;
	opacity: 0.7;
}

.match-scoreboard-modern .match-scoreboard__icon {
	width: 12px;
	height: 12px;
	/* fill: var(--accent-green);
	opacity: 0.8; */
}

.match-scoreboard-modern .icon__card {
	width: 12px;
	height: 12px;
	/* fill: var(--accent-red);
	opacity: 0.8; */
}

/* Footer Styles - Minimalistic */
.match-scoreboard-modern .card-content .match-scoreboard__footer-minimal {
	margin: 12px 0;
	padding: 0;
	color: var(--text-muted);
	font-size: 0.7rem;
}

.match-scoreboard-modern .match-scoreboard__footer-minimal .match__stadium,
.match-scoreboard-modern .match-scoreboard__footer-minimal .match__referee {
	color: var(--text-muted);
	font-size: 0.7rem;
	opacity: 0.8;
}

.match-scoreboard-modern .match-scoreboard__footer-minimal .match__stadium-title {
	color: var(--text-muted);
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.match-scoreboard-modern .match-scoreboard__footer-minimal .match__stadium-title:hover {
	opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
	.match-scoreboard-modern .card-content {
		padding: 15px 20px;
	}

	.match-scoreboard-modern .header {
		font-size: 0.65rem;
		letter-spacing: 1px;
		margin-bottom: 15px;
		flex-wrap: nowrap;
		gap: 8px;
		overflow: hidden;
	}

	.match-scoreboard-modern .header > span {
		overflow: visible;
		text-overflow: clip;
		flex: 1;
		min-width: 0;
		flex-wrap: wrap;
	}
	.match-scoreboard--max450 .club-form .club-form__item-pro{
		border: 0 !important;
	}
	.match-scoreboard-modern .header-actions {
		gap: 8px;
	}

	.match-scoreboard-modern .share-scoreboard-btn {
		padding: 5px 8px;
	}

	.match-scoreboard-modern .share-scoreboard-btn svg {
		width: 16px;
		height: 16px;
	}

	.match-scoreboard-modern .logo-container {
		width: 70px;
		height: 70px;
		margin-bottom: 10px;
	}

	.match-scoreboard-modern .logo-img {
		width: 45px;
		height: 45px;
	}

	.match-scoreboard-modern .team-name {
		font-size: 1rem;
		letter-spacing: 0.5px;
	}

	.match-scoreboard-modern .team-pos {
		font-size: 0.7rem;
	}

	.match-scoreboard-modern .match-scoreboard__score-number {
		font-size: 2.5rem;
	}

	.match-scoreboard-modern .match-scoreboard__score-separator {
		font-size: 1.5rem;
	}

	.match-scoreboard-modern .match-time {
		font-size: 1.8rem;
	}

	.match-scoreboard-modern .match-date {
		font-size: 0.75rem;
	}

	.match-scoreboard-modern .vs-badge {
		width: 28px;
		height: 28px;
		font-size: 0.85rem;
	}

	/* Hide desktop side stats on mobile */
	.match-scoreboard-modern .side-stats {
		display: none;
	}

	/* Show mobile side stats */
	.match-scoreboard-modern .side-stats-mobile {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		margin-top: 10px;
	}

	.match-scoreboard-modern .side-stats-mobile .stat-label {
display: none !important;
	}

	.match-scoreboard-modern .side-stats-mobile .bars-group {
		height: 40px;
	}

	.match-scoreboard-modern .team-col {
		width: 40%;
	}

	.match-scoreboard-modern .betting-strip {
		padding: 10px 15px;
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}

	.match-scoreboard-modern .odds-group-custom {
		gap: 8px;
		width: 100%;
		justify-content: space-between;
	}

	.match-scoreboard-modern .odds-group-custom .odd-item {
		width: 50px;
		height: 40px;
		flex: 1;
	}

	.match-scoreboard-modern .odds-group-custom .odd-name {
		font-size: 0.55rem;
	}

	.match-scoreboard-modern .odds-group-custom .odd-num {
		font-size: 0.9rem;
	}

	.match-scoreboard-modern .pred-label {
		font-size: 0.6rem;
	}

	.match-scoreboard-modern .pred-val {
		font-size: 0.85rem;
	}

	.match-scoreboard-modern .bars-group {
		height: 50px;
	}

	.match-scoreboard-modern .bars-group .club-form__item-pro {
		width: 5px !important;
		min-width: 5px !important;
	}

	.match-scoreboard-modern .bars-group .club-form__item-pro[style*="height"] {
		max-height: 50px !important;
	}

	.match-scoreboard-modern .card-content .match-scoreboard__events {
		margin: 12px 0;
		gap: 15px;
	}

	.match-scoreboard-modern .match-scoreboard__event-player {
		font-size: 0.7rem;
	}

	.match-scoreboard-modern .match-scoreboard__event-minute {
		font-size: 0.65rem;
	}

	.match-scoreboard-modern .match-scoreboard__event-icon {
		width: 12px;
		height: 12px;
	}

	.match-scoreboard-modern .card-content .match-scoreboard__footer-minimal {
		font-size: 0.65rem;
		margin: 0;
	}

	.match-scoreboard-modern .match-scoreboard__footer-minimal .match__stadium,
	.match-scoreboard-modern .match-scoreboard__footer-minimal .match__referee {
		font-size: 0.65rem;
	}

	.scoreboard-share-tooltip {
		min-width: 180px;
		padding: 10px;
	}

	.scoreboard-share-tooltip-content {
		gap: 8px;
	}

	.scoreboard-share-tooltip .scoreboard-share-link {
		width: 36px;
		height: 36px;
	}

	.scoreboard-share-tooltip .scoreboard-share-link svg {
		width: 18px;
		height: 18px;
	}
}

/* Extra Small Mobile */
@media (max-width: 480px) {
	.match-scoreboard-modern .card-content {
		padding: 12px 15px;
	}

	.match-scoreboard-modern .header {
		font-size: 0.6rem;
		margin-bottom: 12px;
		flex-wrap: nowrap;
	}

	.match-scoreboard-modern .header > span {
		font-size: 0.55rem;
	}

	.match-scoreboard-modern .logo-container {
		width: 60px;
		height: 60px;
		margin-bottom: 8px;
	}

	.match-scoreboard-modern .logo-img {
		width: 38px;
		height: 38px;
	}

	.match-scoreboard-modern .team-name {
		font-size: 0.9rem;
	}

	.match-scoreboard-modern .match-scoreboard__score-number {
		font-size: 2rem;
	}

	.match-scoreboard-modern .match-scoreboard__score-separator {
		font-size: 1.2rem;
	}

	.match-scoreboard-modern .match-time {
		font-size: 1.5rem;
	}

	.match-scoreboard-modern .team-col {
		width: 33%;
	}

	.match-scoreboard-modern .betting-strip {
		padding: 8px 12px;
	}

	.match-scoreboard-modern .odds-group-custom .odd-item {
		width: 45px;
		height: 35px;
	}

	.match-scoreboard-modern .odds-group-custom .odd-num {
		font-size: 0.8rem;
	}
}
