* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 40px 24px 40px 24px;
}

footer {
    margin-top: auto;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.header p {
    color: #6b7280;
}

/* ── Two-column layout ── */
.cat-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cat-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.cat-main {
    flex: 1;
    min-width: 0;
}

/* ── Sidebar filter card ── */
.sidebar-filters {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-section {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.sf-section:last-of-type {
    border-bottom: none;
}

.sf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.sf-select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.sf-select:focus { outline: none; border-color: #2563eb; }

.sf-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-range input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    width: 100%;
}

.sf-range input:focus { outline: none; border-color: #2563eb; }

.sf-range-sep {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.sf-range input[type="number"]::-webkit-inner-spin-button,
.sf-range input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.sf-range input[type="number"] { -moz-appearance: textfield; }

.sf-apply-btn {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}

.sf-apply-btn:hover { background: #1d4ed8; }

.sf-reset-btn {
    width: 100%;
    padding: 9px;
    margin-top: 6px;
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s;
}

.sf-reset-btn:hover { color: #2563eb; }

.sf-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateY(10px);
    pointer-events: none;
    color: #94a3b8;
}

/* keep old range/field for modal */
.range { display: flex; gap: 10px; }
.range input[type="number"]::-webkit-inner-spin-button,
.range input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.range input[type="number"] { -moz-appearance: textfield; }

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.search-wrapper input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
}

.search-wrapper input:focus { outline: none; border-color: #2563eb; }

.search-wrapper input::placeholder {
    color: #94a3b8;
}

.categories-field {
    position: relative;
}

.categories-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s;
    padding-right: 28px;
}

.categories-selected:hover { border-color: #93c5fd; }

.categories-selected:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.categories-selected .placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #38bdf8;
    border-radius: 30px;
    padding: 4px 8px 4px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0369a1;
    line-height: 1;
    gap: 6px;
}

.remove-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    color: #0369a1;
    font-size: 16px;
    cursor: pointer;
    transition: 0.1s;
    font-weight: 400;
}

.remove-chip:hover {
    background: rgba(3, 105, 161, 0.1);
    color: #0c4a6e;
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
}

.categories-dropdown.show {
    display: block;
}

.category-option {
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.category-option:hover {
    background: #f3f4f6;
}

.category-option:active {
    background: #2563eb;
    color: white;
}

.sort-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.sort-field {
    flex: 1;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-reset {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-reset:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-apply {
    background: #2563eb;
    border: none;
    color: white;
}

.btn-apply:hover {
    background: #1e40af;
}

.btn-primary {
    background: #2563eb;
    border: none;
    color: white;
}

.btn-primary.small {
    padding: 10px 22px;
    font-size: 15px;
}

.btn-primary:hover {
    background: #1e40af;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.channel-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;     /* <-- вот это критично */
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* чтобы не тянуло */
    display: block;       /* убрать “зазор” снизу */
}

.info .title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.meta {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    gap: 12px;
}
.tags-inline { display: none !important; }

.channel-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tags {
    display: flex;
    gap: 8px;
}

.tags span {
    font-size: 13px;
    padding: 5px 11px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
}

.price {
    text-align: left;
}

.price-label {
    font-size: 13px;
    color: #6b7280;
}

.price-value {
    font-weight: 700;
    font-size: 19px;
}

.duration-select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.external-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.external-link svg {
    stroke: #6b7280;
    transition: stroke 0.2s;
}

.external-link:hover svg {
    stroke: #2563eb;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: 0.2s;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.page:not(.active):not(.page-nav):hover {
    color: #2563eb;
    border-color: #2563eb;
}

.page.page-nav {
    border: none;
    background: transparent;
    color: #374151;
    font-weight: 500;
    padding: 0 12px;
}

.page.page-nav:hover {
    color: #2563eb;
}

.page.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

a.page {
    text-decoration: none;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 38px;
    color: #9ca3af;
    font-size: 15px;
    letter-spacing: 1px;
    user-select: none;
}

.sales {
    color: #16a34a;
    font-weight: 500;
}

select:invalid {
    color: #9ca3af;
}

.field select {
    font-weight: 500;
    color: #374151;
}

.field select:invalid {
    color: #9ca3af;
    font-weight: 400;
}

.external-link svg path {
    stroke: #6b7280;
    transition: stroke 0.15s ease;
}

.external-link:hover svg path {
    stroke: #2563eb;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.modal-channel-name {
    font-size: 13px;
    color: #6b7280;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
}

.post-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.post-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.post-card input[type="radio"] {
    flex-shrink: 0;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
}

.post-card input[type="radio"]:checked + .post-card-content {
    color: #1d4ed8;
}

.post-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.post-preview {
    font-size: 12px;
    color: #6b7280;
}

.no-posts {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    padding: 16px 0 10px;
}

.create-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 16px;
    padding: 11px 24px;
    background: #2563eb;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    width: fit-content;
}
.create-post-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.4);
}
.create-post-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.modal-duration {
    margin-bottom: 14px;
}

.modal-duration label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.modal-duration select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.modal-price-display {
    font-size: 14px;
    color: #374151;
    margin-bottom: 20px;
}

.modal-price-display strong {
    color: #2563eb;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Mobile filter toggle button ── */
.mobile-filter-toggle {
    display: none;
}

/* ── iPad / tablet (769–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .wrapper { padding: 20px 20px 40px; }

    /* Sidebar: narrower */
    .cat-sidebar { width: 240px; }

    /* Channel cards: more compact on tablet */
    .channel-item { padding: 14px 16px; }
    .avatar { width: 40px; height: 40px; }
    .info .title { font-size: 14px; }
    .channel-right { gap: 12px; }
    .price-value { font-size: 15px; }
    .buy-btn { padding: 8px 16px; font-size: 13px; }

    /* Guide cards: side by side, compact */
    .cat-guide-card { padding: 14px 14px; gap: 12px; }
    .cat-guide-text-desc { font-size: 12px; }

    /* FAQ: 1 column */
    .faq-grid { grid-template-columns: 1fr; }
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; }

    .wrapper {
        padding: 14px 10px 32px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .cat-layout, .cat-main, .channel-list { max-width: 100%; width: 100%; box-sizing: border-box; }
    .cat-guide-banner { max-width: 100%; box-sizing: border-box; }
    .cat-guide-card { min-width: 0; overflow: hidden; flex: 1; box-sizing: border-box; }

    /* Filter toggle button: compact */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 9px 14px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        transition: border-color 0.15s;
    }
    .mobile-filter-toggle:hover { border-color: #2563eb; }
    .mobile-filter-toggle.active { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
    .mobile-filter-toggle svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
    .mobile-filter-toggle .toggle-count {
        margin-left: auto; background: #2563eb; color: #fff;
        border-radius: 20px; padding: 2px 7px; font-size: 11px; font-weight: 700; display: none;
    }
    .mobile-filter-toggle .toggle-count.visible { display: inline-block; }

    /* Layout */
    .cat-layout { flex-direction: column; gap: 0; }

    /* Sidebar hidden by default on mobile */
    .cat-sidebar { width: 100%; position: static; display: none; margin-bottom: 12px; }
    .cat-sidebar.mobile-open { display: block; }
    .sf-apply-btn { margin-top: 12px; }
    .sf-reset-btn { display: block; width: 100%; margin-top: 6px; }

    /* Channel list: tighter gap */
    .channel-list { gap: 8px; }

    /* Channel item: compact card */
    .channel-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 12px 8px;
    }

    .channel-item { max-width: 100%; width: 100%; box-sizing: border-box; overflow: hidden; }
    .channel-left { width: 100%; min-width: 0; margin-bottom: 5px; gap: 12px; align-items: flex-start; }
    .avatar { width: 54px; height: 54px; border-radius: 9px; flex-shrink: 0; }
    .info { padding-top: 4px; min-width: 0; overflow: hidden; flex: 1; }
    .info .title { font-size: 15px; font-weight: 700; margin-bottom: 2px; line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }
    .meta { font-size: 12px; gap: 6px; line-height: 1.2; margin-bottom: 0; flex-wrap: wrap; }

    /* Tags inline: small pills */
    .tags-desktop { display: none; }
    .tags-inline { display: flex !important; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
    .tags-inline span { font-size: 11px; padding: 2px 7px; border-radius: 5px; }

    /* Price + buy row */
    .channel-right {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .channel-right .price { flex: 1; }
    .price-label { display: none; }
    .price-value { font-size: 17px; font-weight: 800; line-height: 1; }

    /* Smaller buy button */
    .buy-btn { padding: 5px 14px; font-size: 12px; white-space: nowrap; border-radius: 7px; }
    .external-link { padding: 4px; flex-shrink: 0; }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 4px;
    }
    .page { padding: 6px 10px; font-size: 13px; }

    /* Modal: полная ширина */
    .modal {
        margin: 12px;
        max-height: 92vh;
        padding: 20px;
        border-radius: 10px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Sidebar filters on mobile */
    .sidebar-filters { border-radius: 10px; padding: 14px; }
    .sf-section { padding: 10px 0; }
    .sf-range input, .search-wrapper input, .sf-select { font-size: 16px; } /* prevent iOS zoom on input focus */
}

/* ── Dark mode ── */
html.dark body { background: #0b0b0e; }

/* Sidebar card */
html.dark .sidebar-filters {
    background: #13131a;
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
html.dark .sf-section { border-bottom-color: rgba(255,255,255,0.06); }
html.dark .sf-label { color: #475569; }

/* Inputs & selects */
html.dark .search-wrapper input,
html.dark .sf-range input,
html.dark .sf-select {
    background-color: #1e1e28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    border-color: rgba(255,255,255,0.09);
    color: #e2e8f0;
}
html.dark .search-wrapper input::placeholder { color: #475569; }
html.dark .search-wrapper input:focus,
html.dark .sf-range input:focus,
html.dark .sf-select:focus { border-color: #2563eb; }
html.dark .sf-range-sep { color: #475569; }

/* Categories dropdown */
html.dark .categories-selected {
    background: #1e1e28;
    border-color: rgba(255,255,255,0.09);
    color: #e2e8f0;
}
html.dark .categories-selected .placeholder { color: #475569; }
html.dark .categories-dropdown {
    background: #1e1e28;
    border-color: rgba(255,255,255,0.09);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
html.dark .category-option { color: #cbd5e1; }
html.dark .category-option:hover { background: rgba(255,255,255,0.06); }
html.dark .category-chip { background: #1e2a3a; border-color: #1d4ed8; color: #93c5fd; }
html.dark .remove-chip { color: #60a5fa; }

/* Buttons */
html.dark .sf-reset-btn { color: #475569; }
html.dark .sf-reset-btn:hover { color: #60a5fa; }

/* Channel cards */
html.dark .channel-item {
    background: #13131a;
    border-color: rgba(255,255,255,0.07);
}
html.dark .channel-name { color: #e2e8f0; }
html.dark .channel-desc { color: #475569; }
html.dark .subs-count { color: #64748b; }
html.dark .tag { background: #1e1e28; color: #94a3b8; border-color: rgba(255,255,255,0.07); }
html.dark .price-value { color: #e2e8f0; }
html.dark .price-label { color: #475569; }
html.dark .external-link { color: #475569; border-color: rgba(255,255,255,0.08); }
html.dark .external-link:hover { color: #60a5fa; border-color: #2563eb; }

/* Guide cards */
html.dark .cat-guide-card { background: #13131a; border-color: rgba(255,255,255,0.07); }
html.dark .cat-guide-card:hover { border-color: rgba(37,99,235,0.5); }
html.dark .cat-guide-text-title { color: #e2e8f0; }
html.dark .cat-guide-text-desc { color: #475569; }
html.dark .cat-guide-icon-blue { background: #1e2a3a; }
html.dark .cat-guide-icon-green { background: #14290a; }

/* Mobile filter toggle */
html.dark .mobile-filter-toggle {
    background: #13131a;
    border-color: rgba(255,255,255,0.09);
    color: #e2e8f0;
}

/* Modal */
html.dark .modal { background: #13131a; border-color: rgba(255,255,255,0.07); }
html.dark .modal-title { color: #e2e8f0; }
html.dark .modal label { color: #94a3b8; }
html.dark .modal input, html.dark .modal textarea {
    background: #1e1e28; border-color: rgba(255,255,255,0.09); color: #e2e8f0;
}
html.dark .modal-overlay { background: rgba(0,0,0,0.7); }

/* Pagination */
html.dark .page-btn { background: #1e1e28; border-color: rgba(255,255,255,0.08); color: #94a3b8; }
html.dark .page-btn:hover { border-color: #2563eb; color: #60a5fa; }
html.dark .page-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Header text */
html.dark .header h1 { color: #e2e8f0; }

/* ── Pagination mobile ── */
@media (max-width: 600px) {
    .pagination {
        gap: 3px;
        margin-top: 20px;
        padding: 0 2px;
    }
    .page {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 7px;
    }
    .page.active {
        width: 34px;
        min-width: 34px;
    }
    .page.page-nav {
        padding: 0 8px;
        font-size: 13px;
    }
    .page-ellipsis {
        min-width: 22px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .page {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 5px;
    }
    .page.active {
        width: 30px;
        min-width: 30px;
    }
    .page.page-nav {
        padding: 0 6px;
        font-size: 12px;
    }
    .page-ellipsis {
        min-width: 18px;
        height: 30px;
    }
}
html.dark .header p { color: #475569; }