﻿.main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 12px 24px 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main .container {
    flex-wrap: wrap;
}

.category-strip {
    width: 100%;
    background: #141616;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

    .category-strip .filters-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
    }

    .category-strip .filters-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .category-strip .filters-title {
        margin: 0;
        font-size: .9rem;
        font-weight: 700;
        color: #e5e7eb;
        letter-spacing: .2px;
        white-space: nowrap;
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

    .chip input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .chip span {
        display: inline-block;
        padding: 7px 12px;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 9999px;
        background: #161a1d;
        color: #e5e7eb;
        font-size: .9rem;
        line-height: 1;
        transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
    }

    .chip:hover span {
        background: #1c2126;
        transform: translateY(-1px);
    }

    .chip:active span {
        transform: translateY(0);
    }

    .chip input:checked + span {
        background: linear-gradient(135deg,#334155 0%, #0f172a 100%);
        color: #fff;
        border-color: rgba(255,255,255,0.22);
        box-shadow: 0 6px 18px rgba(2,6,23,.35);
    }

    .chip input:focus-visible + span {
        outline: 2px solid #0ea5e9;
        outline-offset: 2px;
    }

.category-strip .btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: #161a1d;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}

    .category-strip .btn-clear:hover {
        background: #1f2429;
        border-color: rgba(255,255,255,0.22);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(2,6,23,.35);
    }

    .category-strip .btn-clear:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .category-strip .btn-clear:focus-visible {
        outline: 2px solid #0ea5e9;
        outline-offset: 2px;
    }

    .category-strip .btn-clear::before {
        content: "↺";
        font-size: 1rem;
        line-height: 1;
        opacity: .9;
    }

.category-strip .filters-actions {
    margin-left: auto;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

    .pagination nav {
        display: inline-block;
    }

    .pagination .page-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: inline-flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

    .pagination .page-link {
        display: inline-flex;
        min-width: 42px;
        justify-content: center;
        align-items: center;
        padding: 8px 14px;
        background: #202020;
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 8px;
        cursor: pointer;
        transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
        position: relative;
    }

        .pagination .page-link:hover {
            background: #2a2a2a;
            transform: translateY(-1px);
        }

        .pagination .page-link:active {
            transform: translateY(0);
        }

        .pagination .page-link.active {
            background: linear-gradient(135deg,#334155 0%, #0f172a 100%);
            color: #fff;
            box-shadow: 0 4px 14px rgba(2,6,23,.55);
            cursor: default;
            border-color: rgba(255,255,255,0.18);
        }

        .pagination .page-link.disabled {
            opacity: .45;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination .page-link:focus-visible {
            outline: 2px solid #0ea5e9;
            outline-offset: 2px;
        }

/* Pagination (jump) */
.pagination .page-nav-row {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.page-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161a1d;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}

.page-input {
    width: 70px;
    padding: 6px 8px;
    background: #20252a;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.page-input:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.page-go-btn {
    padding: 6px 12px;
    background: #0ea5e9;
    color: #001018;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: filter .15s ease;
}

.page-go-btn:hover { filter: brightness(1.08); }

.page-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    padding-left: 4px;
}

