/* Автор: Пират / © spnaz.ru — мониторинг игровых серверов */

.sm-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 13px;
	line-height: 1.35;
}

.sm-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .85;
	margin-bottom: 2px;
}

.sm-head i {
	font-size: 12px;
	opacity: .8;
}

.sm-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	margin-left: auto;
	background: hsl(150 45% 45%);
	box-shadow: 0 0 0 0 hsla(150, 45%, 45%, .55);
	animation: sm-pulse 2.4s infinite;
}

@keyframes sm-pulse {
	0%   { box-shadow: 0 0 0 0 hsla(150, 45%, 45%, .5); }
	70%  { box-shadow: 0 0 0 7px hsla(150, 45%, 45%, 0); }
	100% { box-shadow: 0 0 0 0 hsla(150, 45%, 45%, 0); }
}

.sm-card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .035);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.sm-cover {
	position: relative;
	height: 104px;
	background-size: cover;
	background-position: center 30%;
	background-color: rgba(255, 255, 255, .05);
}

.sm-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 12, 16, .94) 0%, rgba(10, 12, 16, .35) 55%, rgba(10, 12, 16, .15) 100%);
}

.sm-tag {
	position: absolute;
	z-index: 2;
	top: 8px;
	left: 8px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	color: #fff;
	background: rgba(0, 0, 0, .45);
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(3px);
}

.sm-state {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 20px;
	backdrop-filter: blur(3px);
}

.sm-state::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.sm-state--on {
	color: #67e8a5;
	background: rgba(24, 92, 58, .55);
	border: 1px solid rgba(103, 232, 165, .45);
}

.sm-state--off {
	color: #ff9b96;
	background: rgba(120, 34, 32, .55);
	border: 1px solid rgba(255, 155, 150, .4);
}

.sm-state--wait {
	color: rgba(255, 255, 255, .75);
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
}

.sm-name {
	position: absolute;
	z-index: 2;
	left: 10px;
	right: 10px;
	bottom: 8px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .02em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sm-body {
	padding: 10px 11px 11px;
}

.sm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 11px;
	opacity: .74;
}

.sm-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.sm-meta i {
	font-size: 10px;
	opacity: .7;
}

.sm-slots {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 9px 0 5px;
	font-size: 11px;
	opacity: .78;
}

.sm-slots b {
	font-size: 13px;
	font-weight: 800;
	opacity: 1;
}

.sm-bar {
	height: 5px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .11);
	overflow: hidden;
}

.sm-bar > i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, hsl(150 45% 36%), hsl(150 52% 58%));
	transition: width .7s ease;
}

.sm-bar--low > i {
	background: linear-gradient(90deg, hsl(38 85% 42%), hsl(38 90% 58%));
}

.sm-players {
	list-style: none;
	margin: 9px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 138px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.sm-player {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	padding: 4px 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .045);
	border: 1px solid transparent;
	transition: background .2s, border-color .2s;
}

.sm-player:hover {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .08);
}

.sm-player > i {
	font-size: 9.5px;
	opacity: .55;
}

.sm-player > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sm-empty {
	font-size: 11.5px;
	opacity: .55;
	text-align: center;
	padding: 7px 0 2px;
	font-style: italic;
}

.sm-btn {
	display: block;
	margin-top: 10px;
	padding: 7px 10px;
	border-radius: 7px;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s, transform .1s;
}

.sm-btn:active {
	transform: translateY(1px);
}

.sm-btn--on {
	background: hsl(150 45% 33%);
	color: #fff !important;
}

.sm-btn--on:hover {
	background: hsl(150 45% 40%);
}

.sm-btn--off {
	background: rgba(255, 255, 255, .06);
	color: inherit !important;
	opacity: .55;
	pointer-events: none;
}
