/* =====================================================================
   ix-7-details.css (19.11.2026) — точечные доработки главной на телефоне. Удалить файл = вернуть как было.
   1) ТОП-100: над карточками одна строка-легенда «Подписчики · Охват · ERR · ИВ» (прилипает при прокрутке списка),
      сами карточки не выше. ИВ больше не прилипает к иконке.
   2) Плашка «TGRank — каталог и рейтинг…» — продолжение баннера, а не отдельная коробка.
   ===================================================================== */
@media (max-width: 760px) {
    /* легенда колонок из готовой (переведённой) шапки таблицы: цветная точка как у иконки в плитке + название */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all {
        display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) 36px !important; gap: 0 5px !important; padding: 0 11px 0 13px !important; margin: 0 0 7px !important;
        position: sticky !important; top: 56px !important; z-index: 30 !important; min-height: 30px !important; height: 30px !important; align-items: center !important;
        background: #fff !important; border: 1px solid #e8eef6 !important; border-radius: 12px !important;
        box-shadow: 0 6px 16px -12px rgba(15,23,42,.35) !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > * { display: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) {
        display: flex !important; justify-content: center !important; align-items: center !important; gap: 4px !important; grid-row: 1 !important; padding: 0 !important; margin: 0 !important; min-width: 0 !important; overflow: hidden !important; text-align: center !important; width: auto !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7))::before {
        content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(4) { grid-column: 1 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(5) { grid-column: 2 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(6) { grid-column: 3 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(7) { grid-column: 4 !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(4)::before { background: #38bdf8; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(5)::before { background: #a78bfa; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(6)::before { background: #34d399; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :nth-child(7)::before { background: #c084fc; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)),
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > * a { font-size: 9.5px !important; font-weight: 700 !important; letter-spacing: -.01em !important; text-transform: none !important;
        color: #475569 !important; text-decoration: none !important; white-space: nowrap !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > * a { display: inline !important; overflow: visible !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all svg { display: none !important; }
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .table-responsive { overflow: visible !important; }

    /* ИВ: зазор между короной и числом, как у остальных */
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .ch-row .iv-badge .gm-metric-icon { margin-right: 4px !important; }

    /* плашка «TGRank — …» — внутри баннера (переносит ix-7-details.js), стеклянная карточка внизу */
    html body .main .welcome-banner .seo-ribbon { order: 7; margin: 14px 0 0 !important; width: 100% !important; box-sizing: border-box !important; padding: 10px 12px !important; gap: 10px !important;
        background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 14px !important; box-shadow: none !important; position: relative; z-index: 2; }
    html body .main .welcome-banner .seo-ribbon-text { color: rgba(255,255,255,.78) !important; font-size: 11px !important; line-height: 1.45 !important; margin: 0 !important; }
    html body .main .welcome-banner .seo-ribbon-text b { color: #fff !important; }
    html body .main .welcome-banner .seo-ribbon-icon { background: rgba(94,234,212,.14) !important; color: #5eead4 !important; box-shadow: none !important; flex-shrink: 0; }
    html body .main .welcome-banner + .seo-ribbon, html body .main .seo-ribbon:not(.welcome-banner .seo-ribbon) { margin-bottom: 14px !important; }
    html body .main .welcome-banner:has(.seo-ribbon) { margin-bottom: 14px !important; }
}
@media (max-width: 374px) {
    html body:not(#a):not(#b):not(#c):not(#d):not(#e) .rating-section .tbl-head.grid-all > :is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7))::before { display: none !important; }
}
