/* Цуврал тэмцээн — жагсаалт + өссөн дүн хүснэгт */

.series-page {
	max-width: 96rem;
	margin: 0 auto;
	padding: 1rem 0.75rem 2.5rem;
	background: var(--page-bg, var(--db-cream));
	min-height: 70vh;
	color: var(--text-dark, var(--db-ink));
}

.series-lead {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: #4a5c56;
	max-width: 40rem;
	line-height: 1.45;
}

.series-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.series-card {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: space-between;
	align-items: flex-start;
	background: #fff;
	border: 1px solid rgba(11, 46, 40, 0.14);
	border-radius: 0.45rem;
	padding: 0.9rem 1rem;
	border-left: 4px solid var(--yellow, #ffe066);
	box-shadow: 0 1px 4px rgba(6, 31, 27, 0.06);
}

.series-card h2 {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	color: var(--brand, #0b2e28);
}

.series-card-meta {
	margin: 0 0 0.55rem;
	font-size: 0.85rem;
	color: #5a6e68;
}

.series-event-names {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: #33443f;
}

.series-event-names li {
	padding: 0.15rem 0;
}

.series-event-names .muted {
	color: #8a9a94;
}

.series-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.series-empty {
	padding: 1.5rem;
	background: #fff;
	border-radius: 0.4rem;
	color: #5a6e68;
}

.series-detail-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.series-detail-title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	color: var(--brand, #0b2e28);
	line-height: 1.35;
}

.series-detail-meta,
.series-score-hint {
	margin: 0 0 0.55rem;
	font-size: 0.85rem;
	color: #5a6e68;
}

.series-table-wrap {
	overflow: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0.35rem;
	max-width: 100%;
}

.series-matrix .col-event a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.series-matrix {
	border-collapse: collapse;
	font-size: 0.78rem;
	min-width: 100%;
	width: max-content;
}

.series-matrix th,
.series-matrix td {
	border: 1px solid #b0b8c0;
	padding: 0.35rem 0.4rem;
	text-align: center;
	white-space: nowrap;
}

.series-matrix thead th {
	font-weight: 700;
	color: #1a2430;
	position: sticky;
	top: 0;
	z-index: 2;
}

.series-matrix .col-num {
	width: 2.2rem;
	background: #eef2f6;
	font-weight: 700;
}

.series-matrix .col-name {
	text-align: left;
	font-weight: 700;
	min-width: 8rem;
	background: #f7f9fb;
	position: sticky;
	left: 0;
	z-index: 1;
}

.series-matrix thead .col-name {
	z-index: 3;
	background: #e8eef5;
}

.series-matrix .col-total {
	font-weight: 800;
	background: #fff;
	min-width: 4.5rem;
}

.series-matrix tbody tr:nth-child(even) .col-name {
	background: #f0f3f7;
}

.series-matrix .col-avg {
	min-width: 3.4rem;
	font-variant-numeric: tabular-nums;
}

.series-matrix .col-place {
	min-width: 3.2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	vertical-align: middle;
	padding: 0.25rem 0.3rem;
}

.series-matrix .col-pts {
	min-width: 2.6rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.place-stack {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	line-height: 1.15;
}

.place-label {
	font-size: 0.78rem;
	font-weight: 800;
	white-space: nowrap;
}

.place-avg {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	color: #4a5c56;
	font-variant-numeric: tabular-nums;
}

.rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	height: 1.65rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	background: #e8eef2;
	color: #1a2430;
	white-space: nowrap;
}

.rank-badge.medal-gold {
	background: radial-gradient(circle at 35% 30%, #ffe9a0, #d4a017 70%);
	color: #3a2a00;
	box-shadow: 0 0 0 2px #f0c94a;
}

.rank-badge.medal-silver {
	background: radial-gradient(circle at 35% 30%, #f2f4f7, #9aa3ad 72%);
	color: #222;
	box-shadow: 0 0 0 2px #c5ccd3;
}

.rank-badge.medal-bronze {
	background: radial-gradient(circle at 35% 30%, #f0c9a0, #b87333 72%);
	color: #2a1608;
	box-shadow: 0 0 0 2px #d4a574;
}

.series-public-title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	color: var(--brand, #0b2e28);
}

.series-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.series-toolbar input,
.series-toolbar select {
	padding: 0.4rem 0.55rem;
	border: 1px solid #c3c4c7;
	border-radius: 0.3rem;
}

.series-public-card {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(11, 46, 40, 0.14);
	border-left: 4px solid #0b2e28;
	border-radius: 0.4rem;
	text-decoration: none;
	color: inherit;
	margin-bottom: 0.55rem;
}

.series-public-card:hover {
	border-left-color: #c9a227;
	background: #fafcfb;
}

.series-public-card strong {
	font-size: 1.05rem;
	color: #0b2e28;
}

.series-public-card span {
	font-size: 0.82rem;
	color: #5a6e68;
}

.series-matrix-head h2 {
	margin: 0.75rem 0 0.35rem;
	font-size: 1.1rem;
}

.series-matrix-note {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: #5a6e68;
}

#btn-series-back {
	margin-bottom: 0.75rem;
}

.hidden {
	display: none !important;
}
