/**
 * Al-Hadaf — Match Center
 * A premium, theme-native matches page. Colors, radii and shadows are inherited
 * from the active theme (ALHADAF design system) and gracefully fall back.
 *
 * @package Alhadaf
 */

.alh-mc {
	--mc-ink: var(--alhadaf-header-bg, #0b132b);
	--mc-ink-2: var(--alhadaf-header-surface, #162345);
	--mc-ink-3: var(--alhadaf-header-card, #1c2d57);
	--mc-accent: var(--alhadaf-accent, #e63946);
	--mc-accent-2: var(--alhadaf-accent-hover, #d62828);
	--mc-live: var(--alhadaf-live, #ef4444);
	--mc-success: var(--alhadaf-success, #10b981);
	--mc-warning: var(--alhadaf-warning, #f59e0b);
	--mc-bg: var(--alhadaf-bg, #f4f6fa);
	--mc-surface: var(--alhadaf-surface, #ffffff);
	--mc-surface-2: var(--alhadaf-surface-hover, #f8fafc);
	--mc-line: var(--alhadaf-border, #e2e8f0);
	--mc-line-soft: var(--alhadaf-border-subtle, #edf2f7);
	--mc-text: var(--alhadaf-text-main, #0f172a);
	--mc-muted: var(--alhadaf-text-light, #64748b);
	--mc-radius: var(--radius-lg, 16px);
	--mc-radius-sm: var(--radius-md, 12px);
	--mc-shadow: var(--shadow-md, 0 4px 14px rgba(15, 23, 42, 0.08));
	--mc-shadow-lg: var(--shadow-lg, 0 10px 25px rgba(15, 23, 42, 0.12));
	--mc-font: var(--alhadaf-font-primary, "IBM Plex Sans Arabic", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	--mc-ease: cubic-bezier(0.22, 1, 0.36, 1);

	color: var(--mc-text);
	font-family: var(--mc-font);
	direction: rtl;
	text-align: right;
}

.alh-mc *,
.alh-mc *::before,
.alh-mc *::after {
	box-sizing: border-box;
}

.alh-mc-container {
	width: 100%;
	max-width: var(--container-max, 1320px);
	margin-inline: auto;
	padding-inline: var(--container-padding, 20px);
}

.alh-mc svg {
	display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.alh-mc-hero {
	position: relative;
	max-width: var(--container-max, 1320px);
	margin: 24px auto 28px;
	padding: 44px 44px 40px;
	border-radius: 28px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(900px 420px at 88% -10%, rgba(230, 57, 70, 0.35), transparent 62%),
		radial-gradient(700px 420px at 8% 110%, rgba(14, 165, 233, 0.18), transparent 60%),
		linear-gradient(135deg, var(--mc-ink) 0%, var(--mc-ink-2) 58%, var(--mc-ink-3) 100%);
	box-shadow: 0 24px 60px rgba(11, 19, 43, 0.22);
	isolation: isolate;
}

.alh-mc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(600px 300px at 70% 20%, #000 20%, transparent 75%);
	pointer-events: none;
	z-index: -1;
}

.alh-mc-hero-glow {
	position: absolute;
	inset-inline-start: -80px;
	inset-block-start: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(230, 57, 70, 0.5), transparent 70%);
	filter: blur(10px);
	animation: alh-mc-float 9s ease-in-out infinite;
	z-index: -1;
}

@keyframes alh-mc-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(-18px, 16px, 0) scale(1.06); }
}

.alh-mc-hero .alh-mc-container {
	padding: 0;
}

.alh-mc-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 22px;
}

.alh-mc-crumbs a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color 0.2s ease;
}

.alh-mc-crumbs a:hover {
	color: #fff;
}

.alh-mc-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
	gap: 40px;
	align-items: end;
}

.alh-mc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 14px 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: #ffd9dc;
	backdrop-filter: blur(6px);
}

.alh-mc-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mc-live);
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
	animation: alh-mc-pulse 1.8s ease-out infinite;
}

@keyframes alh-mc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
	70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
	100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.alh-mc-title {
	margin: 16px 0 10px;
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: #fff;
}

.alh-mc-subtitle {
	margin: 0 0 26px;
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.72);
}

.alh-mc-subtitle strong {
	color: #fff;
	font-weight: 700;
}

.alh-mc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 560px;
}

.alh-mc-stat {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
}

.alh-mc-stat b {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.alh-mc-stat span {
	display: block;
	margin-top: 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

.alh-mc-stat--live {
	background: rgba(230, 57, 70, 0.18);
	border-color: rgba(230, 57, 70, 0.4);
}

.alh-mc-stat--live b {
	color: #ffb3b8;
}

/* Hero panel (date navigation + search) */
.alh-mc-hero-panel {
	display: grid;
	gap: 14px;
	padding: 20px;
	border-radius: 22px;
	background: rgba(9, 16, 36, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
}

.alh-mc-datenav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
}

.alh-mc-datenav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: #fff;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.2s ease, transform 0.2s ease;
}

.alh-mc-datenav-arrow:hover {
	transform: translateY(-1px);
}

.alh-mc-datenav-label {
	display: grid;
	justify-items: center;
	gap: 2px;
	flex: 1 1 auto;
}

.alh-mc-datenav-label strong {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
}

.alh-mc-datenav-label span {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.62);
}

.alh-mc-jump {
	display: grid;
	gap: 6px;
}

.alh-mc-jump-label {
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
}

.alh-mc-jump-row {
	display: flex;
	gap: 8px;
}

.alh-mc-datewrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.alh-mc-date-input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}

.alh-mc-date-input:hover {
	background: rgba(255, 255, 255, 0.14);
}

.alh-mc-date-text {
	direction: ltr;
	letter-spacing: 0.04em;
}

.alh-mc-date-icon {
	color: rgba(255, 255, 255, 0.6);
}

.alh-mc-cal {
	position: absolute;
	z-index: 60;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	width: 260px;
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--mc-line);
	box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
	color: var(--mc-text);
}

.alh-mc-cal[hidden] {
	display: none;
}

.alh-mc-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}

.alh-mc-cal-head strong {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--mc-text);
}

.alh-mc-cal-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid var(--mc-line);
	background: var(--mc-surface-2);
	color: var(--mc-text);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.alh-mc-cal-nav:hover {
	border-color: var(--mc-accent);
	color: var(--mc-accent);
}

.alh-mc-cal-weekdays,
.alh-mc-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.alh-mc-cal-weekdays {
	margin-bottom: 4px;
}

.alh-mc-cal-weekdays span {
	padding: 4px 0;
	font-size: 9.5px;
	font-weight: 700;
	color: var(--mc-muted);
	text-align: center;
}

.alh-mc-cal-day {
	aspect-ratio: 1;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--mc-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}

.alh-mc-cal-day:hover {
	background: var(--mc-surface-2);
}

.alh-mc-cal-day.is-selected {
	background: var(--mc-accent);
	color: #fff;
}

.alh-mc-cal .is-empty {
	visibility: hidden;
}

.alh-mc-tz-select {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
	color-scheme: dark;
}

.alh-mc-tz-select option {
	color: #0f172a;
	background: #fff;
}

.alh-mc-tz-select:focus {
	outline: 2px solid rgba(230, 57, 70, 0.6);
	outline-offset: 1px;
}

.alh-mc-tz-hint {
	flex: 0 0 auto;
	align-self: center;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
}

.alh-mc-search {
	position: relative;
	display: flex;
	align-items: center;
}

.alh-mc-search-icon {
	position: absolute;
	inset-inline-start: 14px;
	color: rgba(255, 255, 255, 0.5);
	pointer-events: none;
}

.alh-mc-search-input {
	width: 100%;
	height: 46px;
	padding: 0 44px 0 16px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
}

.alh-mc-search-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.alh-mc-search-input:focus {
	outline: 2px solid rgba(230, 57, 70, 0.55);
	outline-offset: 1px;
	background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.alh-mc-body {
	padding-block: 4px 64px;
	background: var(--mc-bg);
}

.alh-mc-toolbar {
	position: sticky;
	inset-block-start: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 4px;
	margin-bottom: 18px;
	backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
}

.admin-bar .alh-mc-toolbar {
	inset-block-start: 32px;
}

.alh-mc-chips {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.alh-mc-chips::-webkit-scrollbar {
	display: none;
}

.alh-mc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--mc-line);
	background: var(--mc-surface);
	color: var(--mc-text);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.alh-mc-chip:hover {
	border-color: var(--mc-accent);
	color: var(--mc-accent);
	transform: translateY(-1px);
}

.alh-mc-chip.is-active {
	background: var(--mc-ink);
	border-color: var(--mc-ink);
	color: #fff;
	box-shadow: 0 6px 16px rgba(11, 19, 43, 0.22);
}

.alh-mc-chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mc-line-soft);
	color: var(--mc-muted);
	font-size: 11px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.alh-mc-chip.is-active .alh-mc-chip-count {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.alh-mc-switch {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--mc-line);
	background: var(--mc-surface);
	cursor: pointer;
	user-select: none;
}

.alh-mc-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.alh-mc-switch-track {
	position: relative;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: var(--mc-line);
	transition: background 0.2s ease;
}

.alh-mc-switch-track::after {
	content: "";
	position: absolute;
	inset-block-start: 3px;
	inset-inline-end: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s var(--mc-ease);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.alh-mc-switch input:checked + .alh-mc-switch-track {
	background: var(--mc-live);
}

.alh-mc-switch input:checked + .alh-mc-switch-track::after {
	transform: translateX(-16px);
}

.alh-mc-switch-text {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mc-text);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.alh-mc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 24px;
	align-items: start;
}

.alh-mc-main {
	display: grid;
	gap: 22px;
	min-width: 0;
}

.alh-mc-side {
	display: grid;
	gap: 18px;
	position: sticky;
	inset-block-start: 84px;
}

.admin-bar .alh-mc-side {
	inset-block-start: 116px;
}

/* --------------------------------------------------------------------------
   League block
   -------------------------------------------------------------------------- */

.alh-mc-league {
	border-radius: 22px;
	background: var(--mc-surface);
	border: 1px solid var(--mc-line);
	box-shadow: var(--mc-shadow);
	overflow: hidden;
}

.alh-mc-league-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: linear-gradient(180deg, var(--mc-surface-2), var(--mc-surface));
	border-bottom: 1px solid var(--mc-line-soft);
}

.alh-mc-league-mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 12px;
	background: var(--mc-bg);
	border: 1px solid var(--mc-line-soft);
	overflow: hidden;
}

