/* PM PERF: externalized Header Search CSS 2026-09-08 */
        .pm-header-search-live {
            position: relative;
            overflow: visible !important;
        }

        .pm-header-search-suggestions {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            z-index: 1200;
            background: #ffffff;
            border: 1px solid #dbe6f3;
            border-radius: 16px;
            box-shadow: 0 16px 40px rgba(19, 41, 75, 0.18);
            overflow: hidden;
            max-height: min(520px, calc(100vh - 130px));
            overflow-y: auto;
        }

        .pm-header-search-suggestions[hidden] {
            display: none !important;
        }

        .pm-header-search-suggestion {
            display: grid;
            grid-template-columns: 30px minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            color: #13294b;
            border-bottom: 1px solid #edf2f8;
            background: #ffffff;
            text-decoration: none !important;
        }

        .pm-header-search-suggestion:last-child {
            border-bottom: 0;
        }

        .pm-header-search-suggestion:hover,
        .pm-header-search-suggestion.is-active {
            background: #f8fbff;
            text-decoration: none !important;
        }

        /*
         * PM UX: header search suggestions direct logos no tile 2026-09-06
         *
         * Display team / league / country artwork directly without the
         * previous 36px background/border container.
         */
        .pm-header-search-suggestion-image {
            width: 28px;
            height: 28px;
            object-fit: contain;
            display: block;
            justify-self: center;
        }

        .pm-header-search-suggestion-placeholder {
            width: 16px;
            height: 16px;
            border-radius: 6px;
            background: #13294b;
            opacity: 0.9;
            display: block;
            justify-self: center;
        }

        .pm-header-search-suggestion-main {
            min-width: 0;
        }

        .pm-header-search-suggestion-name {
            display: block;
            font-size: 13px;
            line-height: 1.2;
            font-weight: 900;
            color: #13294b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /*
         * PM UX: header search team suggestion names uppercase 2026-09-06
         * Scope uppercase styling to Team / National Squad suggestions only.
         * League and country suggestion names remain unchanged.
         */
        .pm-header-search-suggestion-name.pm-header-search-suggestion-name-team {
            text-transform: uppercase;
        }

        /*
         * PM UX: header search league country meta uppercase 2026-09-06
         * Only the country metadata beneath League suggestions is uppercase.
         */
        .pm-header-search-suggestion-meta.pm-header-search-suggestion-meta-league-country {
            text-transform: uppercase;
        }

        /*
         * PM UX: header search league country flag before meta 2026-09-06
         * League suggestions show a compact flag before the country name.
         */
        .pm-header-search-suggestion-meta-row.pm-header-search-suggestion-meta-row-league-country {
            margin-top: 3px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 100%;
            min-width: 0;
        }

        .pm-header-search-suggestion-meta-flag {
            width: 14px;
            height: 10px;
            object-fit: cover;
            display: block;
            flex: 0 0 14px;
            border-radius: 2px;
            box-shadow: 0 0 0 1px #dbe4ef;
        }

        .pm-header-search-suggestion-meta-row .pm-header-search-suggestion-meta {
            margin-top: 0;
        }

        /*
         * PM UX: header team suggestion flag + league logo metadata 2026-09-06
         *
         * Team result metadata:
         * flag + country + separator + league logo + league.
         *
         * Keep all secondary artwork deliberately small so the team crest
         * remains the primary visual identity.
         */
        .pm-header-search-suggestion-meta-row.pm-header-search-suggestion-meta-row-team {
            margin-top: 3px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            max-width: 100%;
            min-width: 0;
        }

        .pm-header-search-suggestion-meta-league-logo {
            width: 14px;
            height: 14px;
            object-fit: contain;
            display: block;
            flex: 0 0 14px;
        }

        .pm-header-search-suggestion-meta-separator {
            color: #94a3b8;
            font-size: 10px;
            line-height: 1;
            flex: 0 0 auto;
        }

        .pm-header-search-suggestion-meta-team-country {
            flex: 0 0 auto;
        }

        .pm-header-search-suggestion-meta-team-league {
            min-width: 0;
        }

        .pm-header-search-suggestion-meta {
            margin-top: 3px;
            display: block;
            color: #64748b;
            font-size: 11px;
            line-height: 1.2;
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .pm-header-search-suggestion-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            background: #eef4ff;
            color: #13294b;
            font-size: 10px;
            font-weight: 900;
            white-space: nowrap;
        }

        .pm-header-search-suggestion-empty {
            padding: 13px 14px;
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
            text-align: center;
        }

        @media (max-width: 768px) {
            .pm-header-search-suggestions {
                left: -8px;
                right: -8px;
                top: calc(100% + 7px);
                border-radius: 14px;
                max-height: min(430px, calc(100vh - 115px));
            }

            .pm-header-search-suggestion {
                grid-template-columns: 38px minmax(0, 1fr);
                padding: 10px;
            }

            .pm-header-search-suggestion-badge {
                grid-column: 2;
                justify-self: start;
                margin-top: -4px;
            }
        }
    