/*=============================================================*/
/* Theme: BestTorrent
/* Version: 1.0
/* Copyright (c) 2019 Roman Buger
/* Site: https://shopthemes.ru/
/*=============================================================*/

* {margin: 0; padding: 0; box-sizing: border-box;}
body {font-family: 'Open Sans', sans-serif;font-size: 14px;color: #212121;line-height: 1.6;background: #f4f4f4;}
a {text-decoration: none;border: none;outline: none;color: #2bb42b;font-weight: 500;position: relative;overflow: inherit;transition: all 0.3s ease 0s;}
a:hover {text-decoration: underline;}
a.btn, button {text-transform: uppercase;padding: 6px 15px 7px;border-radius: 0;}
ul {margin: 0; padding: 0;}
li {list-style: none;}
img {max-width: 100%;}
ol { padding-left: 40px; list-style: decimal outside; margin-top: 1em; margin-bottom: 1em;}

	strong, b { font-weight: bold }
	em, cite, i { font-style: italic }
	caption { text-align: left }
	th, td { vertical-align: middle }
	small, .small { font-size: .9em; }
	hr { height: 0; border: 0; border-top: 1px solid #de5a26; -moz-box-sizing: content-box; box-sizing: content-box; margin: 20px 0px; }

	.clr { clear: both }
	.clrfix:after { clear: both; content: ""; display: table; }

.instagram-media, .twitter-tweet {display: inline-block !important;}

h1, h2, h3, h4, h5, h6 {color: #1c1c1c;margin: 0;font-weight: 600;line-height: 28px;}
h1 {text-transform: none;font-size: 20px;}
.x-unselectable {position:relative;}
#uCatsMenu7 {left: 0% !important;top: 21px !important; margin-left: 0px;}
/*.uadm.uadm--closed {display: none;}*/
.container {width: 100%; margin: 0 auto; background: #fff; min-height: 100vh;}


/* для списков с классом возвращаем стандартные маркеры */
ul.with-bullets {
  list-style-type: disc;           /* диск (чёрная точка) */
  list-style-position: outside;    /* маркер вне текста */
}

/* Перебираем точно те же селекторы DLE, но внутри нашей .no-reset */
.no-reset .text_spoiler ul,
.no-reset .dlecontent ul,
.no-reset ul {
  list-style-type: disc !important;      /* тип маркера — чёрная точка */
  list-style-position: outside !important;  
  margin: 0 0 1em 1.5em !important;      /* отступ слева для маркера */
  padding: 0 !important;
}

.no-reset .text_spoiler ul li,
.no-reset .dlecontent ul li,
.no-reset ul li {
  display: list-item !important;         /* возвращаем поведение «пункт списка» */
  margin: 0.2em 0 !important;            /* немножко пространства между пунктами */
  list-style: disc;
}
/* ———————————————
   Для нумерованных списков
   ——————————————— */
.no-reset .text_spoiler ol,
.no-reset .dlecontent ol,
.no-reset ol {
  list-style-type: decimal !important;    /* цифры 1, 2, 3… */
  list-style-position: outside !important;
  margin: 0 0 1em 1.5em !important;
  padding: 0 !important;
  
}
.no-reset .text_spoiler ol li,
.no-reset .dlecontent ol li,
.no-reset ol li {
  display: list-item !important;         /* возвращаем поведение «пункт списка» */
  margin: 0.2em 0 !important;            /* немножко пространства между пунктами */
  list-style: di;
}


/*=============================================================*/
/* COLORS
/*=============================================================*/
.color-1, .color-1 a {background-color: #1bcad1 !important; color: #fff !important;}
.color-2, .color-2 a {background-color: #49b545 !important; color: #fff !important;}
.color-3, .color-3 a {background-color: #daca1b !important; color: #fff !important;}
.color-4, .color-4 a {background-color: #f8f8f8 !important; color: inherit !important;}
.color-4 a {color: #2bb42b !important;}
.color-5, .color-5 a {background-color: #de5a26 !important; color: #fff !important;}
.color-6, .color-6 a {background-color: #2b9be3 !important; color: #fff !important;}
.color-7, .color-7 a {background-color: #b866ff !important; color: #fff !important;}
.color-8, .color-8 a {background-color: #f1c40f !important; color: #fff !important;}
.color-9, .color-9 a {background-color: #00bfff !important; color: #fff !important;}
.color-10, .color-10 a {background-color: #996666 !important; color: #fff !important;}
/*=============================================================*/
/* HEADER
/*=============================================================*/
.header {}
.header_top {background: #23242a; color: #fff; position: fixed;  top: 0; z-index: 1000; width: 100%; padding:10px 30px; display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; justify-content: center;flex-wrap: wrap;}
.header_top ul {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; flex-wrap: wrap;}
.header_top a {color: #fff;padding: 0 30px;font-size: 13px;cursor: pointer;}
.header_top a:hover {text-decoration: underline;}
.header_bottom {background: #f4f4f4;margin-top: 42px;min-height: 200px;display: flex;justify-content: center;align-items: center;}
.header_top button {display: none;}

/*=============================================================*/
/* LOGO
/*=============================================================*/
.logo {font-size: 38px;text-transform: uppercase;font-weight: bold; color: #fff;text-align: center;}
.logo a {color: #fff;font-weight: bold; text-decoration: none;position: relative;}
.logo p {font-weight: normal;font-size: 12px;text-transform: uppercase;text-align: center;}
/*=============================================================*/
/* WRAP, ASIDE, CONTENT
/*=============================================================*/
.wrap {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; justify-content: space-between;}
.aside_l, .aside_r {flex: 1; min-width: 250px; max-width: 250px; border-bottom: 1px solid #ddd; padding: 15px;}
.content_bl {background: #f8f8f8;flex: 1;padding: 15px; border-right: 1px solid #ddd; border-left: 1px solid #ddd;border-bottom: 1px solid #ddd;}
.aside_head {text-transform: uppercase;padding: 8px 15px;border-radius: 0;font-size: 14px;background-image: url(../images/bg_patt.png);color: #fff;margin: 0 -15px 4px;font-weight: 600;background-size: 100%;}
.aside_content {padding: 11px 0; margin-bottom: 15px; position: relative;}

/*=============================================================*/
/* SPEEDBAR
/*=============================================================*/
.speedbar {background: #fff; margin: 0px -15px 15px; padding: 8px 15px;border-bottom: 1px solid #ddd;border-top: 1px solid #ddd; font-size: 13px; }
.speedbar a {color: inherit;text-transform: capitalize;}

/*=============================================================*/
/* SEARCH
/*=============================================================*/
.search {margin-bottom: 15px;}
/*.search input {width: 100%;}*/

/*=============================================================*/
/* FOOTER
/*=============================================================*/
.footer {background: #49b545 url(../images/bg_patt.png); background-size: 50%;color: #fff;display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; padding: 15px; font-size: 12px; justify-content:space-between; align-items: center; flex-wrap: wrap;}
.footer div {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex;}
.footer img {display: block;margin-left: 10px;}
.footer a {color: #fff;}

/*=============================================================*/
/* ITEM
/*=============================================================*/
.item_bl {}

.item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
}

.item_img {
  flex: 1;
  max-width: 200px;
  border-right: 1px solid #ddd;
  padding: 15px;
}

.item_img img {
  display: block;
}

.item_content {
  flex: 1;
  padding: 15px;
  hyphens: auto;
  position: relative;
}

/* --- Новый стиль: иконка редактирования справа внутри заголовка --- */
.item_content h3 {
  position: relative;
  border-top-right-radius: 10px;
  padding: 8px 40px 8px 10px;  /* верхний, правый, нижний, левый отступы */
  font-size: 16px;
  font-weight: 700;
  background: #4aad46 url(../images/bg_patt.png);
  background-size: 50%;
  margin: -15px -16px 0;
  line-height: 1.3;
  color: #fff;
  /* убираем margin-top если мешает, тебе можно подкорректировать по факту */
}

.item_content h3 .edit_item {
  position: absolute;
  top: 8px;           /* отступ сверху для иконки, на уровне первой строки */
  right: 10px;        /* отступ справа */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Без transform, чтобы точно был у верха */
}

.item_content h3 .edit_item img {
  max-width: 24px;
  max-height: 24px;
  display: block;
}

.item_content h3 a {
  color: inherit; /* наследуем белый цвет */
  text-decoration: none;
  display: inline-block;
}

.item_content h3 a:hover {
  text-decoration: underline;
}

.info_blTop,
.info_blBottom {
  border-bottom: 1px solid #ddd;
  margin: 0 -15px 15px;
  font-size: 13px;
  padding: 7px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a1a1a1;
}

.rait_num {
  background: #daca1b;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

.info_blBottom {
  padding: 0;
  border-bottom: 0;
  border-bottom-right-radius: 10px;
  border-top: 1px solid #ddd;
  position: absolute;
  width: 100%;
  bottom: 0;
  margin-bottom: 0;
  background: #fff;
}

.info_blBottom > span {
  padding: 0 15px;
  display: inline-block;
}

.info_blBottom .btn {
  text-transform: uppercase;
  padding: 9px 15px 10px;
  border-radius: 0;
  margin: -1px;
  font-size: 11px;
}

.item .descr {
  margin-bottom: 60px;
}/*=============================================================*/
/* PAGINATION
/*=============================================================*/
.pagination {
  display: flex;
  text-align: center;
  justify-content: center;
  margin-bottom: 10px;
}

#pagesBlock1,
.pagesBlockuz1,
.pagesBlockuz2 {
  clear: both;
  margin-bottom: 25px;
  margin-top: 25px;
  font-size: 12px;
  display: inline-block;
  font-weight: 400;
}

/* -- active -- */
.pgSwchA b,
.swchItemA span,
.swchItemA1 span,
.swchItemDots {
  z-index: 2;
  color: #FFF;
  cursor: default;
  position: relative;
  text-decoration: none;
  min-width: 32px;
  background: #1bcad1;
  border: 1px solid #1bcad1;
  display: inline-block;
  text-align: center;
  font-weight: 400;
  border-radius: 4px;
  padding: 4px 10px;
}

.pgSwchA:hover b,
.swchItemA:hover span,
.swchItemA1:hover span {}

 /* -- no active -- */
.pgSwch span,
.swchItem span,
a.swchItem1 {
  position: relative;
  text-decoration: none;
  min-width: 30px;
  color: #212121;
  background-color: #FFF;
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  padding: 4px 10px;
}

.pgSwch:hover span,
.swchItem:hover span,
a.swchItem1:hover {}
/*=============================================================*/
/* jquery-accordion-menu
/*=============================================================*/
.jquery-accordion-menu {padding: 10px 0;margin: 0 -16px;}
.jquery-accordion-menu > ul > li > a {border-bottom: 0;transition: all 0.3s ease 0s; color: #222222; font-weight: 400; padding: 7px 15px 8px; display: block; text-decoration: none;}
.jquery-accordion-menu > ul > li > a:hover {transition: all 0.3s ease 0s;background: #ffa000;color: #fff;}
.jquery-accordion-menu > ul > li.active > a {color: #fff; background: #ffa000;}
.jquery-accordion-menu ul {margin: 0;padding: 0;list-style: none;}
.jquery-accordion-menu .submenu-indicator {float: right;right: 15px;position: absolute;line-height: 19px;font-size: 20px;-o-transition: transform .3s linear;-moz-transition: transform .3s linear;-webkit-transition: transform .3s linear;-ms-transition: transform .3s linear}
.jquery-accordion-menu .submenu-indicator-minus>.submenu-indicator {-ms-transform: rotate(45deg);-moz-transform: rotate(45deg);-webkit-transform: rotate(45deg);transform: rotate(45deg)}
.jquery-accordion-menu ul ul.submenu {width: 100%;display: none;border-bottom: 5px solid #4aad46;background: #fafafa; padding: 10px 0;padding-right: 1px;}
.jquery-accordion-menu ul ul.submenu li {clear: both;width: 100%}
.jquery-accordion-menu ul.submenu a {border-bottom: 0;font-size: 13px;color: #2d2d2d;font-weight: 400;position: relative;display: block;padding: 7px 15px 7px;border-left: solid 5px transparent;-o-transition: border .03s linear;-moz-transition: border .03s linear;-webkit-transition: border .03s linear;transition: border .03s linear;transition: all 0.3s ease 0s;text-decoration: none;}
.jquery-accordion-menu .submenu a:hover {background: #fff; border-left: solid 5px #35c535;}
#list_cat a {overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap;width:100%;}
.jquery-accordion-menu .submenu a .ripple {background: #cacaca;}
.jquery-accordion-menu ul.submenu li ul.submenu {background: #f0f0f0; border-bottom: 0;}
.jquery-accordion-menu ul.submenu li ul.submenu li a {padding-left: 40px;}

/*=============================================================*/
/* INFORMS
/*=============================================================*/
.inf_item-1 {position: relative;margin-bottom: 15px;border: 3px solid #ddd;padding: 15px; background: #fff;}
.inf_item_img {position: relative;margin-bottom: 15px; }
.inf_item-1 h4 {line-height: 1.6;}
.inf_item-1 h4 a {color: inherit; font-weight: 600; display: inline-block;}
.inf_item_img .rait_num {position: absolute;right: 15px;top: 15px;}
.inf_item_img img {display: block; width: 100%;}

/*=============================================================*/
/* USER PANEL
/*=============================================================*/
.ava_bl {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; justify-content: center;}
.ava_bl img {display: block; border: 1px solid #ddd; padding: 5px; width: 100px; height: 100px;}
.user_nav {margin-top: 15px;}
.user_nav a {color: inherit; display: inline-block;padding: 5px 10px;}

/*=============================================================*/
/* MODAL WINDOW
/*=============================================================*/
.modal {position: fixed;top: 0;left: 0;display: flex;align-items: center;justify-content: center;height: 0vh;background-color: transparent;overflow: hidden;transition: background-color 0.25s ease;z-index: 9999;}
.modal.open {position: fixed;width: 100%;height: 100vh;background-color: rgba(0, 0, 0, 0.5);transition: background-color 0.25s;}
.modal.open > .content-wrapper {transform: scale(1);}
.modal .content-wrapper {position: relative;display: flex;flex-direction: column;align-items: center;justify-content: flex-start;width: 50%;margin: 0;padding: 1.2rem;background-color: white;border-radius: 0.3125rem;box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.5);transform: scale(0);transition: transform 0.25s;transition-delay: 0.15s;max-height: 90%;overflow-y: auto;}
.modal .content-wrapper .close {position: absolute;top: 0.5rem;right: 0.5rem;display: flex;align-items: center;justify-content: center;width: 2.5rem;height: 2.5rem;border: none;background-color: transparent;font-size: 1.5rem;transition: 0.25s linear;}
.modal .content-wrapper .close:before, .modal .content-wrapper .close:after {position: absolute;content: '';width: 1.25rem;height: 0.125rem;background-color: black;}
.modal .content-wrapper .close:before {transform: rotate(-45deg);top: 19px;left: 10px;}
.modal .content-wrapper .close:after {transform: rotate(45deg);}
.modal .content-wrapper .close:hover {transform: rotate(360deg);}
.modal .content-wrapper .close:hover:before, .modal .content-wrapper .close:hover:after {background-color: tomato;}
.modal .content-wrapper .modal-header {display: flex;flex-direction: row;align-items: center;justify-content: space-between;width: 100%;margin: 0;padding: 0 0 1.25rem;}
.modal .content-wrapper .modal-header h2 {font-size: 18px;}
.modal .content-wrapper .content {position: relative;display: flex;width: 100%;justify-content: space-between;margin-bottom: 15px;flex-wrap: wrap;}
.modal .content-wrapper .content [class*="color-"] {flex: 1; text-align: center; margin: 5px;}

/*=============================================================*/
/* FULLSTORY
/*=============================================================*/
.full_img, .f_down {display: flex;justify-content: center; margin-bottom:15px;flex-wrap: wrap;}
.full_img img {display: block;max-width: 300px;}
.uSpoilerButton {width: 100%;text-align: left;text-transform: uppercase;font-size: 12px;}
.uSpoilerText {background: #f8f8f8;border: 1px solid #ddd;margin-top: -5px;padding: 15px;}
.f_down {margin-bottom: 5px;}
.f_down a {margin: 0 7.5px;}
.u-star-rating-20 {width: 105px !important;}
[class*="u-star-rating"] a {transition: none;}
.f_info {display: flex;justify-content: space-between;flex-wrap: wrap; align-items: center;}
.f_screen {display: flex;justify-content: center;flex-wrap: wrap;padding: 7.5px;}
.f_screen a {padding: 7.5px;flex: 1;min-width: 25%;position: relative;}
.f_screen img {display: block;width: 100%;height: 100%;display: block;object-fit: cover;}
.f_screen a::before {opacity: 0;visibility: hidden;-webkit-transform: scale(0,0);transform: scale(0,0);transition: all 0.3s ease 0s;content: "Увеличить";position: absolute;bottom: 7.5px;width: auto;text-align: center;color: #fff;background: rgba(0,0,0,.7);padding: 7px 20px;right: 7.5px;font-size: 12px;}
.f_screen a:hover::before {opacity: 1;visibility: visible;-webkit-transform: scale(1,1);transform: scale(1,1);transition: all 0.3s ease 0s;}
.full_img {text-align: center;}
/*.full_img + div > img {display: none;}*/
.title_spoiler {margin-top: 0px;}
.text_spoiler {
padding-left: 15px;
padding-right: 15px;
padding-top: 0;
width: 100%;
text-align: left;
background: #f9fafa;
/*border: 3px solid #dce7e7;*/
overflow: hidden;
}

hr, hr.mainHr {opacity: 0.1;margin: 7px 0;}
.ratebox a {transition: none;}

/*=============================================================*/
/* DLE Styles
/*=============================================================*/
.full .item {display: block;padding:15px;}
.item .descr img {display:none;}
.edit_item {float: right;margin-top: -4px;}
.pagination a {position: relative;text-decoration: none;min-width: 32px;color: #212121;background-color: #FFF;display: inline-block;border:1px solid #ddd;border-radius:4px;text-align: center;padding: 4px 10px;margin: 0 5px 5px 0;}
.pagination span {z-index: 2;color: #FFF;cursor: default;position: relative;text-decoration: none;min-width: 32px;background: #1bcad1;border:1px solid #1bcad1;display: inline-block;text-align: center;font-weight: 400;border-radius: 4px;padding: 4px 10px;margin: 0 5px 5px 0;}
.ui-widget-header {font-size: 16px;font-weight: 400;background: #4aad46 url(../images/bg_patt.png);background-size: 50%;padding: 7px 15px;color: #fff;font-family: 'Open Sans', sans-serif;}
.ui-dialog .ui-dialog-title {margin: 0em 16px 0.4em 0;}
.ui-icon-closethick {height: 15px;}
.ui-dialog .ui-dialog-titlebar-close span {margin: 0;}
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/ui-icons.png);}
#logform .lfield {margin-bottom: 15px;}
#logform input {width: 90%;}
#logform input#login_not_save {width: auto;}
#logform .btn_bl {display: flex;justify-content: space-between;flex-wrap: wrap;font-size: 11px;}
.tableform, .tableform input {width: 100%;margin-bottom: 15px;}
.tableform input#allow_subscribe {width: auto;}
.editorcomm .bb-editor {width: 100%;}
.fieldsubmit {display: flex;justify-content: center;}
.block {display: block;} 
.p-15 {padding: 15px;margin-bottom: 15px;}
.addnews .tableform input {width: auto; margin-top: 15px; margin-bottom: 0;}
.addnews #tags {width: 100%;}
.f_input {width: 100% !important;}
input.bbcodes {padding: 7.5px 15px !important;margin-right: 15px !important;height: auto !important;font-size: 14px !important;font-weight: 400;font-family: 'Open Sans', sans-serif !important;text-shadow: none;float: right;}
.addnews .fbutton {margin-right: 15px; margin-bottom: 15px;}
.mass_comments_action {text-align: right;display: flex;justify-content: right;align-items: center;}
.bcomment {display: flex !important;}
.bcomment .ava_usr {flex: 1;max-width: 115px;min-width: 115px;border-right: 1px solid #ddd;margin-right: 15px; margin-top: -15px; margin-bottom: -15px;padding: 15px 15px 15px 0;}
[id*="comment-id"] {flex: 1;}
.cont_comm {border-bottom: 1px solid #ddd;margin: -7.5px -15px 15px;padding: 0 15px 7.5px;display: flex;flex-wrap: wrap;align-items: center;font-size: 14px;justify-content: space-between;}
.ratebox2 ul.reset , .ratebox3 ul.reset {display: flex;}
.ratebox3 [id*="comments-ratig-layer-"], .ratebox3 [id*="ratig-layer-"] {position: relative;top: -2px;}
.comedit {display: flex;justify-content: right;align-items: center;flex-wrap: wrap;border-top: 1px solid #ddd;border-bottom-right-radius: 10px;padding: 7.5px 15px;margin: 15px -15px -15px;font-size: 12px;background: #f8f8f8;}
.comedit ul.reset {display: flex;}
.comedit ul.reset li {margin-left: 8px;}
.bcomment input.bbcodes {float: none;}
#options {margin-bottom: 15px;}
#userinfo {margin-bottom: 15px;}
.pheading {margin-bottom: 15px;}
.basecont .fbutton {border-radius: 4px;margin-right: 15px;text-transform: inherit;}
#outboxcopy {width: auto;}
#registration .bbcodes, .search .bbcodes {margin-left: 15px;width: auto;}
.dpad {border: 1px solid #ddd;background: #fff;padding: 10px 10px;margin-bottom: 15px;margin-top: 0px;}
#fullsearch {margin: 0px -10px;}
#fullsearch .search > div {display: flex;}
.lastcomments {display: flex;}
.lastcomments .ava_usr {flex: 1;max-width: 130px;min-width: 130px;border-right: 1px solid #ddd;margin-right: 15px;margin-top: 0;margin-bottom: 0;padding: 15px;}
.lastcomments .cont_comm {border-bottom: 1px solid #ddd;margin: 7.5px 0 7.5px -15px;padding: 0 15px 7.5px;display: flex;flex-wrap: wrap;align-items: center;font-size: 14px;justify-content: space-between;}
.lastcomments .comedit {display: flex;justify-content: right;align-items: center;flex-wrap: wrap;border-top: 1px solid #ddd;padding: 7.5px 15px;margin: 15px 0 0px -15px;font-size: 12px;background: #f8f8f8;}

.userinfo {display: flex;margin: 15px -15px -15px;border-top: 1px solid #ddd;flex-wrap: wrap;border-bottom: 1px solid #ddd;}
.userinfo .lcol {flex: 1;max-width: 180px;padding: 15px;min-width: 180px;border-right: 1px solid #ddd;text-align: center;margin-right: 15px;}
.userinfo .rcol {padding: 15px 0;flex: 1;line-height: 1.8em;}
input[type="checkbox"] {width: 20px;}

/* v.1.1.0 */
.screens {margin-top: 15px;display: grid;}
.screens .screen_item {overflow: hidden; flex: 0 0 250px; position: relative;}
.screens .screen_item a {width: 100%; display: block !important; height: 100%; position: relative;}
.screens .contenedor {height: 200px; display: flex !important; white-space: nowrap; gap: 20px;padding: 25px 0px;}
.screens img.img_presentacion_mini {width: 250px; min-height: 100%; object-fit: cover; display: block; cursor: pointer; position: relative;}
.screens .contenedor_scroll {top: 0px;max-width: 100%;height: 210px;position: relative;margin: 0 auto;padding: 0px;overflow-x: auto;-webkit-overflow-scrolling: touch;z-index: 0;}
.contenedor_scroll {scrollbar-width:thin;}
.screens ::-webkit-scrollbar {height:7px;width:7px;/* background:#151720 */}

/* кнопка вверх */
.upbtn {
    z-index: 9999;
    width: 100%;
    height: 6px;
    color: #FFF;
    position: fixed;
    bottom: -80px;
    cursor: pointer;
    background: #1bcad1;
    transition: all .3s ease-in-out;
}
.upbtn:before {
    content: "";
    transition: all .3s ease-in-out;
    z-index: 9999;
    
    width: 100px;
    height: 100px;
    border: 16px solid #1bcad1;
    position:relative;
    bottom:0px;
    left: 50%;
    margin-left: -50px;
    cursor: pointer;
    display:block;
    transform: rotate(45deg);
    background: #2b9be3;
}
.upbtn:hover {
    height: 16px;
}
.upbtn:hover:before {
    bottom:14px;
}

/* спойлер для ссылок на скачивание */
.spoiler {
  margin: 10px 0;
  border: 3px solid #ccc;
}
.spoiler-title {
  background: #f7f7f7;
  font-size: 1.3em;
  font-weight: bold;
  padding: 8px;
  cursor: pointer;
  user-select: none;
}
.spoiler-content {
  display: none;
  font-size: 1.3em;
  padding: 8px;
  border-top: 1px solid #ccc;
}
.spoiler-title:after {
  content: " ▶";
  float: right;
}
.spoiler.open .spoiler-title:after {
  content: " ▼";
}

@media (min-width: 1985px) {
    .item-page__rating {
        text-align: center;
        padding: 1px 39% 5px; /* Широкие экраны */
    }
}


/* Для экранов шириной 1440px и до 1984px */
@media (min-width: 1440px) and (max-width: 1984px) {
    .item-page__rating {
        text-align: center;
        padding: 1px 32% 5px; /* Широкие экраны */
    }
}

/* Для экранов шириной от 1024px до 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .item-page__rating {
        text-align: center;
        padding: 5px 25% 10px; /* Уменьшенный отступ для средних экранов */
    }
}

/* Для экранов шириной от 768px до 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .item-page__rating {
        text-align: center;
        padding: 10px 15% 8px; /* Еще меньше отступов для планшетов */
    }
}

/* Для экранов шириной менее 768px (мобильные устройства) */
@media (max-width: 767px) {
    .item-page__rating {
        text-align: center;
        padding: 15px 5% 10px; /* Малые отступы для мобильных */
    }
}

/* Попытка убрать затемнение при модальном окне :) */
#modal-overlay {
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
    background: rgb(102 102 102 / 0%) !important;
    opacity: 0.4 !important;
    z-index: 0 !important;
}

/* Размер игры на картинке в короткой новости */
.sizeposter {
    position: absolute;
    top: 5px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    user-select: none;
    }
    
/* Размер игры на картинке в inform_item.tpl */
.sizeposterinf {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    user-select: none;
    }
    
/* поиск для сайта */
.emp-search-wrapper {
/*max-width: 480px;*/
padding: 10px 10px;
margin: 0 auto 60px auto;
}
.emp-search-input {
width: 95%;
padding: 10px 14px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
text-align: left;
}
.emp-search-buttons {
margin-top: 12px;
text-align: center;
}
.emp-search-btn {
display: inline-block;
padding: 10px 20px;
margin: 0 6px;
font-size: 15px;
cursor: pointer;
border-radius: 4px;
border: none;
background-color: #4CAF50; /* Новый цвет кнопок */
color: white;
transition: background-color 0.3s ease, transform 0.3s ease; /* Плавный переход цвета и эффекта свайпа */
}
.emp-search-btn:hover {
background-color: #1f54a0; /* Цвет кнопки при наведении */
transform: translateY(-2px); /* Эффект свайпа вверх */
}

.dpad-full-search {border: 1px solid #ddd;background: #fff;padding: 0px 10px;margin-bottom: 0px;margin-top: 0px;}

.search-small {
    margin-bottom: 10px; /* Отступ 10px вниз Для более эффективного поиска пишите название и год! */
}

/* Тег <p> */
p {
  margin-top: 0px;        /* Отступ сверху — увеличивает расстояние от предыдущего блока */
  margin-bottom: 10px;    /* Отступ снизу — задает расстояние до следующего блока */
  padding-left: 0px;      /* Внутренний отступ слева — текст не прилипает к краю контейнера */
  white-space: normal;    /* либо pre-line */
  color: #333333;         /* Цвет текста — темно-серый, хорошо читается на светлом фоне */
  font-size: 14px;        /* Размер шрифта — стандартный для удобного чтения */
  line-height: 1.5;       /* Межстрочный интервал — улучшает читаемость */
}

/* Сброс отступов <p> внутри quote_body */
.quote_body p {
  margin: 0;          /* Убираем внешние отступы сверху и снизу */
  padding: 0;         /* Убираем внутренние отступы, если есть */
  line-height: 1.4;   /* Контролируем межстрочный интервал, чтобы текст не слипался */
  display: block;     /* Оставляем блочным, чтобы переносы были, но без отступов */
}

/* VIDEO IFRAME
--------------------------------------------------------------------------------*/
.videoWrapper {position:relative; height:0;padding-bottom:56.25%; padding-top:25px; }
.videoWrapper iframe {position:absolute; top:0; left:0; width:100%; height:100%;padding-left: 20px;padding-right: 20px;}

/*=============================================================*/
/* BOTTOM
/*=============================================================*/
.bottom {}
.bottom_footer {background: #23242a; color: #fff; text-align: center; position: static;  top: 0; z-index: 1000; width: 100%; padding:12px 30px; display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; justify-content: center;flex-wrap: wrap;}
.bottom_footer ul {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; flex-wrap: wrap;}
.bottom_footer a {color: #fff;padding: 0 30px;font-size: 13px;cursor: pointer;}
.bottom_footer a:hover {text-decoration: underline;}
.bottom_footer button {display: none;}


/* Основной контейнер поиска */
.dpad.radial.infoblock {
  max-width: 100%; /* максимум ширины блока */
  margin: 20px auto; /* центр по горизонтали */
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Таблицы делают адаптивными */
.searchtable table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* равномерное распределение колонок */
}

/* Ячейки с полями поиска */
.searchtable td.search {
  vertical-align: top;
  padding: 10px;
  box-sizing: border-box;
}

/* В верхних вложенных таблицах */
.searchtable fieldset {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fafafa;
}

/* Заголовок fieldset */
.searchtable legend {
  font-weight: 700;
  padding: 0 10px;
  font-size: 1.1em;
  color: #333;
}

/* Выравниваем две колонки внутри расширенного поиска */
.searchtable > table > tbody > tr > td.search > div > table > tbody > tr {
  vertical-align: top;
}

.searchtable > table > tbody > tr > td.search > div > table > tbody > tr > td.search {
  width: 50%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Секция "Поиск по разделам" делаем чуть шире */
.searchtable fieldset legend:contains('Поиск по разделам') {
  /* К сожалению, CSS селектор :contains не работает, надо по классу или ID */
  /* Лучше добавить класс для fieldset "search-category", если возможно, и стилизовать его */
}

/* Если можно контролировать HTML, добавь внутри <fieldset> с поиском по разделам класс */
fieldset.search-category {
  max-width: 320px; /* чуть шире */
  margin-left: auto;
}

/* Стили для чекбоксов (установим блоками вертикально) */
.searchtable input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
  cursor: pointer;
}

.searchtable label {
  display: block;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #222;
}

/* Контейнер чекбоксов, чтобы не слипались */
.searchtable [id^="category-option"] > div,
.searchtable .category-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px; /* расстояния между чекбоксами */
}

/* При необходимости можно сделать чекбоксы в две колонки */
.searchtable .category-checkboxes > label {
  flex: 1 1 45%; /* две колонки */
}

/* Кнопки поиска — центруем и добавляем отступы */
.bbcodes {
  padding: 10px 25px;
  margin: 10px 15px 0 0;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bbcodes:hover {
  background-color: #1f54a0;
}

/* Чтобы кнопки не слипались на узких экранах */
.searchtable input.bbcodes {
  min-width: 120px;
}

/* Мелкие адаптивные правки */
@media (max-width: 768px) {
  .searchtable > table > tbody > tr > td.search > div > table > tbody > tr > td.search {
    width: 100%;
    padding: 5px 0;
  }
  .searchtable .category-checkboxes > label {
    flex: 1 1 100%;
  }
  .bbcodes {
    width: 100%;
    margin: 10px 0;
  }
}

/* Стиль текста Для более эффективного поиска пишите название и год!
Результаты будут открыты в новой вкладке вашего браузера! */

.search-small {
  font-family: 'Arial', sans-serif; /* Современный шрифт */
  line-height: 1.5; /* Увеличенный межстрочный интервал */
  text-align: center; /* Центрируем текст */
}

.search-message {
  margin: 0; /* Убираем отступы */
}

.highlight-red {
  color: #e63946; /* Современный красный цвет */
  font-weight: bold; /* Жирный текст */
}

.highlight-blue {
  color: #457b9d; /* Современный синий цвет */
  font-weight: bold; /* Жирный текст */
}

/* Централизованная кнопка Оставить комментарий */
.comment-button {
    display: inline-block; /* Для корректного отображения */
    background-color: #575ad6; /* Цвет фона */
    color: white; /* Цвет текста */
    border: none; /* Убираем рамку */
    border-radius: 10px; /* Закругленные углы */
    padding: 5px 10px; /* Отступы */
    font-size: 14px; /* Размер шрифта */
    text-decoration: none; /* Убираем подчеркивание */
    transition: background-color 0.3s, transform 0.3s; /* Плавные эффекты при наведении */
}

.comment-button:hover {
    background-color: #4e4bbf; /* Цвет фона при наведении */
    transform: translateY(-2px); /* Легкий подъем кнопки */
}


/* Централизованная кнопка Скачать бесплатно */
.download-button {
    display: inline-block; /* Для корректного отображения */
    background-color: #e0745c; /* Цвет фона */
    color: white; /* Цвет текста */
    border: 4px solid #d0634c; /* Цвет рамки */
    border-radius: 10px; /* Закругленные углы */
    padding: 12px 24px; /* Отступы */
    font-size: 18px; /* Размер шрифта */
    text-decoration: none; /* Убираем подчеркивание */
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s; /* Плавные эффекты при наведении */
}

.download-button:hover {
    background-color: #d0634c; /* Цвет фона при наведении */
    border-color: #b0524a; /* Цвет рамки при наведении */
    transform: translateY(-2px); /* Легкий подъем кнопки */
}

/* Плавный переход по сайту */
html {
    scroll-behavior: smooth; /* Плавный скроллинг */
}

/* Правая сторона таблицы с доп полями */
.rounded-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rounded-list li {
    border: 3px solid #fff;        /* поменьше рамка */
    border-radius: 15px;           /* немного поменьше скругление */
    padding: 6px 10px;             /* уменьшенные внутренние отступы */
    margin: 6px 8px;               /* уменьшенный отступ между элементами */
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;            /* чуть меньший размер шрифта (~13.5px при 16px базовом) */
    line-height: 1.5;              /* чуть плотнее строки */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: default;
}

/* Эффект при наведении */
.rounded-list li:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 12px rgba(45, 194, 107, 0.4);
    transform: translateY(-3px);
    cursor: pointer;
}

/* Иконкам можно задать масштаб тоже чуть меньше */
.rounded-list li i {
    font-size: 0.9em;  /* иконка чуть поменьше */
    margin-right: 6px;  /* небольшой отступ справа */
    vertical-align: middle;
}

/* Опционально, если хочешь анимацию и при фокусе */
.rounded-list li:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 15px rgba(45, 194, 107, 0.5);
    transform: translateY(-4px);
}

/* Эффект при наведение на постер */
.hover-effect {
    transition: transform 0.3s ease, border-color 0.3s ease; /* Плавный переход для трансформации и цвета границы */
}

.hover-effect:hover {
    transform: scale(1.05); /* Увеличение изображения при наведении */
    border-color: #1a8f4d; /* Изменение цвета границы при наведении */
}

/* Красное выделение при на ведение на слова Рсский, Русская, Русификатор, RUS */
.highlight-red {
            color: red;
            font-weight: bold;
            position: relative;
}
        
.highlight-red:hover::after {
            text-decoration: none;
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0px; /* Расстояние от текста до линии */
            height: 2px; /* Толщина линии */
            background-color: red; /* Цвет линии */
}

/* Новый спойлер от нейросети */