.alh-mc-league-mark img {
	position: absolute;
	inset: 0;
	margin: auto;
	z-index: 1;
	width: 26px;
	height: 26px;
	object-fit: contain;
	background: var(--mc-bg);
}

.alh-mc-initials {
	font-size: 11px;
	font-weight: 800;
	color: var(--mc-muted);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.alh-mc-logo .alh-mc-initials {
	font-size: 12px;
}

.alh-mc-league-copy {
	display: grid;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.alh-mc-league-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 800;
	color: var(--mc-text);
	line-height: 1.4;
}

.alh-mc-league-sub {
	font-size: 11.5px;
	color: var(--mc-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alh-mc-league-count {
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--mc-bg);
	border: 1px solid var(--mc-line-soft);
	color: var(--mc-muted);
	font-size: 11.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.alh-mc-list {
	display: grid;
}

/* --------------------------------------------------------------------------
   Match row
   -------------------------------------------------------------------------- */

.alh-mc-match {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) 164px;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid var(--mc-line-soft);
	transition: background 0.2s ease, box-shadow 0.2s ease;
	scroll-margin-block-start: 120px;
}

.alh-mc-match:first-child {
	border-top: 0;
}

.alh-mc-match:hover {
	background: var(--mc-surface-2);
}

.alh-mc-match.is-live {
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent 60%);
	box-shadow: inset 3px 0 0 var(--mc-live);
}

.alh-mc-match-state {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.alh-mc-time {
	font-size: 17px;
	font-weight: 800;
	color: var(--mc-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.alh-mc-time--small {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--mc-muted);
}

.alh-mc-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
	background: var(--mc-bg);
	color: var(--mc-muted);
	border: 1px solid var(--mc-line-soft);
}

.alh-mc-pill.is-live {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.25);
	color: #d92d20;
}

.alh-mc-pill.is-finished {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.22);
	color: #047857;
}

