/*
 * Плагин vtreports: щит VT-отчёта у ссылок скачивания + поповер,
 * страница /virustotal-reports/ (бары движков).
 * Цвета — нейтральные и полупрозрачные, чтобы читались в обеих темах скина.
 */

/* --- Щит в списке файлов («скачать:») --- */
.multiple-file-upload .vt-shield,
.vt-shield {
    display: inline-block;
    margin-left: 6px;
    color: #6f8291;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.vt-shield:hover,
.vt-shield:focus {
    color: #3c9bd6;
    text-decoration: none;
}

/* --- Поповер отчёта (BS3 popover с классом vt-popover) --- */
.vt-popover {
    max-width: 600px;
}

.vt-popover .popover-title {
    font-weight: bold;
}

.vt-popover .popover-content {
    max-height: 440px;
    overflow-y: auto;
    font-size: 13px;
}

.vt-popover .vt-report-date {
    color: #9aa7b0;
    font-size: 12px;
    margin-bottom: 8px;
}

.vt-popover .vt-file-row {
    margin-bottom: 6px;
    word-break: break-word;
}

.vt-popover .vt-file-verdicts {
    color: #9aa7b0;
}

.vt-popover .vt-report-link {
    white-space: nowrap;
}

/* --- Памятка «как оценивать риски» (в поповере — компактно, на странице — полно) --- */
.vt-risk-legend {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.vt-risk-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.vt-risk-row {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.vt-risk-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vt-risk-dot-clean {
    background: #4caf50;
}

.vt-risk-dot-low {
    background: #9aa7b0;
}

.vt-risk-dot-mid {
    background: #e2a33d;
}

.vt-risk-dot-high {
    background: #d9534f;
}

.vt-risk-more {
    margin-top: 8px;
}

.vt-risk-more a {
    color: #3c9bd6;
}

/* --- Памятка на странице /virustotal-reports/ (полный вариант) --- */
.vt-guide {
    margin-top: 8px;
    border-top: none;
    padding-top: 0;
    max-width: 760px;
}

.vt-guide .vt-risk-row {
    margin-bottom: 6px;
}

.vt-guide-subtitle {
    font-weight: bold;
    margin: 12px 0 6px;
}

.vt-guide-subtitle:first-child {
    margin-top: 0;
}

.vt-guide-notes {
    margin: 0 0 12px;
    padding-left: 20px;
}

.vt-guide-notes li {
    margin-bottom: 6px;
}

.vt-guide-av {
    margin-bottom: 0;
}

/* --- Страница /virustotal-reports/ --- */
/* Цвет текста единый с телом страницы (наследуем); вторичный — тот же цвет
   с прозрачностью, чтобы не вылазил чужой серо-голубой ни в одной теме */
.vt-chart-note,
.vt-checked-last,
.vt-reports .vt-totals-label,
.vt-reports .vt-guide-subtitle {
    color: inherit;
    opacity: 0.62;
}

.vt-reports-totals {
    display: inline-block;
    margin-bottom: 16px;
    min-width: 260px;
}

.vt-totals-row {
    margin-bottom: 6px;
}

.vt-totals-num {
    display: inline-block;
    min-width: 56px;
    font-weight: bold;
}

.vt-totals-flagged .vt-totals-num {
    color: #e2a33d;
}

.vt-chart-title {
    margin-top: 20px;
    color: inherit; /* h3 скина красит разделы в синий #2c4d76 — держим цвет тела */
}

.vt-engine-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.vt-engine-name {
    width: 140px;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.vt-engine-bar {
    flex: 1 1 auto;
    height: 14px;
    background: rgba(127, 127, 127, 0.18);
    border-radius: 3px;
    overflow: hidden;
}

.vt-engine-bar-fill {
    display: block;
    height: 100%;
    background: rgba(125, 154, 176, 0.85);
    border-radius: 3px;
}

.vt-engine-count {
    width: 48px;
    margin-left: 10px;
    text-align: right;
    flex-shrink: 0;
}

.vt-chart-note {
    margin-top: 14px;
}

.vt-checked-last {
    margin-top: 14px;
}

/* На мобильном слое имя движка и счётчик сужаем */
@media (max-width: 767px) {
    .vt-engine-name {
        width: 100px;
    }

    .vt-engine-count {
        width: 36px;
    }
}
/*! 4otaku Skin for jPlayer 2.9.2 ~ (c) 2015 shtrih ~ MIT License */

/*
 * Skin for jPlayer Plugin (jQuery JavaScript Library)
 * http://www.jplayer.org
 *
 * Skin Name: 4otaku
 *
 * Copyright (c) 2010 - 2014 Happyworm Ltd
 * Licensed under the MIT license.
 *  - http://www.opensource.org/licenses/mit-license.php
 *
 * Author: Silvia Benvenuti
 * Skin Version: 5.1 (jPlayer 2.8.0)
 * Date: 13th November 2014
 */
.jp-audio *:focus,
.jp-audio-stream *:focus,
.jp-video *:focus {
	/* Disable the browser focus highlighting. */
	outline: none;
}

.jp-audio button::-moz-focus-inner,
.jp-audio-stream button::-moz-focus-inner,
.jp-video button::-moz-focus-inner {
	/* Disable the browser CSS3 focus highlighting. */
	border: 0;
}

.jp-audio,
.jp-audio-stream,
.jp-video {
	font-size: 16px;
	font-family: Verdana, Arial, sans-serif;
	line-height: 1.6;
	color: #666;

	margin: 4px 0;
}

.jp-audio {
	/*width: 420px;*/
}

.jp-audio-stream {
	width: 182px;
}

.jp-video-270p {
	width: 480px;
}

.jp-video-360p {
	width: 640px;
}

.jp-video-full {
	/* Rules for IE6 (full-screen) */
	width: 480px;
	height: 270px;
	/* Rules for IE7 (full-screen) - Otherwise the relative container causes other page items that are not position:static (default) to appear over the video/gui. */
	position: static !important;
	position: relative;
}

/* The z-index rule is defined in this manner to enable Popcorn plugins that add overlays to video area. EG. Subtitles. */
.jp-video-full div div {
	z-index: 1000;
}

.jp-video-full .jp-jplayer {
	top: 0;
	left: 0;
	position: fixed !important;
	position: relative;
	/* Rules for IE6 (full-screen) */
	overflow: hidden;
}

.jp-video-full .jp-gui {
	position: fixed !important;
	position: static;
	/* Rules for IE6 (full-screen) */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1001;
	/* 1 layer above the others. */
}

.jp-video-full .jp-interface {
	position: absolute !important;
	position: relative;
	/* Rules for IE6 (full-screen) */
	bottom: 0;
	left: 0;
}

.jp-interface {
	position: relative;
	background-color: #f6f6f6;
	background-image: -moz-linear-gradient(top, #fff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(50%, #f1f1f1), color-stop(51%, #e1e1e1), color-stop(100%, #f6f6f6));
	background-image: -webkit-linear-gradient(top, #fff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
	background-image: -o-linear-gradient(top, #fff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
	background-image: -ms-linear-gradient(top, #fff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
	background-image: linear-gradient(to bottom, #fff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6', GradientType=0);
	width: 100%;
	border: 1px solid #cbcbcb;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
}

.jp-audio .jp-interface {
	height: 24px;
}

.jp-audio-stream .jp-interface {
	height: 80px;
}

.jp-video .jp-interface {
	border-top: 1px solid #009be3;
}

/* @group CONTROLS */
.jp-controls-holder {
	clear: both;
	width: 440px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	top: -8px;
	/* This negative value depends on the size of the text in jp-currentTime and jp-duration */
}

.jp-interface .jp-controls {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.jp-audio .jp-controls {
	float: left;
}

.jp-audio-stream .jp-controls {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 142px;
}

.jp-video .jp-type-single .jp-controls {
	width: 78px;
	margin-left: 200px;
}

.jp-video .jp-type-playlist .jp-controls {
	width: 134px;
	margin-left: 172px;
}

.jp-video .jp-controls {
	float: left;
}

.jp-controls button {
	display: block;
	float: left;
	overflow: hidden;
	text-indent: -9999px;
	border: none;
	cursor: pointer;
}

.jp-play {
	width: 24px;
	height: 24px;
}

.jp-play {
	background: url("/_run/assets/6967776f/playpause-24-24-1.png") 0 0 no-repeat;
}

.jp-play:focus,
.jp-play:hover {
	background: url("/_run/assets/6967776f/playpause-24-24-1.png") 0 -24px no-repeat;
}

.jp-state-playing .jp-play {
	background: url("/_run/assets/6967776f/playpause-24-24-1.png") -24px 0 no-repeat;
}

.jp-state-playing .jp-play:focus,
.jp-state-playing .jp-play:hover {
	background: url("/_run/assets/6967776f/playpause-24-24-1.png") -24px -24px no-repeat;
}

.jp-stop, .jp-previous, .jp-next {
	width: 24px;
	height: 24px;
}

.jp-stop {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -83px no-repeat;
	margin-left: 10px;
}

.jp-stop:focus {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -29px -83px no-repeat;
}

.jp-previous {
	background: url("/_run/assets/6967776f/prevnext-24-24-1.png") 0 0 no-repeat;
}

.jp-previous:focus,
.jp-previous:hover {
	background: url("/_run/assets/6967776f/prevnext-24-24-1.png") 0 -24px no-repeat;
}

.jp-next {
	background: url("/_run/assets/6967776f/prevnext-24-24-1.png") -24px 0 no-repeat;
}

.jp-next:focus,
.jp-next:hover {
	background: url("/_run/assets/6967776f/prevnext-24-24-1.png") -24px -24px no-repeat;
}

/* @end */
/* @group progress bar */
.jp-progress {
	overflow: hidden;
}

.jp-audio .jp-progress {
	height: 24px;
	line-height: 19px;
	width: calc(100% - 318px);
	float: left;
}

.jp-audio .jp-type-single .jp-progress {
	left: 110px;
	width: 186px;
}

.jp-audio .jp-type-playlist .jp-progress {

}

.jp-video .jp-progress {
	top: 0;
	left: 0;
	width: 100%;
	height: 10px;
}

.jp-seek-bar {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -202px repeat-x;
	width: 0;
	height: 6px;
	cursor: pointer;
	vertical-align: middle;
	display: inline-block;
}

.jp-play-bar {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -218px repeat-x;
	width: 0;
	height: 100%;
}

/* The seeking class is added/removed inside jPlayer */
.jp-seeking-bg {
	background: url("/_run/assets/6967776f/jplayer.4otaku.seeking.gif");
}

/* @end */
/* @group volume controls */
.jp-state-no-volume .jp-volume-controls {
	display: none;
}

.jp-volume-controls {
	float: right;
	width: 98px;
	height: 100%;
	line-height: 20px;
}

.jp-audio-stream .jp-volume-controls {
	left: 70px;
}

.jp-video .jp-volume-controls {
	top: 12px;
	left: 50px;
}

.jp-volume-controls button {
	display: inline-block;
	text-indent: -9999px;
	border: none;
	cursor: pointer;
}

.jp-mute,
.jp-volume-max {
	width: 18px;
	height: 100%;
}

.jp-volume-max {
	left: 74px;
}

.jp-mute {
	background: url("/_run/assets/6967776f/volume-24-24-2.png") -24px 0 no-repeat;
}

.jp-mute:focus,
.jp-mute:hover {
	background: url("/_run/assets/6967776f/volume-24-24-2.png") -24px -24px no-repeat;
}

.jp-state-muted .jp-mute {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -60px -166px no-repeat;
}

.jp-state-muted .jp-mute:focus {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -79px -166px no-repeat;
}

.jp-volume-max {
	background: url("/_run/assets/6967776f/volume-24-24-2.png") 0 0 no-repeat;
}

.jp-volume-max:focus {
	background: url("/_run/assets/6967776f/volume-24-24-2.png") 0 -24px no-repeat;
}

.jp-volume-bar {
	overflow: hidden;
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -250px repeat-x;
	width: 46px;
	height: 5px;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
}

.jp-volume-bar-value {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -256px repeat-x;
	width: 0;
	height: 5px;
}

/* @end */
/* @group current time and duration */
.jp-audio .jp-time-holder {
	float: left;
	line-height: 24px;
	font-size: .64em;
	font-style: oblique;
	padding: 0 4px;
}

.jp-audio .jp-type-single .jp-time-holder {

}

.jp-audio .jp-type-playlist .jp-time-holder {

}

.jp-current-time,
.jp-duration {
	/*width: 60px;*/
}

.jp-current-time {
	cursor: default;
}

.jp-duration {
	display: inline;
	text-align: right;
	cursor: pointer;
}

.jp-video .jp-current-time {
	margin-left: 20px;
}

.jp-video .jp-duration {
	margin-right: 20px;
}

/* @end */
/* @group playlist */
.jp-details {
	font-weight: bold;
	text-align: center;
	cursor: default;
}

.jp-details,
.jp-playlist {
	position: relative;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	margin: 4px 0;
	background-color: #e1e1e1;
	border: 1px solid #cbcbcb;
	background-image: -ms-linear-gradient(top, #f6f6f6 0%, #e1e1e1 100%);
	background-image: -moz-linear-gradient(top, #f6f6f6 0%, #e1e1e1 100%);
	background-image: -o-linear-gradient(top, #f6f6f6 0%, #e1e1e1 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f6f6f6), color-stop(1, #e1e1e1));
	background-image: -webkit-linear-gradient(top, #f6f6f6 0%, #e1e1e1 100%);
	background-image: linear-gradient(to bottom, #f6f6f6 0%, #e1e1e1 100%);
}

.jp-type-single .jp-details,
.jp-type-playlist .jp-details {
	border-top: none;
}

.jp-details .jp-title {
	margin: 0;
	padding: 5px 20px;
	font-size: .72em;
	font-weight: bold;
}

.jp-playlist ul {
	list-style-type: none;
	margin: 0;
	padding: 0 15px;
	font-size: .72em;
}

.jp-playlist li {
	padding: 5px 0 4px 20px;
	border-bottom: 1px dotted #cbcbcb;
}

.jp-playlist li div {
	display: inline;
}

/* Note that the first-child (IE6) and last-child (IE6/7/8) selectors do not work on IE */
div.jp-type-playlist div.jp-playlist li:last-child {
	padding: 5px 0 5px 20px;
	border-bottom: none;
}

div.jp-type-playlist div.jp-playlist li.jp-playlist-current {
	list-style-type: square;
	list-style-position: inside;
	padding-left: 7px;
}

div.jp-type-playlist div.jp-playlist a {
	color: #333;
	text-decoration: none;
}

div.jp-type-playlist div.jp-playlist a:hover {
	color: #0d88c1;
}

div.jp-type-playlist div.jp-playlist a.jp-playlist-current {
	color: #0d88c1;
}

div.jp-type-playlist div.jp-playlist a.jp-playlist-item-remove {
	float: right;
	display: inline;
	text-align: right;
	margin-right: 10px;
	font-weight: bold;
	color: #666;
}

div.jp-type-playlist div.jp-playlist a.jp-playlist-item-remove:hover {
	color: #0d88c1;
}

div.jp-type-playlist div.jp-playlist span.jp-free-media {
	float: right;
	display: inline;
	text-align: right;
	margin-right: 10px;
}

div.jp-type-playlist div.jp-playlist span.jp-free-media a {
	color: #666;
}

div.jp-type-playlist div.jp-playlist span.jp-free-media a:hover {
	color: #0d88c1;
}

span.jp-artist {
	font-size: .8em;
	color: #666;
}

/* @end */
.jp-video-play {
	width: 100%;
	overflow: hidden;
	/* Important for nested negative margins to work in modern browsers */
	cursor: pointer;
	background-color: transparent;
	/* Makes IE9 work with the active area over the whole video area. IE6/7/8 only have the button as active area. */
}

.jp-video-270p .jp-video-play {
	margin-top: -270px;
	height: 270px;
}

.jp-video-360p .jp-video-play {
	margin-top: -360px;
	height: 360px;
}

.jp-video-full .jp-video-play {
	height: 100%;
}

.jp-video-play-icon {
	position: relative;
	display: block;
	width: 112px;
	height: 100px;
	margin-left: -56px;
	margin-top: -50px;
	left: 50%;
	top: 50%;
	background: url("/_run/assets/6967776f/jplayer.4otaku.video.play.png") 0 0 no-repeat;
	text-indent: -9999px;
	border: none;
	cursor: pointer;
}

.jp-video-play-icon:focus {
	background: url("/_run/assets/6967776f/jplayer.4otaku.video.play.png") 0 -100px no-repeat;
}

.jp-jplayer audio,
.jp-jplayer {
	width: 0;
	height: 0;
}

.jp-jplayer {
	background-color: transparent;
}

/* @group TOGGLES */
/* The audio toggles are nested inside jp-time-holder */
.jp-toggles {
	padding: 0;
	margin: 0 auto;
	overflow: hidden;
}

.jp-audio .jp-type-single .jp-toggles {
	width: 25px;
}

.jp-audio .jp-type-playlist .jp-toggles {
	margin: 0;
	float: left;
}

.jp-video .jp-toggles {
	position: absolute;
	right: 16px;
	margin: 0;
	margin-top: 10px;
	width: 100px;
}

.jp-toggles button {
	display: block;
	float: left;
	width: 24px;
	height: 24px;
	text-indent: -9999px;
	line-height: 100%;
	/* need this for IE6 */
	border: none;
	cursor: pointer;
}

.jp-full-screen {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") 0 -310px no-repeat;
	margin-left: 20px;
}

.jp-full-screen:focus {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -30px -310px no-repeat;
}

.jp-state-full-screen .jp-full-screen {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -60px -310px no-repeat;
}

.jp-state-full-screen .jp-full-screen:focus {
	background: url("/_run/assets/6967776f/jplayer.4otaku.jpg") -90px -310px no-repeat;
}

.jp-repeat {
	background: url("/_run/assets/6967776f/loop-24-24-2.png") 0 0 no-repeat;
}

.jp-repeat:focus,
.jp-repeat:hover {
	background: url("/_run/assets/6967776f/loop-24-24-2.png") 0 -24px no-repeat;
}

.jp-state-looped .jp-repeat {
	background: url("/_run/assets/6967776f/loop-24-24-2.png") -24px 0 no-repeat;
}

.jp-state-looped .jp-repeat:focus,
.jp-state-looped .jp-repeat:hover {
	background: url("/_run/assets/6967776f/loop-24-24-2.png") -24px -24px no-repeat;
}

.jp-shuffle {
	background: url("/_run/assets/6967776f/shufflerepeat-24-24-2.png") -24px 0 no-repeat;
}

.jp-shuffle:focus,
.jp-shuffle:hover {
	background: url("/_run/assets/6967776f/shufflerepeat-24-24-2.png") -24px 0 no-repeat;
}

.jp-state-shuffled .jp-shuffle {
	background: url("/_run/assets/6967776f/shufflerepeat-24-24-2.png") -24px -24px no-repeat;
}

.jp-state-shuffled .jp-shuffle:focus,
.jp-state-shuffled .jp-shuffle:hover {
	background: url("/_run/assets/6967776f/shufflerepeat-24-24-2.png") -24px -24px no-repeat;
}

/* @end */
/* @group NO SOLUTION error feedback */
.jp-no-solution {
	padding: 5px;
	font-size: .8em;
	background-color: #eee;
	border: 2px solid #009be3;
	color: #000;
	display: none;
}

.jp-no-solution a {
	color: #000;
}

.jp-no-solution span {
	font-size: 1em;
	display: block;
	text-align: center;
	font-weight: bold;
}

/* @end */

[id^=jp_container_] {
	display: none;
}
.label-nsfw,
.label-publish-index {
	text-transform: uppercase;
	font-size: 50%;
}

/* Картинки кастомных полей (обложка и т.п.) и абзацы полей — общие правила
   для ВСЕХ контент-типов (music-album, game, будущие). Скоуп «прямой ребёнок
   panel-body» отсекает картинки/абзацы текста топика (они внутри
   div.topic-text) — те живут по правилам темы (custom.dark.css) */
.topic > .panel-body > img[align="left"],
.topic > .panel-body > a > img[align="left"] {
	margin: 0 16px 6px 0;
}

.topic > .panel-body > img[align="right"],
.topic > .panel-body > a > img[align="right"] {
	margin: 0 0 6px 10px;
}

.topic > .panel-body > p {
	margin-bottom: 4px;
}
#topic-tags-help {
	padding: 0 0 10px 15px;
	color: #667388;
}

#topic-tags-help ul {
	list-style: none;
}

#topic-tags-help h5 + ul {
	display: none;
}

#topic-tags-help a {
	text-decoration: none;
	border-bottom: 1px dotted;
}

#topic-tags-help h5 {
	cursor: pointer;
	font-size: 0.9em;
	margin: 4px 0;
}
/*
//
//  Attachments plugin
//  (P) Rafrica.net Studio, 2010 - 2012
//  http://we.rafrica.net/
//
*/

div.FileUploadBox {
  background: #F7F8F9;
  border: 1px solid #EEE;
  font-family: Verdana;
  padding: 4px 5px;
  margin: 5px 0 15px;
}

div.FileUploadBox.SidebarAdditionalParams {
  margin: 0;
}


#att_file_upload_form span {
  margin: 0 0 0 10px;
}

#AttFileOperationInfoBox {
  border: 1px solid #999;
  color: #777;
  display: inline-block;
  font-size: 10px;
  text-shadow: 0 1px 1px #BBB;
  margin: 0 10px;
  background: #FFF url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAMCAMAAAB2iTwcAAADAFBMVEXl5eXp6en9/f3o6Oj09PTX19fq6urT09P19fXz8/Pe3t7W1tbf39/Hx8ft7e3g4ODu7u729vbm5ubr6+vZ2dnY2Njj4+Pn5+fw8PDLy8vs7Oy4uLi5ubm9vb38/Pzk5OTa2trV1dXU1NT+/v7///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPTfhxAAAACXBIWXMAAAsSAAALEgHS3X78AAAAPElEQVQImSXLQQoAIAgFUWnfJiKKCgrn/mdMbfVw+AqgqEArYIxhWMGj0j3elWNScyLgo86Jq+15kXjjAXn4COBB1iwwAAAAAElFTkSuQmCC) 5px center no-repeat;
  padding: 2px 5px 1px 20px;
}

#AttFileListBox {
  background: #FFF;
  border: 1px solid #EEE;
  margin: 5px 10px -15px;
  padding: 2px 7px;
}

#AttFileListBox div.FileLine {
  background: #F8F9FA;
  border: 1px solid #EEE;
  font-weight: bold;
  margin: 5px 0;
  padding: 2px 4px;
  box-shadow: 1px 1px 2px #F5F5F5;
}

div.FileUploadBox.SidebarAdditionalParams form#att_file_upload_form div#AttFileListBox div.FileLine {
  overflow: hidden;
}

div.FileUploadBox.SidebarAdditionalParams form#att_file_upload_form div#AttFileListBox div.FileLine a.ListedFile {
  display: inline-block;
  overflow: hidden;
  width: 70%;
}

#AttFileListBox div.FileLine:hover {
  border: 1px solid #E5E5E5;
  background: #F5F6F7;
}

#AttFileListBox div.FileLine a.ListedFile {
  outline: none;
}

#AttFileListBox div.FileLine img.SmallIcon {
  width: 16px;
  height: 16px;
  border: none;
  float: left;
  margin: 1px 10px 0 0;
  overflow: hidden;
  padding: 0;
}

#AttFileListBox div.FileLine div.DeleteFile,
div.block div.UnattachedFileList div.DeleteThisFile,
div.block div.UnattachedFileList div.AttachThisFileToNewTopic {
  background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgHS3X78AAADOUlEQVQ4jS2TTU9cVQCGn3PO/WBmHEEgwMAU0PJhJxWoDKCk7E0amyYaE2NiYoj9E036Q1oJ0Y1i4sqdceGikVZgQSmVRW1obQrDCJfL3JlhLufDxfT9AU/e5Hlf8WJtTUgpnW61RoGsF4ZPjbXSgbW0IwEBUklpdatVAhpeGO5ba4X4Xgiazg2PFwo/O8j9c3DwZSDEk5ZzSoMB8ECFQpgL566+OzDwI1B/fnj4RSjES/UZjI5PTq5du3FjYahU6mtWq/NxFG10BMGBEEJ5UsqM5xlnzEzx0qWV2Zs3Z/onJ4vpycliPYp+lylkUq1z5/U6L/f3TWlpqTwwOHi/kabTGGMwxjTTdLq7r+/+xOJi+fD1axMfH5NqnbuAjPpciP8OTk4e1KrVucLISPHfV6/M0NhYsRnHc3GS/Gmhr7u3d/Xy7Gz5OIqMM0btrq9vViqVr0MhdtUtEL6UlcrZ2UYSx+X+QqF4eHRk+oeHh5Lj42u+7386OjU1H8exEc6pZzs7m6dR9G1GysfCOSF+AAwoI4SpOTfd09OzMlYqzSaNhs1msxLnSNPU4px8vre3Va/VlrNCbHvOKQVGrLYBaFBaSlO39mpXZ+e9sYmJj09PT216cYEzRkZRtN5IktsZIZ54zikPjAK8vwAfyACZN+azxpBEEadHRwgpsc5RbzQ4B+rO0QSawAWgPmyPRAVgLEx3Z7Or47298/UostkgkD6IDint22E4nGi90LD2kYODFigNTpVB+O3VzfR2dHw31dVVtkliOpRS23G8Xj0/fzUchsMdQpieIBg61bp8Zu2GgAMDQs2163ww4Psr1zs7y36aGiWEenB2tpVovZw692tF64WJIBjKCmEKvl880rpctfahBxU1A1fe8/2fPsnnZzLOGQnqt1pt61jr5Rh2GnCkrX1U0Xqu5PtDOSnN5SAoRsYsnVj7h1eF5gjU8s5hQf1Sqz18rPXtF7Cz1/4R78P2iNbf2CS591U+/5EUAgtJFZqEwCCM3/H9rbu+/7QISyEo4C0geCMpF4IqwvW7vv/3Hd/fHISxsC2AEPDycMWDXATPACmg4aAFOAGBawPtOzCmIanBLmD/B6gfmVDdmy6RAAAAAElFTkSuQmCC) left center no-repeat;
  float: right;
  height: 16px;
  width: 16px;
  margin: 1px 0;
  opacity: 0.7;
}

