
.mp-card .history-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	overflow: visible;
}

.mp-card .history-col {
	flex: none;
	min-width: 0;
	padding: 0;
}

.mp-card .history-col-head {
	display: grid;
	justify-items: center;
	gap: 4px;
	margin: 0 0 6px;
	padding: 4px 2px 10px;
	border-bottom: 1px solid var(--mp-line);
	text-align: center;
}

.mp-card .history-col-logos {
	display: flex;
	gap: 4px;
}

.mp-card .history-col-logos img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.mp-card .history-col-title {
	max-width: 100%;
	color: var(--mp-muted);
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mp-card .history-col-sum {
	display: flex;
	gap: 6px;
	font-size: 0.74rem;
	font-variant-numeric: tabular-nums;
}

.mp-card .history-col-sum .is-V {
	color: #4ade80;
}

.mp-card .history-col-sum .is-N {
	color: var(--mp-text);
}

.mp-card .history-col-sum .is-D {
	color: #f87171;
}

.mp-card .history-col.is-tat {
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.025);
}

.mp-card .history-list {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mp-card .history-list > div + div {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-card .history-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 14px 4px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	color: var(--mp-text);
	text-decoration: none;
	transition: background 0.16s ease;
}

.mp-card a.history-line:hover {
	background: rgba(255, 45, 134, 0.09);
}

.mp-card .history-logo {
	width: 26px;
	height: 26px;
	object-fit: contain;
	flex: 0 0 auto;
}

.mp-card .history-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 56px;
	padding: 3px 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	font-family: "Bangers", "Titillium Web", sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	line-height: 1.1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.mp-card .history-pill i {
	font-style: normal;
	opacity: 0.6;
}

.mp-card .history-pill.is-V,
.mp-card .history-legend .is-V {
	background: #4ade80;
}

.mp-card .history-pill.is-N,
.mp-card .history-legend .is-N {
	background: rgba(255, 255, 255, 0.6);
}

.mp-card .history-pill.is-D,
.mp-card .history-legend .is-D {
	background: #f87171;
}

.mp-card .history-pill.is-V,
.mp-card .history-pill.is-N,
.mp-card .history-pill.is-D {
	color: #0b0f20;
}

.mp-card .history-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	margin-top: 12px;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--mp-muted);
}

.mp-card .history-legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 3px;
	vertical-align: -1px;
}

.mp-card .match-separator {
	display: none;
}

#eventsModal .modal-dialog {
	max-width: 440px;
	margin: 0.8rem auto;
	width: calc(100% - 1.2rem);
}

#eventsModal .modal-premium-body {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	padding: 16px 16px 14px;
	color: var(--mp-text);
}

#eventsModal .logo-club {
	max-height: 44px;
	margin-bottom: 0;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

#eventsModal .modal-premium-body .mb-3 {
	margin-bottom: 0.35rem !important;
}

#eventsModal .badge-primary {
	background: transparent !important;
	color: #fff !important;
	font-family: "Bangers", "Permanent Marker", "Sedgwick Ave Display", cursive;
	font-size: 2rem;
	font-weight: bold;
	line-height: 1;
	letter-spacing: 0.04em;
	padding: 0 2px;
	border-radius: 0;
}

#eventsModal .badge-primary + .badge-primary::before {
	content: "-";
	margin: 0 6px 0 2px;
	color: rgba(255, 255, 255, 0.40);
	font-family: "Titillium Web", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	vertical-align: middle;
}

#eventsModal .trend-value {
	color: #fff;
	font-weight: 700;
}

#eventsModal .separator {
	background-color: var(--mp-line) !important;
	margin: 0.7rem 0 !important;
}

#eventsModal .timeline-with-icons {
	max-height: 46vh;
	overflow-y: auto;
	margin: 0;
	padding-right: 4px;
	scrollbar-width: thin;
}

#eventsModal .timeline-with-icons li {
	margin-bottom: 0;
}

#eventsModal .timeline-with-icons .mb-2 {
	margin-bottom: 0.2rem !important;
}

#eventsModal .timeline-with-icons .timeline-icon {
	max-width: 0.95rem;
}

#eventsModal .modal-premium-body .mt-4 {
	margin-top: 0.8rem !important;
}

@media (max-width: 480px) {
	.mp-card .history-columns {
		gap: 5px;
	}

	.mp-card .history-col-title {
		display: none;
	}

	.mp-card .history-col-logos img {
		width: 22px;
		height: 22px;
	}

	.mp-card .history-line {
		gap: 3px;
		padding: 11px 2px;
	}

	.mp-card .history-logo {
		width: 20px;
		height: 20px;
	}

	.mp-card .history-pill {
		min-width: 44px;
		padding: 2px 5px;
		gap: 2px;
		font-size: 0.95rem;
	}
}
