/* ---------- Верхняя панель: выбор сервера + периоды ---------- */
.xz-ss {
	border-radius: 10px;
}
.xz-ss-bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(#342650, #2a1d40);
	border-radius: 10px 10px 0 0;
}
.xz-ss-bar::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: linear-gradient(90deg, #7b2cbf 0%, #e91e63 55%, #ff5722 130%);
	box-shadow: 0 2px 14px rgba(233, 30, 99, 0.55);
}
.xz-ss-server {
	position: relative;
	flex: 0 0 auto;
}
.xz-ss-server-btn {
	white-space: nowrap;
	height: 38px !important;
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	vertical-align: top;
}
.xz-ss-periods {
	align-items: center;
}
.xz-ss-periods {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-bottom: none !important;
}
.xz-ss-periods > li {
	display: flex;
	margin: 0 !important;
	padding: 0 !important;
}
.xz-ss-periods > li > a {
	height: 38px !important;
	margin: 0 !important;
	padding: 0 18px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background-color: #32244d;
	border: 1px solid #4d2f6e;
	border-radius: 20px;
	color: #cfc6e4;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.xz-ss-periods > li > a:hover,
.xz-ss-periods > li > a:focus {
	background-color: #3b2a5c;
	border-color: #9b4dd6;
	color: #ffffff;
}
.xz-ss-bar .xz-ss-periods > li > a,
.xz-ss-bar .xz-ss-periods > li > a:hover,
.xz-ss-bar .xz-ss-periods > li > a:focus {
	border-radius: 20px;
}
.xz-ss-bar .xz-ss-periods > li.active > a,
.xz-ss-bar .xz-ss-periods > li.active > a:focus,
.xz-ss-bar .xz-ss-periods > li.active > a:hover {
	border-radius: 20px;
}
.xz-ss-server-btn .glyphicon {
	margin-right: 6px;
	font-size: 12px;
}
.xz-ss-server-btn .caret {
	margin-left: 6px;
}
.xz-ss-drawer {
	display: none;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: linear-gradient(#342650, #2a1d40) padding-box, linear-gradient(135deg, #7b2cbf, #e91e63) border-box;
	border: 2px solid transparent;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(123, 44, 191, 0.25);
}
.xz-ss-drawer.open {
	display: block;
	z-index: 1200;
	max-width: 320px;
	max-height: 320px;
	overflow-y: auto;
	animation: xzSsDrawerIn 0.2s ease;
}
@keyframes xzSsDrawerIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.xz-ss-drawer li {
	margin-bottom: 2px;
}
.xz-ss-drawer li:last-child {
	margin-bottom: 0;
}
.xz-ss-drawer li a {
	display: block;
	padding: 9px 12px;
	border-radius: 7px;
	color: #cfc6e4;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.15s ease, color 0.15s ease;
}
.xz-ss-drawer li a:hover {
	background: rgba(123, 44, 191, 0.35);
	color: #ffffff;
}
.xz-ss-drawer li.active a {
	background: linear-gradient(90deg, #7b2cbf, #e91e63);
	color: #ffffff;
}
.xz-ss-periods {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-start;
	gap: 6px;
	margin-bottom: 0;
	border-bottom: none;
}
.xz-ss-periods > li {
	float: none;
}
.xz-ss-periods > li > a {
	margin-right: 0;
	background-color: rgba(45, 32, 68, 0.85);
	border-color: rgba(255, 255, 255, 0.25);
	white-space: nowrap;
}
@media (max-width: 767.99px) {
	.xz-ss-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.xz-ss-server-btn {
		width: 100%;
	}
	.xz-ss-periods {
		justify-content: stretch;
	}
	.xz-ss-periods > li {
		flex: 1 1 0;
	}
	.xz-ss-periods > li > a {
		text-align: center;
		padding-left: 8px;
		padding-right: 8px;
	}
}

.ss-period-tabs {
	margin-bottom: 15px;
	border-bottom: none;
}
.ss-period-tabs > li > a {
	background: #2D2044;
	color: #b7bacd;
	border: 1px solid #4d2f6e;
	border-radius: 4px;
	margin-right: 5px;
	font-size: 13px;
	padding: 8px 16px;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.ss-period-tabs > li > a:hover {
	background: #3b2a5c;
	border-color: #9b4dd6;
	color: #fff;
}
.ss-period-tabs > li.active > a,
.ss-period-tabs > li.active > a:focus,
.ss-period-tabs > li.active > a:hover {
	background: linear-gradient(90deg, #7b2cbf, #e91e63);
	border-color: #9b4dd6;
	color: #fff;
	font-weight: 600;
}

.ss-server-card {
	position: relative;
	height: 180px;
	border-radius: 8px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	margin-bottom: 15px;
}
.ss-server-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
	border-radius: inherit;
}
.ss-server-overlay {
	position: relative;
	z-index: 1;
	padding: 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ss-online-badge {
	display: inline-block;
	background: rgba(0,0,0,0.5);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 14px;
	color: #fff;
	margin-bottom: 10px;
	width: fit-content;
}
.ss-online-badge .glyphicon {
	margin-right: 4px;
}
.ss-server-map {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,0.5);
	word-break: break-word;
}

.ss-divider {
	border: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, #4d2f6e, transparent);
	margin: 10px 0 25px 0;
}

.ss-popular {
	position: relative;
	min-height: 150px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #4d2f6e;
	margin-bottom: 18px;
	display: flex;
	align-items: flex-end;
}
.ss-popular-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.ss-popular-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 7, 22, 0.15) 0%, rgba(12, 7, 22, 0.55) 55%, rgba(12, 7, 22, 0.9) 100%);
}
.ss-popular-body {
	position: relative;
	z-index: 1;
	padding: 40px 18px 14px;
	width: 100%;
}
.ss-popular-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ffd166;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 209, 102, 0.4);
	border-radius: 20px;
	padding: 4px 12px;
	margin-bottom: 8px;
}
.ss-popular-name {
	font-family: 'Exo 2', sans-serif;
	font-weight: 800;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: 0.5px;
	color: #ffffff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
	word-break: break-word;
}
.ss-popular-count {
	margin-top: 4px;
	font-size: 13px;
	color: #cfc6e4;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.ss-popular-count b {
	color: #ff6bcb;
	font-size: 15px;
}

