/* ============================================================
   TrivalRO Online Players
   Live player directory with section-only background styling.
   ============================================================ */

.online-players-section {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	min-height: 640px;
	padding: 46px 0 82px;
	overflow-x: hidden;
	overflow-y: visible;
	touch-action: pan-y;
	overscroll-behavior-y: auto;
	-webkit-overflow-scrolling: touch;
	background:
		linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(248,252,255,.60) 24%, rgba(245,250,253,.72) 100%),
		url('../../assets/background-3.jpg') center top / cover no-repeat;
}

.online-players-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

#online-player-live-region {
	overflow-anchor: none;
}

.online-players-heading {
	width: fit-content;
	margin: 0 auto 8px;
	padding: 13px 34px 12px;
	border-radius: 999px;
	background: linear-gradient(180deg, #70c5ff 0%, #5bb5f1 56%, #4b9fdf 100%);
	box-shadow:
		inset 0 2px 1px rgba(255,255,255,.55),
		inset 0 -5px 0 rgba(22,102,164,.62),
		0 8px 16px rgba(48,104,151,.22);
}

.online-players-heading h2 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: #fff !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 23px !important;
	font-weight: 400 !important;
	line-height: 1.08 !important;
	letter-spacing: 2.4px;
	text-align: center;
	text-shadow: 2px 2px 3px rgba(28,75,112,.52);
}

.online-players-subtitle {
	max-width: 620px;
	margin: 0 auto 24px;
	color: #60788c;
	font-family: 'Informb', sans-serif;
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
}

.online-player-search {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr)) auto;
	gap: 12px;
	align-items: end;
	max-width: 1040px;
	margin: 0 auto 22px;
	padding: 18px 20px 20px;
	border-radius: 17px;
	background: rgba(255,255,255,.90);
	box-shadow: 0 9px 24px rgba(57,113,151,.13);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.online-search-field label {
	display: block;
	margin: 0 0 6px;
	color: #526f84;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 9px;
	font-weight: 400;
	letter-spacing: .65px;
	text-transform: uppercase;
}

.online-search-field input {
	box-sizing: border-box;
	width: 100%;
	height: 45px;
	padding: 10px 13px;
	border: 2px solid #a4cae5;
	border-radius: 12px;
	outline: 0;
	background: rgba(255,255,255,.98);
	color: #36566e;
	font-family: 'Informb', sans-serif;
	font-size: 13px;
	box-shadow: inset 0 2px 0 rgba(255,255,255,.96);
}

.online-search-field input:focus {
	border-color: #49afe8;
	box-shadow: 0 0 0 4px rgba(73,174,229,.12);
}

.online-search-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.online-game-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	height: 45px;
	padding: 0 17px;
	border: 0;
	border-bottom: 4px solid #1573b0;
	border-radius: 12px;
	background: linear-gradient(180deg, #5cc3f5 0%, #34a8ef 48%, #1e90d8 100%);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.50), 0 5px 11px rgba(40,130,200,.23);
	color: #fff;
	cursor: pointer;
}

.online-game-button span {
	display: block;
	transform: translateY(2px);
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10.5px;
	font-weight: 400;
	letter-spacing: .65px;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,60,110,.55);
}

.online-game-button--light {
	border-bottom-color: #86b7d7;
	background: linear-gradient(180deg, #fff 0%, #edf7fd 100%);
	color: #3e7396;
}

.online-game-button--light span {
	text-shadow: 0 1px 0 #fff;
}

.online-game-button:hover {
	filter: brightness(1.05);
}

.online-game-button:active {
	transform: translateY(2px);
	border-bottom-width: 2px;
}

.online-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	max-width: 1080px;
	margin: 0 auto 16px;
	padding: 12px 14px;
	border-radius: 15px;
	background: rgba(255,255,255,.90);
	box-shadow: 0 8px 20px rgba(57,113,151,.13), inset 0 2px 0 rgba(255,255,255,.92);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	color: #667f92;
	font-size: 10px;
}

.online-results-count {
	flex: 1 1 280px;
	min-width: 0;
	font-weight: 700;
}

.online-results-count .info-text {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #5b7487;
	font-family: 'Informb', sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
}

