/* ============================================================
   ROOT: Глобальные переменные
   ============================================================ */

:root {
    /* Основные цвета */
    --color-primary: #ff485b;
    --color-primary-dark: #f93f59;
    --color-primary-light: #ff596a;
    --color-secondary: #444;
    --color-text: #444;
    --color-text-secondary: #94999e;
    --color-text-light: #94999e;
    --color-border: #e9ecef;
    --color-border-dark: #caced1;
    --color-border-light: #eceded;
    --color-bg: #fff;
    --color-bg-gray: #f4f6f7;
    --color-bg-dark: #f8f8f8;
    --color-bg-input: #f4f6f7;
    --color-white: #fff;
    --color-black: #000;
    --color-success: #4ade80;
    --color-success-dark: #22c55e;
    --color-warning: #facc15;
    --color-error: #ef4444;
    --color-error-dark: #dc2626;
    --color-gray: #94999e;
    --color-gray-light: #cdd0d3;
    --color-gray-dark: #404549;
    --color-green: #2ecc71;
    --color-orange: #ff742f;
    --color-yellow: #ffd94f;
    
    /* Размеры */
    --max-width: 1180px;
    --border-radius: 4px;
    
    /* Тени */
    --shadow-dropdown: 0 8px 40px -10px rgba(0,0,0,0.3);
    --shadow-btn: 0 1px 2px 0 rgba(0,0,0,0.14);
    
    /* Шрифты */
    --font-family: "GothaPro", Arial, Helvetica, sans-serif;
    --font-size-base: 15px;
    --line-height-base: 1.5;
}

/* ============================================================
   ТЁМНАЯ ТЕМА (переопределяем переменные)
   ============================================================ */

.dark-theme {
    --color-text: #e0e0e0;
    --color-text-secondary: #a0a4b8;
    --color-bg: #1a1a1a;
    --color-bg-gray: #2a2a2a;
    --color-bg-dark: #222;
    --color-border: #333;
    --color-border-dark: #444;
    --color-border-light: #2a2a2a;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}
table { border-collapse: collapse; border-spacing: 0; }
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary {
    display: block;
}
html, html a { -webkit-font-smoothing: antialiased; }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

body, select, input, textarea, button {
    font: normal var(--font-size-base)/var(--line-height-base) var(--font-family);
    letter-spacing: 0.008em;
    color: var(--color-text);
    outline: none;
}

a {
    outline: none;
    color: var(--color-primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }
a img { border: 0 none; }
a > img { vertical-align: bottom; }

h1,h2,h3,h4,h5,.h1,.h2,.h3,.h4,.h5 {
    margin: 2em 0 0.8em 0;
    letter-spacing: -0.01em;
    line-height: 1.35em;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}
h1, .h1 { font-size: 2em; }
h2, .h2 { font-size: 1.4em; }
h3, .h3 { font-size: 1.6em; }
h4, .h4 { font-size: 1.5em; }
h5, .h5 { font-size: 1.2em; }

.strike { text-decoration: line-through; }
.nobr { white-space: nowrap; }
.hide { display: none; }
.title_hide {
    left: -9999px;
    position: absolute;
    top: -9999px;
    overflow: hidden;
    width: 0;
    height: 0;
}
.uline { text-decoration: underline; }
.ultrabold {
    font-weight: 900;
    text-transform: uppercase;
}
.justify { text-align: justify; }
.center { text-align: center; }
.left { float: left; }
.right { float: right; }

fieldset {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 1.5em;
}
fieldset legend { font-weight: bold; }

.grey { color: var(--color-gray); }
.grey a { color: inherit; }
.grey a:hover, a.grey:hover { color: var(--color-secondary); }

.red { color: var(--color-primary); }
.green { color: var(--color-green); }
.blac { color: var(--color-black); margin-left: 9px; }

sup { vertical-align: super; font-size: smaller; }
.over {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
a .over { cursor: pointer; }

.cover {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
}

ul { padding-left: 40px; list-style: disc outside; margin-top: 1em; margin-bottom: 1em; }
ol { padding-left: 40px; list-style: decimal outside; margin-top: 1em; margin-bottom: 1em; }

.instagram-media, .twitter-tweet { display: inline-block !important; }

strong, b { font-weight: bold; }
em, cite, i { font-style: italic; }
caption { text-align: left; }
th, td { vertical-align: middle; }
small, .small { font-size: 0.9em; }

hr {
margin: 6px 12px 12px 0px;
    border: none;
    border-top: 2px dotted var(--color-border-light);
}

/* .c_hr {margin: 6px 20px 12px 0px;
    border: none;
    border-top: 2px dotted var(--color-border-light);} */
.s_hr {margin: 5px 0px 0px 0px;
    border: none;
    border-top: 2px dotted var(--color-border-light);}
    .calendar_box {
max-width: var(--max-width);
    padding: 0 20px;
        margin: 0 120px auto;
    }

    .ccdn_calendar,
    .ccdn_calendar-day,
    .ccdn_calendar-item,
    .ccdn_calendar-item a {
        display: block;
        width: 100%;
    }

.clr { clear: both; }
.clrfix:after { clear: both; content: ""; display: table; }

p {
    margin-block-start: 0.7em;
    margin-block-end: 0.7em;
}

.in {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   3. GRID SYSTEM
   ============================================================ */

@media only screen and (min-width: 769px) {
    .grid_1_2, .grid_1_4, .grid_3_4 {
        float: left;
        margin-right: 3%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    .grid_1_2.right, .grid_1_4.right, .grid_3_4.right { float: right; }
    .grid_1_2.none, .grid_1_4.none, .grid_3_4.none {
        float: none;
        margin-right: 0;
    }
    .grid_1_2 { width: 48%; }
    .grid_1_4 { width: 22%; }
    .grid_3_4 { width: 74%; }
    .grid_last { margin-right: 0; }

    .grid_list:after { content: ""; display: block; clear: both; }
    .grid_list > .grid_1_2:last-child,
    .grid_list > .grid_1_4:last-child,
    .grid_list.grid_3_4:last-child { margin-right: 0; }
}

.grid_2_5 {
    width: 17%;
    float: left;
}


.main {
    display: flex;
    padding-bottom: 1px;
    width: 200px;
    height: 300px;
}

.main img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    background: url(/templates/redmy/images/no-poster.svg) no-repeat center / 100% 100%;
    border: 0.5px solid rgba(148, 153, 158, 0.45);
}

.grid_list:has(.grid_2_5) {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.block_registration {background: #f8f8f8;
    border: 0.5px solid rgba(148, 153, 158, 0.45);
    padding: 20px;
    border-radius: 4px;
    text-align: start;}
.title_registration {margin: 0 0 12px 0; font-size: 20px; color: #1a1a1a; font-weight: 600;}
.p_reg {margin: 0 0 16px 0; font-size: 14px; color: #333; line-height: 1.5;}
.buttons_reg {display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;}
.p_reg_b {margin: 12px 0 0 0; font-size: 13px; color: #888;}

.title-dynamic {    display: flex;
    gap: 6px;
    align-items: center;margin-bottom: 10px; margin-top: 0;}

.entrance {border: 0 none;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    height: 41px;
    font-size: .94em;
    border-radius: 2px;
    line-height: 21px;
    outline: none;
    color: #fff !important;
    padding: 10px 22px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.14);
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.14);
    background-color: #ff485b;
    background-image: -webkit-linear-gradient(top, #2ecc71 0%, #2abb68 100%);
    background-image: -moz-linear-gradient(top, #2ecc71 0%, #2abb68 100%);
    background-image: -o-linear-gradient(top, #2ecc71 0%, #2abb68 100%);
    background-image: -ms-linear-gradient(top, #2ecc71 0%, #2abb68 100%);
    background-image: linear-gradient(top, #2ecc71 0%, #2abb68 100%);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;}

    
/* ============================================================
   4. UTILITY: Expand & Collapse, DropDown
   ============================================================ */

.fade {
    opacity: 0;
    -webkit-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
}
.fade.in { opacity: 1; }

.collapse {
    overflow: hidden;
    height: 0;
    width: 0;
    display: block;
}
.collapse.in {
    display: block;
    width: auto;
    height: auto;
}

.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    -webkit-transition: height 0.35s ease;
    transition: height 0.35s ease;
}

.dropdown { position: relative; }

.dropdown-menu, .dropdown-form {
    min-width: 160px;
    padding: 12px 0;
    border-radius: 2px;
    margin-top: 5px !important;
    display: none;
    z-index: 99;
    position: absolute;
    box-shadow: var(--shadow-dropdown);
    -webkit-box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--color-border-light);
    border-color: rgba(0,0,0,0.1);
    background-clip: padding-box;
    background-color: var(--color-bg);
}
.dropdown-menu { list-style: none; margin: 0; }
.dropdown-form { padding: 25px; }

.dropdown-menu li a {
    height: 1%;
    padding: 5px 20px;
    border: 0 none;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}
.dropdown-menu li a:hover {
    background-color: #e05b37;
    color: var(--color-white);
}
.open .dropdown-menu, .open .dropdown-form { display: block; }

.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

.signature {
    font-size: 0.9em;
    opacity: 0.5;
    margin-top: 0.9em;
}
.st {flex-direction: column; gap: 5px !important;}
.wseditor table, .bb-editor table { margin: 0px; }
.dlepopupnewsedit { height: 400px !important; }

/* ============================================================
   5. ICONS
   ============================================================ */

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: var(--color-primary);
    vertical-align: middle;
}
.icon-logo { width: 42px; height: 42px; margin: -5px;}
.icon-ca { width: 25px; height: 25px; }
.icon-arrow_down { width: 13px; height: 13px; }
.icon-arrow_left { width: 13px; height: 13px; }
.icon-arrow_right { width: 13px; height: 13px; }
.icon-fav { width: 15px; height: 14px; }
.icon-like { width: 13px; height: 11px; }
.icon-meta_date { width: 17px; height: 17px; }
.icon-meta_reply { width: 13px; height: 13px; }
.icon-meta_views { width: 17px; height: 17px; }
.icon-meta_cat { width: 17px; height: 17px; }
.icon-meta_user { width: 15px; height: 16px; }
.icon-meta_coms { width: 17px; height: 17px; }
.icon-meta_mail { width: 19px; height: 15px; }
.icon-compl { width: 13px; height: 13px; }
.icon-cross { width: 13px; height: 13px; }
.icon-next, .icon-prev { width: 23px; height: 23px; }
.icon-search, .icon-login { width: 20px; height: 19px; }
.icon-sort, .icon-speedbar, .icon-meta_pages { width: 29px; height: 30px; }
.icon-login { width: 19px; height: 19px; }
.icon-tags { width: 17px; height: 17px; }
.icon-laurel-crown {width: 14px; height: 14px;}
.icon-top-crown {width: 22px; height: 24px; margin-bottom: 2px;}
.icon-badge {width: 28px; height: 22px;}
.icon-text-logo {color: #fff; width: 92px; height: 20px;}
/* .icon-logo {color: #fff; width: 120px; height: 30px;} */

.icon-vk { width: 10px; height: 1em; }
.icon-tw { width: 14px; height: 1em; }
.icon-fb { width: 8px; height: 1em; }
.icon-gp { width: 18px; height: 1em; }
.icon-ya { width: 7px; height: 1em; }
.icon-od { width: 10px; height: 1em; }
.icon-mail { width: 16px; height: 1em; }

.icon-mask-happy, .icon-translate {
    color: var(--color-primary);
    width: 22px;
    height: 22px;
}

	.foot_box {display: flex;}
	.icon-foot-logo {
	color: var(--color-gray);
    width: 92px;
    height: 20px;}

/* ============================================================
   6. LAYOUT
   ============================================================ */

body { background-color: var(--color-bg); }

.wrp, .wrp_min {
    max-width: var(--max-width);
    padding: 0 20px;
    margin: 0 auto;
}
.wrp_min { max-width: 950px; }


.headpic.fixed { background-attachment: fixed; }

.headpic:after {
content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    backdrop-filter: blur(0px);
    filter: blur(9px);
    height: 100%;
    background-color: rgb(0 0 0 / 60%);
}

.head_text { 
    display: flex;
    height: 500px;
    padding: 0;
    }

.head_text_in {
display: flex;
    flex-direction: row;
    margin-bottom: 50px;
    align-items: flex-end;
}
.head_text_content {
    width: 70%;
    display: flex;
    flex-direction: column;
    }

.head_text .title {
    margin: 0 0 6px 0;
    font-size: 2.2em;
    line-height: 1.2;
    flex-shrink: 0;
}

.head_text .text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.5;
    max-height: 3em;
    margin: 0 0 12px 0;
    font-size: 1.2em;
    opacity: 0.9;
    flex-shrink: 0;
}

.head_text .buttons_reg {
    flex-shrink: 0;
}

    .head_text_poster {
        width: 30%;
    display: flex;
    justify-content: flex-end;}
    .head_text_poster .text_img {border-radius: 4px;overflow: hidden;}
.head_text_in, .head_text_in * { color: var(--color-white); }
.head_text_in > .title { margin: 0; font-size: 2.8em; }
.head_text_in > .text { margin: 0; font-size: 1.2em; }
.head_meta {display: flex; gap: 6px; margin-bottom: 10px;}
.badge-new {background-color: var(--color-green); width: fit-content;}
.badge-top {background-color: var(--color-primary-dark); width: fit-content;}
.badge-series {background-color: #006cff; width: fit-content;}

/* ============================================================
   МЕТКА КАТЕГОРИИ РЯДОМ С ЗАГОЛОВКОМ В ШАПКЕ
   ============================================================ */

.category-label {
    display: none;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    vertical-align: middle;
    transition: opacity 0.4s ease-in-out;
}

.cat-important {
    background: #ff485b;
    color: #fff;
}

.cat-normal {
    background: #6c757d;
    color: #fff;
}

/* ============================================================
   РАЗМЫТЫЙ ФОН В ШАПКЕ
   ============================================================ */

/* Основной фон с размытием */
.headpic .bg-layer {
    filter: blur(8px) brightness(0.6);
    transform: scale(1.05); /* Убираем белые края при размытии */
    transition: opacity 0.8s ease-in-out;
}

/* Оверлей (затемнение) поверх размытого фона */
.headpic .overlay {
    background: rgba(0, 0, 0, 0.3); /* Чуть светлее, чтобы текст читался */
    z-index: 1;
}

/* Текст и постер — поверх всего, чёткие */
.head_text {
    position: relative;
    z-index: 1;
}

.head_text_in {
display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: 40px 0;
}

.head_text_content h1{
    display: flex;
    align-items: center;
    gap: 10px;
}

.head_rating {
    gap: 10px;
    margin-bottom: 6px;
}

.head_rating > span.rating-kp {color: #ff742f;}
.head_rating > span.rating-imdb {color:#ffd94f}


.head_text_poster .text_img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.head_text_poster .text_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

@media only screen and (min-width: 861px) {
    #header {
        height: 76px;
        display: -webkit-flex;
        display: flex;
    }
}

.logotype {
    position: relative;
    z-index: 2;
display: flex;
    align-items: center;
    text-decoration: none !important;
}
.icon-text-logo:hover {color:var(--color-text-secondary);}
.logotype > .icon { fill: var(--color-white); }

/* --- Верхнее меню --- */
@media only screen and (min-width: 861px) {
    .topbar { -webkit-flex-grow: 2; flex-grow: 2; }
    #topmenu { float: left; position: relative; z-index: 2; }
    #topmenu ul { list-style: none; padding: 0; margin: 0; }
    #topmenu > ul > li { float: left; position: relative; }
    #topmenu > ul > li > a {
        display: block;
        line-height: 22px; height: 22px;
        padding: 27px 17px;
        text-decoration: none !important;
        opacity: 0.8;
        -webkit-transition: opacity 0.2s ease;
        transition: opacity 0.2s ease;
        position: relative;
        z-index: 21;
    }
    #topmenu > ul > li > a:hover { opacity: 1; }
    #topmenu > ul > li > a > .icon {
        fill: var(--color-white);
        opacity: 0.2;
        margin-left: 6px;
    }
    #topmenu a, #topmenu { color: var(--color-white); }
    #topmenu > ul > li > ul, #topmenu > ul > li > div {
        position: absolute;
        left: 0; top: 0;
        padding: 30px 0;
        padding-top: 76px;
        margin-left: -13px;
        width: 250px;
        z-index: 20;
        opacity: 0; visibility: hidden;
        -webkit-transform: translate(0, -100%) scale(0.8);
        transform: translate(0, -100%) scale(0.8);
    }
    #topmenu > ul > li > div { padding-left: 30px; padding-right: 30px; }
    #topmenu > ul > li:hover > ul, #topmenu > ul > li:hover > div {
        opacity: 1; visibility: visible;
        -webkit-transform: translate(0, 0) scale(1);
        transform: translate(0, 0) scale(1);
        -webkit-transition: all 0.4s ease;
        transition: all 0.4s ease;
    }
    #topmenu > ul > li > ul:after, #topmenu > ul > li > div:after {
        content: "";
        background-color: #2a3843;
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        border-radius: 0 0 2px 2px;
        opacity: 0.85;
        box-shadow: 0 0 9px 0 rgba(0,0,0,0.4);
        -webkit-box-shadow: 0 0 9px 0 rgba(0,0,0,0.4);
    }
    #topmenu > ul > li > ul > li, #topmenu > ul > li > div > div {
        position: relative;
        z-index: 1;
    }
    #topmenu > ul > li.parent:hover > a {
        color: var(--color-primary);
        opacity: 1;
    }
    #topmenu > ul > li.parent:hover > a > .icon {
        fill: var(--color-primary);
        opacity: 1;
    }
    #topmenu > ul > li > ul > li > a {
        display: block;
        padding: 0.3em 30px;
        height: 1%;
        text-decoration: none !important;
    }
    #topmenu > ul > li > ul > li > a:hover { color: var(--color-primary); }
}

#closemenu { display: none; }

/* --- Архив --- */
.arh_tabs {
    list-style: none;
    height: 26px;
    border-radius: 18px;
    margin-bottom: 25px !important;
    overflow: hidden;
    position: relative;
}
.arh_tabs:after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0; right: 0;
    border: 1px solid var(--color-primary);
    border-radius: 13px;
}
.arh_tabs > li {
    float: left;
    width: 50%;
    position: relative;
    z-index: 1;
}
.arh_tabs > li > a {
    text-align: center;
    display: block;
    height: 22px; line-height: 22px;
    padding: 2px 4px;
    color: var(--color-white);
    text-decoration: none !important;
    text-transform: uppercase;
    border-radius: 13px;
    font-size: 10px;
    font-weight: bold;
}
.arh_tabs > li.active > a { background-color: var(--color-primary); }

@media only screen and (min-width: 861px) {
    #mainmenu.h_btn { display: none; }
}

.menu_toggle, .icon_close {
    display: inline-block;
    vertical-align: middle;
    width: 19px; height: 19px;
    margin: 0;
    position: relative;
}
.menu_toggle > i, .icon_close > i {
    height: 1px; width: 100%;
    background-color: var(--color-white);
    position: absolute;
    left: 0; top: 0;
    -webkit-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.mt_1 { margin-top: 1px; }
.mt_2 { margin-top: 9px; }
.mt_3 { margin-top: 17px; }
.menu_toggle__title { display: none; }

#mainmenu.open .mt_1, .icon_close > i.mt_1 {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
#mainmenu.open .mt_2 { opacity: 0; }
#mainmenu.open .mt_3, .icon_close > i.mt_2 {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
#mainmenu.open .mt_1, #mainmenu.open .mt_2, #mainmenu.open .mt_3, .icon_close > i {
    margin-top: 9px;
}
#mainmenu.open .menu_toggle { opacity: 1 !important; }
#mainmenu.open i { background-color: var(--color-white); }

/* --- Авторизация и поиск --- */
.h_btn {
    float: right;
    width: 44px; height: 44px;
    position: relative;
    z-index: 2;
    background: none;
    border: 0 none;
    padding: 16px 6px;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}
.h_btn:after {
    content: "";
    background-color: #000000;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 66px;
    border-radius: 0 0 2px 2px;
    opacity: 0; visibility: hidden;
    margin-top: -60px;
    -webkit-transition: margin-top 0.2s ease;
    transition: margin-top 0.2s ease;
}
.h_btn.open:after {
    opacity: 1; visibility: visible;
    margin-top: 0;
}
.h_btn > * { position: relative; z-index: 1; }
.h_btn > .icon { fill: var(--color-white); }
.h_btn.open > .icon, .h_btn > .icon_close, .h_btn.open > .avatar {
    display: none;
}
.h_btn.open > .icon_close {
    display: inline-block;
}

/* --- Tools --- */
#tools {
    position: relative;
    z-index: 1;
    background-color: var(--color-bg-gray);
    font-size: 0.9em;
}
.tools {
    height: 76px;
    display: flex;
}
.tools > .wrp:after { content: ""; display: block; clear: both; }

