/*
 * CS-NonSteam.ru
 * https://cs-nonsteam.ru
 */

:root {
	--nsx-void: #0b1218;
	--nsx-ink: #101920;
	--nsx-plate: #162028;
	--nsx-plate-2: #1c2a34;
	--nsx-seam: #26343e;
	--nsx-glow: #e8eef2;
	--nsx-fog: #93a4b0;
	--nsx-ember: #ef9a3a;
	--nsx-ember-2: #e85319;
	--nsx-ice: #7ec8ff;
	--nsx-wire: #1e6fd8;
	--nsx-disk: #c48a1a;
	--nsx-vapor: #2fa36b;
	--nsx-round: 14px;
	--nsx-max: 1100px;
	--nsx-type: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--nsx-type);
	font-size: 15px;
	line-height: 1.5;
	color: var(--nsx-glow);
	background: var(--nsx-void);
	min-width: 320px;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--nsx-ice); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; }

.nsx-shell { max-width: var(--nsx-max); margin: 0 auto; padding: 0 16px; }
.nsx-slab {
	background: var(--nsx-plate);
	border: 1px solid var(--nsx-seam);
	border-radius: var(--nsx-round);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.nsx-dim { color: var(--nsx-fog); }
.nsx-heading { font-size: 26px; margin: 0 0 8px; }

.nsx-mast {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(11, 18, 24, .94);
	border-bottom: 1px solid var(--nsx-seam);
}
.nsx-mast__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
}
.nsx-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--nsx-glow);
	font-weight: 800;
	flex: 0 0 auto;
	text-decoration: none;
}
.nsx-brand:hover { text-decoration: none; color: var(--nsx-glow); }
.nsx-brand__sigil {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--nsx-ember), var(--nsx-ember-2));
	display: grid;
	place-items: center;
	font-size: 14px;
	font-weight: 800;
	color: #111;
}
.nsx-brand__word { font-size: 16px; }
.nsx-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1 1 auto;
	list-style: none;
}
.nsx-rail a,
.nsx-overflow__toggle,
.nsx-seek {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--nsx-plate-2);
	color: var(--nsx-glow);
	border: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.nsx-rail a:hover,
.nsx-overflow__toggle:hover,
.nsx-seek:hover,
.nsx-rail a.is-on {
	background: var(--nsx-ember);
	color: #111;
	text-decoration: none;
}
.nsx-kit { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nsx-overflow { position: relative; }
.nsx-overflow__menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 180px;
	background: var(--nsx-plate);
	border: 1px solid var(--nsx-seam);
	border-radius: 12px;
	padding: 8px;
	z-index: 5;
}
.nsx-overflow.is-on .nsx-overflow__menu { display: block; }
.nsx-overflow__menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--nsx-glow);
	background: none;
}
.nsx-overflow__menu a:hover { background: var(--nsx-plate-2); text-decoration: none; }
.nsx-fold {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: var(--nsx-plate-2);
	border-radius: 10px;
	color: var(--nsx-glow);
	cursor: pointer;
}
.nsx-seekbox { display: none; padding: 0 16px 12px; }
.nsx-seekbox.is-on { display: block; }
.nsx-seekbox form { display: flex; gap: 8px; max-width: var(--nsx-max); margin: 0 auto; }
.nsx-field,
.nsx-seekbox input,
.wide {
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--nsx-seam);
	background: var(--nsx-ink);
	color: var(--nsx-glow);
}
.nsx-seekbox button,
.nsx-send {
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--nsx-ember);
	color: #111;
	font-weight: 700;
	cursor: pointer;
}

.nsx-ticker {
	background: var(--nsx-ink);
	border-bottom: 1px solid var(--nsx-seam);
	overflow: hidden;
}
.nsx-ticker__lane {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 8px 0;
	scrollbar-width: thin;
}
.nsx-ticker__node {
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 12px;
	color: var(--nsx-fog);
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--nsx-plate);
	text-decoration: none;
}
.nsx-ticker__node:hover { color: var(--nsx-glow); text-decoration: none; }

.nsx-canvas { padding: 18px 0 40px; }
.nsx-lead { margin-bottom: 16px; }
.nsx-trail { font-size: 13px; color: var(--nsx-fog); margin-bottom: 10px; }
.nsx-trail a { color: var(--nsx-fog); }

.nsx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.nsx-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--nsx-plate);
	border: 1px solid var(--nsx-seam);
	border-radius: 999px;
	color: var(--nsx-glow);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.nsx-pill:hover { border-color: var(--nsx-ember); text-decoration: none; }
.nsx-pill span { color: var(--nsx-fog); font-weight: 500; }

