/* ==========================================================================
   ШАБЛОН «60 МИНУТ» — АДАПТАЦИЯ 50+, БЫСТРАЯ ЗАГРУЗКА И ЯНДЕКС ПФ
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #111827;
    background-color: #eef2f6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

ol, ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0f4c81; text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease; }
a:hover { color: #d32f2f; }

.clr { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.fx-middle { align-items: center; }

/* ==========================================================================
   БАЗОВАЯ СЕТКА САЙТА
   ========================================================================== */
.wrap {
    min-width: 320px;
    width: 100%;
    padding: 16px 12px;
}

.center {
    max-width: 1220px;
    margin: 0 auto;
}

.block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   ШАПКА И ПОИСК
   ========================================================================== */
.header {
    background: linear-gradient(135deg, #0b2948 0%, #154c86 100%);
    border-bottom: 4px solid #d32f2f;
    border-radius: 10px;
    padding: 20px 24px;
    color: #ffffff;
}

.h-inf {
    gap: 20px;
}

.logo {
    flex: 1 1 420px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.logo-title {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.logo-sub {
    display: block;
    font-size: 16px;
    color: #cbd5e1;
    margin-top: 4px;
}

.search-box {
    width: 360px;
    max-width: 100%;
}

.search-field {
    display: flex;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-field input {
    flex: 1;
    height: 46px;
    padding: 0 14px;
    font-size: 17px;
    color: #111827;
    background: #ffffff;
    border: none;
}

.search-field button {
    height: 46px;
    padding: 0 20px;
    background: #d32f2f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.search-field button:hover {
    background: #b91c1c;
}

/* ==========================================================================
   КОЛОНКИ (КОНТЕНТ + САЙДБАР)
   ========================================================================== */
.cols {
    margin: 24px 0;
    gap: 26px;
    align-items: flex-start;
}

.main {
    flex: 1;
    min-width: 0;
    width: calc(100% - 346px);
}

.side {
    width: 320px;
    flex-shrink: 0;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px;
}

.sect-t {
    font-size: 24px;
    font-weight: 800;
    color: #0b2948;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* ==========================================================================
   КАРТОЧКИ ВЫПУСКОВ НА ГЛАВНОЙ (ИЗОЛИРОВАННЫЕ ОТ ENGINE.CSS)
   ========================================================================== */
.card60-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 22px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 10px !important;
    position: relative !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card60-item:hover {
    border-color: #154c86 !important;
    box-shadow: 0 6px 16px rgba(15, 76, 129, 0.08) !important;
}

.card60-thumb {
    position: relative !important;
    flex: 0 0 230px !important;
    width: 230px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #000 !important;
    display: block !important;
}

.card60-thumb img {
    width: 100% !important;
    height: 145px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border: none !important;
}

.card60-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 52px !important;
    height: 52px !important;
    line-height: 52px !important;
    text-align: center !important;
    background: rgba(211, 47, 47, 0.92) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4) !important;
}

.card60-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.card60-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
}

.card60-edit a {
    background: #fef08a !important;
    color: #854d0e !important;
    padding: 3px 10px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
}

.card60-title {
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

.card60-title a {
    color: #0b2948 !important;
    text-decoration: none !important;
}

.card60-title a:hover {
    color: #d32f2f !important;
}

.card60-desc {
    font-size: 17px !important;
    color: #334155 !important;
    margin-bottom: 16px !important;
    line-height: 1.55 !important;
}

.card60-btn {
    display: inline-block !important;
    padding: 11px 24px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background-color: #154c86 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.card60-btn:hover {
    background-color: #d32f2f !important;
    color: #ffffff !important;
}

@media screen and (max-width: 720px) {
    .card60-item {
        flex-direction: column !important;
        padding: 16px !important;
    }
    .card60-thumb {
        width: 100% !important;
        flex: none !important;
    }
    .card60-thumb img {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
    .card60-btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   ПОЛНАЯ НОВОСТЬ И ВИДЕОПЛЕЕРЫ (fullstory.tpl)
   ========================================================================== */
.full-header {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
}

.full-poster {
    flex: 0 0 220px;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    align-self: flex-start;
}

.full-info {
    flex: 1;
    min-width: 0;
}

.full h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0b2948;
    line-height: 1.3;
    margin-bottom: 12px;
}

.full-lead {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 14px;
}

.btn-jump-play {
    display: inline-block;
    background: #d32f2f;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
}

.btn-jump-play:hover {
    background: #b91c1c;
}

.full-text {
    font-size: 19px;
    line-height: 1.65;
    color: #1e293b;
}

.full-story-desc {
    margin-bottom: 18px;
}

.full-text p {
    margin-bottom: 14px;
}

/* Стандартные плееры внутри статьи */
.video-box embed,
.video-box object,
.video-box video,
.video-box iframe,
.video-box frame {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 12px auto 26px auto;
    background: #000;
    border-radius: 8px;
    border: none;
}

/* Составной плеер с выбором частей (video-responsive + select.vova) */
.video-responsive embed,
.video-responsive object,
.video-responsive video,
.video-responsive iframe,
.video-responsive frame {
    width: 82% !important;
    height: 460px !important;
    aspect-ratio: auto !important;
    float: left;
    margin: 0;
    border-radius: 8px 0 0 8px;
}

select.vova, select.vova1, select.vova2, select.vova3 {
    background: #f8fafc;
    overflow: auto;
    color: #0f172a;
    width: 18%;
    height: 460px;
    border: 2px solid #cbd5e1;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 700;
}

option[value] {
    font-size: 16px !important;
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding: 10px 12px;
    cursor: pointer;
}

option[value]:hover, option[value]:checked {
    background: #154c86;
    color: #ffffff;
}

/* ==========================================================================
   РЕКЛАМНЫЙ БЛОК VIDEOROLL (БЕЗ ПЕРЕКРЫТИЯ И БЕЗ ДЕРГАНИЯ СКРОЛЛА)
   ========================================================================== */
.rkl-bx {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 24px auto;
    text-align: center;
    clear: both;
    position: relative;
    z-index: 1;
}

.rkl-bx iframe,
.rkl-bx object,
.rkl-bx embed,
.rkl-bx video {
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ==========================================================================
   САЙДБАР (ПОСЛЕДНИЕ ВЫПУСКИ)
   ========================================================================== */
.side-bt {
    padding: 13px 16px;
    font-size: 20px;
    font-weight: 800;
    background-color: #0b2948;
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
}

.side-item {
    border-bottom: 1px solid #e2e8f0;
}

.side-item:last-child {
    border-bottom: none;
}

.side-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    border-radius: 6px;
}

.side-item-link:hover {
    background-color: #e0f2fe;
    color: #0f4c81;
}

.side-bullet {
    color: #d32f2f;
    font-size: 14px;
}

/* ==========================================================================
   ПАГИНАЦИЯ (КРУПНЫЕ КНОПКИ 50+)
   ========================================================================== */
.bottom-nav {
    text-align: center;
    padding: 28px 0 10px 0;
}

.navigation a, .navigation span {
    display: inline-block;
    min-width: 48px;
    height: 48px;
    line-height: 44px;
    padding: 0 16px;
    margin: 4px 3px;
    font-size: 19px;
    font-weight: 800;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
}

.navigation span {
    background-color: #154c86;
    border-color: #154c86;
    color: #ffffff;
}

.navigation span.nav_ext {
    background: transparent;
    border: none;
    color: #64748b;
}

.navigation a:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #ffffff;
}

/* ==========================================================================
   КОММЕНТАРИИ И ФОРМЫ
   ========================================================================== */
.comms-heading {
    font-size: 23px;
    font-weight: 800;
    color: #0b2948;
    margin: 30px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #cbd5e1;
}

.add-comm-form {
    padding: 22px;
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    border-radius: 10px;
    margin-bottom: 24px;
}

.ac-title {
    font-size: 20px;
    font-weight: 800;
    color: #0b2948;
    margin-bottom: 16px;
}

.ac-inputs {
    gap: 16px;
    margin-bottom: 16px;
}

.ac-inputs input {
    flex: 1 1 250px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    font-family: inherit;
    color: #111827;
    background-color: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 8px;
}

input:focus, textarea:focus {
    border-color: #154c86;
}

.ac-textarea {
    margin-bottom: 16px;
}

.ac-textarea textarea {
    min-height: 120px;
}

/* Исправлено: блок капчи и проверочного вопроса теперь виден! */
.ac-protect {
    margin-bottom: 16px;
    display: block;
}

.ac-protect label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.question-text {
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 8px;
}

.button,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    min-height: 50px;
    font-size: 18px;
    font-weight: 800;
    background-color: #154c86;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.button:hover,
button[type="submit"]:hover {
    background-color: #d32f2f;
}

.comm-item {
    padding: 18px 20px 18px 85px;
    margin-bottom: 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.comm-left {
    width: 52px;
    height: 52px;
    margin-left: -68px;
    float: left;
    border-radius: 50%;
    overflow: hidden;
}

.comm-right {
    width: 100%;
    float: right;
}

.comm-one {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.comm-author {
    font-size: 18px;
    font-weight: 800;
    color: #0b2948;
    margin-right: 14px;
}

.comm-date {
    font-size: 15px;
    color: #64748b;
}

.comm-two {
    font-size: 18px;
    line-height: 1.6;
    color: #111827;
    word-wrap: break-word;
}

.comm-three {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
}

.comm-three li {
    display: inline-block;
    margin-right: 15px;
}

.rate3-comm {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 800;
}

.rate-btn {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
}
.rate-btn.plus { background: #16a34a; }
.rate-btn.minus { background: #dc2626; }

/* ==========================================================================
   ПОДВАЛ И СЛУЖЕБНЫЕ БЛОКИ
   ========================================================================== */
.footer {
    background-color: #0b2948;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 20px;
}

.ft-left p {
    margin-top: 8px;
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.5;
}

.berrors {
    background: #fef2f2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 18px;
}

.admin-edit {
    margin-bottom: 14px;
}

.admin-edit a {
    display: inline-block;
    background: #fef08a;
    color: #854d0e;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
}

/* Всплывающие окна DLE (jQuery UI) */
.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 92% !important;
    max-width: 460px !important;
    background: #ffffff;
    border: 2px solid #154c86;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    z-index: 1002 !important;
    padding: 0;
    overflow: hidden;
}
.ui-dialog-titlebar {
    background: #0b2948;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}
.ui-dialog-content {
    padding: 20px !important;
    font-size: 18px;
    text-align: center;
}
.ui-dialog-buttonpane {
    padding: 12px;
    background: #f8fafc;
    text-align: center;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (ПЛАНШЕТЫ И СМАРТФОНЫ)
   ========================================================================== */
@media screen and (max-width: 980px) {
    .main {
        width: 100%;
    }
    .side {
        width: 100%;
    }
    .header {
        padding: 18px;
    }
    .search-box {
        width: 100%;
    }
}

@media screen and (max-width: 720px) {
    .wrap {
        padding: 8px 6px;
    }
    .block {
        padding: 14px 12px;
    }
    .logo-title {
        font-size: 22px;
    }
    .sres-wrap,
    .full-header {
        flex-direction: column;
        padding: 16px;
    }
    .sres-img {
        width: 100%;
        flex: none;
    }
    .sres-img img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .news-link,
    .button,
    button[type="submit"] {
        width: 100%;
        text-align: center;
    }
    .full h1 {
        font-size: 22px;
    }

    /* Адаптация составного плеера с выбором серий на мобильных */
    .video-responsive {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        width: 100%;
        float: none;
        clear: both;
    }
    .video-responsive embed,
    .video-responsive object,
    .video-responsive video,
    .video-responsive iframe,
    .video-responsive frame {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        float: none;
        border-radius: 8px;
    }
    select.vova, select.vova1, select.vova2, select.vova3 {
        width: 100%;
        height: 52px;
        margin: 12px 0;
        font-size: 18px;
        border-radius: 8px;
        padding: 0 12px;
    }

    .comm-item {
        padding: 14px;
    }
    .comm-left {
        display: none;
    }
}
/* Uniq theme 60-minuta.su */
.header { border-bottom: 3px solid #1b4332 !important; }
.btn-jump-play, .search-field button { background-color: #1b4332 !important; }