.tool {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    align-items: center;
    display: flex;
    height: 76px;
    padding: 0 70px;
}

.filter_tool {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

/* --- select --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

@property --hue {
    syntax: "<angle>";
    inherits: true;
    initial-value: 180deg;
}

@keyframes rotateHue {
    0% { --hue: 180deg; }
    25% { --hue: 360deg; }
    100% { --hue: 180deg; }
}

select {
    appearance: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-secondary);
    padding-block: 10px;
    padding-inline: 20px 30px;
    border-radius: var(--border-radius);
    border: 0.5px solid var(--color-gray);
    cursor: pointer;
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%236c757d' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") right 15px center / 20px no-repeat;
}

@supports (appearance: base-select) {
    select, select::picker(select) {
        appearance: base-select;
        animation: rotateHue 10s infinite;
    }
    select {
        padding-inline: 15px;
        background-image: none;
    }
    select img { width: 30px; line-height: 1; }
    select::picker-icon {
        content: "";
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%236c757d' class='size-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A");
        transition: rotate 0.2s ease-out;
    }
    select:open::picker-icon { rotate: 180deg; }
    select::picker(select) {
        padding: 0;
        margin-top: 6px;
        border: 1px solid #bebfc1;
        background: var(--color-bg-gray);
        border-radius: var(--border-radius);
        font-weight: semi-bold;
        opacity: 0;
        height: 0;
        overflow: clip;
        transition: height 0.5s ease-out, opacity 0.5s ease-out, overlay 0.5s, display 0.5s;
        transition-behavior: allow-discrete;
    }
    select:open::picker(select) {
        opacity: 1;
        height: calc-size(auto, size);
        overflow: auto;
        @starting-style {
            opacity: 0;
            height: 0;
        }
    }
    select option {
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        gap: 10px;
        border-top: 1px solid #bebfc1;
    }
    select option:where(:hover, :focus, :active) {
        background: #4B534B;
        color: white;
        font-weight: bold;
    }
    select option:checked {
        background: #50C878;
        color: white;
        font-weight: bold;
    }
    select option::checkmark { display: none; }
    select selectedcontent {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.wrp form {
    /* display: flex; */
    margin: 28px 0;
    gap: 22px;
}

.filter-select {
    display: flex;
    flex-wrap: wrap;
    width: 60%;
    gap: 10px;
    justify-content: flex-start;
}

select.select-box {
    width: 49%;
    height: 45px;
}

.check-box, .radio-box {
    display: flex;
    flex-wrap: wrap;
    width: 15%;
    gap: 10px;
}
.box-input {
    display: flex;
    align-items: center;
}
.button-box {
    display: flex;
    flex-wrap: wrap;
    width: 10%;
    gap: 10px;
}

input.submit {
    font-size: 16px;
    background: #4fc878;
    color: var(--color-white);
    font-weight: 600;
    width: 100%;
    height: 40px;
    border-radius: var(--border-radius);
    border: 0 none;
}
input.reset {
    font-size: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    width: 100%;
    height: 40px;
    border-radius: var(--border-radius);
    border: 0 none;
}

/* --- Сортировка --- */
#sort, #breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
#sort > .icon, #breadcrumbs > .icon {
    float: left;
    fill: var(--color-gray-light);
}
.sort_label { font-weight: normal; text-transform: lowercase; }
#sort form, ul.sort, ul.sort > li { display: inline; }
ul.sort { list-style: none; padding: 0; margin: 0; }
ul.sort > li { margin-left: 16px; }
ul.sort > li > a {
    color: inherit;
    text-decoration: none !important;
}
ul.sort > li > a:hover, .sort > li.asc a, .sort > li.desc a {
    color: var(--color-primary);
}
.sort > li.asc a:before, .sort > li.desc a:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAoAQMAAADNFOjiAAAABlBMVEUAAAD/SFvf5sBTAAAAAXRSTlMAQObYZgAAACBJREFUCNdj+P8fhJDB/w9AhCoCQijgAwJhqsRvGsRGAIL/F3G3R2gKAAAAAElFTkSuQmCC);
    margin: 0 0.4em 0 0;
    width: 8px; height: 10px;
    background-position: 0 -10px;
    -webkit-background-size: 8px auto;
    background-size: 8px auto;
}
.sort > li.asc a:before { background-position: 0 0; }

#breadcrumbs { color: var(--color-gray); }
#breadcrumbs a { color: var(--color-secondary); }
#breadcrumbs > h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

/* --- Популярные теги --- */
.tags_btn {
    display: block;
    text-decoration: none !important;
    color: var(--color-primary);
}
.tags_btn.collapsed { color: var(--color-gray); }
.tags_btn > .icon-tags {
    float: left;
    margin: 2px 0 0 -30px;
}
.tags_btn > .icon { fill: var(--color-gray-light); }
.tags_btn > .icon-arrow_down { margin: 0 0 0 6px; }

#toptags { width: 100%; }
#toptags > .wrp { padding-bottom: 30px; }
#toptags .tag_list > span > a { background-color: var(--color-bg); }

