/* PM PERF: externalized Today shared CSS 2026-09-08 */
    /*
    |--------------------------------------------------------------------------
    | Full-width top date selector row
    |--------------------------------------------------------------------------
    */
    .tm-page-heading {
        width: 100%;
        display: block;
        margin: 0 0 16px;
    }

    .tm-heading-date {
        width: 100%;
        min-width: 0;
        padding-top: 0;
    }

    .tm-top-controls {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        margin: 0 0 18px;
        flex-wrap: wrap;
    }

    .tm-view-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        margin: 0;
    }

    .tm-view-tab {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 13px;
        border-radius: 14px;
        background: #fff;
        color: #13294b;
        border: 1px solid #dbe6f3;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        box-shadow: 0 3px 10px rgba(17, 31, 61, 0.05);
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .tm-view-tab:hover {
        background: #f9fbff;
        border-color: #c9d8ea;
    }

    .tm-view-tab.active {
        background: #13294b;
        color: #fff;
        border-color: #13294b;
    }

    .tm-view-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: #eef4ff;
        color: #13294b;
        font-size: 12px;
        font-weight: 800;
    }

    .tm-view-tab.active .tm-view-count {
        background: rgba(255,255,255,0.18);
        color: #fff;
    }

    .tm-view-icon {
        display: block;
        width: 20px;
        height: 20px;
        min-width: 20px;
        flex: 0 0 20px;
        object-fit: contain;
    }

    .tm-live-dot,
    .tm-finished-dot,
    .tm-scheduled-dot,
    .tm-rollover-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        display: inline-block;
        flex: 0 0 auto;
    }

    .tm-live-dot {
        background: #16a34a;
        box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
    }

    .tm-finished-dot {
        background: #64748b;
        box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.12);
    }

    .tm-scheduled-dot {
        background: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .tm-rollover-dot {
        background: #9d2235;
        box-shadow: 0 0 0 4px rgba(157, 34, 53, 0.12);
    }

    .tm-view-label-mobile {
        display: none;
    }

    /*
    |--------------------------------------------------------------------------
    | Full-width date selector
    |--------------------------------------------------------------------------
    */
    .tm-date-nav {
        position: relative;
        display: flex;
        align-items: stretch;
        gap: 0;
        width: 100%;
        min-height: 44px;
        background: #fff;
        border: 1px solid #dbe6f3;
        border-radius: 16px;
        box-shadow: 0 3px 10px rgba(17, 31, 61, 0.05);
        overflow: visible;
        z-index: 20;
    }

    .tm-date-arrow {
        width: 48px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #13294b;
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        background: #fff;
        border: 0;
        flex: 0 0 48px;
    }

    .tm-date-arrow:hover {
        background: #fff1f2;
    }

    .tm-date-arrow.prev {
        border-radius: 16px 0 0 16px;
        border-right: 1px solid #dbe6f3;
    }

    .tm-date-arrow.next {
        border-radius: 0 16px 16px 0;
        border-left: 1px solid #dbe6f3;
    }

    .tm-date-picker {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
    }

    .tm-date-picker summary {
        list-style: none;
        width: 100%;
        min-height: 44px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        cursor: pointer;
        color: #9d2235;
        font-size: 14px;
        font-weight: 900;
        white-space: nowrap;
        user-select: none;
        text-align: center;
    }

    .tm-date-picker summary::-webkit-details-marker {
        display: none;
    }

    .tm-date-icon {
        width: 16px;
        height: 16px;
        border: 2px solid #13294b;
        border-radius: 4px;
        position: relative;
        display: inline-block;
        flex: 0 0 auto;
    }

    .tm-date-icon::before {
        content: "";
        position: absolute;
        top: 3px;
        left: -2px;
        right: -2px;
        height: 2px;
        background: #13294b;
    }

    .tm-date-menu {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        transform: none;
        width: auto;
        max-height: 330px;
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #dbe6f3;
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
        z-index: 300003;
    }

    .tm-date-option {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 8px;
        color: #13294b;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
        text-transform: none;
    }

    .tm-date-option:hover {
        background: #f4f7fb;
        color: #13294b;
    }

    .tm-date-option.active {
        background: #13294b;
        color: #ffffff;
    }

    .tm-date-option.today {
        color: #9d2235;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: 0.2px;
    }

    .tm-date-option.today:hover {
        background: rgba(157, 34, 53, 0.08);
        color: #9d2235;
    }

    .tm-date-option.today.active {
        background: #9d2235;
        color: #ffffff;
    }

    .tm-matches-list {
        width: 100%;
    }

    .tm-empty {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
        color: #334155;
    }

    .tm-page .pm-match-dropdown {
        margin-bottom: 14px;
    }

    .tm-page .pm-match-history-tabs,
    .tm-page .pm-match-history-result-tabs,
    .tm-page .pm-match-history-advanced-tabs {
        position: relative;
        z-index: 99999;
        isolation: isolate;
    }

    .tm-page .pm-match-history-tab,
    .tm-page .pm-match-history-result-tab,
    .tm-page .pm-match-history-advanced-tab {
        position: relative;
        z-index: 100000;
        pointer-events: auto !important;
    }

    @media (max-width: 768px) {
        .tm-page-heading {
            width: 100%;
            display: block;
            margin-bottom: 14px;
        }

        .tm-heading-date {
            width: 100%;
            min-width: 0;
            padding-top: 0;
        }

        .tm-top-controls {
            align-items: stretch;
            margin-bottom: 14px;
        }

        .tm-view-tabs {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        .tm-view-tab {
            justify-content: center;
            padding: 8px 6px;
            font-size: 11px;
            text-align: center;
            gap: 5px;
            white-space: nowrap;
        }

        .tm-view-label-desktop {
            display: none;
        }

        .tm-view-label-mobile {
            display: inline;
        }

        .tm-view-count {
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            font-size: 11px;
        }

        .tm-date-nav {
            width: 100%;
            min-height: 42px;
            border-radius: 14px;
        }

        .tm-date-arrow {
            width: 42px;
            flex-basis: 42px;
            min-height: 42px;
            font-size: 21px;
        }

        .tm-date-arrow.prev {
            border-radius: 14px 0 0 14px;
        }

        .tm-date-arrow.next {
            border-radius: 0 14px 14px 0;
        }

        .tm-date-picker summary {
            min-height: 42px;
            font-size: 13px;
            padding: 0 12px;
        }

        .tm-date-menu {
            width: 190px;
            max-width: calc(100vw - 40px);
        }
    }

    @media (max-width: 480px) {
        .tm-view-tabs {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 5px;
        }

        .tm-view-tab {
            padding: 8px 4px;
            font-size: 10.5px;
            gap: 4px;
        }

        .tm-view-count {
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            font-size: 10px;
        }

        .tm-live-dot,
        .tm-finished-dot,
        .tm-scheduled-dot {
            width: 7px;
            height: 7px;
        }

        .tm-date-arrow {
            width: 40px;
            flex-basis: 40px;
        }

        .tm-date-picker summary {
            font-size: 12px;
        }
    }

    /*
    |--------------------------------------------------------------------------
    | Date dropdown stacking fix
    |--------------------------------------------------------------------------
    | Keep the date dropdown above match cards/sliders but below the main header.
    |--------------------------------------------------------------------------
    */
    .tm-page {
        position: relative;
        z-index: 1;
    }

    .tm-page-heading,
    .tm-heading-date,
    .tm-date-nav {
        position: relative;
        z-index: 40;
        isolation: isolate;
    }

    .tm-date-picker {
        position: relative;
        z-index: 41;
    }

    .tm-date-picker[open] {
        z-index: 42;
    }

    .tm-date-menu {
        z-index: 43;
    }

    .tm-top-controls,
    .tm-matches-list {
        position: relative;
        z-index: 1;
    }

    .tm-matches-list .pm-match-card,
    .tm-matches-list .pm-match-card-inner,
    .tm-matches-list .pm-match-center,
    .tm-matches-list .pm-match-dropdown {
        position: relative;
        z-index: 1;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile match tabs width balance
    |--------------------------------------------------------------------------
    | Give Scheduled more room while keeping all tabs on one line.
    |--------------------------------------------------------------------------
    */
    @media (max-width: 768px) {
        .tm-view-tabs {
            grid-template-columns: 0.75fr 0.82fr 1.03fr 1.40fr !important;
            gap: 5px !important;
        }

        .tm-view-tab {
            min-width: 0 !important;
            padding-left: 4px !important;
            padding-right: 4px !important;
            gap: 4px !important;
            overflow: hidden;
        }

        .tm-view-label-mobile {
            min-width: 0;
            white-space: nowrap;
        }

        .tm-view-count {
            flex: 0 0 auto;
            min-width: 18px !important;
            height: 18px !important;
            padding: 0 5px !important;
            font-size: 10px !important;
        }

        .tm-live-dot,
        .tm-finished-dot,
        .tm-scheduled-dot {
            width: 7px !important;
            height: 7px !important;
            flex: 0 0 7px !important;
            box-shadow: none !important;
        }
    }

    @media (max-width: 420px) {
        .tm-view-tabs {
            grid-template-columns: 0.72fr 0.78fr 0.98fr 1.48fr !important;
            gap: 4px !important;
        }

        .tm-view-tab {
            font-size: 10px !important;
            padding-left: 3px !important;
            padding-right: 3px !important;
        }

        .tm-view-count {
            min-width: 17px !important;
            height: 17px !important;
            padding: 0 4px !important;
            font-size: 9.5px !important;
        }
    }


    /* Mobile: keep Today tabs breathing cleanly on two rows */
    @media (max-width: 700px) {
        .tm-top-controls {
            width: 100%;
            margin-bottom: 18px;
        }

        .tm-view-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            width: 100%;
            align-items: stretch;
        }

        .tm-view-tab {
            flex: 0 0 calc((100% - 16px) / 3);
            width: calc((100% - 16px) / 3);
            max-width: calc((100% - 16px) / 3);
            min-width: 0;
            justify-content: center;
            gap: 4px;
            padding: 9px 5px;
            border-radius: 10px;
            font-size: 11px;
            line-height: 1;
            white-space: nowrap;
            box-sizing: border-box;
        }

        .tm-view-icon {
            width: 17px;
            height: 17px;
            min-width: 17px;
            flex: 0 0 17px;
        }

        .tm-view-count {
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            font-size: 10.5px;
        }

        .tm-tab-all,
        .tm-tab-finished,
        .tm-tab-live,
        .tm-tab-scheduled,
        .tm-tab-favorites {
            grid-column: auto;
        }
    }



    /* Mobile: make date dropdown match the full date selector width */
    @media (max-width: 768px) {
        .tm-date-nav {
            position: relative;
            overflow: visible;
        }

        .tm-date-picker {
            position: static;
        }

        .tm-date-menu {
            left: 0;
            right: 0;
            width: 100%;
            max-width: 100%;
            min-width: 100%;
            transform: none;
            box-sizing: border-box;
        }
    }


    /* Desktop: show full date dropdown list without internal scroll */
    @media (min-width: 769px) {
        .tm-date-menu {
            height: auto;
            max-height: none;
            overflow: visible;
            overflow-y: visible;
        }
    }


    /* Mobile: show full date dropdown list without internal scroll */
    @media (max-width: 768px) {
        .tm-date-menu {
            height: auto;
            max-height: none;
            overflow: visible;
            overflow-y: visible;
        }
    }


    /* PM FIX: today matches date selector and filter tabs use 6px radius */
    .tm-page .tm-view-tab,
    .tm-page .tm-date-nav,
    .tm-page .tm-date-picker summary,
    .tm-page .tm-date-menu,
    .tm-page .tm-date-option {
        border-radius: 6px !important;
    }

    .tm-page .tm-date-arrow.prev {
        border-radius: 6px 0 0 6px !important;
    }

    .tm-page .tm-date-arrow.next {
        border-radius: 0 6px 6px 0 !important;
    }
    /* END PM FIX: today matches date selector and filter tabs use 6px radius */

    /* PM TWEAK: today filter label typography match league 2026-08-25 START */

    /*
     * Filter WORDS only.
     *
     * Do not change:
     * - counters
     * - icons / dots
     * - percentage pills
     * - tab dimensions
     * - padding / borders
     * - interaction behaviour
     */

    .tm-page .tm-view-label-desktop,
    .tm-page .tm-view-label-mobile {
        font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
        font-size: 11.5px !important;
        font-weight: 400 !important;
        letter-spacing: 0.04px !important;
        line-height: 1 !important;
    }

    @media (max-width: 760px) {
        .tm-page .tm-view-label-desktop,
        .tm-page .tm-view-label-mobile {
            font-size: 10px !important;
        }
    }

    @media (max-width: 420px) {
        .tm-page .tm-view-label-desktop,
        .tm-page .tm-view-label-mobile {
            font-size: 9.5px !important;
        }
    }

    /* PM TWEAK: today filter label typography match league 2026-08-25 END */

    /* PM TWEAK: filter right padding proportional to font 2026-08-25 START */

    /*
     * 1:1 proportion with filter-label font size:
     *
     * desktop  11.5px font -> 11.5px right padding
     * <=760px  10px font   -> 10px right padding
     * <=420px  9.5px font  -> 9.5px right padding
     *
     * Only trailing/right padding changes.
     */

    .tm-page .tm-view-tab {
        padding-right: 11.5px !important;
    }

    @media (max-width: 760px) {
        .tm-page .tm-view-tab {
            padding-right: 10px !important;
        }
    }

    @media (max-width: 420px) {
        .tm-page .tm-view-tab {
            padding-right: 9.5px !important;
        }
    }

    /* PM TWEAK: filter right padding proportional to font 2026-08-25 END */

    /* PM UX: mobile Today filter balanced typography and symbols 2026-09-03 START */

    /*
     * Final mobile-only visual balance for the filters below the date selector.
     *
     * Preserve:
     * - desktop appearance
     * - three-column phone layout
     * - active navy state
     * - filter counts / values
     * - filter behaviour / AJAX
     * - premium percentage badges
     */

    @media (max-width: 700px) {
        .tm-page .tm-view-tab {
            gap: 4px !important;
            padding-left: 5px !important;
            padding-right: 5px !important;
        }

        .tm-page .tm-view-label-mobile {
            font-size: 10.5px !important;
            font-weight: 400 !important;
            line-height: 1 !important;
            letter-spacing: 0 !important;
        }

        .tm-page .tm-view-icon {
            width: 15px !important;
            height: 15px !important;
            min-width: 15px !important;
            flex: 0 0 15px !important;
            object-fit: contain !important;
        }

        .tm-page .tm-view-count {
            min-width: 18px !important;
            height: 18px !important;
            padding: 0 5px !important;
            font-size: 10px !important;
            line-height: 1 !important;
        }

        .tm-page .tm-live-dot,
        .tm-page .tm-finished-dot,
        .tm-page .tm-scheduled-dot,
        .tm-page .tm-rollover-dot {
            width: 7px !important;
            height: 7px !important;
            flex: 0 0 7px !important;
        }
    }

    /*
     * Extra protection for unusually narrow phones.
     * Only a tiny reduction is used so readability remains good.
     */
    @media (max-width: 360px) {
        .tm-page .tm-view-tab {
            gap: 3px !important;
            padding-left: 4px !important;
            padding-right: 4px !important;
        }

        .tm-page .tm-view-label-mobile {
            font-size: 10px !important;
        }

        .tm-page .tm-view-icon {
            width: 14px !important;
            height: 14px !important;
            min-width: 14px !important;
            flex-basis: 14px !important;
        }

        .tm-page .tm-view-count {
            min-width: 17px !important;
            height: 17px !important;
            padding: 0 4px !important;
            font-size: 9.5px !important;
        }
    }

    /* PM UX: mobile Today filter balanced typography and symbols 2026-09-03 END */





    /* PM ADD: 76-90 tab successful finished result card */
    .tm-page .pm-match-card.pm-7690-result-hit {
        border-color: rgba(22, 101, 52, 0.38) !important;
        box-shadow: 0 6px 18px rgba(22, 101, 52, 0.10) !important;
    }

    .tm-page .pm-match-card.pm-7690-result-hit .pm-match-card-header {
        background: #15803d !important;
        border-bottom-color: #15803d !important;
    }

    .tm-page .pm-match-card.pm-7690-result-hit.pm-match-card-result .pm-score-area {
        background: #16a34a !important;
        border-color: #16a34a !important;
        color: #ffffff !important;
    }

    .tm-page .pm-match-card.pm-7690-result-hit.pm-match-card-result .pm-score-main,
    .tm-page .pm-match-card.pm-7690-result-hit.pm-match-card-result .pm-score-meta {
        color: #ffffff !important;
    }
    /* END PM ADD: 76-90 tab successful finished result card */


/* PM HOME NEWS: latest 10 posts panel 2026-06-27 */
.pm-home-news-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.pm-home-news-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(19, 41, 75, 0.06);
    text-decoration: none;
    color: #13294b;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pm-home-news-card:hover,
.pm-home-news-card:focus {
    transform: translateY(-1px);
    border-color: #9d2235;
    box-shadow: 0 10px 22px rgba(19, 41, 75, 0.11);
    outline: none;
}

.pm-home-news-image {
    width: 74px;
    min-height: 86px;
    background: #13294b;
    object-fit: cover;
    display: block;
}

.pm-home-news-image-placeholder {
    width: 74px;
    min-height: 86px;
    background: #13294b;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.pm-home-news-body {
    min-width: 0;
    padding: 9px 10px 9px 0;
}

.pm-home-news-title {
    margin: 0 0 5px;
    color: #13294b;
    font-size: 13px;
    line-height: 1.22;
    font-weight: 900;
}

.pm-home-news-meta {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 6px;
}

.pm-home-news-league {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 6px;
    border: 1px solid #dbe6f3;
    border-radius: 4px;
    background: #f8fbff;
    color: #13294b;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.pm-home-news-league img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.pm-home-news-league span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-home-news-empty {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.pm-home-news-more {
    display: inline-flex;
    margin-top: 12px;
    color: #9d2235;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.pm-home-news-more:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .pm-home-news-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .pm-home-news-image,
    .pm-home-news-image-placeholder {
        width: 64px;
        min-height: 78px;
    }
}

/* PM UX: Home Today filters compact premium controls 2026-09-05 START */

/*
|--------------------------------------------------------------------------
| Home Today filter controls
|--------------------------------------------------------------------------
|
| Visual-only layer.
|
| Scope:
|   Home -> Today's Matches filters only.
|
| Does not change:
|   PHP filtering
|   AJAX behaviour
|   URLs
|   counts
|   active-view logic
|   date selector
|--------------------------------------------------------------------------
*/

.pm-home-matches-column .tm-page .tm-top-controls {
    margin-bottom: 16px !important;
}

.pm-home-matches-column .tm-page .tm-view-tabs {
    gap: 8px !important;
    align-items: center !important;
}

/* Main filter control */
.pm-home-matches-column .tm-page .tm-view-tab {
    min-height: 34px !important;
    padding: 6px 10px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;

    box-sizing: border-box !important;

    border: 1px solid #dbe6f3 !important;
    border-radius: 6px !important;

    background: #ffffff !important;
    color: #13294b !important;

    box-shadow:
        0 1px 3px rgba(19, 41, 75, 0.05) !important;

    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
    line-height: 1 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    transition:
        background-color 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease !important;
}

/* Smooth hover: visible without becoming visually heavy */
.pm-home-matches-column .tm-page .tm-view-tab:hover {
    background: #f8fafc !important;
    color: #13294b !important;
    border-color: #b9c9dd !important;

    box-shadow:
        0 2px 6px rgba(19, 41, 75, 0.07) !important;
}

/* Keyboard accessibility */
.pm-home-matches-column .tm-page .tm-view-tab:focus-visible {
    outline: 2px solid rgba(157, 34, 53, 0.28) !important;
    outline-offset: 2px !important;
}

/* Active filter remains the strongest element */
.pm-home-matches-column .tm-page .tm-view-tab.active,
.pm-home-matches-column .tm-page .tm-view-tab.active:hover {
    background: #13294b !important;
    color: #ffffff !important;
    border-color: #13294b !important;

    box-shadow:
        0 3px 8px rgba(19, 41, 75, 0.15) !important;
}

/* Filter words */
.pm-home-matches-column .tm-page .tm-view-label-desktop,
.pm-home-matches-column .tm-page .tm-view-label-mobile {
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    letter-spacing: 0 !important;
    line-height: 1 !important;
}

/* ALL / FINISHED / LIVE / SCHEDULED / FAVOURITES icons */
.pm-home-matches-column .tm-page .tm-view-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex: 0 0 17px !important;

    object-fit: contain !important;
}

/* Status / strategy dots */
.pm-home-matches-column .tm-page .tm-live-dot,
.pm-home-matches-column .tm-page .tm-finished-dot,
.pm-home-matches-column .tm-page .tm-scheduled-dot,
.pm-home-matches-column .tm-page .tm-rollover-dot {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    flex: 0 0 7px !important;
}

/*
|--------------------------------------------------------------------------
| Match-count badge
|--------------------------------------------------------------------------
*/
.pm-home-matches-column .tm-page .tm-view-count {
    min-width: 20px !important;
    height: 20px !important;

    padding: 0 6px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border-radius: 999px !important;

    background: #eef3f8 !important;
    color: #13294b !important;

    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.pm-home-matches-column .tm-page .tm-view-tab.active .tm-view-count {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Strategy performance badges
|--------------------------------------------------------------------------
|
| Neutral rather than green:
| the number is information, not automatically a positive result.
|--------------------------------------------------------------------------
*/
.pm-home-matches-column .tm-page .tm-rollover-hit-rate {
    min-height: 20px !important;

    padding: 0 6px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    border: 1px solid #dbe6f3 !important;
    border-radius: 999px !important;

    background: #f5f7fa !important;
    color: #49617f !important;

    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
}

.pm-home-matches-column .tm-page .tm-view-tab.active .tm-rollover-hit-rate {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
|
| Preserve the existing three-controls-per-row behaviour.
| Only refine dimensions and typography.
|--------------------------------------------------------------------------
*/
@media (max-width: 700px) {

    .pm-home-matches-column .tm-page .tm-top-controls {
        margin-bottom: 16px !important;
    }

    .pm-home-matches-column .tm-page .tm-view-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;

        width: 100% !important;
        align-items: stretch !important;
    }

    .pm-home-matches-column .tm-page .tm-view-tab {
        flex:
            0 0 calc((100% - 12px) / 3) !important;

        width:
            calc((100% - 12px) / 3) !important;

        max-width:
            calc((100% - 12px) / 3) !important;

        min-width: 0 !important;
        min-height: 34px !important;

        padding: 7px 5px !important;

        gap: 4px !important;

        overflow: hidden !important;
    }

    .pm-home-matches-column .tm-page .tm-view-label-desktop,
    .pm-home-matches-column .tm-page .tm-view-label-mobile {
        font-size: 10px !important;
        font-weight: 600 !important;
    }

    .pm-home-matches-column .tm-page .tm-view-icon {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        flex-basis: 15px !important;
    }

    .pm-home-matches-column .tm-page .tm-view-count {
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;

        font-size: 9.5px !important;
    }

    .pm-home-matches-column .tm-page .tm-rollover-hit-rate {
        min-height: 18px !important;
        padding: 0 5px !important;

        font-size: 8.8px !important;
    }
}

@media (max-width: 420px) {

    .pm-home-matches-column .tm-page .tm-view-tabs {
        gap: 5px !important;
    }

    .pm-home-matches-column .tm-page .tm-view-tab {
        flex:
            0 0 calc((100% - 10px) / 3) !important;

        width:
            calc((100% - 10px) / 3) !important;

        max-width:
            calc((100% - 10px) / 3) !important;

        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .pm-home-matches-column .tm-page .tm-view-label-desktop,
    .pm-home-matches-column .tm-page .tm-view-label-mobile {
        font-size: 9.5px !important;
    }

    .pm-home-matches-column .tm-page .tm-view-count {
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;

        font-size: 9px !important;
    }

    .pm-home-matches-column .tm-page .tm-rollover-hit-rate {
        min-height: 17px !important;
        padding: 0 4px !important;

        font-size: 8.2px !important;
    }
}

/* PM UX: Home Today filters compact premium controls 2026-09-05 END */

