/* DESKTOP  (1024)
---------------------------------------------*/
@media only screen and (max-width:1024px) {
    .aside.right {display: none;}
    .promo_item_content img {height: 190px;}
}



/* TABLET  (992)
---------------------------------------------*/
@media only screen and (max-width:992px) {
    .promo_item_content img {height: 235px;}
}



/* TABLET  (800)
---------------------------------------------*/
@media only screen and (max-width:800px) {
    .aside {flex: 0 0 auto;}
    .aside_bl {display: none;}
    .aside.left {margin-right: 0;}
    .main {max-width: calc(100%);}
    .promo_item_content img {height: 265px;}
    .logo {flex: 0 0 100%;margin-bottom: 5px;}
    .header {padding: 5px 5px 15px;}
    .search input {height: 36px;}
    #open_panel, .m_nav, .m_nav:hover {background: rgba(255, 255, 255, 0.2);}
    .m_nav {margin: 0 15px 0 10px; display: inline-block;}
    #open_panel {margin-right: -5px;}
    .aside_bl.menu_ {position: absolute;z-index: 20;min-width: 250px;}
}



/* TABLET  (768)
---------------------------------------------*/
@media only screen and (max-width:768px) {
    .promo_item_content img {height: 250px;}
}



/* TABLET  (640)
---------------------------------------------*/
@media only screen and (max-width:640px) {
    .promo_item_content img {height: 285px;}
}



/* MOBILE  (480)
---------------------------------------------*/
@media only screen and (max-width:480px) {
    .m_nav, .upanel {order: 4;}
    .search {order: 2;display: flex;width: 100%;flex: 1 100%;}
    .search form {width: 100%;margin: 0 15px 15px;}
    .promo_item_content img {height: 205px;}
    .short_item_top_content .poster {flex: 0 0 100%;margin-right: 0;margin-bottom: 20px;}
    .short_item_load .rating_star {display: none;}
    .short_item_top {margin-bottom: 15px;}
    .short_item_load h3 {text-align: center;margin-top: 0px;}
    .full_poster img {max-width: 65%;}
}



/* MOBILE  (360)
---------------------------------------------*/
@media only screen and (max-width: 360px) {
    .m_hide {display: none;}
    .search form {margin: 0 10px 15px;}
    .short_item_top_content .descr {display: none;}
    .short_item_top_content .poster {margin-bottom: 15px;}
    .short_item_top {margin-bottom: 0;}
    .category {display: none;}
    .short_item_bottom {justify-content: center;}
    .promo_item_content img {height: 230px;}
    .full_poster img {max-width: 100%;}
    .short_item_bottom {justify-content: space-between;}
    .short_item_bottom_info {justify-content: center;}
    .add_user {display: none;}
}



/* MOBILE  (320)
---------------------------------------------*/
@media only screen and (max-width:320px) {
    .promo_item_content img {height: 420px;}
}