#AttFileListBox div.FileLine div.DeleteFile:hover,
div.block div.UnattachedFileList div.DeleteThisFile:hover,
div.block div.UnattachedFileList div.AttachThisFileToNewTopic:hover {
  opacity: 1;
}

#att_file_upload_form input[type="file"] {
  margin: 0 0 0 10px;
}

#att_file_upload_form iframe#att_upload_frame {
  width: 0;
  height: 15px;
  border: none;
}

/* unattached files in sidebar */

div.block div.UnattachedFileList {
  padding: 2px 5px 3px;
}

div.block div.UnattachedFileList.secondLine {
  background: #FAFAFA;
}

div.block div.UnattachedFileList a.CurFileA {
  display: inline-block;
  overflow: hidden;
  width: 70%;
}

div.block div.UnattachedFileList div.AttachThisFileToNewTopic {
  background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQNJREFUeNpi/P//PwMlgImBQkCxASzInGdMWM1bDSI+MjA0nvv//0o0mpeJcoHU3Lkh3xgYuoBMA5K8ALSriUFbW+Lz3bsMkvHxnl8ZGGbj9QKyk/8CDWfU1haXTk623t3ff+3+o0ff/jAwMOI14CbQf0BbFZ0WLjT+9eIFw+c3bxi29/dff/Do0RGgdDrBWFgIwelb4+PPfnn9muHVxYsMLx89+gy0Np2RmGgEGbCIgeGnHxPT4t09PWeFREQYvjMwMP8Div/DYQAjckpkZGSUZ2JiCgDSxxb+/fvvBwPDzJ8QKROYmiy0aEQJA6jmbUDmbQaIrSaEophx6OcFig0ACDAABhNcXRU+ncoAAAAASUVORK5CYII=) left center no-repeat;
}

