/* Тамирчдын жагсаалт — PlayersPage.jsx */

@import url("board-wash.css");

.pl-page {
	--ink: #141821;
	--chrome: #16181a;
	--green: #17703d;
	--amber: #8a5e07;
	--red: #c2211d;
	--gold: #f0a93c;
	--muted: #6c6754;
	--soft: #3f3c33;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--display: "Oswald", sans-serif;
	--sans: "Manrope", system-ui, sans-serif;
	--cols: 44px minmax(160px, 1fr) 84px 92px 100px 70px 76px;
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #efe7d0;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.pl-page *,
.pl-page *::before,
.pl-page *::after {
	box-sizing: border-box;
}

.pl-page a {
	color: inherit;
	text-decoration: none;
}

@keyframes tierSheen {
	0% { left: -40%; opacity: 0; }
	12% { opacity: 1; }
	55% { left: 120%; opacity: 0; }
	100% { left: 120%; opacity: 0; }
}

.ap-sheen {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-conic-gradient(
		from 0deg at 84% 120%,
		rgba(255, 255, 255, 0.035) 0deg 9deg,
		transparent 9deg 18deg
	);
}

.ap-sheen-beam {
	position: absolute;
	top: 0;
	height: 100%;
	left: -40%;
	width: 32%;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent,
		rgba(255, 255, 255, 0.14) 45%,
		rgba(255, 255, 255, 0.02) 60%,
		transparent
	);
	transform: skewX(-14deg);
	animation: tierSheen 5.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.ap-sheen-beam {
		animation: none;
		display: none;
	}
}

/* ---------- header ---------- */

.ap-header {
	position: relative;
	overflow: hidden;
}

.ap-header-in {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ap-mark {
	display: flex;
	flex-direction: column;
	line-height: 0.84;
	flex: none;
}

.ap-mark-row {
	display: flex;
	align-items: center;
	gap: 1px;
}

.ap-mark-letter,
.ap-mark-dart {
	font-family: var(--display);
	font-weight: 700;
	font-size: 26px;
	color: #ffffff;
}

.ap-mark-dart {
	letter-spacing: 0.08em;
	margin-top: 3px;
}

.ap-mark-o {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.ap-mark-bull {
	width: 36%;
	height: 36%;
	border-radius: 50%;
	background: #e0322e;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.ap-ad {
	flex: 1 1 380px;
	min-width: 240px;
	max-width: 700px;
	height: 52px;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(255, 255, 255, 0.02);
}

.ap-ad-size {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #9a927c;
}

.ap-ad-rule {
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.16);
}

.ap-ad-text {
	font-size: 12.5px;
	color: #b8b09a;
}

.ap-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.ap-nav a {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #cfc9b6;
	padding: 10px 15px;
	border-radius: 8px;
}

.ap-nav a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.ap-nav-cta {
	color: var(--gold) !important;
	border: 1px solid var(--gold);
	border-radius: 999px !important;
	padding: 10px 16px !important;
}

.ap-nav-cta:hover {
	color: #ffffff !important;
	background: rgba(240, 169, 60, 0.12) !important;
}

.ap-header-bar {
	height: 3px;
	background: linear-gradient(
		to right,
		#c2211d 0%,
		#c2211d 34%,
		#17703d 34%,
		#17703d 62%,
		rgba(255, 255, 255, 0.14) 62%
	);
}

/* ---------- main ---------- */

.pl-main {
	flex: 1;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 52px) 32px clamp(40px, 6vw, 72px);
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.pl-flash {
	position: relative;
	overflow: hidden;
	background: var(--chrome);
	border-radius: 6px 26px 6px 26px;
	padding: 24px 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.pl-flash-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 0;
	max-width: 680px;
}

.pl-kicker {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--gold);
}

.pl-flash h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #ffffff;
}

.pl-flash-copy p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #c6c0b0;
	text-wrap: pretty;
}

.pl-flash-total {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-end;
}

.pl-flash-total span {
	font-family: var(--display);
	font-size: 34px;
	line-height: 1;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.pl-flash-total small {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #a8a294;
}

.pl-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pl-search {
	flex: 1 1 380px;
	min-width: 240px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid rgba(20, 24, 33, 0.14);
	border-radius: 4px 16px 4px 16px;
	padding: 14px 18px;
}

.pl-search-icon {
	display: flex;
	color: var(--muted);
	flex: none;
}

.pl-search input {
	border: 0;
	outline: none;
	background: transparent;
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	width: 100%;
	min-width: 0;
}

.pl-search input::placeholder {
	color: #5c5648;
}

.pl-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pl-sort button {
	cursor: pointer;
	border: 1px solid rgba(20, 24, 33, 0.18);
	background: #fff;
	color: var(--soft);
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	padding: 12px 16px;
	border-radius: 999px;
}

.pl-sort button.on {
	border-color: var(--chrome);
	background: var(--chrome);
	color: #fff;
}

.pl-toolbar-titles {
	margin-top: -4px;
}

.pl-title-cap {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	color: var(--ink);
	font-weight: 600;
}

#pl-title button {
	padding: 8px 13px;
}

#pl-title button.on {
	border-color: #c2211d;
	background: #c2211d;
	color: #fff;
}

.pl-code {
	flex: none;
	font-style: normal;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 700;
	color: #3d4651;
}

.pl-title-chip {
	flex: none;
	font-style: normal;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: #c2211d;
	border-radius: 3px;
	padding: 2px 6px;
}

/* ---------- table card ---------- */

