.lmp {
	--lmp-primary: #0f172a;
	--lmp-accent: #22c55e;
	--lmp-surface: #ffffff;
	--lmp-surface-alt: #f8fafc;
	--lmp-border: #e2e8f0;
	--lmp-text: #0f172a;
	--lmp-text-muted: #64748b;
	--lmp-radius: 14px;
	--lmp-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--lmp-text);
	box-sizing: border-box;
}

.lmp *,
.lmp *::before,
.lmp *::after {
	box-sizing: inherit;
}

@media (prefers-color-scheme: dark) {
	.lmp {
		--lmp-surface: #111827;
		--lmp-surface-alt: #1f2937;
		--lmp-border: #374151;
		--lmp-text: #f1f5f9;
		--lmp-text-muted: #94a3b8;
	}
}

.lmp-card {
	background: var(--lmp-surface);
	border: 1px solid var(--lmp-border);
	border-radius: var(--lmp-radius);
	box-shadow: var(--lmp-shadow);
	padding: 24px;
	margin-bottom: 20px;
}

.lmp-card h2 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 700;
}

.lmp-grid-2 {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 20px;
	align-items: start;
}

@media (max-width: 800px) {
	.lmp-grid-2 { grid-template-columns: 1fr; }
}

.lmp-prose { line-height: 1.7; color: var(--lmp-text-muted); }

/* Hero */
.lmp-hero {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px;
	background: linear-gradient(135deg, var(--lmp-primary), #1e293b);
	color: #fff;
	border-radius: var(--lmp-radius);
	margin-bottom: 20px;
	box-shadow: var(--lmp-shadow);
}

.lmp-hero-logo img {
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	padding: 6px;
}

.lmp-hero-avatar img {
	border-radius: 50%;
}

.lmp-hero-info h1 {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 800;
	color: #fff;
}

.lmp-hero-meta {
	margin: 0 0 10px;
	opacity: 0.85;
	font-size: 14px;
}

.lmp-hero-stats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.lmp-link {
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
}

.shirt-number,
.lmp-shirt-number {
	opacity: 0.7;
	font-weight: 500;
}

/* Match hero */
.lmp-match-hero {
	justify-content: space-between;
}

.lmp-match-hero-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 1;
	text-align: center;
}

.lmp-match-hero-team h2 {
	color: #fff;
	font-size: 16px;
	margin: 0;
}

.lmp-match-hero-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 32px;
	font-weight: 800;
}

.lmp-match-hero-vs { font-size: 18px; opacity: 0.6; }

/* Chips / badges */
.lmp-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--lmp-surface-alt);
	border: 1px solid var(--lmp-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--lmp-text);
	text-decoration: none;
	margin: 2px 4px 2px 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lmp-chip:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.lmp-chip-lg {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 13px;
	padding: 6px 14px;
}

.lmp-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.lmp-badge-default { background: var(--lmp-surface-alt); color: var(--lmp-text-muted); }
.lmp-badge-success { background: #dcfce7; color: #15803d; }
.lmp-badge-warning { background: #fef3c7; color: #b45309; }
.lmp-badge-danger { background: #fee2e2; color: #b91c1c; }
.lmp-badge-live { background: #fee2e2; color: #dc2626; animation: lmp-pulse 1.4s infinite; }

@keyframes lmp-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

/* Tables */
.lmp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.lmp-table th,
.lmp-table td {
	padding: 10px 12px;
	text-align: center;
	border-bottom: 1px solid var(--lmp-border);
}

.lmp-table th {
	color: var(--lmp-text-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}

.lmp-table .lmp-col-team,
.lmp-table .lmp-col-rank {
	text-align: left;
}

.lmp-team-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.lmp-team-logo-sm {
	border-radius: 4px;
}

.lmp-row-highlight {
	background: color-mix(in srgb, var(--lmp-accent) 12%, transparent);
	font-weight: 700;
}

.lmp-form-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	margin-left: 2px;
}

.lmp-form-w { background: #22c55e; }
.lmp-form-d { background: #94a3b8; }
.lmp-form-l { background: #ef4444; }

/* Fixture / result cards */
.lmp-group-heading {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--lmp-text-muted);
	margin: 24px 0 10px;
}

.lmp-match-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lmp-match-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--lmp-surface);
	border: 1px solid var(--lmp-border);
	border-radius: var(--lmp-radius);
	padding: 14px 18px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lmp-match-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--lmp-shadow);
}

.lmp-match-meta {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: var(--lmp-text-muted);
	min-width: 110px;
}

.lmp-match-teams {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	justify-content: center;
}

.lmp-match-team {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	flex: 1;
}

.lmp-match-team img {
	border-radius: 4px;
}

.lmp-match-vs {
	color: var(--lmp-text-muted);
	font-size: 12px;
}

.lmp-match-score {
	font-weight: 800;
	font-size: 16px;
	min-width: 60px;
	text-align: center;
}

.lmp-match-links {
	display: flex;
	gap: 6px;
}

/* Teams grid */
.lmp-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.lmp-team-card {
	background: var(--lmp-surface);
	border: 1px solid var(--lmp-border);
	border-radius: var(--lmp-radius);
	padding: 20px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lmp-team-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--lmp-shadow);
}

.lmp-team-card-logo img {
	margin: 0 auto 10px;
}

.lmp-team-card-name {
	margin: 0 0 2px;
	font-size: 15px;
}

.lmp-team-card-city {
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--lmp-text-muted);
}

.lmp-team-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--lmp-accent);
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
}

