/* Форум сайта (плагин forum), цвета шаблона dayron - как у рынка персонажей */

.fr-wrap {
	--fr-line: #323347;
	--fr-line-hi: #527eb3;
	--fr-bg: linear-gradient(#181922, #0e0e15);
	--fr-bg-flat: #13131a;
	--fr-gold: #e9cb8f;
	--fr-gold-hi: #ffe6a8;
	--fr-text: #d8c7a8;
	--fr-muted: #8284a5;
	font-size: 13px;
	color: var(--fr-text);
}

.fr-wrap a {
	text-decoration: none;
}

/* ---------- верхняя полоса: путь и кто пишет ---------- */
.fr-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	padding: 8px 12px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
}

.fr-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--fr-muted);
}

.fr-crumbs a {
	color: var(--fr-gold) !important;
	font-weight: bold;
}

.fr-crumbs a:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-crumbs .fr-sep {
	color: #3e4067;
}

.fr-me {
	color: var(--fr-muted);
	font-size: 12px;
}

.fr-me b {
	color: var(--fr-gold);
}

.fr-me a {
	color: var(--fr-gold) !important;
	font-weight: bold;
}

/* ---------- сообщения об ошибке / успехе ---------- */
.fr-alert {
	margin-bottom: 12px;
	padding: 9px 12px;
	border: 1px solid #8a3a3a;
	border-radius: 4px;
	background: #151627;
	color: #ffb4a8;
}

.fr-alert.ok {
	border-color: #3f6b3a;
	background: #142412;
	color: #b9e6a8;
}

.fr-alert.info {
	border-color: var(--fr-line);
	background: var(--fr-bg-flat);
	color: var(--fr-text);
}

/* ---------- список разделов ---------- */
.fr-head {
	display: grid;
	grid-template-columns: 1fr 122px 176px;
	gap: 10px;
	padding: 0 12px 5px;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #3e4067;
}

.fr-head span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fr-head span:nth-child(n+2) {
	text-align: center;
}

.fr-head span:last-child {
	text-align: left;
}

.fr-cat {
	display: grid;
	grid-template-columns: 1fr 122px 176px;
	gap: 10px;
	align-items: center;
	margin-bottom: 7px;
	padding: 10px 12px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.fr-cat:hover {
	border-color: var(--fr-line-hi);
}

.fr-cat-main {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.fr-icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--fr-line-hi);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, #385983, #121322);
	color: var(--fr-gold);
}

.fr-icon svg {
	width: 20px;
	height: 20px;
}

.fr-cat-title {
	display: inline-block;
	color: var(--fr-gold) !important;
	font-size: 14px;
	font-weight: bold;
}

.fr-cat-title:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-cat-desc {
	margin-top: 2px;
	color: var(--fr-muted);
	font-size: 12px;
	line-height: 1.35;
}

.fr-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	border: 1px solid var(--fr-line);
	border-radius: 9px;
	color: var(--fr-muted);
	font-size: 10px;
	font-weight: normal;
	vertical-align: 2px;
}

.fr-num {
	text-align: center;
	color: var(--fr-gold);
	font-size: 15px;
	font-weight: bold;
	line-height: 1.1;
}

.fr-nums {
	text-align: center;
	color: #3e4067;
	font-size: 11px;
	line-height: 1.5;
}

.fr-nums b {
	color: var(--fr-gold);
	font-size: 14px;
}

.fr-num small {
	display: block;
	color: #3e4067;
	font-size: 10px;
	font-weight: normal;
}

.fr-last {
	min-width: 0;
	font-size: 12px;
	line-height: 1.35;
	color: var(--fr-muted);
}