div.block div.UnattachedFileList div.DeleteThisFile,
div.block div.UnattachedFileList div.AttachThisFileToNewTopic {
  margin: 2px 0 0 10px;
}

/* sidebar file form place */

#Attachments_Sidebar_Place_Parent_ID {
  display: none;
}

/* below topics */

li.FilesInTopic {
  margin: 0 10px;
/*  font-size: 10px; */
  background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQNJREFUeNpi/P//PwMlgImBQkCxASzInGdMWM1bDSI+MjA0nvv//0o0mpeJcoHU3Lkh3xgYuoBMA5K8ALSriUFbW+Lz3bsMkvHxnl8ZGGbj9QKyk/8CDWfU1haXTk623t3ff+3+o0ff/jAwMOI14CbQf0BbFZ0WLjT+9eIFw+c3bxi29/dff/Do0RGgdDrBWFgIwelb4+PPfnn9muHVxYsMLx89+gy0Np2RmGgEGbCIgeGnHxPT4t09PWeFREQYvjMwMP8Div/DYQAjckpkZGSUZ2JiCgDSxxb+/fvvBwPDzJ8QKROYmiy0aEQJA6jmbUDmbQaIrSaEophx6OcFig0ACDAABhNcXRU+ncoAAAAASUVORK5CYII=) left center no-repeat;
  padding-left: 18px !important;
  float: left;
}

