/*
 * Kinogo — точечные правки без смены стиля.
 * Подключается ПОСЛЕ styles.min.css и engine.css.
 */

/* Заголовок карточки — не наезжает на рейтинг/закладки */
.shortstorytitle .zagolovki {
    clear: both;
    padding-top: 2px;
}

/* Текст в карточках не упирается в край блока */
.shortstory .shortimg {
    overflow: hidden;
    line-height: 1.55;
    padding-right: 4px;
}

.shortimg img {
    margin-bottom: 6px;
}

/* Карусель — постеры одной высоты */
.horizontal .inner img {
    object-fit: cover;
    display: block;
}

/* Плеер не вылезает за контент */
.section .box iframe {
    max-width: 100%;
    display: block;
}

/* Комментарии на полной странице */
.komments {
    clear: both;
}

.sociallll {
    float: none !important;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    text-align: left;
    padding: 15px 20px !important;
    background: #2b2b2b;
    border-left: 1px solid #404040;
}

.sociallll .dateicon {
    float: none;
    display: inline-block;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 6px;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

.sociallll .editicon {
    display: inline;
    white-space: normal;
}

#dle-comments-list {
    clear: both;
}

.comments-block .komments,
.komments + #dle-comments-list {
    border-left: 1px solid #404040;
}

.ux-form {
    border-left: 1px solid #404040;
    border-top: 1px solid #404040;
    margin: 0;
}

.ux-form .bb-editor {
    width: 100%;
    max-width: 100%;
}

.ux-form .bb-editor textarea,
.ux-form textarea#comments {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    color: #ecede8;
    background: #585858;
    border: 1px solid #555;
    border-radius: 3px;
    min-height: 120px;
}

.ux-form .submitline {
    display: block;
    padding-top: 8px;
}

.ux-form .fbutton {
    background: #242424;
    border: 1px solid #404040;
    color: #c0c0c0 !important;
    height: auto;
    line-height: normal;
    padding: 8px 16px;
    width: auto;
}

@media screen and (max-width: 768px) {
    .sociallll {
        padding: 12px 16px !important;
    }

    .commennnnty {
        width: 100%;
        max-width: 100%;
        float: none;
    }

    .padding_border_comment {
        padding: 15px;
    }

    .ux-form .bb-editor textarea,
    .ux-form textarea#comments {
        font-size: 16px;
        min-height: 100px;
    }
}

/* Выделение текста (в оригинале было отключено) */
body {
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
}

/* --- Мобильная форма входа: аккуратнее, стиль Kinogo --- */
@media screen and (max-width: 768px) {
    .unique-overlay-box {
        opacity: 0.85;
    }

    .unique-login-box {
        left: 50% !important;
        top: auto !important;
        bottom: 0 !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0;
        border-top: 3px solid #920010;
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .unique-login-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        line-height: 30px;
        background: #242424;
        border: 1px solid #404040;
        border-radius: 4px;
        font-size: 20px;
    }

    .unique-not-logged .unique-login-avatar {
        display: block;
        margin-bottom: 12px;
    }

    .unique-login-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .unique-login-input {
        margin-bottom: 12px;
    }

    .unique-login-input input {
        width: 100%;
        height: 44px;
        font-size: 16px;
        box-sizing: border-box;
        padding: 0 12px;
        border-radius: 4px;
    }

    .unique-login-btn button {
        height: 44px;
        font-size: 16px;
        line-height: 44px;
        padding: 0;
        border-radius: 4px;
    }

    .unique-login-btm {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 12px;
    }

    .unique-login-btm a {
        display: block;
        padding: 10px;
        background: #242424;
        border: 1px solid #404040;
        border-radius: 4px;
        text-decoration: none !important;
        font-size: 14px;
    }

    .unique-login-btm .log-register {
        background: #363636;
        font-weight: bold;
    }

    .unique-header-btn {
        width: auto;
        margin: 4px auto 0;
        display: block;
        text-align: center;
        float: none !important;
    }
}

@media screen and (max-width: 480px) {
    .shortstory {
        padding-left: 14px;
        padding-right: 14px;
    }

    .icons {
        padding-left: 0;
        padding-right: 0;
    }
}
