/* ---header--- */
.header {display: grid; flex-wrap: wrap; align-items: center; padding: 19px 20px; margin-top: 25px; background: var(--card); border-radius: 10px;
    box-shadow: 0px 4px 18px rgb(0 56 255 / 5%); gap: 20px; grid-auto-flow: column; grid-auto-columns: 150px auto auto;}
.headerfixed {position:fixed; top: 0; width:1170px; z-index:9000;}
@media (max-width:1215px) {.headerfixed {position:fixed; top: 0; right:0; left:0; width:100%;} #vk_comments {width:100% !important;}}
.headerfixed .header {max-width:1200px; margin-top: 0px; border-radius: 0px; z-index:9000;}
@media (min-width:1216px) {.headerfixed .header {border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;}}
.logo img {height: 40px; width: 150px; margin-top:5px;}
.mob_menu .fa {color:#fff;}
.header_search {width:100%; position: relative; }
.header_search input {font-size: 14px !important; background-color: #fff !important;}
.header_search_btn {position: absolute; right: 0; top: 0; height: 39px; color: #fff; background: #593FDB; font-size: 16px;}
.header_search_btn img {height:21px; margin-top:1px; margin-right:-10px; margin-left:10px;}
.header_search_btn:hover {background: #593FDBc7; color: #fff !important;}
.header_right {display: flex; align-items: center; gap: 10px;}
.switch-theme {line-height: 30px; text-align: center; background: var(--light-gr); color: var(--title-card); border-radius: 8px; cursor: pointer;}
.switch-theme:hover {background: var(--hover); color: var(--hover-accent);}
.header_photo {width: 30px; height: 30px; border-radius: 9px;}
.header_login {display: inline-flex; cursor: pointer;}
.mob_menu {width: 40px; height: 40px; line-height: 40px; font-size: 16px; text-align: center; background: var(--light-gr); border-radius: 10px; cursor: pointer;}
.header_nav {display: flex; margin-top: -20px; justify-content: center; padding: 0 30px; z-index: 999;}
.nav_list {display: flex; flex-wrap: wrap; padding: 0 15px; background: #593FDB; border-radius: 10px;}
.nav_list_item {flex-grow: 1; text-align: center; font-size: 18px; line-height: 40px; font-weight: 600; color: #ffffff;}
.nav_list_item:hover {color: #dbdbdb; }
.submenu {position: relative;}
.submenu_list {flex-direction: column; z-index: 900; display: none; background: #593FDB !important}
.submenu:hover .submenu_list {display: flex;}

:root {
    --bg: #f4f5f6;
    --card: #fff;
    --tt: #000;
    --tt-light: #696981;
    --nav: #e5ebfb;
    --nav-link: #593FDB;
    --nav-hover: #593FDBc7;
    --light-gr: #593FDB;
    --input: #f5f5f5;
    --input-border: #00000008;
    --link: #593FDB;
    --title-card: #593FDB;
    --hover: #593FDBc7;
    --hover-accent: #593FDBc7;
    --border: #efefef;
}
.theme-dark {
    --bg: #131213;
    --card: #281d24;
    --tt: #ffffff;
    --tt-light: #000000;
    --nav: #ffffff;
    --nav-link: #ffffff;
    --nav-hover: #000000;
    --light-gr: #593FDB;
    --input: #593FDB;
    --input-border: #593FDB;
    --link: #593FDB;
    --title-card: #ffffff;
    --hover: #593FDBc7;
    --hover-accent: #000000;
    --border: #593FDB;
}
.switch-theme:after {
    display: block;
    content: "\f672";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    width: 30px;
    font-size: 14px;
}
.theme-dark .switch-theme:after {
  display: block;
  content: "\f0eb";
  font-family: "Font Awesome 5 Pro";
  font-weight: 400;
  width: 30px;
  font-size: 14px;
}

/* ---main--- */
.wrapper {max-width: 1200px; margin: 0 auto;}
.wrapper_container {margin: 0 15px;}
.cols {display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; margin-top: 30px;}
.main_grid {display: grid; grid-gap: 25px 25px; grid-auto-flow: row dense; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    background: var(--card); padding: 20px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%); border-radius: 10px;}
.main_grid > *:not(.shortstory) {grid-column: 1 / -1;}
.card {background: var(--card); padding: 20px; border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);}
.speedbar {margin-bottom: 15px; font-size: 14px; color: #000000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.speedbar a {display: inline-block; padding: 2px 6px; color: #fff; font-size: 14px;
    background: #593FDB; border-radius: 6px; font-weight: 500;}
.speedbar a:hover { background: #593FDBc7;}
.card_title {margin-bottom: 20px; font-size: 20px; font-weight: 700; color: var(--title-card); text-transform: uppercase; letter-spacing: 0.5px;}
.main_grid .card_title {margin-bottom: 0px; }
.top_grid_line {display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px;}
.top_grid_big {display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 15px;}

/* ---sidebar--- */
.side_tags {display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; background: var(--card);
    border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);}
.side_comment_item {display: flex; gap: 10px; margin-bottom: 10px;}
.side_post_block {display: flex; flex-direction: column; gap: 20px;}
.social_block {padding: 20px; margin-bottom: 0px; background: var(--card); border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);
    position: relative; overflow: hidden;}
.social_title {margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--title-card); text-transform: uppercase;}
.social_area {display: flex; gap: 6px;}
.social_logo {background: var(--soc-logo); position: absolute; bottom: -21px; right: 0; transform: rotate(60deg);
    width: 95px; height: 95px;}
.social_vk i, .social_tg i, .social_discord i, .social_youtube i, .social_insta i {border-radius: 8px; padding: 8px 9px; color: #fff;
    min-width: 36px; text-align: center;}
.social_vk i {background: #45668e;}
.social_tg i {background: #0088cc;}
.social_discord i {background: #7289da;}
.social_youtube i {background: #ff0000;}
.social_insta i {background: #c13584;}
.side_nav_block {background: var(--card); padding: 10px 20px; border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%); margin-bottom: 30px;}
.side_nav {display: flex; flex-direction: column;width: 100%;}
.side_nav_item {flex-grow: 1; text-align: center; font-size: 15px; line-height: 40px; font-weight: 600; color: var(--nav-link);}
article a:hover h2 {color:#593FDB}

/* ---custom--- */
.short_line {display: flex; align-items: center;}
.short_line_img {width: 100px; margin-right: 15px;}
.short_line_img img {display: block; width: 100px; aspect-ratio: 14 / 9; border-radius: 10px;}
.short_line_title {font-size: 15px; color: var(--tt); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;}
.short_line_text {font-size: 14px; color: var(--tt-light); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.short_big_title {margin: 10px 0 3px 0; color: var(--tt); font-size: 16px;}

/* ---short--- */
.shortstory:hover > a .short_img img, .short_line:hover > .short_line_img img, .short_big:hover > a .short_img img {
    filter: brightness(0.8); transition: .10s all;}
.short_img {aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; position: relative;}
.short_title {margin: 3px 0 3px 0; color: var(--tt); font-size: 16px;}
.short_text {font-size: 15px; color: var(--tt-light);}
.short_meta {display: flex; gap: 12px; margin-top: 5px; align-items: center;}
.short_meta_cat {color: #593FDB; font-size: 14px; flex: 1;}
.short_meta_item {color: #593FDB; font-size: 14px; white-space: nowrap;}
.short_meta_item i {margin-right: 5px; font-size: 13px;}

/* ---full--- */
.fullstory {padding: 20px; background: var(--card); border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);}
.fullstory iframe {max-width:100%; height:450px;}
blockquote {max-width:100% !important; min-width:250px !important;}
.fullstory_meta {display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px 0; align-items: center;}
.fullstory_meta_item {font-size: 14px; padding: 4px 9px; background: var(--light-gr); color: #ffffff; border-radius: 8px;}
.fullstory_meta_left {display: flex; gap: 10px; flex: 1 1 0; white-space: nowrap;}
.fullstory_meta_right {display: flex; flex-wrap: wrap; gap: 10px;}
.entry_meta_item {font-size: 14px; color: var(--tt-light);}
.entry_meta_item a {color: var(--tt-light);}
.full_rating {display: flex; gap: 9px; font-size: 14px; padding: 4px 9px; background: var(--light-gr); color: #fff; border-radius: 8px;}
.full_rating a {color: #fff;}
.full_img {border-radius: 10px;}
.full_text {margin-top: 15px;}
.full_text p, .full_text pre {margin-bottom: 20px;}
.full_text h1, .full_text h2, .full_text h3, .full_text h4, .full_text h5, .full_text h6 {margin-bottom: 5px;}
.full_text .quote_block {margin-bottom: 20px;}
.full_text ol {padding: 0 24px; list-style: decimal outside; margin-bottom: 20px;}
.full_text ul {padding: 0 24px; list-style: outside; margin-bottom: 20px;}
.full_text a {color: #593FDB;}
.full_text a:hover {color: #593FDBc7;}
.full_text img {margin:0 auto; max-width:500px;}
.title_spoiler, .text_spoiler {background: rgb(184 182 223 / 15%); border-radius: 10px; padding: 3px 10px; margin-bottom: 20px;}
.title_spoiler svg {vertical-align: middle; margin-top: -4px; margin-right: 7px; height: 16px; width: 16px;}
.title_spoiler img {width: auto;}
.quote {padding: 15px 15px 15px 50px; position: relative; background-color: var(--light-gr); color: var(--tt); border-radius: 10px;}
.quote::before {content: "\f10e"; font-family: 'Font Awesome 5 Pro'; font-weight: 400; position: absolute; left: 15px; top: 19px;
    color: var(--link); font-size: 15px;}
.attachment {border: 1px solid var(--input-border); background-color: var(--input); border-radius: 10px; padding: 10px; margin-bottom: 20px;}
.attachment i {margin-right: 10px;}
.full_tags {display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px;}
.full_tags a {padding: 0px 10px 3px 10px; background: var(--light-gr); font-size: 14px; color: #FFFFFF; border-radius: 7px;}
.full_tags a:hover {background: var(--hover); color: #ffffff;}

.full_comments {margin: 20px 0;}
.related_news {display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 15px;}

/* ---login--- */
.login_panel {position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; background-color: var(--card);
    border-radius: 10px; padding: 20px 24px 16px; width: 400px; display: none;}
.login_header {display: flex; justify-content: space-between; align-items: center;}
.login_close {width: 25px; height: 25px; line-height: 25px !important; font-size: 13px; text-align: center; background: var(--nav);
    border-radius: 10px; color: var(--nav-link); cursor: pointer;}
.user_menu {display: flex; flex-wrap: wrap; flex-direction: row; gap: 10px; justify-content: center; margin: 25px 0;}
.user_menu li {flex: 1 1 0; min-width: 40%;}
.user_menu_item {display: flex; justify-content: center; padding: 10px 14px; background: var(--light-gr); color: #757f99; border-radius: 10px;}
.user_menu_item:hover {background: var(--hover); color: var(--hover-accent)}
.login_bottom {display: flex; justify-content: space-between;}
.login_bottom a {font-weight: 600; color: var(--tt);}
.overlay {position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; background-color: rgb(0 0 0 / 40%);
    backdrop-filter: blur(6px); display: none;}

/* ---comments--- */
.comment_item {display: flex; gap: 10px; margin-bottom: 20px;}
.comments-tree-list .comments-tree-list {padding-left: 20px; position: relative;}
.comment {width: 100%; padding: 10px; background-color: var(--light-gr); border-radius: 10px; word-break: break-all;}
.comment_avatar {width: 40px; height: 40px; border-radius: 10px;}
.comment_header {display: flex; gap: 10px; font-size: 13px; margin-bottom: 3px;}
.comment_header_meta {display: flex; flex-wrap: wrap; gap: 3px 10px;}
.comment_header_right {display: flex; flex-wrap: nowrap; align-items: center; gap: 3px 10px;}
.comment_header_right a {color: var(--tt-light);}
.comment_login a {font-weight: 600; color: var(--tt-light);}
.comment_date {color: var(--tt-light);}
.comment_rating {display: flex; flex-wrap: wrap; gap: 3px 15px; font-size: 15px; margin-top: 8px;}
.comment_rating a {color: var(--tt-light);}
.comment_rating i {margin-right: 5px; color: #9AA0AC;}
.comment_rating a:hover, .comment_rating i:hover {color: var(--hover-accent)}
.comment_rating span {font-size: 15px;}
.side_comment_avatar {width: 20px; height: 20px; border-radius: 5px;}
.side_comment_meta {display: flex; gap: 10px; font-size: 15px; margin-top: 5px;}
.side_comment_meta i {margin-right: 5px; color: #9AA0AC; transform: rotate(90deg);}
.side_comment_title a {font-weight: 500; font-size: 14px; color: var(--link); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;}
.side_comment_title a:hover {color: #87b5e9;}
.side_comment_text {font-size: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}

/* ---userinfo--- */
.userinfo_grid {display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 15px;}
.userinfo_img {width: 200px; height: 200px; border-radius: 10px;}
.user_info_item {padding: 2px 0;}
.user_btns {display: flex; gap: 3px; justify-content: center;}
.userinfo_meta {display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; padding: 20px;
    background: var(--card); border-radius: 10px;}
.userinfo_meta_item {display: flex; gap: 10px;}
.userinfo_meta_item i {font-size: 14px; padding: 14px; background: var(--light-gr); color: #8498cf; border-radius: 8px;}
.userinfo_meta_value {display: flex; flex-direction: column;}

/* ---pm--- */
.pm_buttons {display: flex; flex-wrap: wrap; margin: 15px 0; gap: 10px 20px;}
.pm_buttons a {flex-grow: 1; text-align: center; background-color: var(--light-gr); padding: 6px 10px; border-radius: 8px; color: var(--tt);}
.pm_buttons a:hover {background: var(--hover); color: var(--hover-accent)}
.pm_stats {background: var(--light-gr); padding: 10px 12px; margin: 15px 0; border-radius: 10px;}
.pm_progress_bar {background-color: var(--nav); margin-bottom: 10px; border-radius: 8px;}
.pm_progress_bar span {background: #447bba; font-size: 0; height: 20px; border-radius: 8px; display: block; overflow: hidden;}

/* ---stats--- */
.stats {display: flex; flex-direction: column; gap: 20px;}
.stats_box {display: flex; flex-wrap: wrap; grid-gap: 12px 14px; margin-bottom: 12px;}
.stats_item {padding: 10px 20px; background: var(--light-gr); border-radius: 15px; flex-grow: 1;}
.stats_item span {display: block;}
.stats_itema {flex-grow: 1;}
.stats_item a {color: var(--link);}

/* ---other--- */
#searchsuggestions {max-width: 450px; padding: 15px; border-radius: 10px; z-index: 1000; background: var(--card); box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);}
.fast_search_item {display: block; margin-bottom: 10px;}
.fast_search_title {font-size: 15px; color: var(--tt); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;}
.fast_search_text {font-size: 14px; color: var(--tt-light); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.seperator a {color: var(--tt);}
.navigation {display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;}
.navigation a, .navigation span {display: inline-block; min-width: 25px; height: 25px; line-height: 25px; text-align: center;
    background: var(--light-gr); color: #fff; border-radius: 6px;}
.navigation a:hover {background: var(--hover); color: #fff;}
.navigation span {background: #593FDBc7; color: #fff;}
.info_message {padding: 10px;}
.footer {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; background: var(--card); padding: 20px; margin: 30px 0 20px 0; 
    border-radius: 10px; box-shadow: 0px 4px 18px rgb(0 56 255 / 5%);}
.footer a:first-child {color: #000000;}
.footer a {color: #593FDB;}
.poll_block {padding: 15px 20px; margin-bottom: 20px; background-color: var(--light-gr); border-radius: 10px;}
.addvote {margin-top: 15px;}
.vote_list {margin: 5px 0;}
.voteprogress, .pollprogress {overflow: hidden; height: 6px; margin-bottom: 10px; background-color: var(--nav); border-radius: 3px; margin-top: 6px;}
.voteprogress span, .pollprogress span {text-indent: -9999px; height: 6px; display: block; overflow: hidden; background: #447bba;}
.mr_5 {margin-right: 5px;}
.active {display: block !important;}
.mb_30 {margin-bottom: 30px;}
.mb_5 {margin-bottom: 5px;}
.mt_5 {margin-top: 5px;}
.mtb_30 {margin: 30px 0;}
.dle-captcha {display: flex; gap: 10px;}
.searchtable {display: flex; gap: 10px;}
.form_group {display: flex; gap: 10px;}
.form_row {margin-bottom: 10px;}
.form_row_title {font-weight: 600;}
.form_col {display: flex; gap: 10px; align-items: center;}
.tags_list {display: flex; flex-wrap: wrap; gap: 10px;}
#dlefastreplycomments {margin: 5px 0;}
button, .btn, input[type="submit"], input[type="button"], input[type="reset"], .user_btn a {display: inline-flex;
    align-items: center;
    min-height: 39px;
    background: #593FDB;
    color: #fff;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: "Manrope", serif;
    }
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover, .user_btn a:hover {background: #593FDBc7;}
.mrg_left {margin-left: auto;}
.clouds_xsmall a, .clouds_xlarge a, .clouds_medium a, .clouds_small a {font-weight: 500; background: var(--light-gr);
    border-radius: 7px; padding: 0px 10px 2px 10px;
    color: #ffffff;}
.clouds_xsmall a:hover, .clouds_xlarge a:hover, .clouds_medium a:hover, .clouds_small a:hover {background: var(--hover); color: var(--hover-accent);}

/* ---adaptive--- */}
@media (min-width:1000px) {.nav_list{padding: 0 25px;}}
@media (max-width:999.99px) {
.fullstory iframe {max-width:100%; height:350px;}
.header {
  display: grid;
  grid-template-columns: 150px auto; /* Первая колонка 150px, вторая - автоматически */
  grid-template-rows: auto auto; /* Две строки */
}

.grid-1 {
  grid-column: 1; /* Первая колонка */
  grid-row: 1; /* Первая строка */
}

.grid-2 {
  grid-column: 2; /* Вторая колонка */
  grid-row: 1; /* Первая строка */
}

.grid-3 {
  grid-column: 1 / span 2; /* Занимает обе колонки */
  grid-row: 2; /* Вторая строка */
}
}
@media screen and (min-width: 660px) {
    .nav_list .header_search {display: none;}
}
@media screen and (min-width: 887px) {
    
    .submenu_list {position: absolute; transform: translateX(-50%); left: 50%; min-width: 150px; width: max-content;
    background: var(--nav); border-radius: 10px; padding: 0 15px;}
    .nav_list {gap: 15px;}
    .nav_list .side_nav {display: none;}
    .side_nav_item {text-align: left; color: #8498cf;}
    .side_nav .side_nav_item:not(:last-child) {border-bottom: 1px solid var(--border);}
    .side_nav_item:hover {color: var(--hover-accent);}
}
@media screen and (max-width: 900px) {
    .cols {grid-template-columns: minmax(0, 1fr);}
    .side_nav_block {display: none;}
    h1 {font-size: 18px !important;}
}
@media screen and (max-width: 887px) {
    .header_nav {position: absolute; left: 0; right: 0; display: none;         padding-top: 20px;}
    .nav_list_item {
    font-size: 16px;
    }
    .header {position: relative;}  
    .nav_list .header_search {
        display:none;
    }
}
@media (min-width:768px) {.mob_menu {display: none;}}
@media (max-width:767.99px) {
    .mob_menu {justify-self: end; }
    .nav_list {
        width:100%;
        display:none;
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        grid-auto-flow: row;
    }
    .header_search_btn {font-size: 14px; padding: 0 15px 0 10px;}

}
@media screen and (max-width: 660px) {

}


@media screen and (max-width: 500px) {
    .fullstory iframe {max-width:100%; height:220px;}
    .comments-tree-list .comments-tree-list {padding-left: 0;}
    .wrapper_container {margin: 0 5px;}
    .header {margin-top: 5px;}
    .userinfo_grid {grid-template-columns: minmax(0, 1fr); justify-items: center;}
    .nav_list {flex-direction: column; width: 100%;}
}