/* --- Поиск --- */
.droptopbar {
    width: 100%; height: 0;
    overflow: hidden;
    background-color: #000000;
    position: relative;
    z-index: 21;
    -webkit-transition: height ease 0.2s;
    transition: height ease 0.2s;
    font-size: 0.9em;
}
.droptopbar .wrp {
    opacity: 0;
    -webkit-transition: opacity ease 1s;
    transition: opacity ease 1s;
}
.search_open #q_search, .login_open #loginpane, .loginf_open #loginpane { height: 59px; }
.search_open #q_search .wrp, .login_open #loginpane .wrp, .loginf_open #loginpane .wrp { opacity: 1; }

.droptopbar .btn { height: 33px; padding: 6px 14px; }

.q_search { position: relative; }
.q_search > input {
    width: 100%; height: 59px;
    line-height: 23px;
    padding: 18px 130px 18px 0;
    border-radius: 0;
    background: none !important;
    color: var(--color-white) !important;
    display: block;
    border: 0 none;
    font-size: 1em;
    box-shadow: none; -webkit-box-shadow: none;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
.q_search input::-webkit-input-placeholder { color: var(--color-white); }
.q_search > .btn {
    position: absolute;
    right: 0; top: 0;
    margin: 13px 0 0 0;
    background: none;
    color: var(--color-white) !important;
    box-shadow: inset 0 0 0 1px #383e42;
    -webkit-box-shadow: inset 0 0 0 1px #383e42;
    cursor: pointer;
}
.q_search > .btn:hover {
    box-shadow: inset 0 0 0 1px #64696c;
    -webkit-box-shadow: inset 0 0 0 1px #64696c;
}

/* --- Авторизация --- */
.login > .avatar {
    display: inline-block;
    padding: 5px;
    position: relative;
    border-radius: 50%;
    border: 1px solid var(--color-white);
}
.login > .avatar > .cover, .login > .avatar { width: 31px; height: 31px; }
.pmnum_0 > .num { display: none; }
.num {
    background: var(--color-white);
    color: var(--color-secondary);
    font-weight: bold;
    height: 12px;
    line-height: 11px;
    min-width: 8px;
    padding: 1px 3px;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    font-size: 9px;
    border-radius: 7px;
}
.login > .avatar > .num {
    position: absolute;
    left: 0; bottom: 0;
    margin: 0 0 -1px -1px;
}

#loginpane {
    color: var(--color-white);
    position: absolute;
    left: 0; top: 0;
    margin-top: -59px;
}

.page:before {
    content: "";
    display: block;
    width: 100%; height: 0;
    background-color: #21282d;
    -webkit-transition: height ease 0.2s;
    transition: height ease 0.2s;
}
.login_open .page:before, .loginf_open .page:before { height: 59px; }

ul.login_form {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0; margin: 0;
    border-radius: 2px;
    /* border: 1px solid #383e42; */
    float: left;
    margin: 13px 20px 0 0;
}
.login_form:after { clear: both; display: block; content: ""; }
.login_form > li {
    float: left;
    width: 160px;
    margin: 0; padding: 0;
}
.login_form > li > label { display: none; }
.login_form > li > input {
    font-size: 1em;
    height: 33px;
    padding: 6px 14px;
    background: none !important;
    border: 0 none;
    border: 0.5px solid #383e42;
    border-radius: 3px;
    color: var(--color-white);
}
/* .login_form > li:first-child > input { border-left-width: 0; } */
.login_form > li > input::-webkit-input-placeholder { color: var(--color-white); }
/* .login_form > li > .btn {
    background: none !important;
    border-radius: 0;
    border-left: 1px solid #383e42;
} */
.login_form > li > .btn:hover { color: var(--color-primary) !important; }

.login_form_links {
    float: right;
    margin-top: 17px;
    height: 23px; line-height: 23px; margin-right: 8px;
}
.login_form_links > a { margin-left: 20px; text-decoration: none; }

#loginpane .name {
    float: left;
    margin: 20px 30px 0 0;
}
#loginpane .name > a {
    color: var(--color-white);
    text-decoration: none !important;
}
#loginpane .name > a:hover { color: var(--color-primary); }

#loginpane .login_menu {
    float: left;
    list-style: none;
    padding: 0; margin: 20px 0 0 0;
}
#loginpane .login_menu > li { display: inline; margin-right: 20px; }
#loginpane .login_menu > li a {
    color: #bebfc0;
    text-decoration: none !important;
}
#loginpane .login_menu > li a:hover { color: var(--color-white); }

.lm_num {
    background: #293239;
    font-weight: bold;
    height: 16px; line-height: 16px;
    min-width: 16px;
    padding: 3px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    border-radius: 11px;
    margin: -0.2em 0.4em 0 0;
    color: var(--color-white);
}

/* --- Соцсети --- */
.soc_links {
    float: left;
    display: flex;
    justify-content: space-between;
    padding: 1px;
    margin: 13px 0 0 0;
}
.soc_links > a {
    display: inline-block;
    width: 31px; height: 31px; line-height: 31px;
    border-radius: 50%;
    background-color: #293239;
    text-align: center;
    margin-left: 6px;
    opacity: 0.5;
    -webkit-transition: all ease 0.1s;
    transition: all ease 0.1s;
}
.soc_links > a:hover { opacity: 1; }
.soc_links > a > .icon {
    fill: var(--color-white);
    vertical-align: middle;
    margin: -3px 0 0 0;
}

