/* =====================================================================
   ix-2-table.css v2 — ТОП каналов на телефоне компактными карточками (18.11.2026). Удалить файл = вернуть таблицу.
   Две строки: [аватар · название/ник · цена]  и  [подписчики · охват · ERR · ИВ · кнопка-«написать»].
   Чистая аватарка: только ровный значок проверки; корона/номер/«ТОП» на аватарке скрыты, статус — цветом рамки карточки.
   ===================================================================== */
@media (max-width: 760px) {
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head { display: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .table-responsive { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; filter: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list { display: flex !important; flex-direction: column !important; gap: 8px !important; background: transparent !important; border: 0 !important; min-width: 0 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper {
        border-radius: 16px !important; background: #fff !important; border: 1px solid #e8eef6 !important; border-left-width: 1px !important; border-left-color: #e8eef6 !important;
        box-shadow: 0 6px 16px -12px rgba(15,23,42,.3) !important; overflow: hidden !important; min-width: 0 !important; margin: 0 !important; position: relative !important;
    }
    /* статус карточки — тонкая цветная полоса слева */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper:is(.js-top-ch-card, .tariff-business-yellow, .tariff-premium-purple)::before {
        content: "" !important; position: absolute !important; left: 0 !important; top: 14px !important; bottom: 14px !important; width: 3px !important; border-radius: 0 3px 3px 0 !important; z-index: 2 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper.js-top-ch-card::before { background: linear-gradient(#34d399, #0891b2) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper.tariff-business-yellow::before { background: linear-gradient(#fcd34d, #f59e0b) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper.tariff-premium-purple::before { background: linear-gradient(#c4b5fd, #7c3aed) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper:is(.tariff-business-yellow, .tariff-premium-purple, .js-top-ch-card) { background: #fff !important; }

    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all {
        display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) 38px !important; grid-template-rows: auto !important;
        grid-template-areas: "meta meta meta price price" "subs reach err iv write" !important;
        gap: 9px 6px !important; padding: 11px 12px 11px 14px !important; min-height: 0 !important; align-items: center !important; background: transparent !important;
    }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > * { padding: 0 !important; min-width: 0 !important; max-width: none !important; text-align: left !important; font-size: 12px !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > :is(.ch-num, .ch-cat-desktop-only, .rank-chip),
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > div:has(.row-voting-block),
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > div:has(> .ch-cpm-badge),
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row :is(.ch-cat-mobile-only, .tariff-designer-badge, .ch-num-badge, .tpx-sp) { display: none !important; }

    /* верх: аватар + название/ник */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-meta { grid-area: meta !important; display: flex !important; align-items: center !important; gap: 10px !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap { width: 42px !important; height: 42px !important; min-width: 42px !important; max-width: 42px !important; min-height: 42px !important; max-height: 42px !important; flex: 0 0 42px !important; margin: 0 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap .ch-avatar-img { width: 42px !important; height: 42px !important; border: 0 !important; padding: 0 !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap.verified .ch-avatar-img { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #34d399 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap .avatar-table-badge {
        width: 16px !important; height: 16px !important; right: -3px !important; bottom: -3px !important; border: 2px solid #fff !important; border-radius: 50% !important;
        display: flex !important; align-items: center !important; justify-content: center !important; box-shadow: 0 2px 5px rgba(15,23,42,.18) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap.verified .avatar-table-badge { background: linear-gradient(135deg, #34d399, #059669) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap .avatar-table-badge svg { width: 9px !important; height: 9px !important; stroke: #fff !important; stroke-width: 4 !important; fill: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-avatar-wrap .avatar-table-badge .quest-mark { font-size: 10px !important; font-weight: 800 !important; color: #fff !important; line-height: 1 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-title { font-size: 15px !important; font-weight: 700 !important; color: #0f172a !important; line-height: 1.25 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-title::before { display: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .ch-user { font-size: 12px !important; max-width: 100% !important; margin-top: 1px !important; }

    /* цена справа */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > :is(.ch-price-val, .ch-no-price-panel) { grid-area: price !important; grid-column: 4 / 6 !important; grid-row: 1 !important; justify-self: end !important; text-align: right !important; white-space: nowrap !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-price-val { font-size: 16px !important; font-weight: 800 !important; color: #0f172a !important; letter-spacing: -.02em !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-no-price-panel { margin: 0 !important; max-width: none !important; width: auto !important; min-width: 0 !important; justify-content: flex-end !important; font-size: 0 !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-no-price-panel::before { content: "—"; font-size: 16px; font-weight: 700; color: #cbd5e1; }

    /* низ: 4 цифры одной строкой */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-subs { grid-area: subs !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .ch-metric-main { grid-area: reach !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .gm-metric-row:not(.ch-subs):not(.ch-metric-main) { grid-area: err !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > div:has(> .iv-badge) { grid-area: iv !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > :is(.ch-subs, .ch-metric-main, .gm-metric-row:not(.ch-subs):not(.ch-metric-main), div:has(> .iv-badge)) {
        display: flex !important; align-items: center !important; justify-content: center !important; gap: 4px !important; height: 34px !important; border-radius: 10px !important;
        background: #f6f8fb !important; border: 0 !important; font-size: 12px !important; font-weight: 700 !important; color: #0f172a !important; white-space: nowrap !important; overflow: hidden !important;
    }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > div:has(> .iv-badge) .iv-badge { background: transparent !important; border: 0 !important; padding: 0 !important; font-size: 12px !important; font-weight: 700 !important; display: inline-flex !important; align-items: center !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .gm-metric-icon { display: inline-flex !important; width: 15px !important; height: 15px !important; min-width: 15px !important; border-radius: 5px !important; margin: 0 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .gm-metric-icon svg { width: 9px !important; height: 9px !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .gm-err-ring { width: 13px !important; height: 13px !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .gm-err-ring + span,
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .gm-metric-row span { font-size: 12px !important; }

    /* «написать» — квадратная зелёная кнопка с иконкой */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > .btn-write-wrap { grid-area: write !important; display: flex !important; justify-content: flex-end !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .btn-write-wrap .btn-write { display: inline-flex !important; align-items: center !important; justify-content: center !important;
        width: 38px !important; height: 34px !important; padding: 0 !important; border-radius: 10px !important; font-size: 0 !important; border: 0 !important;
        background: linear-gradient(135deg, #26e696, #18d2a8) !important; box-shadow: 0 6px 14px -6px rgba(38,230,150,.7) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .btn-write-wrap .btn-write svg { width: 16px !important; height: 16px !important; margin: 0 !important; stroke: #fff !important; }

    html[data-theme="dark"] body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .channels-list > .ch-wrapper { background: #0f1d2b !important; border-color: rgba(255,255,255,.08) !important; }
    html[data-theme="dark"] body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row.grid-all > :is(.ch-subs, .ch-metric-main, .gm-metric-row:not(.ch-subs):not(.ch-metric-main), div:has(> .iv-badge)) { background: rgba(255,255,255,.05) !important; color: #e2e8f0 !important; }
    html[data-theme="dark"] body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row :is(.ch-title, .ch-price-val) { color: #f1f5f9 !important; }
}