.alh-mc-pill.is-upcoming {
	background: rgba(59, 130, 246, 0.08);
	border-color: rgba(59, 130, 246, 0.2);
	color: #1d4ed8;
}

.alh-mc-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.alh-mc-team {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.alh-mc-team--home {
	justify-content: flex-start;
}

.alh-mc-team--away {
	justify-content: flex-start;
	flex-direction: row-reverse;
}

.alh-mc-logo {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 12px;
	background: var(--mc-bg);
	border: 1px solid var(--mc-line-soft);
	overflow: hidden;
}

.alh-mc-logo img {
	position: absolute;
	inset: 0;
	margin: auto;
	z-index: 1;
	width: 30px;
	height: 30px;
	object-fit: contain;
	background: var(--mc-bg);
}

.alh-mc-logo.is-empty {
	background: var(--mc-bg);
}

.alh-mc-team-name {
	max-width: 100%;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--mc-text);
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.alh-mc-team--away .alh-mc-team-name {
	text-align: left;
}

.alh-mc-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 92px;
	padding: 8px 16px;
	border-radius: 14px;
	background: var(--mc-ink);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 16px rgba(11, 19, 43, 0.18);
}

.alh-mc-score b {
	font-weight: 800;
}

.alh-mc-score-sep {
	opacity: 0.45;
	font-weight: 600;
}