.pl-card {
	background: #fff;
	border: 1px solid rgba(20, 24, 33, 0.1);
	border-radius: 6px 26px 6px 26px;
	overflow: hidden;
}

.pl-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 22px;
	background: var(--chrome);
}

.pl-card-head span {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #a8a294;
}

.pl-sort-hint {
	color: var(--gold) !important;
}

.pl-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pl-table {
	min-width: 664px;
}

.pl-cols {
	display: grid;
	grid-template-columns: var(--cols);
	gap: 10px;
	align-items: stretch;
	padding: 0;
}

.pl-cols > span {
	display: flex;
	align-items: center;
	min-width: 0;
	padding-top: 11px;
	padding-bottom: 11px;
}

.pl-cols > span:first-child {
	padding-left: 16px;
}

.pl-cols > span:last-child {
	padding-right: 16px;
}

.pl-cols-head {
	background: #f7f2e6;
	border-bottom: 1px solid rgba(20, 24, 33, 0.12);
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: 0.16em;
	color: var(--muted);
}

.pl-cols .num {
	justify-content: flex-end;
	text-align: right;
}

.pl-row {
	display: grid;
	grid-template-columns: var(--cols);
	gap: 10px;
	align-items: stretch;
	padding: 0;
	border-bottom: 1px solid rgba(20, 24, 33, 0.07);
	background: #fff;
}

.pl-row > span {
	display: flex;
	align-items: center;
	min-width: 0;
	padding-top: 11px;
	padding-bottom: 11px;
}

.pl-row > :first-child {
	padding-left: 16px;
}

.pl-row > :last-child {
	padding-right: 16px;
}

.pl-row:nth-child(even) {
	background: #fcfaf4;
}

.pl-row:hover {
	background: #f3eee0;
}

.pl-cols-head > span:nth-child(2),
.pl-row > .pl-name {
	position: sticky;
	left: 0;
	z-index: 2;
	background: #fff;
	box-shadow: 6px 0 10px -6px rgba(20, 24, 33, 0.28);
}

.pl-cols-head > span:nth-child(2) {
	background: #f7f2e6;
	z-index: 4;
}

.pl-row:nth-child(even) > .pl-name {
	background: #fcfaf4;
}

.pl-row:hover > .pl-name {
	background: #f3eee0;
}

.pl-idx {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.pl-name {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pl-bar {
	width: 5px;
	height: 22px;
	border-radius: 2px;
	background: rgba(20, 24, 33, 0.14);
	flex: none;
}

.pl-bar.is-mid {
	background: var(--amber);
}

.pl-bar.is-hi {
	background: var(--green);
}

.pl-name b {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pl-avg {
	text-align: right;
	font-family: var(--display);
	font-size: 17px;
	color: #6f6a5f;
	font-variant-numeric: tabular-nums;
}

.pl-avg.is-mid {
	color: var(--ink);
}

.pl-avg.is-hi {
	color: var(--green);
}

.pl-cell {
	text-align: right;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--soft);
	font-variant-numeric: tabular-nums;
}

.pl-cell.is-180 {
	color: var(--amber);
}

.pl-cell.is-muted {
	color: var(--muted);
}

.pl-cell.is-high {
	color: var(--red);
}

/* тоон баганууд: гарчигтайгаа баруун ирмэгээр зэрэгцэж, босоо шугамаар тусгаарлана */
.pl-cols,
.pl-row {
	column-gap: 0;
}

.pl-cols > span:nth-child(n + 3),
.pl-row > span:nth-child(n + 3) {
	justify-content: flex-end;
	text-align: right;
	padding-left: 10px;
	padding-right: 14px;
	border-left: 1px solid rgba(20, 24, 33, 0.1);
}

.pl-cols > span:nth-child(-n + 2),
.pl-row > span:nth-child(-n + 2) {
	padding-right: 10px;
}

.pl-cols-head > span:nth-child(n + 3) {
	border-left-color: rgba(20, 24, 33, 0.14);
}

.pl-empty {
	padding: 28px 22px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--muted);
	text-align: center;
}

.pl-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 22px;
	background: #f7f2e6;
}

.pl-pager[hidden] {
	display: none;
}

.pl-page-ghost,
.pl-page-next {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	padding: 12px 20px;
	border-radius: 999px;
	cursor: pointer;
	border: 1px solid rgba(20, 24, 33, 0.14);
	background: transparent;
	color: var(--muted);
}

.pl-page-next {
	border: 0;
	background: var(--chrome);
	color: #fff;
	padding: 13px 20px;
}

.pl-page-ghost:hover:not(:disabled),
.pl-page-next:hover:not(:disabled) {
	filter: brightness(1.08);
}

.pl-page-ghost:disabled,
.pl-page-next:disabled {
	opacity: 0.38;
	cursor: default;
}

.pl-page-num {
	font-family: var(--display);
	font-size: 16px;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

/* ---------- footer ---------- */

.ap-foot {
	position: relative;
	overflow: hidden;
	margin-top: auto;
}

.ap-foot-in {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 32px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	color: #a8a294;
	text-align: center;
	text-transform: uppercase;
}

.ap-foot-in a {
	color: var(--gold);
}

.ap-foot-in a:hover {
	color: #ffffff;
}

@media (max-width: 720px) {
	.ap-header-in,
	.pl-main,
	.ap-foot-in {
		padding-inline: 16px;
	}

	.pl-flash {
		padding: 20px 18px;
	}

	.pl-flash-total {
		align-items: flex-start;
	}
}
