/* ========================================
   МОИ ПРАВКИ ДЛЯ ТЕМЫ REPOST
   Адаптивность + красивая цензура 18+
   ======================================== */


/* Убираем скроллбар везде, но оставляем возможность скроллить */
html, body {
  overflow-y: scroll; /* или auto, если нужно */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Internet Explorer и Edge */
}

/* Webkit (Chrome, Safari, Opera, новые Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-content {
  overflow-y: auto;          /* скролл внутри модалки */
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* Edge */
}

.modal-content::-webkit-scrollbar {
  display: none;
}


/* Адаптивность для формы добавления новости (addpost) — медиа-блок внизу на мобильном */
@media (max-width: 991.98px) {
    .addpost {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .addpost__aside {
        order: 2;                     /* медиа (видео, галерея) уходит вниз */
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    
    .addpost__content {
        order: 1;                     /* основной контент остаётся сверху */
        width: 100% !important;
        max-width: none !important;
    }
}

/* Адаптивность для личных сообщений (pm) — боковая панель сверху на мобильном */
@media (max-width: 991.98px) {
    .pm__grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .pm__aside {
        order: 1;                     /* меню и квота сверху */
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    
    .pm__body {
        order: 2;                     /* сообщения и форма под ней */
        width: 100% !important;
        max-width: none !important;
    }
}

/* Красивая и компактная цензура 18+ — оверлей точно по размеру изображения/видео/галереи */
.post__video.censuré,
.cover.censuré,
.post__carusel.censuré {
    position: relative;
    overflow: hidden;
}

.censored_box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: inherit; /* наследует закругления от родителя */
    z-index: 2;
}

.censored_box-content {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    text-align: center;
    color: #fff;
    max-width: 85%;
}

.censored_box-content .info {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.censored_box-content .censored-btn {
    font-size: 0.95rem;
    padding: 8px 16px;
}

.social__share .sharer.wa {
    --sharer-bg: #68fe28;
}
.social__share .sharer.wa::before {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%23fff' d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10a9.96 9.96 0 0 1-4.863-1.26l-.305-.178l-3.032.892a1.01 1.01 0 0 1-1.28-1.145l.026-.109l.892-3.032A9.96 9.96 0 0 1 2 12C2 6.477 6.477 2 12 2m0 2a8 8 0 0 0-6.759 12.282c.198.312.283.696.216 1.077l-.039.163l-.441 1.501l1.501-.441c.433-.128.883-.05 1.24.177A8 8 0 1 0 12 4M9.102 7.184a.7.7 0 0 1 .684.075c.504.368.904.862 1.248 1.344l.327.474l.153.225a.71.71 0 0 1-.046.864l-.075.076l-.924.686a.23.23 0 0 0-.067.291c.21.38.581.947 1.007 1.373c.427.426 1.02.822 1.426 1.055c.088.05.194.034.266-.031l.038-.045l.601-.915a.71.71 0 0 1 .973-.158l.543.379c.54.385 1.059.799 1.47 1.324a.7.7 0 0 1 .089.703c-.396.924-1.399 1.711-2.441 1.673l-.159-.01l-.191-.018l-.108-.014l-.238-.04c-.924-.174-2.405-.698-3.94-2.232c-1.534-1.535-2.058-3.016-2.232-3.94l-.04-.238l-.025-.208l-.013-.175l-.004-.075c-.038-1.044.753-2.047 1.678-2.443'/%3E%3C/g%3E%3C/svg%3E");
}

.header .logo__name {
    display: inline-block !important;
    font-size: 1.25rem; /* маленький на мобилке */
    font-weight: 700;
}

@media (min-width: 768px) {
    .header .logo__name {
        font-size: 1.5rem; /* крупнее на планшетах и выше */
    }
}





