.content {
    padding: 12px 12px;
}

.title {
    margin-top: 24px;
}

.title a {
    font-weight: 600;
    font-size: 32px;
}

.main-container {
    /* max-width: 1440px; */
    margin: 20px auto 0;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
}

.container-md {
    flex: 1;
    min-width: 0;
}

.content-container {
    flex: 1;
    min-width: 0;
}

.titles {
    margin-top: 34px;
    font-weight: 600;
    font-size: 20px;
}

/* Карточки */

.posts-container {
    display: flex;
    overflow-x:scroll;
    gap: 20px;
    /* padding: 20px 0; */
    scrollbar-width: thin;
    scrollbar-color: #666666 #161616;
    /* margin-bottom: 12px; */
    padding: 30px 0; /* Добавляем отступы по бокам и снизу */
    /* overflow: visible !important; */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 0;
}

.posts-container::-webkit-scrollbar {
    height: 8px;
}

.posts-container::-webkit-scrollbar-track {
    background: #161616;
    border-radius: 4px;
}

.posts-container::-webkit-scrollbar-thumb {
    background: #161616;
    border-radius: 4px;
}

/* Стили карточки */
.post-card {
    display: block;
    width: 280px;
    flex-shrink: 0;
    background: rgba(49, 49, 49, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: white;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(173, 173, 173, 0.3);
    border-color: rgba(131, 131, 131, 0.4);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.post-card:hover .play-icon {
    background: rgba(163, 163, 163, 0.8);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-author {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    /* margin-bottom: 12px; */
}

.post-stats {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .post-card {
        width: 240px;
    }
    
    .post-thumbnail {
        height: 140px;
    }
}

.title, .section {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) {
    animation-delay: 0.2s;
}

.section:nth-child(2) {
    animation-delay: 0.4s;
}

.section:nth-child(3) {
    animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
    .title, .section, .cookie-notice {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important; 
    }
}

.post-content h3 {
    color: white !important; 
    transition: none !important; 
}

.post-card:hover .post-title h3, .play-icon {
    color: white !important; 
    transition: none !important; 
}

/* Стили для сетки */


/* Адаптивная сетка */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Стили для кнопки */
.load-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.load-more-btn {
    padding: 10px 30px;
    background: #00000000;
    color: white;
    border: none;
    border-radius: 14px;
    border: 1px solid #FFF;
    cursor: pointer;
    transition: background 0.3s;
}

.load-more-btn:hover {
    background: #444;
}

@media (max-width: 1024px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-container {
        grid-template-columns: 1fr;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
