  .popular-posts-section {
        position: relative;
        padding: 20px 15px;
        padding-bottom: 10px;
        margin: 20px 0;
        background: white;
        border-radius: 20px;
        border: 1px solid #80808042;
    }

    .popular-posts-scroll-container {
        position: relative;
    }

    .popular-posts-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #333;
    }

    .recent-posts-list .post {
        text-align: left;
    }

    .popular-posts-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 2px 0;
        scrollbar-width: thin; /* всегда тонкий скроллбар для Firefox */
        scrollbar-color: transparent transparent; /* прозрачный по умолчанию */
        display: flex;
        scroll-behavior: smooth;
    }
    /* Webkit: скроллбар всегда есть, но прозрачный */
    .popular-posts-scroll::-webkit-scrollbar {
        height: 8px;
        background: transparent;
        opacity: 1;
        transition: background 0.2s;
        pointer-events: auto;
    }
    .popular-posts-scroll::-webkit-scrollbar-thumb {
        background: transparent;
        transition: background 0.2s;
        pointer-events: auto;
    }
    /* При наведении — цветной */
    .popular-posts-scroll:hover {
        scrollbar-color: #8B0000 #f0f0f0;
    }
    .popular-posts-scroll:hover::-webkit-scrollbar {
        background: #f0f0f0;
    }
    .popular-posts-scroll:hover::-webkit-scrollbar-thumb {
        background: #8B0000;
    }

    @media (max-width: 900px) {
        .popular-posts-scroll::-webkit-scrollbar {
            height: 4px;
        }
    }
    @media (max-width: 768px) {
        .popular-posts-scroll {
            /* На мобильных drag работает, скроллбар стандартный */
        }
    }

    /* Кастомный скроллбар */
    .popular-posts-scroll-container {
        position: relative;
    }

    /* Удаляем прогресс-бар прокрутки */
    .popular-posts-scroll-container::before,
    .popular-posts-scroll-container::after {
        display: none !important;
        content: none !important;
        height: 0 !important;
    }

    .popular-posts-scroll .recent-posts-list {
        display: flex;
        gap: 20px;
        white-space: normal;
        height: 250px;
        align-items: center;
    }

    .popular-posts-scroll .post {
        min-width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 20px;
        position: relative;
        color: black;
        text-align: left;
        height: 230px;
        padding: 13px;
        border: 11px solid white;
            transition: 0.3s;
    }
    
    .popular-posts-scroll .post:hover {
            transform: translateY(-10px);
            transition: 0.3s;
        }

    .popular-posts-scroll .post a {
        color: black !important;
        text-decoration: none;
        font-size: 16px;
        line-height: 1.2;
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .popular-posts-scroll .post a:hover {
        color: #8B0000 !important;
        text-decoration: underline;
    }

    .popular-posts-scroll .post .sidebar-post-content {
        color: black;
        font-size: 14px;
        line-height: 1.4;
        margin-top: 10px;
        white-space: normal;
    }

    .popular-posts-scroll .post .sidebar-block-meta {
        margin-bottom: 10px;
    }

    .popular-posts-scroll .post .sidebar-post-date {
        color: rgba(255,255,255,0.8) !important;
        font-size: 12px;
    }

    .popular-posts-scroll .post .sidebar-block-cont img {
        max-height: 20px;
        width: auto;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .popular-posts-scroll .post {
            min-width: 250px;
            max-width: 250px;
            padding: 15px;
        }
        
        .popular-posts-scroll .post a {
            font-size: 14px;
        }
        
        .popular-posts-title {
            font-size: 20px;
        }
    }

    /* Лоадер для популярных постов */
    .popular-posts-scroll .loader {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 20px;
    }

    .popular-posts-scroll .loader span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #8B0000;
        animation: loader-bounce 1.4s ease-in-out infinite both;
    }

    .popular-posts-scroll .loader span:nth-child(1) {
        animation-delay: -0.32s;
    }

    .popular-posts-scroll .loader span:nth-child(2) {
        animation-delay: -0.16s;
    }

    .post.no-image {
        box-shadow: 0px 0px 20px -10px #0000005c;
        padding: 13px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 15px;
        border: 11px solid white;
        background: #FFFDF4;
    }

    .post.no-image a{
        color: black!important;
    }

    .post.no-image p{
        color: black!important;
    }

    .post.with-image {
        padding: 0;
    }

    .sidebar-post-image-wrap img {
        width: 100%;
        max-height: 150px;
        object-fit: cover;
    }

    .sidebar-post-image-wrap {
        position: relative;
    }

    .popular-posts-scroll .post a.button-object {
        color: white !important;
        text-align: center;
        max-width: 150px;
        width: 100%;
        padding: 0;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: absolute;
        z-index: 9;
        bottom: 10px;
        transform: translateX(50%);
    }

    .post.with-image .titilitit {
        margin-bottom: 0;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
    }

    .post.with-image {
        box-shadow: 0px 0px 20px -10px #0000005c;
        border: 0;
        background: #fffdf4;
        position: relative;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        border: 11px solid white;
        display: flex;
        align-items: flex-end;
    }

    .glassedbro {
        padding: 5px;
        background: #fdf8e7ba;
        backdrop-filter: blur(1px);
        border-radius: 5px;
        width: 100%;
        height: 100%;
        max-height: 80px;
    }

    img.sidebar-post-image {
        border-radius: 0px 0px 20px 20px;
    }

    .post.with-image .sidebar-block-meta {
        display: none;
    }

    .post.with-image p.sidebar-post-content {
        display: none;
    }

    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: background 0.2s;
        opacity: 0;
        transition: 0.3s;
    }
    .popular-posts-section:hover .scroll-arrow {
        opacity: 1;
        transition: 0.3s;
    }

    .scroll-arrow:hover {
        background: rgba(240, 240, 240, 1);
    }

    .scroll-arrow.left {
        display: none;
    }
    .scroll-arrow.left.visible {
        display: block;
    }

    .scroll-arrow.right {
        right: 0;
    }
    .pop-label-and-filters {
        position: absolute;
        top: -10px;
        left: 15px;
        align-items: flex-end!important;
        gap: 5px;
        display: flex;
    }
    .popular-period-buttons {
        display: flex;
        gap: 5px;
    }
    button.popular-period-btn.active {
        color: white;
        background: #83130d;
    }
    .pop-label, .popular-period-btn {
        font-size: 11px;
        padding: 2px 5px;
        color: black;
        border-radius: 5px;
        background: white;
        border: 1px solid #80808042;
        color: #83130d;
        font-weight: 600;
    }

    @keyframes loader-bounce {
        0%, 80%, 100% {
            transform: scale(0);
            opacity: 0.5;
        }
        40% {
            transform: scale(1);
            opacity: 1;
        }
    } 