.ss-table {
	margin-bottom: 0;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
}
/* Скругляем угловые ячейки: overflow у table браузеры игнорируют */
.ss-table thead tr td:first-child {
	border-radius: 8px 0 0 0;
}
.ss-table thead tr td:last-child {
	border-radius: 0 8px 0 0;
}
.ss-table tbody tr:last-child td:first-child {
	border-radius: 0 0 0 8px;
}
.ss-table tbody tr:last-child td:last-child {
	border-radius: 0 0 8px 0;
}
.ss-table thead td {
	background: linear-gradient(90deg, #7b2cbf, #e91e63);
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-align: center;
	border-bottom: none;
	padding: 10px 8px;
	white-space: nowrap;
}
.ss-table tbody td {
	background: #32244d;
	color: #b7bacd;
	border-top: 1px solid #4d2f6e;
	padding: 8px;
	vertical-align: middle;
}
.ss-table tbody tr:nth-child(even) td {
	background: #2d2044;
}
.ss-table tbody tr:hover td {
	background: #3b2a5c;
	color: #ffffff;
}
.ss-table tbody tr {
	transition: background 0.15s ease;
}
.ss-td-num {
	width: 50px;
	text-align: center;
}
.ss-td-thumb {
	width: 71px;
	text-align: center;
	vertical-align: middle;
}
.ss-td-name {
	vertical-align: middle;
}
.ss-map-thumb {
	position: relative;
	flex-shrink: 0;
	width: 67px;
	height: 40px;
	border-radius: 6px;
	background-size: 100% 100%;
	background-position: center;
	background-clip: content-box;
	padding: 2px;
}
.ss-map-thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, #7b2cbf 0%, #e91e63 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}
.ss-table tbody td.ss-td-plays {
	width: 120px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	color: #ff6bcb;
}

/* ---------- Chart ---------- */
.ss-chart-wrapper {
	background: #2D2044;
	border: 1px solid #4d2f6e;
	border-radius: 8px;
	padding: 15px 20px;
	margin-bottom: 15px;
}
.ss-chart-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Exo 2', sans-serif;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
	margin-bottom: 12px;
}
.ss-chart-header .glyphicon {
	color: #e91e63;
	font-size: 14px;
}
.ss-chart-period {
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: normal;
	color: #ffffff;
	background: linear-gradient(90deg, #7b2cbf, #e91e63);
	border: 1px solid #9b4dd6;
	border-radius: 20px;
	padding: 3px 12px;
	text-shadow: none;
	white-space: nowrap;
}
.ss-chart-container {
	position: relative;
	height: 280px;
	width: 100%;
}

