#ligueModal {
	--lm-line: rgba(255, 255, 255, 0.10);
	--lm-muted: rgba(255, 255, 255, 0.56);
	--lm-rose: #ff2d86;
	--lm-rose-soft: rgba(255, 45, 134, 0.14);
	font-family: "Titillium Web", sans-serif;
}

#ligueModal .modal-dialog {
	max-width: 680px;
}

#ligueModal .lm-sheet {
	display: flex;
	flex-direction: column;
	max-height: 82vh;
	border: 1px solid var(--lm-line);
	border-radius: 22px;
	background: rgba(15, 18, 38, 0.98);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #e9e9ea;
	overflow: hidden;
}

.lm-grab {
	display: none;
	width: 42px;
	height: 5px;
	margin: 8px auto 0;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.2);
}

.lm-head {
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.lm-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.lm-title i {
	font-size: 1rem;
	color: var(--lm-rose);
}

.lm-close {
	min-height: 32px;
	padding: 0 14px;
	border: 1px solid var(--lm-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #e9e9ea;
	font-weight: 800;
	font-size: 0.78rem;
	cursor: pointer;
	transition: border-color 0.16s ease, color 0.16s ease;
}

.lm-close:hover {
	border-color: var(--lm-rose);
	color: var(--lm-rose);
}

.lm-search {
	position: relative;
	display: block;
	margin: 0;
}

.lm-search i {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	font-size: 0.85rem;
	color: var(--lm-muted);
}

.lm-search input {
	width: 100%;
	height: 42px;
	padding: 0 14px 0 38px;
	border: 1px solid var(--lm-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font: 600 0.95rem "Titillium Web", sans-serif;
	outline: none;
}

.lm-search input::placeholder {
	color: var(--lm-muted);
}

.lm-search input:focus {
	border-color: rgba(255, 45, 134, 0.72);
	box-shadow: 0 0 0 3px rgba(255, 45, 134, 0.15);
}

.lm-body {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 20px 24px;
}

.lm-label {
	margin: 14px 2px 8px;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lm-muted);
}

.lm-global {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.lm-global:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
}

.lm-global small {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--lm-muted);
}

.lm-global-ico {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(168, 85, 247, 0.18);
	color: #c084fc;
}

.lm-global-chev {
	margin-left: auto;
	font-size: 0.7rem;
	color: var(--lm-muted);
}

.lm-big5 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.lm-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 12px 6px 10px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.lm-tile:hover {
	border-color: var(--lm-line);
	background: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

.lm-tile.is-current,
.lm-league.is-current {
	border-color: rgba(255, 45, 134, 0.72);
	background: var(--lm-rose-soft);
	color: #fff;
}

.lm-tile-logo {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
}

.lm-tile-logo img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.lm-tile-name {
	font-weight: 800;
	font-size: 0.82rem;
	line-height: 1.1;
	color: #fff;
}

.lm-tile-country {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--lm-muted);
}

.lm-tile-country img {
	width: 14px;
	height: 10px;
	border-radius: 2px;
	object-fit: cover;
}

.lm-countries {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 18px;
}

.lm-country {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lm-country-head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 9px;
	width: 128px;
	font-weight: 800;
	font-size: 0.86rem;
	color: #fff;
}

.lm-country-head img {
	width: 22px;
	height: 15px;
	border-radius: 3px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.lm-country-leagues {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	min-width: 0;
}

.lm-league {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 5px 11px;
	border: 1px solid var(--lm-line);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.8);
	white-space: nowrap;
	text-decoration: none;
}

.lm-league:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
}

.lm-empty {
	padding: 30px 10px;
	text-align: center;
	font-weight: 700;
	color: var(--lm-muted);
}

#ligueModal [hidden] {
	display: none !important;
}

@media (min-width: 600px) {
	.lm-big5 {
		grid-template-columns: repeat(5, 1fr);
	}

	.lm-country-head {
		width: 170px;
	}
}

@media (max-width: 599.98px) {
	#ligueModal .modal-dialog {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		min-height: 0;
		margin: 0;
	}

	#ligueModal .modal-dialog-centered::before {
		display: none;
	}

	#ligueModal.fade .modal-dialog {
		transform: translateY(100%);
		transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.2, 1);
	}

	#ligueModal.show .modal-dialog {
		transform: none;
	}

	#ligueModal .lm-sheet {
		max-height: 92vh;
		border-bottom: 0;
		border-radius: 22px 22px 0 0;
	}

	.lm-grab {
		display: block;
	}

	.lm-country-head {
		width: 116px;
	}

	.lm-league {
		padding: 5px 9px;
	}

	.lm-head {
		padding: 10px 16px 12px;
	}

	.lm-body {
		padding: 12px 16px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#ligueModal.fade .modal-dialog {
		transition: none;
	}
}