.lmp-team-placeholder-lg {
	width: 80px;
	height: 80px;
	font-size: 24px;
}

/* Stat chips + leaders */
.lmp-stat-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lmp-stat-chip {
	background: var(--lmp-surface-alt);
	border-radius: var(--lmp-radius);
	padding: 12px 16px;
	min-width: 90px;
	text-align: center;
}

.lmp-stat-chip-value {
	display: block;
	font-size: 22px;
	font-weight: 800;
	color: var(--lmp-accent);
}

.lmp-stat-chip-label {
	display: block;
	font-size: 11px;
	color: var(--lmp-text-muted);
	text-transform: uppercase;
}

.lmp-leaders-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmp-leader-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--lmp-border);
}

.lmp-leader-rank {
	font-weight: 800;
	color: var(--lmp-text-muted);
	width: 32px;
}

.lmp-leader-name { flex: 1; font-weight: 600; }
.lmp-leader-team { color: var(--lmp-text-muted); font-size: 12px; }
.lmp-leader-value { font-weight: 800; font-size: 16px; color: var(--lmp-accent); }

.lmp-stats-compare td {
	padding: 8px 12px;
}

.lmp-stat-compare-label {
	color: var(--lmp-text-muted);
	font-size: 12px;
	text-transform: uppercase;
}

.lmp-stat-compare-home,
.lmp-stat-compare-away {
	font-weight: 700;
	width: 80px;
}

.lmp-mini-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmp-mini-list li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--lmp-border);
	font-size: 13px;
}

.lmp-mini-list li:last-child { border-bottom: none; }
.lmp-mini-list time { color: var(--lmp-text-muted); white-space: nowrap; }

.lmp-empty {
	color: var(--lmp-text-muted);
	font-style: italic;
	padding: 16px 0;
}

/* Skeleton loader */
.lmp-skeleton {
	background: linear-gradient(90deg, var(--lmp-surface-alt) 25%, var(--lmp-border) 37%, var(--lmp-surface-alt) 63%);
	background-size: 400% 100%;
	animation: lmp-skeleton-loading 1.4s ease infinite;
	border-radius: 6px;
	height: 16px;
}

@keyframes lmp-skeleton-loading {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* Fade-in on scroll */
.lmp-fade-in {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.lmp-fade-in.lmp-visible {
	opacity: 1;
	transform: translateY(0);
}

.lmp-chart {
	max-width: 100%;
	margin-top: 16px;
}

.lmp-events-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmp-events-timeline li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--lmp-border);
	font-size: 13px;
}

.lmp-events-timeline li:last-child { border-bottom: none; }

.lmp-event-time {
	font-weight: 800;
	color: var(--lmp-accent);
	min-width: 34px;
}

.lmp-event-type {
	font-weight: 600;
	text-transform: capitalize;
}

.lmp-event-player,
.lmp-event-team {
	color: var(--lmp-text-muted);
}

.lmp-bracket {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	padding: 10px 4px 20px;
}

.lmp-bracket-round {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	min-width: 220px;
	gap: 16px;
}

.lmp-bracket-round-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lmp-text-muted);
	text-align: center;
	margin: 0 0 4px;
}

.lmp-bracket-round-matches {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 20px;
	flex: 1;
}

.lmp-bracket-match {
	background: var(--lmp-surface);
	border: 1px solid var(--lmp-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--lmp-shadow);
}

.lmp-bracket-team {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	font-size: 13px;
	border-bottom: 1px solid var(--lmp-border);
}

.lmp-bracket-team:last-child { border-bottom: none; }

.lmp-bracket-team span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lmp-bracket-team img {
	border-radius: 3px;
}

.lmp-bracket-winner {
	font-weight: 800;
	background: color-mix(in srgb, var(--lmp-accent) 10%, transparent);
}

/* Head-to-head */
.lmp-h2h-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	background: var(--lmp-surface);
	border: 1px solid var(--lmp-border);
	border-radius: var(--lmp-radius);
	margin-bottom: 20px;
}

.lmp-h2h-team {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-weight: 700;
}

.lmp-h2h-wins {
	font-size: 28px;
	color: var(--lmp-accent);
}

.lmp-h2h-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--lmp-text-muted);
	min-width: 100px;
}

/* Comparison widgets */
.lmp-compare-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.lmp-compare-side {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.lmp-compare-side img {
	border-radius: 8px;
}

.lmp-compare-side h3 {
	margin: 0;
	font-size: 16px;
}

.lmp-compare-vs {
	font-weight: 800;
	color: var(--lmp-text-muted);
	font-size: 13px;
}

.lmp-stat-lead {
	color: var(--lmp-accent);
	font-weight: 800;
}
