@charset "UTF-8"; .news-page {
    background-color: #f2f1f0;
    background-image: radial-gradient(80% 80% at 80% 20%,#f4eefe 0%,rgba(243,236,254,0) 100%),radial-gradient(60% 60% at 0 100%,#d9f1ff 0%,rgba(219,242,255,0) 100%),linear-gradient(#e6f6ff,#e6f6ff);
    background-position: 50%;
    font-family: 'Roboto';
    padding: 20px 30px;
    color: black;
    margin-bottom: 40px;
    min-width: 1px;
    width: 100%;
    /* max-width: 800px; */
}

.news-page a {
    color: black;
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
}

.news-page-bg {
    padding: 30px;
}

.news-page .entry-card-footer {
    display: none
}

/* Контейнер одного элемента */
.topten-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    border-color: rgb(76, 76, 76);
    /* Сохранение цвета из исходника */
    background-color: #9facc7;
}

/* Колонка с изображением */
.topten-image-col {
    padding: 2px 0 2px 4px;
    width: 48px;
    max-height: 90px;
    flex-shrink: 0;
    width: calc(20% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(76, 76, 76);
    margin: 10px 15px;
}

.topten-image-col img {
    width: 100%;
    height: 100%;
    min-height: 1px;
    max-height: 90px;
}

/* Колонка с текстом */
.topten-info-col {
    padding: 2px 0 2px 4px;
    text-align: left;
    cursor: pointer;
    flex-grow: 1;
    padding: 8px;
    line-height: normal;
}

/* Заголовок (Title) */
.topten-title {
    font-family: tahoma, verdana, arial;
    font-size: 12px;
    color: rgb(100, 100, 100);
    font-weight: bold;
    text-decoration: none;
    line-height: 14px;
}

.topten-title:hover {
    text-decoration: underline;
}

/* Статистика (Просмотры/Рейтинг) */
.topten-stats {
    font-family: tahoma, verdana, arial;
    font-size: 10px;
    color: rgb(85, 85, 85);
    line-height: 14px;
    display: none;
}

.topten-stats b {
    color: #646464;
    /* Исходный цвет из тега font */
}

/* Разделитель */
.topten-hr {
    border: 0;
    border-top: 1px solid rgba(76, 76, 76, 0.2);
    margin: 5px 0;
}

.breadcrumbs-wrapper {
    width: 100%;
}

#news-com {
    display: flex;
    flex-direction: column;
    background-color: rgb(255 255 255 / 81%);
    background-color: #f2f1f0;
    background-image: radial-gradient(80% 80% at 80% 20%,#f4eefe 0%,rgba(243,236,254,0) 100%),radial-gradient(60% 60% at 0 100%,#d9f1ff 0%,rgba(219,242,255,0) 100%),linear-gradient(#e6f6ff,#e6f6ff);
    background-position: 50%;
    padding: 30px 20px;
    margin: 60px auto;
    width: 95%;
}

#news-com .breadcrumbs {
    background-color: grey;
    padding: 8px;
    width: 100%;
}

#news-wall {
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-name h2 {
    margin: 0;
    padding: 0
}

#news-wall img {
    width: 100%;
    max-width: 130px;
    padding: 5px;
}

.news-main {
    width: 100%;
    min-width: 100%;
}

.news-table {
    display: flex;
    justify-content: space-between;
}

.news-cover-img {
    display: flex;
    min-width: 150px;
    max-height: 150px;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 20px;
}

#news-wall iframe {
    width: 100%;
    /* max-width:450px; */
    min-height: 300px!important;
    margin: 0 auto;
    padding: 0 30px!important;
    overflow: visible!important;
}

#allEntries {
    /* min-width:300px; */
    /* width:100%; */
    /* max-width:600px; */
    /* margin:0 auto; */
    display: none;
}

#tm-section-news {
    display: flex!important;
    /* margin-top: 0; */
    /* padding: 0; */
}

#news-page .entry-card {
    display: none
}

#news-page {
    background-color: rgb(255 255 255 / 81%);
    background-color: #f2f1f0;
    background-image: radial-gradient(80% 80% at 80% 20%,#f4eefe 0%,rgba(243,236,254,0) 100%),radial-gradient(60% 60% at 0 100%,#d9f1ff 0%,rgba(219,242,255,0) 100%),linear-gradient(#e6f6ff,#e6f6ff);
    margin-top: 50px;
    background-position: 50%;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto!important;
    padding: 0;
}

#news-page .breadcrumbs-wrapper {
    background-color: grey;
    padding: 8px;
    width: 100%;
}

#news-page h1 {
    display: block;
    width: 100%;
    color: black;
    padding: 8px;
    line-height: normal;
    font-size: 2rem;
    line-height: 2.3rem;
    font-weight: 500;
    text-align: center;
}

#vk_groups {
    min-width: 300px !important;
    min-height: 300px !important;
    height: 100%!important;
    background: #f0f2f5!important;
    margin-top: 20px;
}

#vk_groups iframe {
    width: 100% !important;
    min-height: 700px !important;
    height: auto !important;
    position: relative !important;
    padding: 0 8px;
}

.vk-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.vk-grid-custom p {
    background-color: #007bff;
    font-size: 1.1rem
}

.vk-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: 0.3s;
}

.vk-post-card:hover {
    transform: translateY(-5px);
}

.vk-img {
    width: 100%!important;
    height: 200px!important;
    /* Высота карточки */
    background-size: cover;
    /* Фото заполнит блок без пустых полей */
    background-position: center!important;
    /* Центрирование картинки */
    background-repeat: no-repeat!important;
}

.vk-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vk-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.vk-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vk-link {
    margin-top: auto;
    color: #0077ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

/* Центрирование заголовка как в вашем шаблоне */
.tm-text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,119,255,0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 3px solid #fff;
    cursor: pointer;
}

.vk-img {
    cursor: pointer;
    position: relative;
}

#vk_video_player iframe {
    max-width: 90vw;
}

/* Стили для адаптивности и внешнего вида */
#tm-section-7 .osn {
    width: 100%;
    padding: 0 15px;
}

/* Плитка API: 4 в ряд на десктопе, адаптация под мобилки */
#vk-feed-api {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Контейнер для нижнего виджета сообщества */
.vk-widget-wrapper {
    width: 100%;
    display: none;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    border-radius: 15px;
    margin-top: 20px;
}

/* Принудительная ширина для фрейма ВК внутри контейнера */
#vk_groups, #vk_groups iframe {
    width: 100% !important;
    max-width: 1000px !important;
    /* Оптимальный максимум для читаемости текста ВК */
    margin: 0 auto!important;
}