div.AttachmentsInTopic {
  color: #777;
/*  font-size: 10px; */
  background: #FAFAFA;
	padding: 6px 10px 2px;
	clear: both;
	border-top: 1px dotted #ddd;
	margin-top: 6px;
}

div.AttachmentsInTopicItem {
  margin-left: 20px;
}

div.AttachmentsInTopic a {
  outline: none;
  margin: 0 2px;
}
/* ==========================================================================
   4otaku — мобильный слой оформления (<= 767px)
   Подключается САМЫМ последним css через HookMain::AppendMobileSkinCss()
   (хуку render_init_done; из settings/config/assets.php нельзя — там он
   встал бы до плагинных css и проигрывал им): перекрывает скин 4otaku,
   bootstrap-сетку, jPlayer и стили плагинов.
   Ничего не удаляет и не двигает в разметке — только оформление.

   18.11.2026: порт концепта из F:\Downloads\neuroeditor\4otaku-mobile
   (4otaku-mobile.css + README + скриншоты до/после; автор тестировал на
   главной, топике 3618, тексте 3593, блоге games). Адаптации при переносе:
   - .navbar-content .navbar-user -> .navbar-content .navbar-right
     (кнопка «Создать» в ряду разделов лежит в ul.navbar-right, класса
     .navbar-user там нет);
   - фон шапки #2f6ea2 (концепт) -> #3d6ea2 — цвет .navbar-main светлой
     темы (после свапа палитр 23.11; в тёмной теме шапку перекрашивает
     mobile.dark.css, см. ниже);
   - удалены мёртвые правила: .user-rating-container/.user-rating,
     ul.footer-column, .similartopics-avatar (в разметке отсутствуют);
   - удалён дубль body.alto-user-role-guest .role-guest-hide
     (уже есть в assets/css/custom.css).

   24.11.2026: тёмная тема — при view.theme = dark поверх этого файла
   грузится themes/dark/css/mobile.dark.css (переопределение токенов --m-*
   + перезапись зашитых здесь светлых цветов; подключает его тот же
   AppendMobileSkinCss). Правишь зашитые цвета здесь — проверь, что они
   не остались и там.
   ========================================================================== */

