/* silvengame — мобильная вёрстка (≤820 px). Сгенерировано make_theme.py. */
html, body { overflow-x: hidden; }
body { font-size: 14px; background: #e8e7e6; -webkit-text-size-adjust: 100%; }
#wrapper { width: auto; margin: 0; }
img { max-width: 100%; height: auto; }
#content img { padding-right: 0; }

/* шапка: верхнее меню */
#header { padding: 0; }
#header_h, .header_h, .header_h .header_h, .header_h .header_h .header_h { height: auto; margin: 0; padding: 0; background: #d7dcdf; }
#header_h { border-bottom: 1px solid #b9c0c4; }
.header_h ul { display: flex; flex-wrap: wrap; justify-content: center; height: auto; padding: 4px 0; overflow: visible; }
.header_h ul li { float: none; height: auto; line-height: 34px; padding: 0 10px; background: none; }
.header_h ul li a span { background: none; padding: 0; }
.header_h ul li a:hover { padding: 0; background: none; }
.header_h ul li .menu_end { display: none; }
/* шапка: логотип и поиск */
#header_c, .header_c, .header_c .header_c, .header_c .header_c .header_c { height: auto; background: #1e1e1e; }
.header_c_l, .header_c_r { float: none; width: auto; height: auto; background: none; }
.header_c_l_h { height: auto; overflow: visible; display: flex; align-items: center; padding: 8px 10px; }
.header_logo { float: none; flex: 1; min-width: 0; }
.header_logo a img { float: none; display: block; margin: 0; width: 100%; max-width: 386px; height: auto; aspect-ratio: 386 / 91; background-size: contain; }
.header_social { float: none; flex: none; width: 34px; height: auto; margin: 0 0 0 8px; padding: 4px 2px; background: #fff; border-radius: 6px; }
#social_btn { padding: 0; }
#social_btn li { margin: 0; }
.header_c_l_b, .header_banner, #header_b { display: none; }
.header_search { width: auto; height: auto; margin: 0; padding: 0 10px 10px; background: none; }
.search_block { width: auto; padding: 0; }
.search_block form { display: flex; align-items: center; gap: 8px; }
.search_btn { float: none; flex: none; }
.sbtn { margin: 0; }
.search_bg { float: none; flex: 1; min-width: 0; width: auto; height: 32px; background: #3b3b3b; border-radius: 16px; }
.sfield { width: 100%; box-sizing: border-box; height: 32px; padding: 0 13px; font-size: 16px; }

/* колонки → столбик: лента, «Сейчас качают», теги */
#content { width: auto; margin: 0; }
.content_bg { display: flex; flex-direction: column; padding: 8px; background: none; }
#side_center { order: 1; padding: 0; overflow: visible; }
#side_right { order: 2; float: none; width: auto; padding: 10px 0 0; }
#side_left { order: 3; float: none; width: auto; margin: 0; }
.block_l, .block_r, .block_navi { width: auto; margin: 0 0 10px; }
.block_l_h, .block_r_h { height: auto; background: #d7dcdf; border-radius: 8px 8px 0 0; }
.block_l_h div, .block_r_h div { padding: 9px 14px; }
.block_l_c, .block_r_c { background: #f3f4f5; padding: 8px 10px; }
.block_l_b { display: none; }
/* «Сейчас качают» — сетка карточек */
.block_f { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.custom-3 { width: auto; height: auto; margin: 0; }
.custom-3 h2, .custom-title3 { width: auto; height: auto; max-height: 45px; }

/* карточка в ленте и полная */
.story { margin: 0 0 18px; }
.story_h { height: auto; padding: 0 5px 6px; }
.story_h_t { height: auto; padding: 10px 6px 0; }
.story_h_t .story_title { float: none; width: auto; height: auto; overflow: visible; font-size: 15px; line-height: 1.3; }
.story_h_inf { height: auto; padding: 4px 6px 0; }
.story_c { padding: 0; }
.story_text, .story_text2 { overflow-wrap: break-word; word-break: break-word; }
.story_text .poster, .story_text2 .poster { float: none; text-align: center; }
.story_text img, .story_text2 img { float: none !important; display: block; margin: 0 auto 8px; }
.story_text2 table { width: auto !important; max-width: 100%; }
.story_text2 td, .story_text2 th { word-break: break-word; }
.story-short_b, .story-short_b2, .story_b2 { height: auto; overflow: hidden; }
.story-short_b_l, .story_b_l { float: none; display: flex; flex-wrap: wrap; align-items: center; }
.story_category { float: none; height: auto; line-height: 20px; padding: 6px 8px; margin: 0; background: none; }
.full_link, .back_link { margin: 4px 6px 8px 0; }
.text_spoiler { text-align: left; }

/* похожие, навигация, статические, комментарии */
.related_list { padding: 12px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.related1 { float: none; left: 0; width: auto; height: auto; }
.related1 img { width: 100%; height: auto; aspect-ratio: 130 / 190; object-fit: cover; }
.reltitle1 { width: auto; }
.navigation { margin: 0 0 12px; height: auto; }
.navi_pages { float: none; height: auto; display: flex; flex-wrap: wrap; gap: 6px; line-height: 30px; }
.navigation a, .navigation span { padding: 6px 10px; }
.navi_btn { display: none; }
.static { width: auto; }
.static_h { height: auto; }
.static_h h6 { padding: 12px 14px; }
.static_c { overflow-wrap: break-word; }
.comment_l { width: auto; float: none; }

/* подвал */
#footer { height: auto; padding: 10px; background: #2a2a2a; color: #ddd; overflow: hidden; }
#footer_l, #footer_r { float: none; width: auto; padding: 6px 0; text-align: center; }
#footer_r .to_top a img, #footer_r .dcorearts a img { float: none; display: inline-block; }

/* меню рубрик под кнопкой (MOBILE_JS переносит .block_navi в .m-navpanel) */
.m-burger { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 12px 14px;
  border: 0; background: #2b2b2b; color: #fff; font: bold 15px/1.2 Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.m-burger i { display: inline-block; width: 20px; height: 2px; background: #fff; position: relative; }
.m-burger i:before, .m-burger i:after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.m-burger i:before { top: -6px; }
.m-burger i:after { top: 6px; }
body.m-nav-open .m-burger i { background: transparent; }
body.m-nav-open .m-burger i:before { top: 0; transform: rotate(45deg); }
body.m-nav-open .m-burger i:after { top: 0; transform: rotate(-45deg); }
.m-navpanel { display: none; background: #1e1e1e; padding: 8px; }
body.m-nav-open .m-navpanel { display: block; }
.m-navpanel .block_navi { margin: 0; }
.m-navpanel .block_navi_h, .m-navpanel .block_navi_b { display: none; }
.m-navpanel .block_navi_c { background: none; padding: 0; }
.m-navpanel .navi a { background: #e3e7ea; border-radius: 6px; height: auto; line-height: 40px; }
.m-navpanel .navi .submenu { width: auto; margin: 4px 0 0 12px; background: none; }
.m-navpanel .navi .submenu a { background: #3a3a3a; color: #fff; line-height: 36px; height: auto; }