.alh-mc-score.is-vs {
	min-width: 56px;
	min-height: 34px;
	padding: 6px 12px;
	background: var(--mc-surface-2);
	color: var(--mc-muted);
	box-shadow: none;
	border: 1px dashed var(--mc-line);
}

.alh-mc-vs {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.alh-mc-match.is-live .alh-mc-score {
	background: var(--mc-live);
	box-shadow: 0 6px 18px rgba(239, 68, 68, 0.32);
}

.alh-mc-match-actions {
	display: grid;
	gap: 8px;
	justify-items: stretch;
}

.alh-mc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 11px;
	border: 1px solid var(--mc-line);
	background: var(--mc-surface);
	color: var(--mc-text);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.alh-mc-btn:hover {
	transform: translateY(-1px);
}

.alh-mc-btn--primary {
	background: var(--mc-accent);
	border-color: var(--mc-accent);
	color: #fff;
	box-shadow: 0 8px 18px rgba(230, 57, 70, 0.24);
}

.alh-mc-btn--primary:hover {
	background: var(--mc-accent-2);
	border-color: var(--mc-accent-2);
	color: #fff;
}

.alh-mc-btn--ghost {
	background: transparent;
	border-color: var(--mc-line);
	color: #fff;
}

.alh-mc-btn--ghost:hover {
	border-color: var(--mc-accent);
	color: var(--mc-accent);
}

.alh-mc-articles {
	display: grid;
	gap: 4px;
	padding-top: 2px;
}

.alh-mc-article-link {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--mc-muted);
	text-decoration: none;
	line-height: 1.5;
	transition: color 0.2s ease;
}

.alh-mc-article-icon {
	flex: 0 0 auto;
	color: var(--mc-accent);
}

.alh-mc-article-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alh-mc-article-link:hover {
	color: var(--mc-accent);
}

.alh-mc-article-link:hover .alh-mc-article-title {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.alh-mc-card {
	padding: 18px;
	border-radius: 20px;
	background: var(--mc-surface);
	border: 1px solid var(--mc-line);
	box-shadow: var(--mc-shadow);
}

.alh-mc-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.alh-mc-card-head h2 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--mc-text);
}

.alh-mc-card-count {
	min-width: 26px;
	height: 24px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(239, 68, 68, 0.1);
	color: #d92d20;
	font-size: 11.5px;
	font-weight: 800;
}

.alh-mc-card-count.is-zero {
	background: var(--mc-line-soft);
	color: var(--mc-muted);
}

.alh-mc-side-empty {
	margin: 0;
	font-size: 12.5px;
	color: var(--mc-muted);
	line-height: 1.7;
}

.alh-mc-live-list,
.alh-mc-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.alh-mc-live-item {
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--mc-line-soft);
	background: var(--mc-surface-2);
	text-align: start;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.alh-mc-live-item:hover {
	border-color: var(--mc-live);
	background: rgba(239, 68, 68, 0.04);
}

.alh-mc-live-league {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--mc-muted);
}

.alh-mc-live-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--mc-text);
}