.nsx-mosaic {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.nsx-tile {
	display: flex;
	flex-direction: column;
	background: var(--nsx-plate);
	border: 1px solid var(--nsx-seam);
	border-radius: var(--nsx-round);
	overflow: hidden;
	min-width: 0;
}
.nsx-tile__shot {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #000;
	overflow: hidden;
}
.nsx-tile__shot img,
.nsx-tile__shot .xfieldimage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nsx-tile__inner { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nsx-tile__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.nsx-tile__meta a,
.nsx-flag {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--nsx-plate-2);
	color: var(--nsx-fog);
	text-decoration: none;
}
.nsx-tile__name { font-size: 16px; margin: 0; color: var(--nsx-glow); }
.nsx-tile__name a { color: inherit; }
.nsx-tile__note { color: var(--nsx-fog); font-size: 13px; }
.nsx-tile__bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.nsx-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--nsx-seam);
	background: var(--nsx-plate-2);
	color: var(--nsx-glow);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.nsx-act:hover { text-decoration: none; filter: brightness(1.08); }
.nsx-act--wire { background: var(--nsx-wire); border-color: transparent; }
.nsx-act--disk { background: var(--nsx-disk); border-color: transparent; color: #111; }
.nsx-act--vapor { background: var(--nsx-vapor); border-color: transparent; }
.nsx-act--wide { padding: 11px 16px; font-size: 14px; }

.nsx-splash {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 18px;
	padding: 20px;
	margin-bottom: 18px;
}
.nsx-splash__art {
	min-height: 200px;
	border-radius: 12px;
	background:
		radial-gradient(circle at 70% 30%, rgba(239, 154, 58, .35), transparent 50%),
		linear-gradient(160deg, #1a2832, #0d151c);
}
.nsx-splash__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nsx-lore { padding: 18px 20px; margin-top: 18px; color: var(--nsx-fog); }
.nsx-lore h2, .nsx-lore h3 { color: var(--nsx-glow); margin-top: 1.2em; }

.nsx-entry { padding: 18px 20px 22px; }
.nsx-entry h1 { font-size: 26px; }
.nsx-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.nsx-stage {
	display: grid;
	grid-template-columns: 1fr 160px;
	gap: 10px;
	margin: 12px 0 16px;
}
.nsx-stage__hero {
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	min-height: 240px;
}
.nsx-stage__hero img,
.nsx-stage__film img,
.nsx-stage .xfieldimage,
.nsx-shots img {
	width: 100%;
	display: block;
	cursor: pointer;
}
.nsx-stage__hero img,
.nsx-stage__hero .xfieldimage { height: 100%; object-fit: cover; }
.nsx-stage__film {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 420px;
	overflow: auto;
}
.nsx-stage__film img { border-radius: 8px; opacity: .85; }
.nsx-stage__film img:hover { opacity: 1; outline: 2px solid var(--nsx-ember); }
.nsx-shots img {
	border-radius: 10px;
	margin: 0 6px 8px 0;
	max-height: 160px;
	width: auto;
}
.nsx-getbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.nsx-howto { background: var(--nsx-ink); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.nsx-howto ol { padding-left: 18px; }
.nsx-howto li { margin: 6px 0; }
.nsx-akin { margin-top: 20px; }
.nsx-akin__mosaic {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.nsx-akin .nsx-tile__shot { aspect-ratio: 16 / 9; }
.nsx-akin .nsx-tile__inner { padding: 8px 10px 10px; }
.nsx-akin .nsx-tile__name { font-size: 13px; }

.nsx-talks { margin-top: 22px; }
.nsx-remark {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--nsx-seam);
}
.nsx-remark__face {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nsx-plate-2);
}
.nsx-formstack { display: grid; gap: 10px; }
.nsx-formstack li { list-style: none; }

.nsx-pager {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 22px 0 8px;
}
.nsx-pager a,
.nsx-pager span,
.nsx-pager .pages a,
.nsx-pager .pages span {
	display: inline-flex;
	min-width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--nsx-plate);
	border: 1px solid var(--nsx-seam);
	color: var(--nsx-glow);
	padding: 0 8px;
}

.nsx-colophon {
	border-top: 1px solid var(--nsx-seam);
	padding: 22px 0;
	color: var(--nsx-fog);
	font-size: 13px;
}
.nsx-colophon__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nsx-gate { font-size: 13px; color: var(--nsx-fog); }
.nsx-notice { padding: 14px 16px; margin-bottom: 14px; }

.nsx-flare {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(0, 0, 0, .86);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.nsx-flare.is-on { display: flex; }
.nsx-flare img { max-width: 100%; max-height: 100%; }

@media (max-width: 980px) {
	.nsx-mosaic { grid-template-columns: repeat(2, 1fr); }
	.nsx-splash { grid-template-columns: 1fr; }
	.nsx-stage { grid-template-columns: 1fr; }
	.nsx-stage__film { flex-direction: row; max-height: none; }
	.nsx-stage__film img { width: 96px; height: 64px; object-fit: cover; }
	.nsx-akin__mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.nsx-rail { display: none; }
	.nsx-rail.is-on {
		display: flex;
		position: absolute;
		left: 0;
		right: 0;
		top: 58px;
		background: var(--nsx-void);
		padding: 10px 16px 14px;
		border-bottom: 1px solid var(--nsx-seam);
		flex-direction: column;
	}
	.nsx-fold { display: inline-flex; align-items: center; justify-content: center; }
	.nsx-mosaic { grid-template-columns: 1fr; }
	.nsx-heading, .nsx-entry h1 { font-size: 22px; }
}