.soc_vk:hover { background-color: #5486ca; }
.soc_tw:hover { background-color: #60bbf5; }
.soc_fb:hover { background-color: #4268ca; }
.soc_gp:hover { background-color: #de553a; }
.soc_ya:hover { background-color: #ff0000; }
.soc_od:hover { background-color: #ff7800; }
.soc_mail:hover { background-color: #006cff; }

/* --- Футер --- */
#footer {
    padding: 50px 0;
    border-top: 1px solid var(--color-border-light);
}

.foot_menu {
    font-size: 0.92em;
    list-style: none;
    padding: 0; margin: 0 0 50px 0;
}
.foot_menu:after { clear: both; display: table; content: ""; }
.foot_menu > li > b {
    color: var(--color-gray-light);
    display: block;
    margin-bottom: 1em;
    text-transform: uppercase;
}
.foot_menu > li:hover > b { color: var(--color-primary); }
.foot_menu > li > b > i { display: none; }
.foot_menu > li nav > a {
    color: inherit;
    display: block;
    padding: 0.2em 0;
    text-decoration: none !important;
    font-size: 0.98em;
}
.foot_menu > li nav > a:hover { color: var(--color-primary); }

@media only screen and (min-width: 769px) {
    .foot_menu > li > div {
        display: block !important;
        height: auto !important; width: auto !important;
    }
}

.foot {
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
    font-size: 0.9em;
}
.foot:after { content: ""; clear: both; display: block; }

.ca {
    float: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}
a.ca * { cursor: pointer; }
.ca:after { clear: both; display: block; content: ""; }
.ca > span {
    width: 38px; height: 38px;
    float: left;
    border: 1px solid #d1d3d5;
    border-radius: 50%;
    margin-right: 15px;
}
.ca > span > .icon { fill: #d1d3d5; }
.ca:hover > span { border-color: var(--color-gray-dark); }
.ca:hover > span > .icon { fill: var(--color-gray-dark); }
.ca > div { float: left; }
.ca > div > b { display: block; text-transform: uppercase; }
.ca > span > .icon {
    display: block;
    margin: 7px 0 0 8px;
    fill: #cbcbcb;
}

.counters {
    list-style: none;
    margin: 0; padding: 0;
    float: right;
}
.counters:after { clear: both; display: block; content: ""; }
.counters > li {
    float: left;
    opacity: 0.5;
    height: 31px;
}
.counters > li:first-child { margin-left: 0; }
.counters > li:hover { opacity: 1; }
.counters > li > form { margin: 0; }

/* --- Опросы --- */
.vote_line { position: relative; background-color: var(--color-primary); }

@media only screen and (min-width: 769px) {
    .vote_line { height: 55px; }
    .vote_line:after {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: 0;
        width: 50%;
        background-color: var(--color-secondary);
    }
    .vote_line > .wrp {
        position: relative;
        z-index: 1;
        background-color: var(--color-primary);
    }
    .vote_line_title {
        float: left;
        margin: 0 0 0 -20px;
        background-color: var(--color-secondary);
        height: 25px; line-height: 25px;
        padding: 15px 20px;
        position: relative;
        color: var(--color-white);
    }
    .vote_line_title:after {
        content: "";
        position: absolute;
        left: 100%; top: 0;
        vertical-align: middle;
        border: solid transparent;
        border-left-color: var(--color-secondary);
        border-width: 28px 0 27px 16px;
    }
    .vote_icon {
        display: inline-block;
        width: 12px; height: 16px;
        vertical-align: middle;
        margin: -0.2em 0 0 0.4em;
    }
    .vote_icon > i {
        display: block;
        width: 100%; height: 1px;
        background-color: var(--color-primary);
        margin-top: 4px;
    }
    .vote_icon > i:first-child { margin-top: 0; }
    .vote_icon > i.i1 { width: 80%; }
    .vote_icon > i.i2 { width: 100%; }
    .vote_icon > i.i3 { width: 40%; }
    .vote_icon > i.i4 { width: 60%; }
    .vtitle {
        white-space: nowrap;
        overflow: hidden;
        font-weight: bold;
        height: 25px; line-height: 25px;
        padding: 15px 0;
        margin: 0 0 0 165px;
        color: var(--color-white);
    }
    .vote_line_form {
        position: absolute;
        right: 0; top: 0;
        padding: 7px 20px;
        height: 41px;
        background-image: -webkit-linear-gradient(left, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
        background-image: -moz-linear-gradient(left, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
        background-image: -o-linear-gradient(left, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
        background-image: -ms-linear-gradient(left, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
        background-image: linear-gradient(left, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
    }
    .vote_line_form .dropdown, .vote_line_form .more_votes { float: right; }
}

.vote_line_form .more_votes {
    color: var(--color-white);
    font-size: 0.9em;
    height: 25px; line-height: 25px;
    padding: 8px 20px;
}
.vote_line_form .dropdown .dropdown-form {
    width: 210px;
    right: 0; bottom: 57px; top: auto; left: auto;
}
.vote_line_form .dropdown.open:after {
    content: "";
    position: absolute;
    left: 50%; top: 0;
    z-index: 100;
    margin: -17px 0 0 -14px;
    vertical-align: middle;
    border: solid transparent;
    border-top-color: var(--color-white);
    border-width: 14px 14px 0 14px;
}
.vote_line_form .dropdown .dropdown-form .vote_list { font-size: 0.9em; margin-top: 0; }
.vote_line_form .dropdown .btn_border { margin-top: 6px; }

.vote_list { margin: 1.5em 0; }
.vote_list .vote, .vote_list .pollanswer { margin: 0 0 0.6em 0; }
.vote_list .vote > input, .vote_list .pollanswer > input { display: none; }
.vote_list .vote > input + label:before, .vote_list .pollanswer > input + label:before {
    display: inline-block;
    width: 4px; height: 4px;
    border: 5px solid var(--color-border-light);
    background-color: transparent;
    margin: -0.2em 4px 0 0;
    vertical-align: middle;
    cursor: pointer;
    content: "";
    border-radius: 2px;
}
.vote_list .vote > input[type="radio"] + label:before,
.vote_list .pollanswer > input[type="radio"] + label:before {
    border-radius: 50%;
}
.vote_list .vote > input + label:hover:before,
.vote_list .pollanswer > input + label:hover:before {
    background-color: var(--color-primary);
}
.vote_list .vote > input:checked + label:before,
.vote_list .pollanswer > input:checked + label:before {
    background-color: var(--color-secondary);
    border-color: var(--color-primary);
}
.vote_list .vote > input + label:before,
.vote_list .vote > input:checked + label:before,
.vote_list .pollanswer > input + label:before,
.vote_list .pollanswer > input:checked + label:before {
    -webkit-transition: all ease 0.2s;
    transition: all ease 0.2s;
}
.vote_votes, .pollallvotes { font-size: 0.9em; }
#dlevotespopupcontent { height: auto !important; overflow: visible !important; }

.poll_block { margin-top: 50px; }
.poll_title {
    border-left: 1px solid var(--color-primary);
    position: relative;
}
.poll_title:after, .poll_title:before {
    content: "";
    position: absolute; left: 0;
    background: var(--color-primary);
    height: 1px;
}
.poll_title:before { top: 0; width: 100%; }
.poll_title:after { bottom: 0; width: 45%; }
.poll_title > b {
    display: block;
    padding: 16px 24px;
}
.poll_title > b:after, .poll_title > b:before {
    content: "";
    position: absolute;
    left: 27px; top: 100%;
    vertical-align: middle;
    border: solid transparent;
    border-top-color: var(--color-primary);
    border-width: 13px 13px 0 0;
}
.poll_title > b:after {
    border-top-color: var(--color-bg);
    margin: -2px 0 0 1px;
    z-index: 1;
}

/* ============================================================
   7. NEWS (Story)
   ============================================================ */

.story {
    background-color: var(--color-bg);
    padding: 50px 0;
}
.story_list > .story:nth-child(2n) { background-color: var(--color-bg-dark); }

.shadow {
    position: relative;
    border-bottom: 1px solid var(--color-border-light);
}
.shadow:after {
    position: absolute;
    z-index: 1;
    left: 0; top: 100%;
    width: 100%; height: 7px;
    content: "";
    background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
    background-image: -moz-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
    background-image: -o-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
    background-image: -ms-linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
    background-image: linear-gradient(top, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 100%);
}
.story > .wrp:after { clear: both; display: block; content: ""; }
.story > .wrp { position: relative; }

.story .head .title { margin-top: 0; margin-bottom: 0; }
.story .head.grid_3_4 {
    float: none;
    margin-right: 0;
    width: 100%;
}
.story .head .title > a {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
.story .head .title > a:hover {
    color: #969fa7;
    -webkit-transition: color ease 0.2s;
    transition: color ease 0.2s;
}

.story_icons {
    position: absolute;
    top: 0; left: 0;
    margin-left: 20px;
}

.fav_btn > a {
    display: block;
    width: 29px; height: 29px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    margin-bottom: 14px;
    background-color: var(--color-primary);
    background-image: -webkit-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -moz-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -o-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -ms-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: linear-gradient(top, #f45068 0%, #f93f59 100%);
    box-shadow: var(--shadow-btn);
    -webkit-box-shadow: var(--shadow-btn);
}
.fav_btn .icon {
    fill: var(--color-white);
    width: 15px; height: 15px;
    display: block;
    margin: 6px auto 0 auto;
}
.fav_btn > a[href*="del"] {
    background-color: #fabd34;
    background-image: -webkit-linear-gradient(top, #fbc431 0%, #f8b337 100%);
    background-image: -moz-linear-gradient(top, #fbc431 0%, #f8b337 100%);
    background-image: -o-linear-gradient(top, #fbc431 0%, #f8b337 100%);
    background-image: -ms-linear-gradient(top, #fbc431 0%, #f8b337 100%);
    background-image: linear-gradient(top, #fbc431 0%, #f8b337 100%);
}

.story_left_icons .edit_btn > a { margin-bottom: 14px; border-color: var(--color-gray-dark); }
.edit_btn > a {
    position: relative;
    overflow: hidden;
    width: 27px; height: 27px;
    border-radius: 50%;
    border: 1px solid transparent;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}
.edit_btn > a:hover { border-color: var(--color-primary); }
.edit_btn > a > i, .edit_btn > a i:after, .edit_btn > a i:before {
    width: 13px; height: 1px;
    background-color: var(--color-gray-dark);
    display: block;
    position: relative;
}
.edit_btn > a i:after, .edit_btn > a i:before {
    content: "";
    position: absolute;
    top: 0; left: 0;
}
.edit_btn > a i:after { margin-top: -4px; }
.edit_btn > a i:before { margin-top: 4px; }
.edit_btn > a:hover > i, .edit_btn > a:hover i:after, .edit_btn > a:hover i:before {
    background-color: var(--color-primary);
}

.story_info {
    float: right;
    margin-right: 0;
    font-size: 0.92em;
}

@media only screen and (min-width: 769px) {
    .storyinfo_link { display: none; }
    .storyinfo {
        display: block !important;
        height: auto !important;
        width: auto !important;
    }
}
.storyinfo_link {
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}
.storyinfo_link > .icon {
    float: left;
    margin: 2px 0 0 -30px;
}
.storyinfo_link .arrow {
    position: absolute;
    right: 0; top: 0;
    margin: 0.75em 3px 0 0;
    width: 12px;
}
.storyinfo_link .arrow:after, .storyinfo_link .arrow:before {
    content: "";
    position: absolute;
    width: 9px; height: 1px;
    background-color: var(--color-primary);
    border-radius: 2px;
    -webkit-transition: all ease 0.3s;
    transition: all ease 0.3s;
}
.storyinfo_link .arrow:after { margin-left: 6px; }
.storyinfo_link.collapsed .arrow:after,
.storyinfo_link.collapsed .arrow:before {
    background-color: #c7c9cc;
}
.storyinfo_link.collapsed .arrow:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.storyinfo_link.collapsed .arrow:before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.rate_stars { margin-bottom: 1.5em; }

.rate_like > a {
    display: block;
    text-decoration: none !important;
}
.rate_like_icon {
    display: block;
    width: 27px; height: 27px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-dark);
    text-align: center;
}
.rate_like_icon .icon {
    fill: var(--color-gray-dark);
    width: 13px; height: 13px;
    display: block;
    margin: 7px auto 0 auto;
}
.rate_like > a > .grey {
    display: block;
    font-size: 0.85em;
    text-align: center;
    margin-top: 0.3em;
}
.comment .rate_like > a { display: inline-block; }
.comment .rate_like > a > * { display: inline-block; vertical-align: middle; }
.comment .rate_like > a > .grey { margin: 0.1em 0 0 6px; }
.rate_like > a:hover .rate_like_icon { border-color: var(--color-primary); }
.rate_like > a:hover .rate_like_icon .icon { fill: var(--color-primary); }

.rate_like-dislike > .grey {
    display: block;
    font-size: 0.85em;
    text-align: center;
    margin-top: 0.3em;
}
.rate_like-dislike_in {
    position: relative;
    width: 27px; height: 55px;
    border-radius: 15px;
    border: 1px solid var(--color-gray-dark);
}
.rate_like-dislike_in > a { display: block; height: 27px; text-align: center; }
.rate_like-dislike_in > a:first-child:hover .plus_icon > span:before,
.rate_like-dislike_in > a:first-child:hover .plus_icon > span:after {
    background-color: var(--color-primary);
}
.rate_like-dislike_in > a:last-child .plus_icon {
    padding: 3px;
    margin: 4px;
    border: 0 none;
    border-radius: 50%;
    background-color: var(--color-gray-dark);
}
.rate_like-dislike_in > a:hover:last-child .plus_icon { background-color: var(--color-primary); }
.rate_like-dislike_in > a:last-child .plus_icon > span { margin: 3px 0 0 3px; }
.rate_like-dislike_in > a:last-child .plus_icon > span:after,
.rate_like-dislike_in > a:last-child .plus_icon > span:before {
    background-color: var(--color-white);
}

.comment .rate_like-dislike { display: inline-block; }
.comment .rate_like-dislike > * { display: inline-block; vertical-align: middle; }
.comment .rate_like-dislike > .grey { margin: 0.1em 0 0 6px; }
.comment .rate_like-dislike_in { height: 27px; width: 55px; }
.comment .rate_like-dislike_in > * { float: left; }

.plus_icon, .plus_icon > span { width: 13px; height: 13px; }
.plus_icon {
    border: 7px solid transparent;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.plus_icon > span, .plus_icon > span:before, .plus_icon > span:after {
    overflow: hidden;
    text-indent: -9999px;
    white-space: nowrap;
    position: absolute;
}
.plus_icon > span:before, .plus_icon > span:after {
    background-color: #1a1a1a;
    content: "";
}
.plus_icon > span { left: 0; top: 0; }
.plus_icon > span:after {
    left: 0; top: 0;
    width: 100%; height: 1px;
    margin-top: 6px;
}
.plus_icon > span:before {
    left: 0; top: 0;
    width: 1px; height: 100%;
    margin-left: 6px;
}
.plus_icon.minus > span:before { display: none; }

.meta {
    list-style: none;
    padding: 0 0 0 30px;
    margin: 0;
}
.meta > li { margin: 0 0 0.6em 0; }
.meta > li > .icon {
    float: left;
    margin: 2px 0 0 -30px;
}
.meta > li.meta_date a { color: inherit; }

.story_tags {
    padding-left: 30px;
    margin-top: 1.5em;
}
.story_tags > .icon {
    fill: var(--color-gray-light);
    float: left;
    margin: 4px 0 0 -30px;
}
.story:nth-child(2n) .tag_list > span > a { background-color: var(--color-bg); }

.tag_list > span { margin: 0 2px 2px 0; }
.tag_list > span, .tag_list > span > a { display: inline-block; }
.tag_list > span > a {
    color: inherit;
    text-decoration: none !important;
    padding: 3px 6px;
    border-radius: 2px;
    background-color: var(--color-bg-gray);
}
.tag_list > span > a:hover {
    background-color: var(--color-primary) !important;
    color: var(--color-white);
    position: relative;
}

.story.lefticons .text { margin-left: 60px; }
.story .more { margin-top: 1.5em; }
.story .text:after { content: ""; display: block; clear: both; }
.story .text > img[style*="left"],
.story .text > .highslide img[style*="left"] { margin: 4px 20px 20px 0; }
.story .text > img[style*="right"],
.story .text > .highslide img[style*="right"] { margin: 4px 0 20px 20px; }
.story .text img { max-width: 100%; border-radius: var(--border-radius); }

.editdate {
    margin-top: 1.5em;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-style: italic;
}

.attachment > a, .attachment_error {
    border: 1px solid #d9dcde;
    border-radius: 2px;
    padding: 10px 20px;
    margin-top: 10px;
    color: inherit;
    display: block;
    font-size: 0.9em;
    text-decoration: none !important;
}
.attachment > a:hover { color: var(--color-primary); }
.attachment > a > .icon {
    float: right;
    margin: 3px 0 0 15px;
}

.fixed_label {
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 0;
    text-indent: -9999px;
    vertical-align: middle;
    border: solid transparent;
    border-top-color: #ffb027;
    border-width: 25px 25px 0 0;
}

.fullstory_foot { background-color: var(--color-bg-dark); }

.banner {
    padding: 25px 0;
    display: block;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--color-border-light);
    box-shadow: inset 0 1px 0 0 var(--color-white);
    -webkit-box-shadow: inset 0 1px 0 0 var(--color-white);
}
.banner img { max-width: 100%; vertical-align: top; }

/* ============================================================
   8. PAGINATION
   ============================================================ */

.navigation { padding: 25px 0; font-size: 1.1em; }
.navigation > .wrp { position: relative; }
.navigation > .wrp:after { clear: both; display: block; content: ""; }
.navigation > .wrp > .icon {
    position: absolute;
    left: 0;
    margin-left: 20px;
    fill: var(--color-gray-light);
    margin-top: 2px;
}
.pages {
    padding-left: 60px;
    float: left;
}
.pages > * {
    color: inherit;
    display: inline-block;
    position: relative;
    padding: 6px 4px;
    min-width: 22px; height: 22px; line-height: 22px;
    border-radius: 2px;
    text-align: center;
    text-decoration: none !important;
}
.pages span {
    color: var(--color-white);
    background-color: var(--color-primary);
    background-image: -webkit-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -moz-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -o-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: -ms-linear-gradient(top, #f45068 0%, #f93f59 100%);
    background-image: linear-gradient(top, #f45068 0%, #f93f59 100%);
    box-shadow: var(--shadow-btn);
    -webkit-box-shadow: var(--shadow-btn);
}
.pages span.nav_ext {
    background: none;
    color: inherit;
}
.pages a:hover { color: var(--color-primary); }

.page_next-prev {
    float: left;
    margin-left: 30px;
}
.page_next-prev > span > * {
    padding: 6px 16px;
    height: 22px; line-height: 22px;
    display: inline-block;
}
.page_next-prev > span .icon { margin: -0.2em 0 0 0; }

.splitnewsnavigation {
    margin: 1.5em 0;
    padding: 15px 0;
    font-weight: bold;
    border: 0 dashed var(--color-border-light);
    border-width: 1px 0;
    text-transform: uppercase;
}
.splitnewsnavigation > div { display: inline; margin-left: 1em; }
.splitnewsnavigation a { color: inherit; }
.splitnewsnavigation a, .splitnewsnavigation span { padding: 6px 10px; }
.splitnewsnavigation span { color: var(--color-primary); }

/* ============================================================
   9. BLOCKS: Popular, Similar
   ============================================================ */

.block {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
}
.block_title { margin: 0 0 1.5em 0; }
.coll { margin: 40px 0px 0px 0px; }

.col_news .grid_list > div > a {
    display: flex;
    text-decoration: none !important;
    -webkit-transition: padding-left 0.4s ease;
    transition: padding-left 0.4s ease;
    position: relative;
    color: inherit;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    padding-right: 20px;
}
.col_news .grid_list > div > a * { cursor: pointer; }
.col_news .grid_list > div > a .title {
    display: block;
    margin-bottom: 1em;
}
.col_news .grid_list > div > a .hover_arrow {
    position: absolute;
    left: 0; top: 0;
    margin-top: 0.25em;
}
.col_news .grid_list > div > a .text { font-size: 0.9em; }

.hover_arrow {
    position: relative;
    width: 20px; height: 0;
    border-left: 1px solid var(--color-primary);
    overflow: hidden;
    display: block;
    opacity: 0;
}
.hover_arrow, .hover_arrow:after, .hover_arrow > .icon {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.hover_arrow > .icon {
    position: absolute;
    left: 0; top: 0;
    margin-left: -10px;
}
.hover_arrow:after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    margin-top: 6px;
    width: 0; height: 1px;
    background-color: var(--color-primary);
}

@media (hover: hover) {
    .col_news .grid_list > div > a:hover { padding-left: 30px; }
    .col_news .grid_list > div > a:hover .title { color: var(--color-primary); }
    a:hover .hover_arrow { height: 26%; opacity: 1; }
    a:hover .hover_arrow > .icon { margin-left: 10px; }
    a:hover .hover_arrow:after { width: 19px; }
}

@media (max-width: 768px) {
    .col_news .grid_list > div > a {
        padding-left: 0 !important;
        -webkit-transition: none !important;
        transition: none !important;
    }
    .col_news .grid_list > div > a:hover { padding-left: 0 !important; }
    .col_news .grid_list > div > a:hover .title { color: inherit !important; }
    a:hover .hover_arrow { height: 0 !important; opacity: 0 !important; }
    a:hover .hover_arrow > .icon { margin-left: -10px !important; }
    a:hover .hover_arrow:after { width: 0 !important; }
    .hover_arrow, .hover_arrow:after, .hover_arrow > .icon {
        -webkit-transition: none !important;
        transition: none !important;
    }
}

/* ============================================================
   10. STATIC PAGES, ALERTS
   ============================================================ */

.static_pages { margin-top: 1.5em; font-weight: bold; }
.alert {
    background: #fcf6d2;
    padding: 20px 0;
}

/* ============================================================
   11. COMMENTS
   ============================================================ */

.addcomments_form {
    border-bottom: 1px solid var(--color-primary);
    position: relative;
}
.addcomments_form .grid_1_4 .ultrabold { margin-top: -0.2em; }
.addcomments_form:after, .addcomments_form:before {
    content: "";
    position: absolute;
    top: 100%; left: 50%;
    margin-left: -200px;
    border: solid transparent;
    border-top-color: var(--color-primary);
    border-width: 34px 34px 0 0;
}
.addcomments_form:after {
    margin: -2px 0 0 -199px;
    border-top-color: var(--color-bg);
}

ul.ui-form {
    list-style: none;
    padding: 0; margin: 0;
}
ul.ui-form > li { margin-bottom: 20px; }
ul.ui-form > li:last-child { margin-bottom: 0; }

.form-group { margin-bottom: 20px; }
.form-group > label { display: block; margin-bottom: 0.4em; }
.form-group.imp > label:after {
    content: "*";
    margin: 0 0 0 10px;
    color: var(--color-primary);
}

@media only screen and (min-width: 601px) {
    .form-group.combo:after { clear: both; display: table; content: ""; }
    .form-group.combo > .combo_field {
        width: 50%;
        float: left;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    .form-group.combo > .combo_field:last-child { padding-left: 10px; }
    .form-group.combo > .combo_field:first-child { padding-right: 10px; }
}

.form_submit { margin-top: 20px; }
.form-sep { border-top: 1px solid #efefef; }

#comment-editor .bb-editor textarea { height: 140px; }
.addpm #comment-editor .bb-editor textarea { height: 340px; }

.regtext { margin-bottom: 1.5em; }
.login_check { position: relative; }
.login_check > input { padding-right: 120px; }
.login_check > .btn {
    width: 100px; height: 30px;
    padding: 4px 10px;
    position: absolute;
    right: 0; top: 0;
    font-weight: bold;
    font-size: 11px;
    margin: 5px;
}
#registration { text-align: left; }

.comment {
    position: relative;
    padding-right: 26%;
    padding-left: 130px;
    margin-bottom: 50px;
}
.searchcoms .comment { margin-bottom: 0; }
.comment .grid_1_4 {
    position: absolute;
    right: 0; margin: 0;
}
.avatar { display: inline-block; }
.avatar .cover {
    width: 100px; height: 100px;
    border-radius: 50%;
    white-space: nowrap;
    text-indent: -9999px;
    display: inline-block;
}
.comment .avatar {
    border: 1px solid var(--color-border-dark);
    float: left;
    padding: 6px;
    border-radius: 50%;
    background-color: var(--color-bg);
    margin-left: -130px;
    position: relative;
}
.com_author .avatar { border-color: #44494d; }
.comment .avatar .cover, .comment .avatar { width: 60px; height: 60px; }
.comment .avatar .com_decor {
    width: 1px; height: 28px;
    position: absolute;
    background-color: #d9dcde;
    left: 99px; top: 9px;
}
.comment .avatar .com_decor:after, .comment .avatar .com_decor:before {
    content: "";
    position: absolute;
    height: 1px; width: 13px;
    background-color: #d9dcde;
}
.comment .avatar .com_decor:after { left: 0; top: 0; }
.comment .avatar .com_decor:before { right: 0; bottom: 0; }

.com_info {
    margin-bottom: 0.6em;
    font-size: 0.9em;
}
.com_info > .name { margin-right: 6px; }
.com_info > .date { margin-left: 6px; }
.com_info > .name a { color: inherit; }
.com_info .status {
    display: inline-block;
    vertical-align: middle;
    margin-top: -0.2em;
    overflow: hidden;
    text-indent: -9999px;
    background-color: #d9dcde;
    width: 6px; height: 6px;
    border-radius: 50%;
}
.status.online { background-color: #a7cb37; }

.comment .text > .title { margin-top: 0; }
.com_tools .edit_btn, .com_tools .mass {
    opacity: 0;
    -webkit-transition: opacity ease 0.3s;
    transition: opacity ease 0.3s;
}
.comment:hover .com_tools .edit_btn, .comment:hover .com_tools .mass { opacity: 1; }
.com_tools {
    margin: 0.6em 0 0 0;
    font-size: 0.9em;
    text-transform: lowercase;
}
.com_tools .edit_btn, .com_tools .mass {
    float: right;
    margin-top: -3px;
}
.com_tools .mass input { margin: 4px 0 0 10px; }
.com_tools_links { display: inline; }
.com_tools_links > a {
    margin: 0 15px 0 0;
    text-decoration: none !important;
}
.com_tools_links > a:hover { color: var(--color-primary); }
.com_tools_links > a > .icon { margin: -0.2em 8px 0 0; }

.comments-tree-list {
    position: relative;
    padding: 0 26% 0 0;
    margin: 0;
    list-style: none;
}
.comments-tree-list .comments-tree-list {
    position: static;
    padding: 0 0 0 130px;
}
.comments-tree-list .comments-tree-list .comments-tree-list,
.comments-tree-list .comments-tree-list .comment { padding-left: 60px; }
.comments-tree-list .comment {
    padding-right: 0;
    position: static;
}
.comments-tree-list .comments-tree-list .comment .com_decor { display: none; }
.comments-tree-list .comments-tree-list .comment .avatar { padding: 3px; margin-left: -60px; }
.comments-tree-list .comments-tree-list .comment .avatar .cover,
.comments-tree-list .comments-tree-list .comment .avatar { width: 32px; height: 32px; }

.mass_comments_action {
    text-align: center;
    border-top: 1px dashed var(--color-border-light);
    padding: 20px 0;
}
.mass_comments_action > select {
    padding: 5px;
    width: 200px;
    margin-left: 1em;
}

/* ============================================================
   12. CONTACTS, MAP
   ============================================================ */

#map { width: 100%; }
.map_resp {
    width: 100%; padding-top: 30%; height: 0;
    position: relative;
}
.map_resp > #map {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.contact_head > .title { margin-top: 0; }
.contacts { font-size: 1.1em; }
.contacts > .grid_1_2 { padding-left: 42px; }
.contacts > .grid_1_2 .icon {
    float: left;
    margin: 5px 0 0 -42px;
}

/* ============================================================
   13. PM (Personal Messages)
   ============================================================ */

.pm-box {
    margin-bottom: 1.5em;
    background-color: var(--color-bg-gray);
    border-radius: 2px;
}
#pm-menu:after { content: ""; clear: both; display: block; }
#pm-menu { border-bottom: 1px solid var(--color-white); }
#pm-menu > a {
    color: inherit;
    padding: 10px 30px;
    float: left;
    text-decoration: none !important;
    border-right: 1px solid var(--color-white);
}
#pm-menu > a:first-child { border-radius: 2px 0 0 0; }
#pm-menu > a:hover { color: var(--color-primary); }

.pm_status { padding: 30px; }
.pm_progress_bar {
    background-color: var(--color-gray-light);
    margin-bottom: 10px;
    border-radius: 2px;
    overflow: hidden;
}
.pm_progress_bar span {
    background: var(--color-primary);
    font-size: 0;
    height: 5px;
    border-radius: 2px;
    display: block;
    overflow: hidden;
}

.video-region-warning {background: #fcf6d2;padding: 16px 20px;margin-bottom: 12px;margin-left: 60px;border-radius: 4px;font-size: 14px;}
/* ============================================================
   14. USER PROFILE
   ============================================================ */

.userinfo_top { position: relative; }
.userinfo_top:after { clear: both; display: block; content: ""; }
.userinfo_top .avatar {
    float: left;
    margin: 0 30px 0 0;
    padding: 6px;
    border: 1px solid #d7d9db;
    border-radius: 50%;
}
.userinfo_status { margin: -1em 0 1.2em 0; font-size: 0.9em; }

.user_tab {
    list-style: none; padding: 0; margin: 0;
    display: inline-block;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
}
.user_tab:after { clear: both; display: block; content: ""; }
.user_tab > li { float: left; }
.user_tab > li:first-child > a { border-left-width: 0; }
.user_tab > li > a {
    border-left: 1px solid #e7e7e7;
    display: block;
    text-decoration: none !important;
    color: inherit;
    font-size: 0.9em;
    font-weight: bold;
    color: #999;
    line-height: 20px; padding: 6px 20px;
}
.user_tab > li.active > a { color: inherit; }

.usinf {
    list-style: none;
    padding: 0; margin: 0;
}
.usinf > li {
    padding: 12px 0;
    border-top: 1px solid var(--color-border-light);
}
.usinf > li:first-child { border-top-width: 0; }

.ui-c1, .ui-c2 { display: inline-block; vertical-align: top; }
.ui-c1 { width: 30%; margin-right: 5%; }
.ui-c2 { width: 60%; }

.dle-popup-userprofile .ui-dialog-content { padding: 0; }
.popup_userinfo_top {
    background-color: var(--color-bg-gray);
    padding: 5px;
    text-align: center;
}
.popup_userinfo_top .avatar {
    vertical-align: top;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
}
.popup_userinfo_top .avatar .cover {
    display: block;
    width: 80px; height: 80px;
    border: 6px solid var(--color-white);
}
.popup_userinfo.useronline .avatar { border-color: #95c00e; }
.popup_userinfo > ul {
    list-style: none;
    padding: 0; margin: 0;
}
.popup_userinfo .usinf {
    padding: 0px 20px;
    font-size: 0.9em;
}

/* ============================================================
   15. STATISTICS
   ============================================================ */

.stats_head > ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 1.1em;
}
.stats_head > ul > li {
    margin-top: 15px;
    padding-left: 30px;
}
.stats_head > ul > li:before {
    content: "";
    float: left;
    margin: 2px 0 0 -30px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background-color: #ee2a4f;
}
.stats_head > ul > li > b {
    display: block;
    font-size: 0.8em;
    opacity: 0.5;
    font-weight: normal;
}
.stats_head > ul > li.stats_d:before { background-color: #ffb027; }
.stats_head > ul > li.stats_w:before { background-color: #ff5a3a; }

.stat_group { margin-bottom: 25px; }
.stat_group > h5 {
    margin-top: 0;
    margin-bottom: 1em;
}
.stat_group > ul {
    list-style: none;
    padding: 0; margin: 0;
}
.stat_group > ul > li {
    padding: 0.6em 0;
    border-top: 1px dotted #d5d5d5;
}

/* ============================================================
   16. SEARCH PAGE
   ============================================================ */

.searchpage {
    border-bottom: 3px dotted var(--color-border-light);
    padding-bottom: 50px;
    margin-bottom: 0;
}
.search_head_line .head { margin-bottom: 0.8em; }
.search_result_num {
    font-size: 0.9em;
    margin: 25px 0 0;
}
.search table { width: 100%; border-spacing: 5px; border-collapse: separate; }
#searchtable td, #searchtable td div, #searchtable table {
    margin: 0 !important; padding: 0 !important;
}
#searchtable td.search br { display: none; }
td.search .bbcodes { margin: 0 !important; }
td.search { vertical-align: top; }

/* ============================================================
   17. OTHER COMPONENTS
   ============================================================ */

.grecaptcha-badge { display: none; }
.dle-popup-mediaupload { font-size: 13px; }
.dle-popup-mediaupload.ui-dialog .ui-dialog-buttonpane { padding: 10px; }
.file-preview-card, .mediaupload-box { background-color: var(--color-bg); }
.dle-popup-mediaupload .mediaupload-insert-params {
    background-color: #ededed!important;
    border-top: 1px solid #ededed!important;
}
.upload-options .checkbox-inline { padding-left: 0!important; }
.dle-popup-mediaupload select, .dle-popup-mediaupload textarea, .dle-popup-mediaupload input[type="text"] {
    height: auto;
    line-height: 1;
    padding: 5px;
}

.less {
    box-shadow: rgb(0 0 0 / 6%) 0px 0px 0px 1px, rgb(0 0 0 / 40%) 0px 10px 20px -5px;
}

figure { margin: 0; }
figure.align-left { float: left; }
figure.align-right { float: right; }
figure.image.align-center {
    display: table;
    margin-left: auto;
    margin-right: auto;
}
figure.image figcaption {
    padding: 1rem;
    background-color: #fafafa;
    font-size: 0.8rem;
    caption-side: bottom;
    word-break: break-word;
    text-align: center;
}
figure.image.align-center figcaption { display: table-caption; }
.dropdown-form form { display: block !important; }

.related {
    display: flex;
    margin-bottom: 6px;
    width: 210px;
    height: 315px;
}
.title_rel {
    font-size: 1.1em;
    margin: 0.3em 0 0.1em 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title_cool {
    font-size: 1.1em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    background: url(/templates/redmy/images/no-poster.svg) no-repeat center / 100% 100%;
}

.of { width: 100%; }

/* ============================================================
   СТРАНИЦА ФИЛЬМА
   ============================================================ */

.text_info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.text {
    display: flex;
    gap: 20px;
}

.text_title_en {
    display: flex;
    gap: 9px;
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 6px;
}

.text_in {
    display: block;
    color: var(--color-gray);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccdn_current_part {display: none;}

.quality-only::before {
    content: "•";
    color: var(--color-gray);
    font-weight: bold;
    margin-right: 3px;
}

.genres { margin-bottom: 6px; }
.genres a {
    color: var(--color-gray);
    font-weight: 500;
}
.genres::first-letter { text-transform: uppercase; }

.text_rating {
    display: flex;
    gap: 18px;
    font-weight: 500;
    margin-top: 6px;
}
.rating_kp, .rating_imdb {
    display: flex;
    align-items: center;
    gap: 6px;
}

a.link_kp { color: var(--color-white); }
a.link_imdb { color: var(--color-black); }

.rating_kp span {
    padding: 6px 9px 3px 9px;
    border-radius: 2px;
    font-weight: 600;
    background: var(--color-orange);
    color: var(--color-white);
}
.rating_imdb span {
    padding: 6px 9px 3px 9px;
    border-radius: 2px;
    font-weight: 600;
    background: var(--color-yellow);
    color: var(--color-black);
}

.main_rating {
    display: none;
}

.text_img {
    display: flex;
    aspect-ratio: 2/3;
    width: 100%;
    max-width: clamp(90px, 15vw, 210px);
}
.text_img_short {
    display: flex;
    aspect-ratio: 2/3;
    width: 100%;
    max-width: clamp(60px, 10vw, 140px);
}
.text_img img, .text_img_short img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: url('/templates/redmy/images/no-poster.svg') no-repeat center / contain;
    border: 0.5px solid rgba(148, 153, 158, 0.45);
}

.text_bott {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.text_bott2 {
    display: flex;
    margin-bottom: 12px;
    flex-wrap: wrap;
    flex-direction: column;
}

.full { margin-top: 20px; }

.text_full {
    display: flex;
    flex-direction: column;
    margin-left: 60px;
    margin-bottom: 20px;
}
.title_full {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-gray);
    border-bottom: 1px solid var(--color-border) !important;
    margin-bottom: 6px;
}

.fav_plaints a {
    display: block;
    width: 29px; height: 29px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    margin-bottom: 14px;
    background-color: var(--color-gray);
}
.fav_plaints .icon {
    width: 15px; height: 15px;
    display: block;
    margin: 6px auto 0 auto;
}

.player_full {
    display: flex;
    margin-left: 60px;
}
.player-btn { width: 100%; }

.enum_title {
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}
.enum_title span { font-weight: 600; }
.enum_info {
    padding-left: 30px;
    color: var(--color-gray);
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ЛОГИНА
   ============================================================ */

#loginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
#loginModal .modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-bg-gray);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#loginModal .modal-box h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--color-secondary);
}
#loginModal .modal-box label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: var(--color-gray);
    font-size: 14px;
    margin-left: 3px;
}
#loginModal .modal-box input[type="text"],
#loginModal .modal-box input[type="password"] {
    width: 100%;
}
#loginModal .modal-box .close-btn {
    float: right;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--color-secondary);
}
#loginModal .modal-box .btn-submit {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
#loginModal .modal-box .links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}
#loginModal .modal-box .links a {
    color: #007bff;
    text-decoration: none;
}
#loginModal .modal-box .links a:hover { text-decoration: underline; }
.main_txt {display: flex; flex-direction: column; width: 100%;}
/* ============================================================
   СПОЙЛЕР АКТЁРОВ
   ============================================================ */

@media (min-width: 769px) {
    .actors-spoiler .storyinfo.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .actors-spoiler .storyinfo_link .arrow { display: none !important; }
    .actors-spoiler .storyinfo_link {
        cursor: default;
        pointer-events: none;
        display: flex !important;
        align-items: center !important;
    }
    .actors-spoiler .storyinfo_link b { display: none !important; }
    .actors-spoiler .storyinfo_link .icon-mask-happy {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        fill: var(--color-primary) !important;
    }
    .actors-spoiler .storyinfo_link::after {
        content: " Актеры:";
        font-weight: 600;
        font-size: 14px;
        color: #333;
        padding-left: 12px;
    }
    .actors-spoiler .storyinfo_box {
        padding: 6px 0 6px 30px !important;
    }
    .actors-spoiler .enum_info {
        padding-left: 0 !important;
        color: var(--color-gray) !important;
    }
}

@media (max-width: 768px) {
    .actors-spoiler {
        width: 100% !important;
        margin: 0 !important;
    }
    .actors-spoiler .storyinfo_link {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        border-radius: var(--border-radius) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    .actors-spoiler .storyinfo_link .arrow { display: inline-block !important; }
    .actors-spoiler .storyinfo_link b { display: inline !important; }
    .actors-spoiler .storyinfo_link .icon-mask-happy {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        fill: var(--color-primary) !important;
    }
    .actors-spoiler .storyinfo_link::after {
        content: "" !important;
        display: none !important;
    }
    .actors-spoiler .storyinfo.collapse { display: none !important; }
    .actors-spoiler .storyinfo.collapse.in { display: block !important; }
    .actors-spoiler .storyinfo_box {
        padding: 10px 12px !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    .actors-spoiler .enum_info {
        padding-left: 0 !important;
        font-size: 14px !important;
    }
}

/* ============================================================
   КОЛЛЕКЦИИ / КАРТОЧКИ
   ============================================================ */

#content:has(#dle-content .test-box) {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

#dle-content:has(.test-box) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 50px 0px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.collections { background-color: var(--color-bg-gray); }

.collections_top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0px 0px 60px 0px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.collections_top > .test-box { background: var(--color-bg); }
.collections_top > .test-box > .test-box-in > div:last-child {
    background: var(--color-primary);
    color: #fbfbfb;
    border: none;
}

.test-box {
    display: flex;
    flex-direction: column;
    background: #f5f6f7;
    border-radius: var(--border-radius);
    border: 0.5px solid var(--color-gray);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.test-box-img {
    aspect-ratio: 1280 / 720;
    display: flex;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.test-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
    background: url(../images/no-poster-collections.svg) no-repeat center;
    background-size: cover;
    transition: transform 0.4s ease;
}
.test-box:hover img { transform: scale(1.08); }
.test-box img.lazy-hidden {
    background-size: cover;
    min-height: 100%;
}

.test-box-in {
    display: flex;
    width: 100%;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
}
.test-box-in > div:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.test-box-in a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.test-box-in > div:last-child {
    padding: 2px 10px 0px 10px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    border: 0.5px solid var(--color-gray);
    color: var(--color-gray);
}

.collections-h1 h1 {
    font-size: 13px;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5em;
}

#dle-content .navigation {
    grid-column: 1 / -1;
    width: 100%;
    display: block !important;
}
/* #dle-content .navigation .wrp {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
} */

/* ============================================================
   18. ПЛЕЕР
   ============================================================ */

.player-load-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
}
.player-load-btn:hover { transform: translateY(-2px); }
.player-load-btn:active { transform: translateY(0); }
.player-load-btn.loading {
    background: #2ccdff;
    pointer-events: none;
    opacity: 0.7;
}

.player-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    display: none;
    border: 0.5px solid var(--color-gray);
}
.player-container.active {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-topbar {
    background: #111414;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid var(--color-gray);
}

.player-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.player-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.player-status .dot.idle { background: #6b7280; animation: none; }
.player-status .dot.loading {
    background: var(--color-warning);
    animation: pulse 1s infinite;
}
.player-status .dot.loaded { background: var(--color-success); animation: none; }
.player-status .dot.error { background: var(--color-error); animation: none; }

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.player-close-btn {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}
.player-close-btn:hover {
    background: var(--color-white);
    color: var(--color-gray);
}

.player-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 0px 0px var(--border-radius) var(--border-radius);
    overflow: hidden;
    object-fit: cover;
    background: url(../images/no-video.svg) no-repeat center / 100% 100%;
}
.player-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: var(--color-white);
    font-size: 16px;
}
.player-loading-overlay.active { display: flex; }
.player-loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .player-topbar {
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
    }
    .player-controls { display: flex; justify-content: flex-end; }
    .player-load-btn {
        width: 100%;
        text-align: center;
    }
}

.rating-badge {
position: absolute;
    margin-left: 8px;
    margin-top: 8px;
    width: 19px;
    height: 19px;
    text-align: center;
    border-radius: 50px;
    line-height: normal;
    border: 1.5px solid rgb(214 182 0);
    backdrop-filter: blur(10px);
    background-color: rgb(0 0 0 / 44%);
}

	/* ============================================================
   ШАПКА С ДИНАМИЧЕСКИМ КОНТЕНТОМ
   ============================================================ */

.head_text_in {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: 40px 0;
}

.head_text_content {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.head_text .title {
    margin: 0 0 6px 0;
    font-size: 2.2em;
    line-height: 1.2;
    color: #fff;
}

.head_text .text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.5;
    max-height: 3em;
    margin: 0 0 12px 0;
    font-size: 1.2em;
    opacity: 0.9;
    color: #fff;
}

.head_text .buttons_reg {
    flex-shrink: 0;
}

.head_text_poster {
    width: 30%;
    display: flex;
    justify-content: flex-end;
}

.head_text_poster .text_img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    max-width: 200px;
}

.head_text_poster .text_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* .btn_white {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #ffffff;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn_white:hover {
    background: #ffffff;
    color: #1a1a1a !important;
} */

.headpic {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #21282d;
}

    .ccdn_calendar-day .ccdn_calendar-wrapper_items {
display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* padding: 50px 0px; */
    max-width: var(--max-width);
    margin: 0 auto;
    }

    .current_part_class {display: flex;
            flex-direction: row;
            gap: 20px;
            width: auto;
            position: relative;
            text-decoration: none;
            color: inherit;
            border-bottom: 1px solid var(--color-border, #e9ecef);
            padding: 10px;
            }
            .current_part_class:last-child {
  border-bottom: 0; /* или border: none; */
}

/* ============================================================
   ИНФОРМАЦИОННАЯ КАРТОЧКА (как у фильмов)
   ============================================================ */

.info-card {
    width: 17%;
    float: left;
    border-bottom: 1px solid var(--color-border, #e9ecef);
    padding-bottom: 10px;
    position: relative;
}

.info-card > a {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    -webkit-transition: padding-left 0.4s ease;
    transition: padding-left 0.4s ease;
}

.info-card > a:hover {
    padding-left: 30px;
}

.info-card > a:hover .title_rel {
    color: var(--color-primary);
}

/* Стрелка как у карточек */
.info-card .hover_arrow {
    position: relative;
    width: 20px;
    height: 0;
    border-left: 1px solid var(--color-primary);
    overflow: hidden;
    display: block;
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.info-card .hover_arrow > .icon {
    position: absolute;
    left: 0;
    top: 0;
    margin-left: -10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.info-card .hover_arrow:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 6px;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.info-card > a:hover .hover_arrow {
    height: 26%;
    opacity: 1;
}

.info-card > a:hover .hover_arrow > .icon {
    margin-left: 10px;
}

.info-card > a:hover .hover_arrow:after {
    width: 19px;
}

/* Контейнер для картинки */
.info-card .main {
    display: flex;
    padding-bottom: 1px;
    width: 200px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #ff485b, #e0354a);
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(148, 153, 158, 0.45);
}

.info-card .info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.info-card .icon-film-big {
    color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
}

.info-card .info-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 22px;
}

/* Текстовая часть */
.info-card .main_txt {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 6px;
}

.info-card .title_rel {
    font-size: 1.1em;
    margin: 0.3em 0 0.1em 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
    font-weight: bold;
    transition: color 0.3s ease;
}

.info-card .text_in {
    display: block;
    color: var(--color-gray);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
}

.info-card .main_rating {
    display: flex;
    gap: 18px;
    font-weight: 500;
    margin-top: 6px;
}

.info-card .main_kp {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gray);
}

.info-card .main_kp span {
    padding: 1px 6px 0px 6px;
    border-radius: 2px;
    font-weight: 600;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 12px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media only screen and (max-width: 1024px) {
    .info-card .main {
        width: 100%;
        height: auto;
        aspect-ratio: 2/3;
    }
}

@media only screen and (max-width: 768px) {
    .info-card {
        width: 100%;
        float: none;
        border-bottom: 1px solid var(--color-border, #e9ecef);
        padding-bottom: 10px;
    }

    .info-card > a {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        width: 100%;
    }

    .info-card > a:hover {
        padding-left: 0 !important;
    }

    .info-card .hover_arrow {
        display: none !important;
    }

    .info-card .main {
        width: 70px;
        height: 100px;
        flex-shrink: 0;
    }

    .info-card .icon-film-big {
        width: 30px;
        height: 30px;
    }

    .info-card .info-badge {
        font-size: 14px;
        top: 4px;
        right: 4px;
    }

    .info-card .main_txt {
        flex: 1;
        min-width: 0;
        padding-right: 10px;
        padding-top: 0;
    }

    .info-card .title_rel {
        font-size: 14px;
        margin: 0 0 4px 0;
    }

    .info-card .text_in {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .info-card .main_rating {
        gap: 8px;
        margin-top: 4px;
    }

    .info-card .main_kp {
        font-size: 11px;
    }

    .info-card .main_kp span {
        font-size: 9px;
        padding: 1px 4px;
    }

    .info-card > a:hover .title_rel {
        color: inherit !important;
    }
}

@media only screen and (max-width: 480px) {
    .info-card .main {
        width: 60px;
        height: 85px;
    }

    .info-card .title_rel {
        font-size: 13px;
    }

    .info-card .text_in {
        font-size: 11px;
    }

    .info-card .main_kp {
        font-size: 10px;
    }
}

            .main_cur {display: flex;
    padding-bottom: 1px;
    width: 70px;}

    .calendar-day {
    display: flex;
    gap: 3px;
    margin-top: 5px;
    background-color: var(--color-primary);
    border-radius: 3px;
    padding: 2px 8px 4px 4px;
    width: max-content;
    color: #FFFFFF;
    align-items: flex-end;
}

   .main_cur img {
            width: 100%;
            height: 100%;
            border-radius: 4px;
            object-fit: cover;
            border: 0.5px solid rgba(148, 153, 158, 0.45);
        }

           .main_txt a {color: var(--color-text);}

           /* тест спойлер  */

           .season-spoiler {
    margin-bottom: 10px;
}

.season-spoiler-title {
    cursor: pointer;
    padding: 10px 15px;
    background: #f4f6f7;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: all 0.3s ease;
}

.season-spoiler-title:hover {
    background: #e9ecef;
}

.season-spoiler-title .spoiler-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.season-spoiler-title .spoiler-count {
    font-size: 12px;
    font-weight: 400;
    color: #94999e;
}

.season-spoiler-content {
    padding: 10px 20px;
    border: 0.5px solid #aeaeae;
    margin-bottom: 10px;
    margin-top: 5px;
    border-radius: 4px;
    flex-direction: column;
    display: flex; /* Добавлено */
}

/* .season-spoiler-content li {
    display: flex;
        flex-direction: row-reverse;
    justify-content: space-between;
    padding: 4px 0;
    list-style: none;
    font-size: 14px;
    color: #444;
} */

/* .season-spoiler-content li.ccdn_calendar_full_has_episode {
    color: #2ecc71;
} */

.season-spoiler-content li.ccdn_calendar_full_has_episode::before {
    content: "◉";
    color: #2ecc71;
}

.season-episode-item::before {    content: "◉";
    color: #000000;}

/* Скрываем исходный список до обработки JS */
ul > li:has(> p) {
    display: none !important;
}

/* Показываем только готовые спойлеры */
.season-spoiler {
    display: block !important;
}

/* Для надежности — скрываем все вложенные ul, которые ещё не обработаны */
ul > li:has(> p) > ul {
    display: none !important;
}

.story_cont > ul {padding-left: 60px;}

/* Стиль для всех элементов списка */
.season-episode-item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 0;
    list-style: none;
    font-size: 14px;
    color: #444;
    border-bottom: 0.5px solid #aeaeae;
}
.season-episode-item:last-child {border-bottom: none;}
.has {display: flex;
    width: 100%;
    justify-content: space-between;}

    .s_title {display: flex;
    margin: 30px 0px 0px 60px;
    flex-direction: column;}

    .has_se {width: 25%;  display: flex; gap: 6px;}
    .has_name {width: 25%;  display: flex;}
    .has_lab {width: 50%; display: flex; justify-content: flex-end;}



     /* статусы франшицы с цветными точками */
     /* Статусы с точкой через ::before */
.status-ended::before {
    content: "◉";
    color: #e74c3c; /* Красная точка */
}

.status-air::before {
    content: "◉";
    color: #2ecc71; /* Зелёная точка */
}

.status-paused::before {
    content: "◉";
    color: #94999e; /* Серая точка */
}

.status-expected::before {
    content: "◉";
    color: #3498db; /* Синяя точка */
}

.status-ended,
.status-air,
.status-paused,
.status-expected {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.wrp_c {
    /* min-width: var(--max-width);
    padding: 0 20px;
    margin: 0 auto; */
}

    /* .block_title_c, .block_title_c > h2 {margin: 0;} */

/* ============================================================
   19. MEDIA QUERIES — ADAPTIVE
   ============================================================ */

@media only screen and (max-width: 1024px) {
    .tools .grid_3_4 {
        width: auto;
        float: none;
        margin-right: 0;
    }
    .foot .grid_1_2 { width: 74%; }
    .counters {
        float: none;
        clear: both;
        padding-top: 10px;
    }
    .counters > li:first-child { margin-left: 0; }
    .counters > li:hover { opacity: 1; }
}

@media only screen and (max-width: 860px) {
    /* .text { flex-direction: column; } */
    .headpic.fixed { background-attachment: scroll; }
    .headpic > .wrp { padding: 49px 0 0 0; }

    .logotype {
        float: none;
        padding: 0 20px; margin: 0;
        height: 76px;
        display: -webkit-flex;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .topbar {
        position: absolute !important;
        left: 0; top: 0;
        background: #22282c;
        width: 100%; height: 49px;
        box-shadow: 0 1px 5px 0 rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 1px 5px 0 rgba(0,0,0,0.2);
    }
    .topbar #search {
        position: absolute;
        left: 50%;
        margin-left: -25px;
    }
    .h_btn {
        width: 49px; height: 49px;
        padding: 0;
    }
    .h_btn:after {
        width: 100%; height: 49px;
        border-radius: 0;
        margin-top: -49px;
    }
    .login > .avatar {
        padding: 3px;
        border: 0 none;
    }
    ul.login_form, .soc_links, .login_form_links {
        vertical-align: top;
        display: inline-block;
        float: none;
    }
    #loginpane {
        overflow-y: hidden;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #loginpane > .wrp { white-space: nowrap; min-width: 960px; }

    .mainmenu_open, .mainmenu_open body, .mainmenu_open .page {
        width: 100%; height: 100%;
        overflow: hidden;
    }
    #mainmenu { float: left; }
    #topmenu {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        width: 80%; height: 100%;
        background-color: var(--color-primary);
        box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
        -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
        z-index: 99;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        color: var(--color-white);
        -webkit-transform: translate(-100%, 0);
        transform: translate(-100%, 0);
        opacity: 0; visibility: hidden;
    }
    .mainmenu_open #topmenu {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        opacity: 1; visibility: visible;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    #topmenu a { color: var(--color-white); display: block; }
    #topmenu ul { list-style: none; padding: 0; margin: 0; }
    #topmenu > ul { padding: 15px 0; }
    #topmenu > ul > li > a {
        padding: 15px 30px;
        font-size: 1.1em;
        text-decoration: none !important;
    }
    #topmenu ul ul > li > a {
        padding: 6px 30px 6px 48px;
        opacity: 0.8;
        text-decoration: none !important;
        position: relative;
    }
    #topmenu > ul > li > a:hover, #topmenu ul ul > li > a:hover {
        opacity: 1;
        background-color: var(--color-primary-light);
    }
    #topmenu ul ul > li > a:before {
        content: "";
        float: left;
        margin: 0.7em 0 0 -18px;
        width: 6px; height: 1px;
        background-color: var(--color-white);
        opacity: 0.8;
    }
    #topmenu .icon-arrow_down { display: none; }
    .block_archives { display: none; }

    #closemenu {
        position: fixed;
        top: 0; right: 0;
        overflow: hidden;
        height: 100%; width: 100%;
        cursor: pointer;
        z-index: 98;
    }
    .mainmenu_open #closemenu { display: block; }
    #closemenu:after {
        content: "";
        display: block;
        width: 100%; height: 100%;
        background-color: #353c4c;
        opacity: 0.54;
    }
    #closemenu * { cursor: pointer; }
    #closemenu > span {
        z-index: 1;
        position: absolute;
        right: 0; top: 0;
        width: 20%; height: 100%;
        display: -webkit-flex;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #closemenu .icon { fill: var(--color-white); }

    .addcomments_form .grid_3_4, .addcomments_form .grid_1_4 {
        float: none;
        margin: 0;
        width: auto;
    }
    .addcomments_form .grid_1_4 { margin-bottom: 20px; }

    .comment { margin-bottom: 30px; }
    .comment, .comments-tree-list .comments-tree-list { padding-left: 100px; }
    .comment .avatar { margin-left: -100px; }
    .com_decor { display: none; }
}

@media only screen and (max-width: 800px) {
    h1, .h1 { font-size: 1.4em; }
    h2, .h2 { font-size: 1.2em; }
    h3, .h3 { font-size: 1.0em; }
    h4, .h4 { font-size: 0.8em; }
    h5, .h5 { font-size: 0.6em; }

    body, select, input, textarea, button { font-size: 14px; }

    .vtitle { margin-left: 145px; }
    .story, .block, #footer { padding: 30px 0; }

    .addcomments_form:after, .addcomments_form:before {
        content: "";
        position: absolute;
        top: 100%; left: 50%;
        margin-left: -9px;
        border: solid transparent;
        border-top-color: var(--color-primary);
        border-width: 18px 18px 0 0;
    }
    .addcomments_form:after {
        margin: -2px 0 0 -8px;
        border-top-color: var(--color-bg);
    }

    .comment, .comments-tree-list .comments-tree-list { padding-left: 60px; }
    .comment .avatar { padding: 3px; margin-left: -60px; }
    .comment .avatar .cover, .comment .avatar { width: 32px; height: 32px; }
    .com_decor { display: none; }

    .navigation, .navigation > .wrp { padding: 0; }
    .navigation > .wrp > .icon { display: none; }
    .pages {
        padding: 20px 0;
        float: none;
        padding-left: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        text-align: center;
    }
    .pages > *:first-child { margin-left: 20px; }
    .pages > *:last-child { margin-right: 20px; }
    .page_next-prev {
        float: none;
        display: block;
        padding: 0;
        margin-bottom: 20px;
    }
    .page_next-prev:after { clear: both; display: block; content: ""; }
    .page_next-prev > * { float: left; width: 50%; }
    .page_next-prev > *:last-child { text-align: right; }
    .page_next-prev > span > * { display: block; padding: 10px 20px; }
}

@media only screen and (max-width: 768px) {
    .grid_1_2, .grid_1_4, .grid_3_4 {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    .grid_1_2.right, .grid_1_4.right, .grid_3_4.right { float: none !important; }

    .grid_2_5 {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 10px;
    }
    .grid_2_5:last-child { border-bottom: none; }

    .grid_list:has(.grid_2_5) {
        flex-direction: column;
        gap: 10px;
    }

    .main { width: 70px; height: 105px; }

    .tool {
        height: 48px;
        padding: 0 20px;
        align-items: center;
    }
    .text_full {
        margin-left: 0px;
        margin-bottom: 0px;
    }
.text_img {max-width: 100%;}
    .text_img_short { max-width: 30%; max-height: 140px;}

    .text {
    flex-direction: column;
}
.shor {flex-direction: row;}

    .collections_top {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 0px 15px;
    }
    #dle-content:has(.test-box) {
        grid-template-columns: repeat(1, 1fr);
        padding: 20px 15px;
    }

    .col_news .grid_list .grid_1_4 { margin-top: 20px; }
    .col_news .grid_list > div > a .title { margin-bottom: 0.5em; }
    .col_news .grid_list > div > a {
        flex-direction: row;
        gap: 20px;
        padding: 0;
        width: 100%;
    }

	.main_rating {
    display: flex;
    gap: 18px;
    font-weight: 500;
    margin-top: 6px;
        
    }

	.main_kp, .main_imdb {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main_kp span {padding: 1px 6px 0px 6px;
    border-radius: 2px;
    font-weight: 600;
    background: var(--color-orange);
    color: var(--color-white);}

	.main_imdb span {padding: 1px 6px 0px 6px;
    border-radius: 2px;
    font-weight: 600;
    background: var(--color-yellow);
    color: var(--color-black);}

.main_txt {width: 70%;}
.in {
    white-space: normal;

}
.collections_top > .test-box > .test-box-img {display: none;}
#content:has(#dle-content .test-box) {
    max-width: 100%;
    padding: 0;
}
.collections_top {gap: 6px;}
.test-box-in > div:last-child {
    padding: 1px 7px 0px 7px;
}
.test-box-in a {font-weight: 600;}
.head_text_in {
    margin: 0;
    align-items: center;
    flex-direction: column-reverse;
}.head_text {
    height: 725px;
    padding: 0;
}
.head_text_content h1 {font-size: 1em !important;}
/* .icon-top-crown {width: 14px; height: 14px;} */
.head_text_in {gap: 20px;align-items: center;}
    .head_text_poster {
            justify-content: center;
        width: 70%;}
    .rating-badge {
        position: relative;
        margin: 0;
        width: auto;
        height: auto;
        border-radius: 0;
        line-height: inherit;
        border: none;
       background-color: #fdfdfd00
    }

    .genres {line-height: 1.2;}

/* ============================================================
   КАРТОЧКА С РЕЙТИНГОМ
   ============================================================ */

.grid_2_5 {
    position: relative; /* Важно для позиционирования иконки */
    width: 17%;
    float: left;
    border-bottom: 1px solid var(--color-border, #e9ecef);
}

/* Ссылка внутри карточки */
.grid_2_5 > a {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* Иконка в правом верхнем углу карточки - только появление */
.rating-badge-mobile {
        position: absolute;
        right: 8px;
        z-index: 10;
    
    /* Плавное появление */
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 768px)
   ============================================================ */

@media only screen and (max-width: 768px) {
    .grid_2_5 {
        width: 100%;
        border-bottom: 1px solid var(--color-border, #e9ecef);
        padding-bottom: 10px;
    }

    .grid_2_5:last-child {
        border-bottom: none;
    }

    .grid_2_5 > a {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        width: 100%;
        position: relative;
    }

    /* Скрываем стрелку на мобильных */
    .grid_2_5 .hover_arrow {
        display: none !important;
    }

    /* Размер постера на мобильных */
    .main {
        width: 70px;
        height: 100px;
        flex-shrink: 0;
    }

    .main img {
        width: 100%;
        height: 100%;
        border-radius: 4px;
        object-fit: cover;
        border: 0.5px solid rgba(148, 153, 158, 0.45);
    }

    /* Иконка на мобильных */
    .rating-badge-mobile {
        /* top: 4px;
        right: 4px;
        padding: 2px 6px; */
        font-size: 12px;
        border-radius: 10px;
    }


    /* Текст на мобильных */
    .main_txt {
        flex: 1;
        min-width: 0;
        padding-right: 10px;
    }



    .title_rel {
        font-size: 14px;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text_in {    
        font-size: 12px;
        color: var(--color-gray, #94999e);
        margin-bottom: 4px;
    }

    /* Рейтинг на мобильных */
    .main_rating {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-top: 4px;
    }

    .main_kp, .main_imdb {
        display: flex;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 500;
        color: var(--color-gray, #94999e);
    }

    .main_kp span, .main_imdb span {
        display: inline-block;
        padding: 1px 4px;
        border-radius: 2px;
        font-weight: 600;
        font-size: 9px;
    }

    .main_kp span {
        background: #ff742f;
        color: #fff;
    }

    .main_imdb span {
        background: #ffd94f;
        color: #000;
    }

    .head_text_poster .text_img {max-width: 100%;}
    .video-region-warning {margin-left: 0;
    padding: 10px;
    font-size: 12px;}
    .full {margin-top: 0;}

   .calendar_box {margin: 0;}
               .main_cur {
    height: 100px;}
}

.combo_field {margin-bottom: 10px;}

/* ============================================================
   ГРИД ДЛЯ КАРТОЧЕК
   ============================================================ */

.grid_list:has(.grid_2_5) {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

@media (max-width: 768px) {
    .grid_list:has(.grid_2_5) {
        flex-direction: column;
        gap: 10px;
    }
}
}

@media only screen and (max-width: 700px) {
    h1, .h1 { font-size: 1.5em; }
    h2, .h2 { font-size: 1.1em; }
    h3, .h3 { font-size: 1.3em; }
    h4, .h4 { font-size: 1.2em; }
    h5, .h5 { font-size: 1.1em; }

    body, select, input, textarea, button { font-size: 13px; }

    #tools, .foot_menu, .foot, .droptopbar, .com_info, .com_tools,
    .vote_line_form .dropdown .dropdown-form .vote_list { font-size: 1em; }

    #loginpane > .wrp { min-width: 0; }
    ul.login_form, .soc_links, .login_form_links {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }
    .login_form > li { float: none; width: auto; }
    .login_form > li > input, .login_form > li > .btn {
        /* border-left-width: 0; */
        border-top: 1px solid #383e42;
    }
    .login_form > li:first-child > input { 
        /* border-top-width: 0;  */
    }
    /* .login_form > li > .btn {
        width: 100%;
        color: var(--color-primary) !important;
    } */

    .loginf_open #loginpane { margin-top: -220px; }
    ul.login_form { margin-top: 20px; display: flex;
    flex-direction: column;
    gap: 10px;}
    .loginf_open #loginpane, .loginf_open .page:before { height: 220px; }
    #loginpane .soc_links, .login_form_links { text-align: center; }
    .login_form_links > a:first-child { margin-left: 0; }

    #loginpane .name, #loginpane .login_menu, .loggedpane .login_form_links {
        display: inline;
        float: none;
    }
    .loggedpane > .wrp { padding-top: 20px; }
    .loggedpane .login_form_links { padding-right: 20px; }

    /* .head_text { padding: 20% 0 22% 0; } */
    .head_text_in > .title { font-size: 2.1em; }
    .head_text_in > .text { font-size: 1.2em; }

    .tools {
        height: 49px;
        overflow-y: hidden;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    #sort, #breadcrumbs {
        padding: 14px 0;
        display: inline-block;
    }
    #sort > .icon, #breadcrumbs > .icon { display: none; }
    .tools .grid_3_4, .tools .speedbar {
        display: inline;
        padding-right: 20px;
    }

    .feedback .grid_1_4 { margin-bottom: 20px; }
    .map_resp { padding-top: 60%; }

    .story, .block { padding: 20px 0; }
    .story_info {
        float: none;
        font-size: 1em;
    }
    .story_icons {
        position: relative;
        float: right;
    }
    .story.lefticons .title { padding-left: 0; }
    .story.lefticons .text { margin-left: 0; }
    .poll_block { margin: 20px 0; }
    .meta_date { display: none; }

    .storyinfo_link { margin-bottom: 0; }
    .storyinfo_box { padding-top: 20px; }
    .story_cont { margin-top: 20px; }
    .story .head { margin-bottom: 6px; }
    .story .head .title { margin-top: 0; }

    .comment { margin-bottom: 25px; }
    .comments-tree-list, .comment { padding-right: 0; }
    .comment, .comments-tree-list .comments-tree-list .comment { padding-left: 0; }
    .comments-tree-list .comments-tree-list,
    .comments-tree-list .comments-tree-list .comments-tree-list { padding-left: 23px; }
    .comment .grid_1_4 {
        position: static;
        float: left;
    }
    .comment .avatar .cover, .comment .avatar {
        width: 23px !important;
        height: 23px !important;
    }
    .comment .avatar {
        margin: 0 !important;
        padding: 2px !important;
    }
    .com_content {
        clear: both;
        padding-top: 10px;
    }
    .comment .rate { margin-left: 10px; }
    .comment .rate_stars { margin: 6px 0 0 0; }

    #footer { padding: 20px 0 0 0; }
    .ca {
        float: none;
        display: block;
        margin-top: 20px;
    }
    .counters {
        background-color: var(--color-bg-dark);
        float: none;
        text-align: center;
        margin: 20px -20px 0 -20px;
        padding: 15px 0;
    }
    .counters > li:first-child { margin-left: 0; }
    .counters > li {
        float: none;
        display: inline-block;
        margin-left: 2px;
    }
    .foot .grid_1_2 { width: auto; }

    .foot_menu { margin: 0 0 20px 0; padding: 0 0; }
    .foot_menu > li {
        float: none;
        width: auto;
        padding: 0;
    }
    .foot_menu > li:first-child > b { border-top-width: 0; }
    .foot_menu > li > b {
        cursor: pointer;
        margin: 0; padding: 5px 0 5px 32px;
        color: var(--color-primary);
    }
    .foot_menu > li > b.collapsed { color: var(--color-gray-light); }
    .foot_menu > li > b i {
        display: block;
        float: left;
        width: 13px; height: 1px;
        position: relative;
        margin: 9px 0 5px -32px;
        background-color: var(--color-primary);
        border-radius: 2px;
    }
    .foot_menu > li > b.collapsed i, .foot_menu > li > b.collapsed i:after {
        background-color: var(--color-primary);
    }
    .foot_menu > li > b.collapsed i:after {
        content: "";
        display: block;
        margin: -6px auto 0 auto;
        height: 13px; width: 1px;
        border-radius: 2px;
    }
    .foot_menu > li .collapse { display: none; }
    .foot_menu > li .collapse.in { display: block; }
    .foot_menu > li nav {
        padding: 10px 32px;
        padding-top: 0;
    }

    .block_title { margin-bottom: 2em; }
	.player_full {
    display: block;
    margin-left: 0px;
}

    .vote_line { text-align: center; }
    .vote_line_title {
        display: inline-block;
        font-size: 1.2em;
        color: var(--color-white);
        background-color: #242a31;
        padding: 10px 10px;
        margin-top: 0;
        position: relative;
        width: 80px;
        text-align: center;
    }
    .vote_line_title:after {
        content: "";
        position: absolute;
        left: 0; top: 100%;
        border: solid transparent;
        border-top-color: #242a31;
        border-width: 5px 50px 0 50px;
    }
    .vtitle {
        margin-left: 0;
        font-weight: bold;
        color: var(--color-white);
    }
    .vote_line_title .vote_icon, .vote_line_form .dropdown > .btn {
        margin-bottom: 30px;
    }

    .vote_line_form .dropdown .dropdown-form {
        position: static;
        margin: 0 auto;
        display: block;
        text-align: left;
    }
    .more_votes { display: block; }

    .bb-pane {
        width: 100%;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    #comment-editor .bb-editor textarea { height: 240px; }
    .bb-btn {
        float: none;
        display: inline-block;
        margin-left: -0.3em !important;
    }

    .mass_comments_action { margin-top: 20px; }
    .comments_box_in .mass_comments_action {
        margin-top: 20px;
        padding-top: 0;
    }

    .pm_status { padding: 20px; }

    #pm-menu {
        white-space: nowrap;
        overflow-y: hidden; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #pm-menu > a {
        display: inline-block;
        float: none;
        padding: 10px 20px;
    }

    .pmlist {
        width: 100%;
        margin: 0 -20px;
        padding: 0 20px;
        overflow-y: hidden; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pmlist > form { min-width: 800px; padding-right: 20px; }

    .stats_head > ul { font-size: 1em; margin-bottom: 20px; }
    .block_table_top_users {
        padding: 0;
        margin-top: 40px;
    }
    .block_table_top_users > .title { padding: 0 20px; }

    .table_top_users {
        padding-bottom: 20px;
        overflow-y: hidden; overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table_top_users > table { width: 800px; }

    .form_submit .c-capcha {
        float: none;
        margin-bottom: 20px;
    }
    .form_submit .c-capcha { padding-left: 100px; position: relative; }
    .form_submit .c-capcha img {
        position: absolute;
        left: 0;
    }
    .form_submit .c-capcha input { width: 100%; }

    #dofullsearch { display: none; }
    #add_news_preview { display: none; }

    .ui-dialog { width: auto !important; left: 10px !important; right: 10px; }
    .ui-dialog-buttonset > .ui-button { margin: 2px; }

    .userinfo_top { text-align: center; }
    .userinfo_top .avatar {
        float: none;
        margin: 0 0 20px 0;
    }

    .ui-c1, .ui-c2 {
        display: block;
        width: auto;
        margin-right: 0;
    }

    .user_tab { font-size: 0.9em; }
    .user_tab > li > a { padding: 4px 10px; }
}

@media only screen and (max-width: 600px) {
    .mejs-container { max-width: 100%; }
    .story video { max-width: 100%; }
    .story iframe { max-width: 100%; }
    .mass_comments_action > select, .mass_comments_action > input {
        display: block;
        width: 100%;
        margin: 0;
    }
    .mass_comments_action > select { margin: 5px 0; }
}

@media only screen and (max-width: 520px) {
    .head_text_in > .title { font-size: 1.6em; }
    .head_text_in > .text { font-size: 1em; }
    .com_tools_links > a > span { display: none; }
}

@media only screen and (max-device-width: 480px) {
    body { -webkit-text-size-adjust: 100%; }
}