.online-sort-control {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.online-sort-label {
	color: #71899a;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	font-weight: 400;
	letter-spacing: .55px;
	white-space: nowrap;
}

.online-sort-inputs {
	display: flex;
	align-items: center;
	gap: 7px;
}

.online-sort-select-wrap {
	position: relative;
	display: block;
	margin: 0;
}

.online-sort-select {
	box-sizing: border-box;
	min-width: 142px;
	height: 36px;
	padding: 0 34px 0 12px;
	border: 2px solid #9dc8e5;
	border-radius: 10px;
	outline: 0;
	appearance: none;
	-webkit-appearance: none;
	background:
		linear-gradient(45deg, transparent 50%, #4d89ae 50%) calc(100% - 15px) 15px / 5px 5px no-repeat,
		linear-gradient(135deg, #4d89ae 50%, transparent 50%) calc(100% - 10px) 15px / 5px 5px no-repeat,
		linear-gradient(180deg, #ffffff 0%, #edf7fd 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.96), 0 4px 9px rgba(45,105,155,.11);
	color: #3a6e91;
	font-family: 'Informb', sans-serif;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.online-sort-select:hover,
.online-sort-select:focus {
	border-color: #58afe0;
	box-shadow: 0 0 0 3px rgba(73,174,229,.10), inset 0 2px 0 rgba(255,255,255,.96);
}

.online-sort-direction {
	display: inline-flex;
	height: 36px;
	min-width: 64px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	box-sizing: border-box;
	padding: 0 10px;
	border: 0;
	border-bottom: 3px solid #1573b0;
	border-radius: 10px;
	background: linear-gradient(180deg, #5cc3f5 0%, #34a8ef 48%, #1e90d8 100%);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.50), 0 4px 10px rgba(40,130,200,.20);
	color: #fff;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	font-weight: 400;
	letter-spacing: .35px;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,60,110,.55);
	cursor: pointer;
	transition: filter .12s ease, transform .08s ease;
}

.online-sort-direction:hover {
	filter: brightness(1.05);
}

.online-sort-direction:active {
	transform: translateY(2px);
	border-bottom-width: 1px;
}

.online-sort-direction-icon {
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

#online-player-live-region[aria-busy="true"] .online-sort-control {
	pointer-events: none;
	opacity: .72;
}

.online-hidden-note {
	max-width: 1080px;
	margin: 0 auto 14px;
	padding: 9px 14px;
	border-left: 4px solid #6ab7e6;
	border-radius: 9px;
	background: rgba(238,248,254,.88);
	color: #617b8e;
	font-size: 10px;
}

.online-player-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 16px;
	max-width: 1080px;
	margin: 0 auto 22px;
}

.online-player-card {
	position: relative;
	overflow: hidden;
	border: 0;
	border-bottom: 4px solid #86b8d9;
	border-radius: 18px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 10px 24px rgba(58,113,153,.14);
	transition: transform .12s ease, box-shadow .15s ease;
}

.online-player-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(58,113,153,.20);
}

.online-player-card-head {
	position: relative;
	display: flex;
	min-height: 176px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
	padding: 18px 18px 12px;
	background: transparent;
	box-shadow: none;
	text-align: center;
}

.online-player-title {
	width: 100%;
	min-width: 0;
	padding: 0 56px;
}

.online-player-title strong,
.online-player-title strong a {
	display: block;
	overflow: hidden;
	color: #315f7d;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
	text-overflow: ellipsis;
	text-shadow: none;
	white-space: nowrap;
}

.online-player-title strong a:hover {
	color: #2386c0;
	text-decoration: none;
}

.online-player-avatar {
	position: relative;
	display: flex;
	width: 92px;
	height: 92px;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.online-player-avatar img {
	height: 100%;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
	filter: drop-shadow(0 6px 8px rgba(54,107,143,.16));
}

.online-player-avatar span {
	display: none;
	color: #2d84b9;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 28px;
}

.online-player-avatar--fallback span {
	display: block;
}

.online-player-class {
	color: #6d879a;
	font-family: 'Informb', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}

.online-status-pill {
	position: absolute;
	top: 15px;
	right: 14px;
	padding: 6px 9px 5px;
	border-radius: 999px;
	background: #ecfff5;
	box-shadow: inset 0 -3px 0 rgba(56,160,104,.15);
	color: #289457;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 7.5px;
	letter-spacing: .35px;
}

.online-player-levels {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	padding: 13px 14px 8px;
}

.online-player-levels > div {
	padding: 10px 8px 9px;
	border-radius: 10px;
	background: #eef7fc;
	text-align: center;
}

.online-player-levels span {
	display: block;
	margin-bottom: 3px;
	color: #7890a1;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .55px;
}

.online-player-levels strong {
	display: block;
	color: #2c83b9;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 17px;
	font-weight: 400;
}

.online-player-meta {
	padding: 4px 15px 14px;
}

.online-meta-row {
	display: grid;
	grid-template-columns: 68px minmax(0,1fr);
	gap: 10px;
	align-items: center;
	padding: 8px 0;
}

.online-meta-row + .online-meta-row {
	margin-top: 2px;
}

.online-meta-label {
	color: #8193a0;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.online-meta-value,
.online-meta-value a {
	min-width: 0;
	color: #4b6579;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.online-meta-value a:hover {
	color: #2386c0;
}

.online-guild-value {
	display: flex;
	align-items: center;
	gap: 7px;
}

.online-guild-emblem {
	width: 22px;
	height: 22px;
	object-fit: contain;
	image-rendering: pixelated;
}

.online-none {
	color: #96a5b0;
	font-style: italic;
}

.online-pagination {
	max-width: 1080px;
	margin: 20px auto 0;
	text-align: center;
}

.online-empty-state {
	max-width: 620px;
	margin: 48px auto 0;
	padding: 38px 28px 34px;
	border-radius: 20px;
	background: rgba(255,255,255,.88);
	box-shadow: 0 12px 28px rgba(58,113,153,.14);
	text-align: center;
}

.online-empty-poring img {
	width: 74px;
	height: 74px;
	object-fit: contain;
	filter: drop-shadow(0 7px 12px rgba(45,119,165,.16));
}

.online-empty-state h3 {
	margin: 12px 0 7px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #34769f !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: .8px;
}

.online-empty-state p {
	max-width: 470px;
	margin: 0 auto;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 12px;
	line-height: 1.55;
}

@media (max-width: 980px) {
	.online-player-search {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.online-search-actions {
		align-self: end;
	}

	.online-player-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

@media (max-width: 680px) {
	.online-players-section {
		padding: 32px 0 58px;
	}

	.online-players-inner {
		width: min(100% - 24px, 1180px);
	}

	.online-players-heading {
		padding: 11px 22px 10px;
	}

	.online-players-heading h2 {
		font-size: 17px !important;
	}

	.online-player-search,
	.online-player-grid {
		grid-template-columns: 1fr;
	}

	.online-player-card {
		border-radius: 15px;
	}

	.online-player-card:hover {
		transform: none;
	}

	.online-player-card-head {
		min-height: 170px;
		padding: 16px 14px 10px;
	}

	.online-player-title {
		padding: 0 52px 0 8px;
		text-align: left;
	}

	.online-player-avatar {
		width: 96px;
		height: 96px;
		margin-top: 8px;
	}

	.online-player-avatar img {
		max-width: 92px;
		max-height: 92px;
	}

	.online-status-pill {
		top: 13px;
		right: 12px;
	}

	.online-search-actions {
		justify-content: center;
	}

	.online-results-bar {
		align-items: center;
		flex-direction: column;
		gap: 9px;
		padding: 10px 12px 11px;
		border-radius: 14px;
	}

	.online-results-count {
		flex: 0 0 auto;
		width: 100%;
	}

	.online-results-count .info-text {
		font-size: 9px;
		line-height: 1.4;
		text-align: center;
	}

	.online-sort-control {
		width: 100%;
		justify-content: center;
		gap: 8px;
	}

	.online-sort-label {
		font-size: 7.5px;
	}

	.online-sort-select {
		min-width: 138px;
		height: 35px;
		font-size: 10.5px;
	}

	.online-sort-direction {
		height: 35px;
		min-width: 61px;
	}
}