.fr-last a {
	display: block;
	overflow: hidden;
	color: var(--fr-text) !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fr-last a:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-last b {
	color: var(--fr-gold);
}

.fr-none {
	color: #3e4067;
	font-style: italic;
}

/* ---------- блоки под списком разделов ---------- */
.fr-boxes {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.fr-box {
	padding: 10px 12px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
}

.fr-box h3 {
	margin: 0 0 8px;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--fr-line);
	color: var(--fr-gold);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.fr-recent {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-recent li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 4px 0;
	border-bottom: 1px dashed #282938;
	font-size: 12px;
}

.fr-recent li:last-child {
	border-bottom: 0;
}

.fr-recent a {
	overflow: hidden;
	color: var(--fr-text) !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fr-recent a:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-recent span {
	flex: 0 0 auto;
	color: var(--fr-muted);
}

.fr-stat {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 12px;
	color: var(--fr-muted);
}

.fr-stat b {
	color: var(--fr-gold);
}

/* ---------- кнопки ---------- */
.fr-wrap .fr-btn,
.fr-wrap button.fr-btn {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--fr-line-hi);
	border-radius: 3px;
	background: linear-gradient(#2b4b73, #121327);
	color: #fff !important;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.4;
	cursor: pointer;
}

.fr-wrap .fr-btn:hover {
	border-color: var(--fr-gold);
	color: var(--fr-gold-hi) !important;
}

.fr-wrap .fr-btn.small {
	padding: 3px 9px;
	font-size: 11px;
}

.fr-wrap .fr-btn.ghost {
	border-color: var(--fr-line);
	background: var(--fr-bg-flat);
	color: var(--fr-gold) !important;
}

.fr-wrap .fr-btn.danger {
	border-color: #8a3a3a;
	background: linear-gradient(#5a1d1d, #2e0e0e);
}

.fr-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.fr-bar h2 {
	margin: 0;
	color: #3a1d14;
	font-size: 17px;
}

.fr-bar p {
	margin: 2px 0 0;
	color: #3e4067;
	font-size: 12px;
}

/* ---------- список тем ---------- */
.fr-topic {
	display: grid;
	grid-template-columns: 1fr 64px 64px 170px;
	gap: 10px;
	align-items: center;
	margin-bottom: 6px;
	padding: 8px 12px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
}

.fr-topic:hover {
	border-color: var(--fr-line-hi);
}

.fr-topic.pinned {
	border-color: #8a6a2a;
	box-shadow: inset 3px 0 0 #c9a24a;
}

.fr-topic-title {
	color: var(--fr-text) !important;
	font-size: 13px;
	font-weight: bold;
	word-break: break-word;
}

.fr-topic-title:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-topic-meta {
	margin-top: 2px;
	color: var(--fr-muted);
	font-size: 11px;
}

.fr-topic-meta b {
	color: var(--fr-gold);
	font-weight: normal;
}

.fr-pages {
	margin-left: 6px;
}

.fr-pages a {
	padding: 0 4px;
	border: 1px solid var(--fr-line);
	border-radius: 2px;
	color: var(--fr-muted) !important;
	font-size: 10px;
}

.fr-flag {
	display: inline-block;
	margin-right: 5px;
	padding: 0 5px;
	border-radius: 2px;
	font-size: 10px;
	font-weight: bold;
	vertical-align: 1px;
	text-transform: uppercase;
}

.fr-flag.pin {
	background: #c9a24a;
	color: #241405;
}

.fr-flag.lock {
	background: #323347;
	color: #e0c9c0;
}

.fr-flag.del {
	background: #8a3a3a;
	color: #fff;
}

.fr-empty {
	padding: 26px 10px;
	border: 1px dashed var(--fr-line);
	border-radius: 4px;
	text-align: center;
	color: #3e4067;
}

/* ---------- сообщения темы ---------- */
.fr-post {
	display: grid;
	grid-template-columns: 150px 1fr;
	margin-bottom: 10px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
	scroll-margin-top: 80px;
}

.fr-post:target {
	border-color: var(--fr-gold);
}

.fr-author {
	padding: 12px 10px;
	border-right: 1px solid var(--fr-line);
	background: rgba(0, 0, 0, .18);
	text-align: center;
	font-size: 11px;
	color: var(--fr-muted);
	line-height: 1.5;
}

.fr-face {
	display: block;
	width: 62px;
	height: 62px;
	margin: 0 auto 6px;
	border: 1px solid var(--fr-line-hi);
	border-radius: 50%;
	background-color: #0f0f18;
	background-position: center;
	background-size: cover;
}

.fr-author-name {
	display: block;
	color: var(--fr-gold) !important;
	font-size: 13px;
	font-weight: bold;
	word-break: break-all;
}

.fr-author-name:hover {
	color: var(--fr-gold-hi) !important;
}

.fr-author img.fr-vip {
	height: 16px;
	width: auto;
	vertical-align: -3px;
}

.fr-role {
	display: inline-block;
	margin: 3px 0;
	padding: 0 6px;
	border-radius: 9px;
	background: #527eb3;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
}

.fr-body-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fr-post-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 12px;
	border-bottom: 1px solid #282938;
	color: var(--fr-muted);
	font-size: 11px;
}

.fr-post-head a {
	color: var(--fr-muted) !important;
}

.fr-body {
	flex: 1;
	padding: 12px 14px;
	color: #e8dcc6;
	font-size: 13px;
	line-height: 1.6;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.fr-body a {
	color: #ffcf6e !important;
	text-decoration: underline;
}

.fr-body b {
	color: #fff2d6;
}

.fr-img {
	max-width: 100%;
	max-height: 520px;
	margin: 4px 0;
	border: 1px solid var(--fr-line);
	border-radius: 3px;
}

.fr-video {
	position: relative;
	max-width: 560px;
	margin: 6px 0;
	padding-top: 56.25%;
}

.fr-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fr-center {
	text-align: center;
}

.fr-quote {
	margin: 6px 0 8px;
	padding: 7px 10px;
	border-left: 3px solid #c9a24a;
	border-radius: 0 3px 3px 0;
	background: rgba(0, 0, 0, .28);
	color: #cdbb9b;
	font-size: 12px;
}

.fr-quote cite {
	display: block;
	margin-bottom: 3px;
	color: var(--fr-gold);
	font-style: normal;
	font-weight: bold;
}

.fr-code {
	margin: 6px 0;
	padding: 8px 10px;
	overflow-x: auto;
	border: 1px solid #282938;
	border-radius: 3px;
	background: #0e0c1c;
	color: #c9e6b4;
	font: 12px/1.45 Consolas, monospace;
	white-space: pre;
}

.fr-spoiler {
	margin: 6px 0;
	border: 1px solid #282938;
	border-radius: 3px;
	background: rgba(0, 0, 0, .2);
}

.fr-spoiler summary {
	padding: 4px 9px;
	color: var(--fr-gold);
	font-weight: bold;
	cursor: pointer;
}

.fr-spoiler > div {
	padding: 4px 10px 8px;
}

.fr-post-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 6px 12px;
	border-top: 1px solid #282938;
	font-size: 11px;
	color: #5b5d7a;
}

.fr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-left: auto;
}

.fr-actions form {
	display: inline;
	margin: 0;
}

/* ---------- инструменты модератора ---------- */
.fr-mod {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 7px 10px;
	border: 1px dashed #527eb3;
	border-radius: 4px;
	background: rgba(43, 75, 115, .25);
	font-size: 12px;
	color: #3e4067;
}

.fr-mod form {
	display: inline-flex;
	gap: 5px;
	margin: 0;
}

.fr-mod select,
.fr-ban select,
.fr-ban input {
	padding: 3px 5px;
	border: 1px solid var(--fr-line);
	border-radius: 3px;
	background: #0b0b11;
	color: var(--fr-text);
	font-size: 12px;
}

.fr-ban {
	display: none;
	flex-basis: 100%;
	margin-top: 6px;
	padding: 8px;
	border: 1px solid #8a3a3a;
	border-radius: 3px;
	background: #0e0f1e;
}

.fr-ban.open {
	display: block;
}

.fr-ban form {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

/* ---------- форма сообщения ---------- */
.fr-editor {
	margin-top: 14px;
	padding: 12px;
	border: 1px solid var(--fr-line);
	border-radius: 4px;
	background: var(--fr-bg);
}

.fr-editor h3 {
	margin: 0 0 8px;
	color: var(--fr-gold);
	font-size: 13px;
}

.fr-field {
	margin-bottom: 9px;
}

.fr-field label {
	display: block;
	margin-bottom: 3px;
	color: var(--fr-muted);
	font-size: 12px;
}

.fr-input,
.fr-wrap textarea.fr-input,
.fr-wrap select.fr-input {
	box-sizing: border-box;
	width: 100%;
	padding: 7px 9px;
	border: 1px solid var(--fr-line);
	border-radius: 3px;
	background: #0b0b11;
	color: #f0e4cc;
	font-size: 13px;
	font-family: inherit;
}

.fr-wrap textarea.fr-input {
	min-height: 170px;
	line-height: 1.5;
	resize: vertical;
}

.fr-input:focus {
	border-color: #c9a24a;
	outline: none;
}

.fr-wrap select.fr-input {
	width: auto;
	min-width: 220px;
}

.fr-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	margin-bottom: 4px;
}

.fr-tools button {
	min-width: 30px;
	height: 26px;
	padding: 0 7px;
	border: 1px solid var(--fr-line);
	border-radius: 3px;
	background: #13131a;
	color: var(--fr-gold);
	font-size: 12px;
	cursor: pointer;
}

.fr-tools button:hover {
	border-color: var(--fr-gold);
	color: var(--fr-gold-hi);
}

.fr-hint {
	margin-top: 4px;
	color: #5b5d7a;
	font-size: 11px;
}

.fr-count {
	float: right;
}

.fr-count.over {
	color: #ff8a7a;
}

/* ---------- узкий экран ---------- */
@media (max-width: 640px) {
	.fr-head {
		display: none;
	}

	.fr-cat {
		grid-template-columns: 1fr;
	}

	.fr-nums {
		text-align: left;
	}

	.fr-topic {
		grid-template-columns: 1fr 1fr;
	}

	.fr-cat-main,
	.fr-topic > div:first-child,
	.fr-last {
		grid-column: 1 / -1;
	}

	.fr-boxes {
		grid-template-columns: 1fr;
	}

	.fr-post {
		grid-template-columns: 1fr;
	}

	.fr-author {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 8px;
		border-right: 0;
		border-bottom: 1px solid var(--fr-line);
		text-align: left;
	}

	.fr-face {
		width: 34px;
		height: 34px;
		margin: 0;
	}
}
