.category-main {
    padding-top: 20px
}

.back-link {
    display: inline-flex;
    margin: 0 0 20px;
    color: #aaa;
    font-size: 13px
}

.category-heading {
    padding: 14px 0 8px
}

.category-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(30px, 5vw, 52px);
    letter-spacing: -1.5px
}

.category-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.category-posts {
    margin-top: 20px
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 14px
}

.category-grid .poster-card h3 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35
}

.load-more {
    display: block;
    margin: 28px auto 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: linear-gradient(135deg, #ff3146, #c80d27);
    color: #fff;
    font-weight: 900;
    padding: 12px 22px;
    cursor: pointer
}

.category-empty {
    grid-column: 1/-1;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: var(--muted)
}

@media(max-width:1000px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr))
    }
}

@media(max-width:800px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 15px 11px
    }
}

@media(max-width:600px) {
    .category-main {
        padding-top: 14px
    }

    .category-heading {
        padding-top: 8px
    }

    .category-heading h1 {
        font-size: 30px
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px
    }
}

.telegram-float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border-radius: 50px;
    background: #229ed9;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(34, 158, 217, .45);
    transition: transform .2s, box-shadow .2s;
    animation: telegram-pulse 2.5s infinite;
}

.telegram-float svg {
    width: 23px;
    height: 23px;
}

.telegram-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 30px rgba(34, 158, 217, .65);
}

@keyframes telegram-pulse {
    50% {
        box-shadow: 0 6px 30px rgba(34, 158, 217, .75);
    }
}

@media (max-width: 600px) {
    .telegram-float {
        right: 12px;
        bottom: 18px;
        padding: 12px;
    }

    .telegram-float span {
        display: none;
    }
}