@media (max-width: 767.98px) {

  /* ---------- 0. Токены и база ---------- */
  :root {
    --m-bg: #e9eef2;
    --m-surface: #ffffff;
    --m-surface-2: #f5f8fa;
    --m-line: #e3e9ee;
    --m-text: #222e3a;
    --m-muted: #6f7c8a;
    --m-accent: #2c4d76;
    --m-accent-2: #3d6ea2;
    --m-radius: 10px;
    --m-radius-sm: 8px;
    --m-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -20px rgba(16, 24, 40, .45);
    --m-gap: 10px;
    --m-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    background: var(--m-bg) !important;
    color: var(--m-text);
    font-family: var(--m-font);
  }

  /* длинные ссылки и слова не рвут карточку */
  a, p, li, span, div, td, th, h1, h2, h3, h4 {
    overflow-wrap: break-word;
  }

  /* компактнее вертикальный ритм контента */
  .content {
    margin: 12px 0 28px !important;
    padding: 0 10px !important;
    overflow: visible !important;
  }

  #content-container,
  #sidebar-container {
    width: 100% !important;
    padding: 0 !important;
  }

  /* ---------- 1. Шапка ---------- */
  /* панель НЕ прилипает — листается со страницей; на виду всегда только
     кнопка меню (fixed, контрастная) */
  .navbar.navbar-main {
    min-height: 56px;
    background: #3d6ea2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .10), 0 10px 24px -18px rgba(16, 24, 40, .8);
  }

  .navbar-main > .container {
    min-height: 56px;
    padding: 0 10px !important;
  }

  .navbar-main .navbar-header {
    min-height: 56px;
  }

  .navbar-main .site-info a.logo,
  .navbar-main .site-info a.logo.navbar-brand {
    height: 56px;
    max-height: 56px;
    overflow: hidden;
  }

  .navbar-toggle {
    position: fixed;
    top: 2px;
    right: 8px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    margin: 6px 0 !important;
    padding: 11px !important;
    border: 0 !important;
    border-radius: var(--m-radius-sm);
    background: #2c4d76 !important;
    box-shadow: 0 2px 10px rgba(16, 24, 40, .35);
  }

  .navbar-toggle:active,
  .navbar-toggle:focus {
    background: #365e90 !important;
  }

  .navbar-toggle .icon-bar {
    height: 2px;
    border-radius: 2px;
    /* перебить bootstrap: .navbar-default .navbar-toggle .icon-bar { #888 } */
    background: #fff !important;
  }

  /* выпадающее меню бургера: белая панель под кнопкой. position:fixed (а не
     absolute от шапки) — открывается под плавающей кнопкой на любой прокрутке */
  .navbar-main .navbar-collapse {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0 !important;
    padding: 8px 12px 12px !important;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 28px 48px -28px rgba(16, 24, 40, .55);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }

  .navbar-main .navbar-collapse .main.nav,
  .navbar-main .navbar-collapse .navbar-user {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-main .navbar-collapse .main.nav > li,
  .navbar-main .navbar-collapse .navbar-user > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .navbar-main .navbar-collapse .main.nav > li > a,
  .navbar-main .navbar-collapse .navbar-user > li > a {
    display: block;
    padding: 12px 4px !important;
    border-top: 1px solid var(--m-line);
    font-size: 15px;
    line-height: 24px;
    color: #1f3552;
    text-decoration: none;
  }

  .navbar-main .navbar-collapse .main.nav > li > a:hover,
  .navbar-main .navbar-collapse .main.nav > li > a:focus {
    background: var(--m-surface-2);
  }

  /* активный пункт: белый текст на синем (моё правило пунктов темнее
     темы перебивало её актив-цвета — получался тёмный текст на тёмном) */
  .navbar-main .navbar-collapse .main.nav > li.active > a,
  .navbar-main .navbar-collapse .main.nav > li.active > a:hover,
  .navbar-main .navbar-collapse .main.nav > li.active > a:focus {
    background: var(--m-accent);
    color: #fff;
  }

  .navbar-main .navbar-collapse .main.nav > li:first-child > a,
  .navbar-main .navbar-collapse .main.nav > li.search + li > a {
    border-top: 0;
  }

  /* скрытые пункты меню не должны занимать строку */
  .navbar-main .navbar-collapse li.hidden,
  .navbar-main .navbar-collapse li.menu-hidden-container:not(:has(.menu-hidden li)),
  .navbar-content li.hidden,
  .navbar-content li.menu-hidden-container:not(:has(.menu-hidden li)) {
    display: none !important;
  }

  .navbar-main .navbar-collapse .main.nav li.search {
    padding: 4px 0 10px;
  }

  .navbar-main .navbar-collapse .main.nav li.search .form-control {
    height: 44px;
    border: 1px solid var(--m-line);
    border-radius: 8px;
    background: var(--m-surface-2);
  }

  /* ---------- 2. Лента разделов (Интересные / Новые / TOP) ---------- */
  .navbar.navbar-content {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--m-line);
    margin-bottom: 10px !important;
    min-height: 0;
  }

  .navbar-content > .container {
    width: 100% !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  /* мягкий край подсказывает, что ряд можно листать. Раньше это была
     mask-image на контейнере — но маска отбрасывает отрисовку всего
     поддерева (включая position:fixed), и открытое выпадающее меню
     раздела становилось невидимым. Псевдоэлемент-градиент поверх ряда
     даёт тот же эффект, ничего не маскируя */
  .navbar-content > .container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94));
    pointer-events: none;
  }

  .navbar-content > .container > div,
  .navbar-content > .container > ul {
    flex: 0 0 auto;
  }

  .navbar-content > .container::-webkit-scrollbar {
    display: none;
  }

  .navbar-content .main.nav.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    margin: 0 !important;
    padding: 8px 0 !important;
    float: none;
  }

  .navbar-content .main.nav.navbar-nav > li {
    float: none !important;
    display: block;
    width: auto !important;
    margin: 0 !important;
  }

  /* активный раздел всегда первым в ряду — видно, где находишься */
  .navbar-content .main.nav.navbar-nav > li.active {
    order: -1;
  }

  .navbar-content .main.nav.navbar-nav > li > a {
    display: block;
    padding: 7px 14px !important;
    border: 1px solid var(--m-line);
    border-radius: 999px;
    background: #fff;
    color: var(--m-accent);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    opacity: 1;
    text-decoration: none;
  }

  .navbar-content .main.nav.navbar-nav > li.active > a,
  .navbar-content .main.nav.navbar-nav > li.open > a {
    background: var(--m-accent) !important;
    border-color: var(--m-accent) !important;
    color: #fff !important;
    opacity: 1;
  }

  /* наведение/тап по закрытой пилюле: темы красят ссылки ряда в красный
     (#c43a3a/#e05c5c) — держим фирменный синий. :not(.open) обязательно:
     после тапа :hover «залипает», и равной специфичности правило, идущее
     позже, перебило бы белый текст открытой пилюли */
  .navbar-content .main.nav.navbar-nav > li:not(.open) > a:hover,
  .navbar-content .main.nav.navbar-nav > li:not(.open) > a:focus {
    background: var(--m-surface-2);
    border-color: var(--m-line);
    color: var(--m-accent) !important;
    opacity: 1;
  }

  /* ---------- 2а. Выпадающее меню раздела (TOP / Обсуждаемые) ---------- */
  /* На десктопе меню — absolute-панель, на телефоне её режет скролл-ряд
     (overflow-x:auto/overflow-y:hidden). position:fixed выводит панель
     из-под клипа; top:auto оставляет её там, где она встала бы в потоке —
     сразу под строкой разделов */
  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: auto;
    z-index: 1030;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* пункты — крупные тапабельные строки вместо десктопных 3px 20px */
  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu > li {
    float: none;
    width: auto;
    margin: 0;
  }

  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu > li > a {
    display: block;
    margin: 0;
    padding: 12px 14px !important;
    border-radius: var(--m-radius-sm);
    background: none;
    color: var(--m-accent) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    opacity: 1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu > li > a:hover,
  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu > li > a:focus,
  .navbar-content .main.nav.navbar-nav > li.open > .dropdown-menu > li.active > a {
    background: var(--m-surface-2);
    color: var(--m-accent) !important;
    opacity: 1;
  }

  /* «Создать» — компактная кнопка в том же ряду (ul.navbar-right) */
  .navbar-content .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-content .navbar-right > li {
    float: none;
  }

  .navbar-content .navbar-right .btn {
    width: auto !important;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 20px;
    background: #fff;
    color: var(--m-accent);
    border: 1px solid var(--m-line);
    box-shadow: none;
    white-space: nowrap;
  }

  /* ---------- 3. Карточка публикации ---------- */
  .panel,
  .panel.topic {
    border: 0 !important;
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
    margin-bottom: var(--m-gap) !important;
    overflow: visible;
  }

  /* нижние углы карточки скругляем у подвала — иначе он вылезает за радиус */
  .content .topic .topic-footer,
  .topic-footer {
    border-radius: 0 0 var(--m-radius) var(--m-radius);
  }

  .panel > .panel-body,
  .content .topic > .panel-body {
    padding: 14px 14px 4px !important;
  }

  /* ---------- 4. Заголовок и мета ---------- */
  .topic-title,
  .content .topic .topic-title {
    margin: 0 0 8px !important;
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.28;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #1d3550;
    text-wrap: balance;
  }
  .topic-title a {
    color: inherit;
    text-decoration: none;
  }

  .topic-info,
  .content .topic .topic-info {
    margin: 0 0 12px !important;
  }

  .topic-info ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    height: auto !important;
    margin: 0;
    padding: 0;
  }

  .topic-info ul li,
  .topic-info ul li.topic-user,
  .topic-info ul li.topic-blog,
  .topic-info ul li.topic-date-block {
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 13px;
    line-height: 20px;
  }

  .topic-info ul li:before,
  .topic-info ul li + li:before {
    content: none !important;
  }

  .topic-info ul li.topic-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 !important;
  }

  .topic-info ul li.topic-user a,
  .topic-info ul li.topic-blog a {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--m-accent-2);
    text-decoration: none;
  }

  .topic-info ul li.topic-date-block {
    font-size: 12px;
    color: var(--m-muted);
    margin-right: auto !important;
  }

  .topic-info ul li.topic-date-block .topic-date,
  .topic-info ul li.topic-date-block .topic-time {
    font-size: 12px !important;
    color: var(--m-muted) !important;
    white-space: nowrap;
  }

  .topic-info .label,
  .topic-info .badge {
    /* легаси темы: .topic-info ul li * получает height:32px (theme.dark.css) —
       у пилюли-лейбла фон растягивается на всю высоту строки */
    height: auto !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.5 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: none;
  }

  /* ---------- 5. Обложка ---------- */
  /* на десктопе это правая плашка 300px, на телефоне — картинка по центру.
     a.unfoldable обложки — прямой ребёнок .panel-body
     (field.custom.single-image-uploader-show.tpl).
     max-width НЕ ограничиваем: клик разворачивает картинку до _full
     (тоггл src в theme.js), кламп ломал разворот */
  .topic > .panel-body > a.unfoldable {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 2px auto 14px !important;
    text-align: center;
  }

  .topic > .panel-body > a.unfoldable img,
  .topic .unfoldable img[align="right"],
  .topic .unfoldable img[align="left"] {
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 10px;
    box-shadow: 0 15px 35px -25px rgba(16, 24, 40, .7);
    cursor: zoom-in;
  }

  /* ---------- 6. Поля, плеер, спойлеры, скачивание ---------- */
  .topic > .panel-body > p {
    margin: 0 0 3px !important;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--m-text);
  }

  .topic > .panel-body > p strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--m-muted);
  }

  .topic > .panel-body > p a {
    overflow-wrap: anywhere;
  }

  /* аудиоплеер: интерфейс — флекс (легаси-флоаты скина на узком экране
     сплющивают прогресс до 13px, а плейлист — до 89px) */
  .jp-audio {
    margin: 8px 0 10px !important;
  }

  /* плеер не скругляем */
  .jp-audio .jp-interface {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px !important;
    padding: 0 6px;
    border-radius: 0;
  }

  /* из транспортных кнопок оставляем только «плей» */
  .jp-audio .jp-previous,
  .jp-audio .jp-next,
  .jp-audio .jp-stop,
  .jp-audio .jp-repeat,
  .jp-audio .jp-shuffle {
    display: none !important;
  }

  .jp-audio .jp-controls,
  .jp-audio .jp-progress,
  .jp-audio .jp-time-holder,
  .jp-audio .jp-volume-controls {
    float: none !important;
  }

  .jp-audio .jp-progress {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 60px;
  }

  .jp-audio .jp-time-holder {
    flex: 0 0 auto;
    width: auto !important;
  }

  /* плейлист — во всю ширину под контролами */
  .jp-playlist {
    clear: both !important;
    float: none !important;
    width: auto !important;
    max-height: 172px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 4px 0 0 !important;
  }

  .jp-playlist ul {
    margin: 0;
    padding: 0 8px !important;
  }

  /* строка трека: маркер текущего трека + название в ОДНОЙ линии.
     Внимание: скин (jplayer.4otaku.css, грузится позже) делает div
     инлайном — если делать div блоком, блок-якорь рвёт строку и маркер
     улетает на свою строку; поэтому всё инлайн, а имя трека —
     inline-block с эллипсисом */
  .jp-playlist li {
    padding: 6px 8px !important;
    /* маркер «▪» с list-style-position:inside съедает начало строки —
       inline-block имени трека не влезает рядом и переносится; текущий
       трек и так выделен цветом скина, здесь ещё и жирным */
    list-style: none !important;
  }

  .jp-playlist li.jp-playlist-current .jp-playlist-item {
    font-weight: 700;
  }

  .jp-playlist li div {
    display: inline !important;
    padding: 0 !important;
    /* против .topic-text :where(...) { font-size: inherit !important } */
    font-size: 12.5px !important;
    line-height: 1.35;
  }

  .jp-playlist li .jp-playlist-item {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    font-size: 12.5px !important;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  /* «(mp3)» в строках плеера дублирует поле «Формат» — на телефоне убираем
     (класс генерирует jplayer.playlist.js, freeGroupClass) */
  .jp-playlist .jp-free-media {
    display: none !important;
  }

  /* спойлер «Трек-лист» / «XFD»
     (betterspoilers.css грузится после mobile.css — ключевые свойства с !important) */
  .betterspoiler {
    margin: 8px 0 !important;
    border: 1px solid var(--m-line) !important;
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
    padding: 0 !important;
    overflow: hidden;
  }

  .betterspoiler > .btrsplr-box {
    padding: 0 !important;
  }

  /* тоггл спойлера = невидимый чекбокс-оверлей плагина (20px поверх триггера);
     триггер стал 44px — растягиваем оверлей на всю строку, иначе тап по её
     нижней части не переключает спойлер */
  .betterspoiler > input[type="checkbox"] {
    height: 44px !important;
    margin: 0 0 -44px !important;
  }

  .btrsplr-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--m-accent);
    background-image: none !important;
  }

  .btrsplr-trigger:after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex: 0 0 auto;
  }

  .betterspoiler > input:checked + .btrsplr-box .btrsplr-trigger:after {
    transform: rotate(-135deg);
  }

  .btrsplr-text {
    padding: 0 12px 12px !important;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  /* «Скачать» */
  .multiple-file-upload-block {
    margin: 10px 0 !important;
    padding: 12px !important;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface-2);
  }

  .multiple-file-upload-block > strong {
    display: inline;
    margin-right: 2px;
    /* !important против собственных правил .topic-text strong (секция 7) */
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--m-muted) !important;
  }

  .multiple-file-upload-block ul {
    /* легаси темы даёт ul 25px слева — прибиваем к краю карточки */
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .multiple-file-upload-block li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 0 !important;
    border-top: 1px solid var(--m-line);
    font-size: 13px;
    line-height: 1.4;
  }

  .multiple-file-upload-block li:first-child {
    border-top: 0;
  }

  .multiple-file-upload-block li a {
    color: var(--m-accent-2);
    font-weight: 500;
    overflow-wrap: anywhere;
  }

  .multiple-file-upload-block li .pull-right {
    float: none !important;
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--m-muted);
    white-space: nowrap;
  }

  /* ---------- 7. Текст публикации ---------- */
  .topic-text,
  .content .topic .topic-text,
  .comment-text {
    margin: 4px 0 10px !important;
    font-family: var(--m-font) !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    color: var(--m-text);
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* скин ставит 13px всем потомкам — возвращаем наследование */
  .topic-text :where(p, li, span, b, strong, em, i, a, div, blockquote),
  .comment-text :where(p, li, span, b, strong, em, i, a, div, blockquote) {
    font-size: inherit !important;
    line-height: inherit;
  }

  .topic-text p,
  .comment-text p {
    margin: 0 0 .75em;
  }

  .topic-text b,
  .topic-text strong,
  .comment-text b,
  .comment-text strong {
    font-weight: 600;
    color: var(--m-text);
  }

  .topic-text a,
  .comment-text a {
    color: var(--m-accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
  }

  .topic-text ul,
  .topic-text ol {
    margin: 0 0 .9em;
    padding-left: 1.15em;
  }

  .topic-text li,
  .content .topic .topic-text li:where(:not(.jp-audio li)) {
    margin: .2em 0;
    line-height: 1.55 !important;
  }

  .topic-text img,
  .topic-text canvas,
  .topic-text iframe,
  .topic-text video {
    max-width: 100% !important;
    height: auto;
    border-radius: var(--m-radius-sm);
  }

  .topic-text img {
    max-height: 70vh;
    object-fit: contain;
    margin: 10px auto;
  }

  .topic-text iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
  }

  .topic-text blockquote {
    margin: 1em 0;
    padding: 10px 14px;
    border-left: 3px solid var(--m-line);
    border-radius: 0 var(--m-radius-sm) var(--m-radius-sm) 0;
    background: var(--m-surface-2);
    color: #3b4753;
  }

  .topic-text pre,
  .topic-text code {
    font-size: 13px;
    border-radius: 6px;
  }

  .topic-text pre {
    padding: 12px;
    overflow-x: auto;
  }

  /* таблицы из старых постов — горизонтальный скролл вместо разъезда */
  .topic-text table,
  .comment-text table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
  }

  .topic-text table td,
  .topic-text table th {
    padding: 6px 8px;
    font-size: 13px;
  }

  /* ---------- 8. Теги и подвал карточки ---------- */
  .tags_and_share {
    margin: 0 -14px !important;
    padding: 0 14px !important;
  }

  .topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .topic-tags li {
    display: block;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .topic-tags li a,
  .tags_and_share .topic-tags a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #45566a;
    font-size: 12px !important;
    line-height: 16px !important;
    text-decoration: none !important;
  }

  .content .topic .topic-footer,
  .topic-footer {
    background: #fff !important;
    border-top: 1px solid var(--m-line);
    padding: 0 !important;
    /* тема держит футер 40px (line-height:40px) — при переносе на 2 строки
       вторая строка обрезалась */
    height: auto !important;
  }

  .content .topic .topic-footer ul {
    display: flex;
    align-items: center;
    height: auto !important;
    padding: 4px 10px !important;
  }

  /* если пункты не влезают в строку — переносим на следующую, а не сплющиваем
     li (flex-shrink сжимает их до переноса иконок внутри, футер «съезжает») */
  .content .topic .topic-footer ul,
  .content .panel .panel-footer ul {
    flex-wrap: wrap;
  }

  .content .topic .topic-footer ul li,
  .content .panel .panel-footer ul li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .content .topic .topic-footer ul li,
  .content .panel .panel-footer ul li {
    padding: 8px 4px !important;
    margin-right: 4px !important;
    line-height: 20px !important;
  }

  .content .topic .topic-footer ul li a,
  .content .topic .topic-footer ul li span {
    font-size: 13px !important;
    color: #4c5b6b;
  }

  .content .topic .topic-footer ul li.topic-controls {
    margin-left: auto !important;
    padding-right: 0 !important;
  }

  /* ---------- 8b. Контролы футера под кнопкой «⋯» (тогглит theme.js) ---------- */
  .topic-footer .topic-controls {
    position: relative;
  }

  .topic-footer .topic-controls .m-controls-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    margin: 0 -2px;
    padding: 0 8px;
    color: #4c5b6b;
    font-size: 15px;
    text-decoration: none;
  }

  .topic-footer .topic-controls .m-controls-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    display: none;
    min-width: 170px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
  }

  .topic-footer .topic-controls.m-open .m-controls-popover {
    display: block;
  }

  /* пункты поповера: ссылки и форма одобрения — одинаковые строки;
     перебиваем легаси-разделители .topic-controls a:not(:last-child) */
  .topic-footer .topic-controls .m-controls-popover a,
  .topic-footer .topic-controls .m-controls-popover form {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 6px;
    font-size: 14px !important;
    line-height: 20px !important;
    color: var(--m-accent-2) !important;
    text-decoration: none;
    white-space: nowrap;
  }

  .topic-footer .topic-controls .m-controls-popover a:active,
  .topic-footer .topic-controls .m-controls-popover form:active {
    background: var(--m-surface-2);
  }

  /* ---------- 9. Комментарии ---------- */
  /* гостю вместо пустого блока показываем аккуратную плашку */
  #comments {
    color: var(--m-muted);
    font-size: 13px;
    line-height: 1.5;
  }

  #comments .comment-wrapper:empty {
    display: none;
  }

  #comments:not(:has(.comment)) {
    padding: 14px;
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
  }

  .panel.comment {
    border-radius: var(--m-radius);
  }

  .panel.comment > .panel-body {
    padding: 14px !important;
  }

  .panel.comment .comment-content .comment-text {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  .panel.comment .comment-content .comment-tools ul li,
  .panel.comment .comment-content .comment-tools ul li a {
    font-size: 12.5px;
  }

  .panel.comment .comment-content .comment-tools ul li.comment-user a {
    font-size: 14px;
    margin-left: 0;
  }

  .panel.comment .comment-content .comment-tools ul li.comment-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  /* на телефоне глубокие уровни не должны сужать текст до полоски */
  .comment-level-2, .wrapper-level-2 .comment-reply { margin-left: 12px !important; }
  .comment-level-3, .wrapper-level-3 .comment-reply { margin-left: 12px !important; }
  .comment-level-4, .wrapper-level-4 .comment-reply { margin-left: 12px !important; }
  .comment-level-5, .comment-level-6, .comment-level-7,
  .wrapper-level-5 .comment-reply, .wrapper-level-6 .comment-reply, .wrapper-level-7 .comment-reply {
    margin-left: 0 !important;
  }

  /* ---------- 10. Сайдбар ---------- */
  .sidebar h4 {
    padding-bottom: 10px;
    font-size: 16px;
  }

  .sidebar > .panel > .panel-body,
  .sidebar .panel-body {
    padding: 14px 14px 16px !important;
  }

  /* аватар блога раньше растягивался на пол-экрана */
  .widget-blog-about .panel-content > img,
  .widget-blog-about img {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
  }

  .widget-blog-about .panel-content {
    text-align: center;
    min-height: 0 !important;
  }

  /* поиск в сайдбаре — отдельной карточкой, а не голой строкой на фоне */
  #sidebar-container > form.form {
    margin: 0 0 var(--m-gap) !important;
    padding: 8px !important;
    border-radius: var(--m-radius);
    background: var(--m-surface);
    box-shadow: var(--m-shadow);
  }

  #sidebar-container > form.form .form-control {
    height: 44px;
    border: 1px solid var(--m-line) !important;
    border-radius: 8px 0 0 8px !important;
  }

  #sidebar-container > form.form .input-group-btn .btn,
  #sidebar-container > form.form .btn {
    height: 44px;
    border-radius: 0 8px 8px 0 !important;
  }

  /* похожие статьи: одна колонка, миниатюра 64px, две строки заголовка */
  .simtopics-content ul {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .simtopics-content li {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    float: none !important;
    width: 100% !important;
    padding: 10px 0 !important;
    border-top: 1px solid var(--m-line);
  }

  .simtopics-content li:first-child {
    border-top: 0;
    padding-top: 0 !important;
  }

  .simtopics-topic-preview {
    grid-row: 1 / span 2;
    display: block !important;
  }

  .simtopics-topic-preview img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .simtopics-topic-title {
    grid-column: 2;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    color: var(--m-accent-2);
    text-decoration: none;
  }

  /* у пунктов с превью — отступ заголовка от миниатюры
     (на десктопе остаётся 60px из similartopics.css плагина; этот файл
     подключается после плагинных css — см. HookMain::AppendMobileSkinCss) */
  .simtopics-preview-on .simtopics-topic-title {
    margin-left: 10px;
  }

  /* если у похожей статьи нет миниатюры — заголовок на всю ширину */
  .simtopics-content li:not(:has(.simtopics-topic-preview img)) {
    grid-template-columns: 1fr;
  }

  .simtopics-content li:not(:has(.simtopics-topic-preview img)) .simtopics-topic-title {
    grid-column: 1;
  }

  /* intro-блок: класс с опечаткой «simitopics-» — так он реально называется
     в шаблоне и CSS плагина similartopics */
  .simitopics-topic-intro {
    display: none !important;
  }

  /* плавающий правый тулбар перекрывает карточки (на ≤767px он и так пуст —
     theme.dark.css прячет всех детей) */
  .toolbar,
  .toolbar-container {
    display: none !important;
  }

  /* лента «Прямой эфир» */
  .feed-comment,
  .feed-topic {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .feed-comment .feed-comment-text,
  .feed-topic .feed-topic-text {
    font-size: 13px;
    line-height: 1.45;
  }

  /* облако тегов — пилюли */
  .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .tag-cloud li {
    display: block !important;
    line-height: 1 !important;
  }

  .tag-cloud li a {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef2f6;
    text-decoration: none;
  }

  .tag-cloud li a span[class^="tag-size-"] {
    font-size: 12.5px !important;
    color: #45566a !important;
  }

  /* ---------- 10b. Страница блога ---------- */
  .panel.user-info .user-logo {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
    object-fit: cover;
  }

  .panel.user-info .user-name {
    margin-left: 80px !important;
  }

  .panel.user-info .user-name .user-login-block {
    border-bottom: 0;
    margin-bottom: 2px;
    line-height: 26px;
  }

  .panel.user-info .user-login {
    font-size: 20px !important;
    line-height: 26px !important;
    font-weight: 600;
  }

  .panel.user-info .user-full-name {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .panel.user-info .panel-footer {
    border-radius: 0 0 var(--m-radius) var(--m-radius);
  }

  .panel.user-info .panel-footer ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .panel.user-info .panel-footer li {
    margin: 0 !important;
    line-height: 24px !important;
  }

  .panel.user-info .panel-footer li.pull-right {
    margin-left: auto !important;
  }

  /* фильтры внутри блога — тот же ряд пилюль, что и в шапке */
  .blog-submenu {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 10px !important;
    padding: 0 0 2px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .blog-submenu::-webkit-scrollbar {
    display: none;
  }

  .blog-submenu > * {
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
  }

  .blog-submenu .btn {
    padding: 7px 12px !important;
    border: 1px solid var(--m-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--m-accent) !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 20px !important;
    box-shadow: none !important;
    white-space: nowrap;
  }

  /* ---------- 11. Подвал ---------- */
  /* подвал виджета абсолютный — оставляем ему место, иначе он режет список */
  .sidebar .panel:has(> .panel-footer) > .panel-body {
    padding-bottom: 52px !important;
  }

  .sidebar .panel-footer {
    border-radius: 0 0 var(--m-radius) var(--m-radius);
  }

  .footer-container {
    padding: 20px 0 !important;
  }

  .footer-container,
  .footer-container .footer,
  .footer-container .footer a {
    color: #e8f0f7;
  }

  .footer-container .footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-container .footer {
    font-size: 13px;
    line-height: 1.9;
  }

  .footer-container .footer .mascot,
  .footer-container .footer .mascot img {
    max-width: 120px;
    opacity: .9;
  }

  /* ---------- 11b. Постраничная навигация ---------- */
  /* легаси: li inline-block с маргинами — на узком экране ряды ломаются
     как попало, стрелки остаются сиротами */
  .paginator ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .paginator ul li {
    display: block !important;
    float: none !important;
    margin: 0 !important;
  }

  .paginator ul li a,
  .paginator ul li span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid var(--m-line);
    border-radius: var(--m-radius-sm);
    background: var(--m-surface);
    font-size: 14px !important;
    color: var(--m-accent) !important;
    text-decoration: none;
  }

  .paginator ul li.active span {
    background: var(--m-accent);
    border-color: var(--m-accent);
    color: #fff !important;
    font-weight: 600;
  }

  .paginator ul li.disabled span {
    opacity: .45;
  }

  /* ---------- 12. Формы и модальные окна ---------- */
  /* iOS не зумит страницу, если в поле 16px */
  .form-control,
  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 42px;
    border-radius: 8px;
  }

  .btn {
    min-height: 40px;
    border-radius: 8px;
  }

  .modal .modal-dialog,
  .modal.modal-write .modal-dialog {
    width: auto !important;
    margin: 12px;
  }

  /* ---------- 13. Узкие телефоны ---------- */
  @media (max-width: 380px) {
    .topic-text {
      font-size: 14.5px !important;
    }

    .simtopics-content ul {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- 14. Доступность ---------- */
  @media (prefers-reduced-motion: reduce) {
    .btrsplr-trigger:after {
      transition: none;
    }
  }
}
/* ==========================================================================
   4otaku — тёмная перезапись мобильного слоя (<= 767px)
   Грузится СРАЗУ ПОСЛЕ assets/css/mobile.css: HookMain::AppendMobileSkinCss()
   досоединяет themes/<theme>/css/mobile.<theme>.css, когда активная тема его
   имеет. Поэтому селекторы повторяют исходник 1-в-1 — файл позже в бандле
   и выигрывает порядком; где у mobile.css !important, здесь тоже !important.
   Сам файл = маркер темы: подключается только при view.theme = dark, DOM-
   класса темы не требуется.

   Палитра — theme.dark.css (графит): фон #14171a, поверхности #1e2226 /
   #262b30, линии #3a4148, текст #c9d1d9, ссылки #4d8fce, шапка #1a2230.

   Переопределение токенов --m-* перекрашивает ~90% правил mobile.css
   автоматически (все потребители var() наследуют новое значение); ниже —
   только перезапись мест с жёстко зашитыми светлыми цветами (24.11.2026).
   ========================================================================== */

@media (max-width: 767.98px) {

  /* ---------- 0. Токены (перекрывают светлые из mobile.css) ---------- */
  :root {
    color-scheme: dark;
    --m-bg: #14171a;
    --m-surface: #1e2226;
    --m-surface-2: #262b30;
    --m-line: #3a4148;
    --m-text: #c9d1d9;
    --m-muted: #8a949e;
    --m-accent: #4d8fce;
    --m-accent-2: #4d8fce;
    --m-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -20px rgba(0, 0, 0, .75);
  }

  /* ---------- 1. Шапка: графит вместо светлого navy ---------- */
  .navbar.navbar-main {
    background: #1a2230;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 10px 24px -18px rgba(0, 0, 0, .8);
  }

  /* выпадающее меню бургера */
  .navbar-main .navbar-collapse {
    background: #1e2226;
  }

  .navbar-main .navbar-collapse .main.nav > li > a,
  .navbar-main .navbar-collapse .navbar-user > li > a {
    color: #c9d1d9;
  }

  /* ---------- 2. Лента разделов (Интересные / Новые / TOP) ---------- */
  .navbar.navbar-content {
    background: rgba(20, 23, 26, .94);
  }

  .navbar-content > .container::after {
    background: linear-gradient(90deg, rgba(20, 23, 26, 0), rgba(20, 23, 26, .94));
  }

  .navbar-content .main.nav.navbar-nav > li > a {
    background: var(--m-surface);
  }

  /* кнопка «Создать» */
  .navbar-content .navbar-right .btn {
    background: var(--m-surface);
  }

  /* ---------- 4. Заголовок публикации ---------- */
  .topic-title,
  .content .topic .topic-title {
    color: #d6dee6;
  }

  /* ---------- 7. Цитата ---------- */
  .topic-text blockquote {
    color: #a8b4bd;
  }

  /* ---------- 8. Теги и подвал карточки ---------- */
  .topic-tags li a,
  .tags_and_share .topic-tags a {
    background: #262b30;
    color: #8a949e;
  }

  .content .topic .topic-footer,
  .topic-footer {
    background: #1e2226 !important;
  }

  .content .topic .topic-footer ul li a,
  .content .topic .topic-footer ul li span {
    color: #8a949e;
  }

  .topic-footer .topic-controls .m-controls-toggle {
    color: #8a949e;
  }

  /* ---------- 10. Облако тегов ---------- */
  .tag-cloud li a {
    background: #262b30;
  }

  .tag-cloud li a span[class^="tag-size-"] {
    color: #8a949e !important;
  }

  /* ---------- 10b. Блог-подменю ---------- */
  .blog-submenu .btn {
    background: #1e2226 !important;
  }
}
