:root {
	--bg-top: #f1f6ff;
	--bg-bottom: #ffffff;
	--brand: #1d4ed8;
	--brand-soft: #dbeafe;
	--text-main: #0f172a;
	--text-sub: #475569;
}

body {
	background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 260px);
}

ul.link-list {
	list-style: none;
	padding: 0;
}

ul.link-list li {
	padding: 12px 10px;
	border-bottom: 1px solid #edf2f7;
}

ul.link-list li:last-child {
	border-bottom: none;
}

ul.link-list li a {
	color: var(--text-main);
	text-decoration: none;
	font-weight: 500;
	overflow-wrap: anywhere;
	word-break: break-word;
}

ul.link-list li a:hover {
	color: var(--brand);
	text-decoration: underline;
}

.pagination {
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 30px;
}

.page-link {
	min-width: 42px;
	text-align: center;
}

.container {
	margin-top: 30px;
	background: #ffffff;
	padding: 28px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	max-width: 980px;
}

.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.page-title {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--text-main);
	cursor: pointer;
}

.total-count {
	margin: 0;
	color: var(--text-sub);
	font-size: 0.95rem;
	font-weight: 600;
}

.language-tabs {
	display: inline-flex;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 4px;
	gap: 6px;
}

.language-tabs .lang-btn {
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid transparent;
	color: var(--text-sub);
	background: transparent;
	text-decoration: none;
}

.language-tabs .lang-btn.active {
	color: #ffffff;
	background: var(--brand);
	border-color: var(--brand);
}

.language-tabs .lang-btn:not(.active):hover {
	background: var(--brand-soft);
	color: var(--brand);
}

.list-controls {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.sort-tabs {
	display: inline-flex;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	padding: 4px;
	gap: 6px;
}

.sort-tabs .sort-btn {
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid transparent;
	color: var(--text-sub);
	background: transparent;
	text-decoration: none;
	white-space: nowrap;
}

.sort-tabs .sort-btn.active {
	color: #ffffff;
	background: var(--brand);
	border-color: var(--brand);
}

.sort-tabs .sort-btn:not(.active):hover {
	background: var(--brand-soft);
	color: var(--brand);
}

@media (max-width: 575px) {
	body {
		background: #ffffff;
	}

	.container {
		width: 100%;
		max-width: none;
		margin-top: 0;
		padding: 16px 12px;
		border-radius: 0;
		box-shadow: none;
	}

	.top-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.page-title {
		font-size: 1.35rem;
	}

	.language-tabs,
	.sort-tabs {
		width: 100%;
		overflow-x: auto;
	}

	.language-tabs .lang-btn,
	.sort-tabs .sort-btn {
		flex: 1 0 auto;
		text-align: center;
	}

	.list-controls {
		justify-content: stretch;
	}

	.pagination {
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 4px;
	}
}