.alh-mc-live-home {
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alh-mc-live-away {
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alh-mc-live-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 2px 6px;
	border-radius: 8px;
	background: var(--mc-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.alh-mc-posts li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.alh-mc-posts li a:hover {
	background: var(--mc-surface-2);
}

.alh-mc-post-thumb {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--mc-bg);
}

.alh-mc-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alh-mc-post-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.alh-mc-post-copy strong {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mc-text);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.alh-mc-post-copy time {
	font-size: 10.5px;
	color: var(--mc-muted);
}

.alh-mc-card--cta {
	background:
		radial-gradient(400px 200px at 100% 0%, rgba(230, 57, 70, 0.22), transparent 70%),
		linear-gradient(150deg, var(--mc-ink), var(--mc-ink-3));
	border-color: transparent;
	color: #fff;
}

.alh-mc-card--cta h2 {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.alh-mc-card--cta p {
	margin: 0 0 14px;
	font-size: 12.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.68);
}

.alh-mc-cta-meta {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 11px;
	font-weight: 700;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.alh-mc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.alh-mc-modal[hidden] {
	display: none;
}

.alh-mc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
	backdrop-filter: blur(6px);
	animation: alh-mc-fade 0.2s ease;
}

.alh-mc-modal-dialog {
	position: relative;
	width: min(980px, 100%);
	max-height: min(86vh, 900px);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	background: var(--mc-surface);
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
	overflow: hidden;
	animation: alh-mc-pop 0.25s var(--mc-ease);
}

@keyframes alh-mc-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes alh-mc-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.alh-mc-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: linear-gradient(135deg, var(--mc-ink), var(--mc-ink-2));
	color: #fff;
}

.alh-mc-modal-title-wrap {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.alh-mc-modal-league {
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
}

.alh-mc-modal-title-wrap h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	line-height: 1.45;
}

.alh-mc-modal-score {
	font-size: 13px;
	font-weight: 800;
	color: #ffb3b8;
	font-variant-numeric: tabular-nums;
}

.alh-mc-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.alh-mc-modal-close:hover {
	background: var(--mc-accent);
	border-color: var(--mc-accent);
}

.alh-mc-modal-body {
	overflow-y: auto;
	padding: 20px;
	background: var(--mc-bg);
}

.alh-mc-skeleton {
	display: grid;
	gap: 12px;
}

.alh-mc-skeleton span {
	display: block;
	height: 64px;
	border-radius: 14px;
	background: linear-gradient(90deg, var(--mc-line-soft) 25%, var(--mc-surface) 50%, var(--mc-line-soft) 75%);
	background-size: 200% 100%;
	animation: alh-mc-shimmer 1.4s infinite;
}

@keyframes alh-mc-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* Hub HTML inside the modal */
.alh-mc-modal-body .kora-hub-wrap,
.alh-mc-modal-body > div {
	font-family: var(--mc-font);
}

.alh-mc-modal-body img {
	max-width: 100%;
	height: auto;
}

/* Theme the embedded hub to match the modal (green → brand red, soft surfaces). */
.alh-mc-modal .kora-hub-wrap {
	border-radius: 16px;
	border: 1px solid var(--mc-line);
	box-shadow: none;
}

.alh-mc-modal .kh-nav-bar {
	background: var(--mc-surface-2);
	border-radius: 14px;
	padding: 6px;
}

.alh-mc-modal .kh-btn {
	border-radius: 10px;
	font-weight: 700;
	color: var(--mc-muted);
}

.alh-mc-modal .kh-btn.active {
	background: var(--mc-accent);
	color: #fff;
	box-shadow: 0 6px 14px rgba(230, 57, 70, 0.25);
}

.alh-mc-modal .kh-info-box {
	border-radius: 14px;
	border-color: var(--mc-line);
	background: var(--mc-surface-2);
}

.alh-mc-modal .kh-badge-title {
	color: var(--mc-muted);
	font-weight: 700;
}

.alh-mc-modal .kh-badge-val {
	color: var(--mc-text);
	font-weight: 800;
}

.alh-mc-modal .kh-stat-item {
	border-color: var(--mc-line-soft);
}

.alh-mc-modal .kh-bar-fill.team-1 {
	background: var(--mc-accent);
}

.alh-mc-modal .kh-bar-fill.team-2 {
	background: var(--mc-ink);
}

.alh-mc-modal .kh-status.win {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}

.alh-mc-modal .kh-status.loss {
	background: rgba(230, 57, 70, 0.12);
	color: #b91c1c;
}

.alh-mc-modal .kh-status.draw {
	background: var(--mc-line-soft);
	color: var(--mc-muted);
}

.alh-mc-modal .kh-event-item,
.alh-mc-modal .kh-frow,
.alh-mc-modal .h2h-item {
	border-color: var(--mc-line-soft);
}

/* --------------------------------------------------------------------------
   Empty / notice states
   -------------------------------------------------------------------------- */

.alh-mc-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 64px 20px;
	border-radius: 22px;
	background: var(--mc-surface);
	border: 1px dashed var(--mc-line);
	text-align: center;
}