/* Modern responsive overrides */
@media only screen and (max-width:1180px) {
    .container {
        padding: 16px !important;
    }

    .middle {
        grid-template-columns: 235px minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .content {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .aside.right {
        display: none !important;
    }
}

@media only screen and (max-width:800px) {
    .middle {
        display: block !important;
    }

    .main {
        max-width: 100% !important;
    }

    .header {
        padding: 12px !important;
        gap: 10px !important;
    }

    .logo {
        flex: 1 1 auto !important;
        width: auto !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .search {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .search form {
        margin: 0 !important;
    }

    .m_nav {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
    }

    .aside_bl.menu_ {
        position: absolute !important;
        z-index: 20 !important;
        min-width: min(300px, calc(100vw - 32px)) !important;
        box-shadow: 0 16px 40px rgba(20, 28, 33, .18) !important;
    }

    .promo_item_content img {
        height: 220px !important;
    }

    .full_page,
    .short_item_load {
        padding: 18px !important;
    }

    .post_full_top,
    .item_post_content {
        grid-template-columns: 1fr !important;
    }

    .item_poster {
        max-width: 260px !important;
    }

    .item_post_info {
        gap: 12px !important;
    }
}

@media only screen and (max-width:560px) {
    .container {
        padding: 10px !important;
    }

    .header {
        margin-bottom: 14px !important;
    }

    .logo {
        flex: 1 1 100% !important;
        justify-content: center !important;
        font-size: 18px !important;
    }

    .search form {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .search input,
    .search button {
        width: 100% !important;
    }

    .promo_item_content img {
        height: 240px !important;
    }

    .content_body > div[style*="text-align: center"] h1 span {
        font-size: 16px !important;
    }

    .item_post {
        padding: 14px !important;
    }

    .item_post .post_title a {
        font-size: 16px !important;
    }

    .item_poster {
        max-width: none !important;
        width: 100% !important;
    }

    .item_poster img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .item_descr {
        display: block !important;
    }

    .post_info {
        padding: 14px !important;
    }

    .post_info > ul > li {
        display: block !important;
    }

    .footer {
        text-align: center !important;
    }
}

/* Strict admin redesign responsive layer */
@media only screen and (max-width:1320px) {
    .container {
        padding: 18px !important;
    }

    .middle {
        grid-template-columns: 258px minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .content {
        grid-template-columns: minmax(0, 1fr) 268px !important;
        gap: 18px !important;
    }

    .header {
        grid-template-columns: 240px minmax(260px, 1fr) auto !important;
    }
}

@media only screen and (max-width:1180px) {
    .content {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .aside.right {
        display: none !important;
    }

    .promo_item_content img {
        height: 186px !important;
    }
}

@media only screen and (max-width:900px) {
    body {
        background-size: 32px 32px !important;
    }

    .container {
        padding: 14px !important;
    }

    .middle {
        display: block !important;
    }

    .main {
        max-width: 100% !important;
    }

    .header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .logo {
        width: auto !important;
        height: 40px !important;
        border-right: 0 !important;
        font-size: 17px !important;
    }

    .search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .search form {
        margin: 0 !important;
    }

    .m_nav {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .aside.left,
    .aside.right {
        position: static !important;
    }

    .aside_bl.menu_ {
        position: absolute !important;
        z-index: 20 !important;
        width: min(320px, calc(100vw - 28px)) !important;
        min-width: 0 !important;
        box-shadow: 0 18px 46px rgba(23, 33, 43, .18) !important;
    }

    .global_promo,
    .breadcrumbs-wrapper,
    .item_post,
    .full_page,
    .footer {
        margin-bottom: 16px !important;
    }

    .post_full_top,
    .item_post_content {
        grid-template-columns: 1fr !important;
    }

    .item_poster {
        width: min(100%, 280px) !important;
        max-width: 280px !important;
    }

    .post_img {
        max-width: 280px !important;
    }

    .post_info > ul > li {
        display: grid !important;
        grid-template-columns: minmax(120px, 155px) minmax(0, 1fr) !important;
    }
}

@media only screen and (max-width:620px) {
    .container {
        padding: 10px !important;
    }

    .header {
        border-left-width: 3px !important;
    }

    .logo {
        grid-column: 1 / -1 !important;
        justify-content: center !important;
        padding-right: 0 !important;
    }

    .m_nav {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .search form {
        grid-template-columns: 1fr !important;
    }

    .search input,
    .search button {
        width: 100% !important;
    }

    .promo_item_content img {
        height: 230px !important;
    }

    .content_body > div[style*="text-align: center"] h1 span {
        font-size: 12px !important;
    }

    .item_post,
    .full_page,
    .short_item_load {
        padding: 15px !important;
    }

    .item_post .post_title {
        margin-right: 0 !important;
    }

    .item_post .post_title a {
        font-size: 16px !important;
    }

    .item_poster,
    .post_img {
        width: 100% !important;
        max-width: none !important;
    }

    .item_descr {
        display: block !important;
    }

    .item_category {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .item_post_info {
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .item_stars {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .full_page .h1,
    .full_page .h3,
    #namegame {
        margin-right: 0 !important;
        font-size: 21px !important;
    }

    .post_info {
        padding: 14px !important;
    }

    .post_info > ul > li {
        display: block !important;
    }

    a.ulightbox {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .footer {
        text-align: left !important;
    }
}

@media only screen and (max-width:380px) {
    .pagination a,
    .pagination span {
        min-width: 30px !important;
        padding: 7px 9px !important;
    }

    .promo_item_content img {
        height: 210px !important;
    }
}

/* Operations console responsive layer */
@media only screen and (max-width:1360px) {
    .container {
        padding: 20px 22px 20px 28px !important;
    }

    .middle {
        grid-template-columns: 274px minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .content {
        grid-template-columns: minmax(0, 1fr) 280px !important;
        gap: 20px !important;
    }

    .header {
        grid-template-columns: 248px minmax(260px, 1fr) auto !important;
    }

    .item_post_content {
        grid-template-columns: 190px minmax(0, 1fr) !important;
    }

    .post_info > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media only screen and (max-width:1180px) {
    .content {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .aside.right {
        display: none !important;
    }

    .header {
        grid-template-columns: 228px minmax(240px, 1fr) auto !important;
    }

    .logo {
        padding-right: 14px !important;
        font-size: 18px !important;
    }

    .logo::after {
        display: none !important;
    }

    .promo_item_content img {
        height: 190px !important;
    }
}

@media only screen and (max-width:940px) {
    body::after {
        width: 4px !important;
    }

    .container {
        padding: 14px 14px 14px 18px !important;
    }

    .wrap::before {
        margin-bottom: 6px !important;
    }

    .middle {
        display: block !important;
    }

    .main {
        max-width: 100% !important;
    }

    .header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .logo {
        min-height: 58px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ops-line) !important;
    }

    .header_console {
        grid-column: 1 / -1 !important;
        padding: 10px 12px 12px !important;
        border-top: 1px solid var(--ops-line) !important;
    }

    .header_actions {
        grid-row: 1 !important;
        grid-column: 2 !important;
        padding: 8px 10px !important;
        border-left: 1px solid var(--ops-line) !important;
    }

    .m_nav {
        display: inline-flex !important;
    }

    .aside.left,
    .aside.right {
        position: static !important;
    }

    .aside_bl:not(.menu_) {
        display: none !important;
    }

    .aside_bl.menu_ {
        position: absolute !important;
        z-index: 50 !important;
        width: min(340px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
        margin-top: 8px !important;
        box-shadow: 0 20px 48px rgba(23, 33, 43, .2) !important;
    }

    .global_promo {
        padding-top: 34px !important;
    }

    .global_promo::after {
        width: 92px !important;
    }

    .item_post_content {
        grid-template-columns: 172px minmax(0, 1fr) !important;
    }

    .item_post .post_title a {
        font-size: 18px !important;
    }

    .post_full_top {
        grid-template-columns: 240px minmax(0, 1fr) !important;
    }

    .post_info > ul {
        grid-template-columns: 1fr !important;
    }
}

@media only screen and (max-width:720px) {
    .container {
        padding: 10px 10px 10px 14px !important;
    }

    .header {
        grid-template-columns: 1fr !important;
    }

    .logo {
        justify-content: flex-start !important;
        min-height: 54px !important;
        padding: 12px 14px !important;
        font-size: 17px !important;
    }

    .header_actions {
        grid-row: auto !important;
        grid-column: 1 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        padding: 10px 12px !important;
        border-left: 0 !important;
        border-top: 1px solid var(--ops-line) !important;
    }

    .m_nav {
        width: 100% !important;
        justify-content: center !important;
    }

    .header_console_meta {
        display: none !important;
    }

    .search form {
        grid-template-columns: 1fr !important;
    }

    .search button {
        border-left: 0 !important;
        border-top: 1px solid var(--ops-line) !important;
    }

    .global_promo {
        padding: 32px 10px 10px !important;
    }

    .promo_item_content img {
        height: 230px !important;
    }

    .breadcrumbs-wrapper,
    .content_body > div[style*="text-align: center"] {
        padding-right: 12px !important;
    }

    .item_trace {
        grid-template-columns: auto auto !important;
    }

    .full_trace {
        grid-template-columns: auto auto !important;
        padding: 9px 12px !important;
    }

    .item_trace::after,
    .full_trace::after {
        display: none !important;
    }

    .item_post .post_title {
        padding: 14px 16px !important;
    }

    .item_post::before,
    .item_post::after {
        display: none !important;
    }

    .item_post_content {
        grid-template-columns: 1fr !important;
    }

    .item_poster {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ops-line) !important;
    }

    .item_poster_img {
        max-width: 280px !important;
    }

    .item_poster img {
        width: 100% !important;
    }

    .item_body {
        padding: 15px !important;
    }

    .item_category {
        grid-template-columns: 1fr !important;
    }

    .item_category > span {
        white-space: normal !important;
    }

    .item_post_info {
        grid-template-columns: 1fr !important;
    }

    .item_stars {
        justify-content: flex-start !important;
    }

    .full_page .h1,
    .full_page .h3,
    #namegame {
        padding: 16px !important;
        font-size: 21px !important;
    }

    .post_full_top {
        grid-template-columns: 1fr !important;
    }

    .post_img {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ops-line) !important;
    }

    .post_img img {
        max-width: 280px !important;
    }

    .post_info,
    .short_descr,
    .page-content-wrapper {
        padding: 16px !important;
    }

    a.ulightbox {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .footer {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media only screen and (max-width:420px) {
    .logo {
        justify-content: center !important;
        text-align: center !important;
    }

    .m_nav_text {
        display: none !important;
    }

    .m_nav::after {
        content: "MENU";
    }

    .promo_item_content img {
        height: 210px !important;
    }

    .item_trace {
        padding: 8px 10px !important;
    }

    .item_trace span {
        font-size: 9px !important;
    }

    .item_post .post_title a {
        font-size: 16px !important;
    }

    .post_img img {
        max-width: 100% !important;
    }
}
