/**
 * Imperiox home — slider, news panel, soc buttons, floating layout
 */

.imperiox-content {
	position: relative;
	z-index: 10;
}

.imperiox-wrapper {
	width: 1200px;
	max-width: none;
	margin: 0 auto;
	padding: 0 25px;
	position: relative;
}

/* King 1.2.6 flex helpers used on home */
.flex-s {
	display: flex;
	justify-content: space-between;
}

/* Remove white container on home */
body.has-imperiox-nav.imperiox-home-page #container.imperiox-container,
body.has-imperiox-nav.imperiox-home-page .imperiox-content {
	background: transparent;
}

body.has-imperiox-nav.imperiox-home-page #container.imperiox-container {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

body.has-imperiox-nav.imperiox-home-page #container.imperiox-container #content {
	padding: 0;
	min-height: 0;
	overflow: visible;
}

/* Section divider */
.imperiox-border-top {
	display: block;
	background: url(../img/line.png) center no-repeat;
	width: 100%;
	overflow-x: hidden;
	height: 86px;
}

.imperiox-border-top--hero {
	margin-top: -85px;
	margin-bottom: -10px;
}

.imperiox-border-top--buttons {
	margin-top: -35px;
	margin-bottom: -15px;
}

/* Slider + news row — king 1.2.6: wrapper 1150px inner, slider 561px + news 48.783% */
.imperiox-top-content {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	width: 100%;
	margin-top: -8px;
	margin-bottom: 15px;
}

/* Slider */
.imperiox-slider {
	overflow: hidden;
	position: relative;
	width: 561px;
	height: 300px;
	flex: 0 0 561px;
}

.imperiox-slider .slides {
	position: relative;
	transition: transform 1s;
}

.imperiox-slider .slides .slide {
	float: left;
	display: block;
	position: relative;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	width: 561px;
	height: 300px;
	text-decoration: none;
}

.imperiox-slider .slides .slide:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.imperiox-slider .arrows {
	position: absolute;
	top: 145px;
	z-index: 10;
	cursor: pointer;
	opacity: 0.5;
	width: 20px;
	height: 20px;
	background: 50% / 100% 100% no-repeat;
}

.imperiox-slider .arrows:hover {
	opacity: 1;
}

.imperiox-slider .next {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
	right: 1px;
}

.imperiox-slider .prev {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
	left: 1px;
}