.alh-mc-empty span {
	font-size: 40px;
}

.alh-mc-empty h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--mc-text);
}

.alh-mc-empty p {
	margin: 0;
	font-size: 13px;
	color: var(--mc-muted);
}

.alh-mc--notice {
	min-height: 60vh;
	display: grid;
	align-items: center;
	padding-block: 40px;
	background: var(--mc-bg);
}

.alh-mc-notice-card {
	max-width: 620px;
	margin-inline: auto;
	padding: 40px 32px;
	border-radius: 24px;
	background: var(--mc-surface);
	border: 1px solid var(--mc-line);
	box-shadow: var(--mc-shadow);
	text-align: center;
}

.alh-mc-notice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 20px;
	background: rgba(230, 57, 70, 0.08);
	color: var(--mc-accent);
}

.alh-mc-notice-card h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: var(--mc-text);
}

.alh-mc-notice-card p {
	margin: 0 0 22px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--mc-muted);
}

.alh-mc-notice-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.alh-mc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.alh-mc-side {
		position: static;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

@media (max-width: 980px) {
	.alh-mc-hero {
		margin: 16px auto 22px;
		padding: 32px 26px;
		border-radius: 22px;
	}

	.alh-mc-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		align-items: start;
	}

	.alh-mc-stats {
		max-width: none;
	}

	.alh-mc-match {
		grid-template-columns: 92px minmax(0, 1fr);
		grid-template-areas:
			"state teams"
			"actions actions";
		row-gap: 12px;
	}

	.alh-mc-match-state {
		grid-area: state;
	}

	.alh-mc-teams {
		grid-area: teams;
	}

	.alh-mc-match-actions {
		grid-area: actions;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
		align-items: center;
	}

	.alh-mc-articles {
		border-top: 0;
		padding-top: 0;
	}
}

@media (max-width: 720px) {
	.alh-mc-hero {
		padding: 24px 18px;
		border-radius: 18px;
		margin: 12px 12px 18px;
	}

	.alh-mc-title {
		font-size: 27px;
	}

	.alh-mc-subtitle {
		font-size: 13.5px;
		margin-bottom: 20px;
	}

	.alh-mc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alh-mc-stat b {
		font-size: 20px;
	}

	.alh-mc-toolbar {
		flex-wrap: wrap;
		gap: 10px;
	}

	.alh-mc-chips {
		order: 2;
		width: 100%;
	}

	.alh-mc-league-head {
		padding: 13px 14px;
	}

	.alh-mc-match {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"state"
			"teams"
			"actions";
		padding: 14px;
		gap: 12px;
	}

	.alh-mc-match-state {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}

	.alh-mc-match-state .alh-mc-time {
		font-size: 15px;
	}

	.alh-mc-teams {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 8px;
	}

	.alh-mc-logo {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	.alh-mc-logo img {
		width: 26px;
		height: 26px;
	}

	.alh-mc-team-name {
		font-size: 12.5px;
	}

	.alh-mc-score {
		padding: 6px 12px;
		font-size: 17px;
	}

	.alh-mc-match-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.alh-mc-modal {
		padding: 0;
		place-items: end stretch;
	}

	.alh-mc-modal-dialog {
		width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 0 0;
	}
}

@media (max-width: 480px) {
	.alh-mc-container {
		padding-inline: 14px;
	}

	.alh-mc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.alh-mc-stat {
		padding: 11px 12px;
		border-radius: 13px;
	}

	.alh-mc-team-name {
		font-size: 11.5px;
	}

	.alh-mc-league-sub {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alh-mc *,
	.alh-mc *::before,
	.alh-mc *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