.imperiox-slider .navigation {
	position: absolute;
	bottom: 20px;
	left: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.imperiox-slider .navigation .dot {
	width: 30px;
	height: 3px;
	cursor: pointer;
	background-color: #fff;
	margin: 0 4px;
	opacity: 0.5;
}

.imperiox-slider .navigation .dot.active {
	opacity: 1;
}

/* News panel — 48.783% width matches slider (~561px) inside 1200px wrapper */
.imperiox-news-top {
	flex: 0 0 48.783%;
	width: 48.783%;
	max-width: 48.783%;
	margin-left: 6px;
	height: 300px;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	padding: 18px 45px;
	box-sizing: border-box;
	overflow: hidden;
}

.imperiox-news-top-title {
	position: relative;
	display: flex;
	flex-shrink: 0;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imperiox-news-top-title span {
	display: block;
	color: #fbac3f;
	font-size: 18px;
	font-family: 'Philosopher', serif;
	text-transform: uppercase;
	position: relative;
	padding-left: 25px;
}

.imperiox-news-top-title span::before {
	position: absolute;
	background: url(../img/title-icon.png) no-repeat;
	width: 26px;
	height: 26px;
	margin-top: -18px;
	content: "";
	top: 80%;
	margin-left: -25px;
	filter: drop-shadow(0 0 10px #ff2a00);
}

.imperiox-news-top .tab-more {
	position: absolute;
	right: 0;
	color: #ffaf43;
	background: rgba(20, 14, 13, 0.75);
	width: 20px;
	height: 20px;
	top: 50%;
	margin-top: -9px;
	margin-right: 0;
	line-height: 20px;
	text-align: center;
	display: block;
	text-decoration: none;
	font-size: 18px;
	border-radius: 2px;
}

.imperiox-news-top-text {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(251, 172, 63, 0.5) rgba(255, 255, 255, 0.05);
}

.imperiox-news-top-text::-webkit-scrollbar {
	width: 5px;
}

.imperiox-news-top-text::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
}

.imperiox-news-top-text::-webkit-scrollbar-thumb {
	background: rgba(251, 172, 63, 0.45);
	border-radius: 4px;
}

.imperiox-news-top-text::-webkit-scrollbar-thumb:hover {
	background: rgba(251, 172, 63, 0.7);
}

.imperiox-news-link {
	position: relative;
	min-height: 58px;
	padding: 6px 0 6px 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-sizing: border-box;
}

.imperiox-news-link:last-child {
	border-bottom: none;
}

.imperiox-news-link-news {
	background: url(../img/news-icon.png) left top 6px no-repeat;
}

.imperiox-news-link:after {
	content: "";
	background: url(../img/news-hover.png) center no-repeat;
	position: absolute;
	width: 55px;
	height: 65px;
	right: -46px;
	top: 50%;
	margin-top: -33px;
	opacity: 0;
}

.imperiox-news-link:hover:after {
	opacity: 1;
}

.imperiox-news-content-info a {
	color: #aba4a4;
	margin-bottom: 3px;
	width: 100%;
	max-width: 300px;
	text-decoration: none;
	padding: 2px 0;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	white-space: nowrap;
}

.imperiox-news-content-info a:hover {
	color: #fff;
}

.imperiox-news-content-info a span {
	color: #fff !important;
	font-size: 13px !important;
}

.imperiox-news-content-info span {
	color: #696868;
	font-size: 13px;
	display: block;
}

.imperiox-news-link-more {
	color: #fbac3f !important;
	display: block;
	position: relative;
	padding-right: 20px;
	text-decoration: none;
	flex-shrink: 0;
}

.imperiox-news-link-more span {
	opacity: 0;
	transition: 0.3s;
	font-size: 13px;
}

.imperiox-news-link-more:after {
	content: "";
	position: absolute;
	background: url(../img/h-right.png) no-repeat;
	width: 8px;
	height: 12px;
	right: 0;
	top: 50%;
	margin-top: -6px;
	transition: 0.3s;
}

.imperiox-news-link:hover .imperiox-news-link-more span {
	opacity: 1;
}

.imperiox-news-link:hover .imperiox-news-link-more:after {
	background: url(../img/menu-f-icon.png) no-repeat;
	width: 24px;
	height: 28px;
	margin-top: -14px;
	right: -20px;
	filter: drop-shadow(0 0 10px #ff2a00);
}

/* Soc buttons row */
.imperiox-soc-row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-bottom: 20px;
}

.imperiox-soc-row .imperiox-soc-col {
	flex: 1 1 300px;
	display: flex;
	justify-content: center;
}

.imperiox-soc-button {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 366px;
	height: 115px;
	padding-left: 110px;
	margin-bottom: 26px;
	box-shadow: 0 10px 15px 4px rgba(0, 0, 0, 0.3);
	font-size: 30px;
	font-weight: 700;
	position: relative;
	font-family: 'Philosopher', serif;
	color: #fff;
	text-decoration: none;
	transition: padding-left 0.3s;
}

.imperiox-soc-button:hover {
	padding-left: 130px;
	color: #fff;
	text-decoration: none;
}

.imperiox-soc-button span {
	display: block;
	width: 100%;
	color: #e8c4b2;
	font-size: 13px;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	margin-top: 5px;
	text-shadow: 0.1em 0.1em 0.2em #000;
	line-height: 1.3;
}

.imperiox-soc-button:before {
	content: "";
	position: absolute;
	left: 40px;
	top: 50%;
	width: 93px;
	height: 70px;
	margin-top: -33px;
	margin-left: -25px;
}

.imperiox-soc-button.soc-discord {
	background: url(../img/soc-button-blue.png) no-repeat;
}

.imperiox-soc-button.soc-facebook {
	background: url(../img/soc-button-purple.png) no-repeat;
}

.imperiox-soc-button.soc-tiktok {
	background: url(../img/soc-button-red.png) no-repeat;
}

.imperiox-soc-button.soc-discord:before {
	background: url(../img/discord-icon.png) no-repeat;
}

.imperiox-soc-button.soc-facebook:before {
	background: url(../img/facebook-icon.png) no-repeat;
}

.imperiox-soc-button.soc-tiktok:before {
	background: url(../img/social/tiktok.svg) center center no-repeat;
	background-size: 56px 56px;
}

/* Castle Siege — full width (Recompensas ↔ Discord), castle_owner_bg */
.imperiox-cs-panel {
	--cs-inset: max(0px, calc(((100% - 20px) / 3 - 366px) / 2));
	width: calc(100% - var(--cs-inset) * 2);
	max-width: 100%;
	margin: 0 auto 20px;
	box-sizing: border-box;
	display: block;
}

.imperiox-cs-panel .imperiox-cs-panel-inner.castle-owner-panel {
	background: #000 url(../img/castle_owner_bg.jpg) no-repeat center;
	background-size: cover;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	box-shadow: 0 10px 15px 4px rgba(0, 0, 0, 0.3);
	padding: 18px 24px;
	color: #fff;
	text-shadow: 1px 1px 1px #000;
	min-height: 160px;
	box-sizing: border-box;
}

.imperiox-cs-panel .imperiox-cs-title {
	position: relative;
	display: flex;
	flex-shrink: 0;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imperiox-cs-panel .imperiox-cs-title span {
	display: block;
	color: #fbac3f;
	font-size: 18px;
	font-family: 'Philosopher', serif;
	text-transform: uppercase;
	position: relative;
	padding-left: 25px;
}

.imperiox-cs-panel .imperiox-cs-title span::before {
	position: absolute;
	background: url(../img/title-icon.png) no-repeat;
	width: 26px;
	height: 26px;
	margin-top: -18px;
	content: "";
	top: 80%;
	margin-left: -25px;
	filter: drop-shadow(0 0 10px #ff2a00);
}

.imperiox-cs-panel .imperiox-cs-body {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-left: 8px;
}

.imperiox-cs-panel .imperiox-cs-mark {
	flex: 0 0 auto;
}

.imperiox-cs-panel .imperiox-cs-mark img {
	border: 2px solid rgba(255, 255, 255, 0.1);
	padding: 2px;
	display: block;
}

.imperiox-cs-panel .imperiox-cs-info {
	font-size: 14px;
	line-height: 1.75;
	font-style: italic;
	font-family: 'Open Sans', sans-serif;
}

.imperiox-cs-panel .imperiox-cs-info span {
	color: #999;
}

.imperiox-cs-panel .imperiox-cs-info a {
	color: #fff;
	text-decoration: none;
}

.imperiox-cs-panel .imperiox-cs-info a:hover {
	color: #fbac3f;
}

/* Home rankings — Imperiox blockHome (img/Ranking/) */
.imperiox-rankings-row {
	display: flex !important;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 100%;
	gap: 10px;
	margin-bottom: 20px;
}

.imperiox-rank-panel .imperiox-rank-table,
.imperiox-rank-panel .tabTable-block.active {
	display: block !important;
	visibility: visible !important;
	width: 100%;
}

.imperiox-rankings-row > .imperiox-rank-panel {
	height: 580px;
	position: relative;
}

.imperiox-rank-panel.blockHome {
	box-shadow: 0 10px 15px 4px rgba(0, 0, 0, 0.3);
	padding: 35px;
	width: 364px;
	max-width: 100%;
	min-height: 580px;
	height: 580px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: transparent;
	position: relative;
}

.imperiox-rank-panel .imperiox-rank-title {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 14px;
	align-items: flex-end;
	margin-bottom: 14px;
	margin-top: 108px;
}

.imperiox-rank-panel .imperiox-rank-title span {
	color: #fbac3f;
	display: block;
	padding-left: 25px;
	font-size: 16px;
	font-family: 'Philosopher', serif;
	text-transform: uppercase;
	position: relative;
	line-height: 1.15;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imperiox-rank-panel .imperiox-rank-title span::before {
	position: absolute;
	background-repeat: no-repeat;
	width: 26px;
	height: 26px;
	margin-top: -18px;
	content: "";
	top: 80%;
	left: -3px;
	filter: drop-shadow(0 0 10px #ff2a00);
}

.imperiox-rank-panel .tableBlock-title {
	background-repeat: repeat-x;
	height: 36px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	box-shadow: 0 5px 10px 2px rgba(0, 0, 0, 0.2);
	margin-bottom: 8px;
	width: 100%;
	box-sizing: border-box;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
}

.imperiox-rank-panel .tableBlock-title > div {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.1;
}

.imperiox-rank-panel .tableBlock-title_player {
	width: 58%;
}

.imperiox-rank-panel .tableBlock-title_level {
	width: 20%;
	text-align: center;
}

.imperiox-rank-panel .tableBlock-title_score {
	width: 22%;
	text-align: right;
}

.imperiox-rank-panel .tableBlock-content {
	display: flex;
	align-items: center;
	padding: 0 50px;
	position: relative;
	background-repeat: no-repeat;
	background-position: center;
	width: 370px;
	margin-left: -35px;
	box-sizing: border-box;
}

.imperiox-rank-panel .tableBlock-content:nth-child(odd) {
	background-color: rgba(0, 0, 0, 0.1);
}

.imperiox-rank-panel .tableBlock-content:hover {
	background-image: none;
	background-color: transparent;
	box-shadow: none;
}

.imperiox-rank-panel .tableBlock-content > div {
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	height: 34px;
	padding-bottom: 1px;
}

.imperiox-rank-panel .tableBlock-conten_number {
	width: 10%;
	color: #696868;
}

.imperiox-rank-panel .tableBlock-conten_name {
	width: 52%;
	display: flex !important;
	align-items: center;
	color: #fff;
	line-height: 1.2;
	gap: 4px;
}

.imperiox-rank-panel .tableBlock-conten_name a {
	color: #fff;
	text-decoration: none;
}

.imperiox-rank-panel .tableBlock-conten_name a:hover {
	color: #fbac3f;
}

.imperiox-rank-panel .tableBlock-conten_lvl {
	width: 17%;
	justify-content: center;
	color: #fbac3f;
}

.imperiox-rank-panel .tableBlock-conten_scr {
	width: 21%;
	justify-content: flex-end;
	color: #999;
}

.imperiox-rank-panel .all-button {
	text-align: center;
	margin-top: 16px;
	margin-bottom: 4px;
}

.imperiox-rank-panel .buttonsub {
	transition: all 0.3s ease;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: center;
	height: 40px;
	width: 147px;
	border: none;
	color: #fff !important;
	font-family: 'Philosopher', serif;
	font-size: 12px;
	position: relative;
	z-index: 1;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 2px;
	box-shadow: 0 0 22px 5px rgba(65, 25, 21, 0.5), 0 10px 15px 4px rgba(0, 0, 0, 0.3);
	display: inline-block;
	line-height: 40px;
	text-decoration: none;
}

.imperiox-rank-panel .buttonsub:hover {
	filter: brightness(120%);
	color: #fff !important;
	text-decoration: none;
}

.imperiox-rank-panel .rankings-gens-img {
	max-height: 22px;
	width: auto;
}
