

        :root {
            --brand: #2a3378;
            --brand-2: #2a3378;
            --brand-dark: #2a3378;
            --ink: #152238;
            --muted: #70839b;
            --muted-2: #91a3b7;
            --line: #e1eaf3;
            --line-soft: #f0f4f8;
            --surface: #ffffff;
            --surface-soft: #f7fafc;
            --success: #11865d;
            --danger: #ee212d;
            --shadow: 0 18px 38px rgba(15, 35, 55, 0.11), 0 4px 12px rgba(15, 35, 55, 0.07);
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
            font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        body {
            display: flex;
            justify-content: center;
            background: #fff;
        }

        #root {
            width: 300px !important;
            min-width: 300px !important;
            max-width: 300px !important;
            margin: 0 auto !important;
            padding: 8px !important;
            display: block !important;
        }

        section[class^="_widgetresult_"] {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 284px;
            overflow: hidden;
            isolation: isolate;
            background: var(--surface);
            border: 1px solid rgba(0, 99, 155, 0.12);
            contain-intrinsic-size: auto 680px;
            content-visibility: auto;
        }

        section[class^="_widgetresult_"]::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
            border-radius: inherit;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
        }

        /* HEADER V8: limpio, sin ::after, contenido izquierdo más arriba */
        div[class^="_header_"] {
            position: relative;
            z-index: 2;
            min-height: 95px;
            padding: 10px 16px 20px;
            overflow: hidden;
            color: #ffffff;
            text-align: left;
            background: #2a3378;
        }

        div[class^="_header_"]::before {
            content: "POSICIONES";
            position: absolute;
            top: 11px;
            right: 14px;
            z-index: 1;
            padding: 5px 8px;
            border: 1px solid #ee212d;
            background: #ee212d;
            color: rgba(255, 255, 255, 0.92);
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.9px;
            line-height: 1;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        div[class^="_header_"] h2 {
            position: relative;
            z-index: 2;
            max-width: 196px;
            margin: 7px 0 0;
            color: #ffffff;
            font-size: 14.5px;
            font-weight: 800;
            line-height: 1.32;
            letter-spacing: 0.55px;
            text-transform: uppercase;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
        }

        div[class^="_header_"] h2::before {
            content: "FÚTBOL MEXICANO";
            display: block;
            width: max-content;
            margin: 0 0 6px;
            padding: 4px 7px;
            border-radius: 6px;
            background: #ee212d;
            color: rgba(255, 255, 255, 0.92);
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.85px;
            line-height: 1;
            text-shadow: none;
        }

        div[class^="_header_"] h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 46px;
            height: 2px;
            background: rgba(255, 255, 255, 0.76);
        }

        /* FILTROS */
        div[class^="_controls_"] {
            position: relative;
            z-index: 3;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 7px;
            padding: 10px;
            background: #ffffff;
            border-bottom: 1px solid var(--line);
        }

        div[class^="_controls_"] label[class^="_field_"] {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        div[class^="_controls_"] div[class^="_label_"] {
            color: var(--muted-2);
            font-size: 9px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: 0.65px;
            text-transform: uppercase;
        }

        div[class^="_controls_"] select[class^="_select_"] {
            width: 100%;
            min-width: 0;
            height: 34px;
            padding: 0 6px;
            border: 1px solid #dbe5ef;
            border-radius: 10px;
            outline: none;
            background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
            color: #24364b;
            font: inherit;
            font-size: 11px;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(15, 35, 55, 0.04);
            transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
        }

        div[class^="_controls_"] select[class^="_select_"]:hover {
            border-color: rgba(0, 99, 155, 0.34);
            background: #ffffff;
        }

        div[class^="_controls_"] select[class^="_select_"]:focus-visible {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px rgba(0, 99, 155, 0.12);
        }

        /* TABLA */
        div[class^="_board_"] {
            position: relative;
            z-index: 2;
            width: 100%;
            background: #ffffff;
        }

        div[class^="_tableWrap_"] {
            position: relative;
            width: 100%;
            max-height: 430px;
            overflow: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 99, 155, 0.26) transparent;
            -webkit-overflow-scrolling: touch;
        }

        div[class^="_tableWrap_"]::-webkit-scrollbar {
            width: 7px;
            height: 7px;
        }

        div[class^="_tableWrap_"]::-webkit-scrollbar-track {
            background: #f3f7fb;
        }

        div[class^="_tableWrap_"]::-webkit-scrollbar-thumb {
            background: rgba(0, 99, 155, 0.24);
            border-radius: 999px;
            border: 2px solid #f3f7fb;
        }

        div[class^="_tableWrap_"]::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 99, 155, 0.38);
        }

        table[class^="_table_"] {
            width: 100%;
            min-width: 458px;
            border-collapse: separate;
            border-spacing: 0;
            table-layout: fixed;
            color: var(--ink);
            font-size: 12px;
            text-align: left;
        }

        table[class^="_table_"] th,
        table[class^="_table_"] td {
            border-bottom: 1px solid var(--line-soft);
        }

        table[class^="_table_"] thead th {
            position: sticky;
            top: 0;
            z-index: 7;
            height: 38px;
            padding: 0;
            background: #f8fbfd;
            color: #53677f;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.45px;
            line-height: 38px;
            text-transform: uppercase;
            box-shadow: inset 0 -1px 0 var(--line);
        }

        table[class^="_table_"] tbody tr {
            background: #ffffff;
            transition: background-color 0.18s ease;
        }

        table[class^="_table_"] tbody tr:nth-child(even) {
            background: #fbfdff;
        }

        table[class^="_table_"] tbody tr:hover,
        table[class^="_table_"] tbody tr:hover td {
            background: #f4f9fd;
        }

        table[class^="_table_"] td {
            height: 45px;
            padding: 0;
            vertical-align: middle;
            color: #24364b;
            line-height: 45px;
        }

        table[class^="_table_"] th:nth-child(1),
        table[class^="_table_"] td:nth-child(1) {
            width: 32px;
            text-align: center;
        }

        table[class^="_table_"] th:nth-child(2),
        table[class^="_table_"] td:nth-child(2) {
            width: 128px;
        }

        table[class^="_table_"] th:nth-child(n+3),
        table[class^="_table_"] td:nth-child(n+3) {
            width: 36px;
            text-align: center !important;
        }

        table[class^="_table_"] th:nth-child(9),
        table[class^="_table_"] td:nth-child(9) {
            width: 42px;
        }

        table[class^="_table_"] th:nth-child(10),
        table[class^="_table_"] td:nth-child(10) {
            width: 44px;
            font-weight: 800 !important;
            color: var(--brand) !important;
        }

        /* Sólo se fijan ranking y equipo. PTS deja de ser sticky para evitar cortes visuales. */
        table[class^="_table_"] th:nth-child(1),
        table[class^="_table_"] td:nth-child(1) {
            position: sticky;
            left: 0;
            z-index: 5;
            background: inherit;
            border-right: 1px solid rgba(224, 234, 244, 0.92);
        }

        table[class^="_table_"] th:nth-child(2),
        table[class^="_table_"] td:nth-child(2) {
            position: sticky;
            left: 32px;
            z-index: 5;
            background: inherit;
            border-right: 1px solid rgba(224, 234, 244, 0.92);
        }

        table[class^="_table_"] thead th:nth-child(1) {
            z-index: 9;
            background: #f8fbfd;
        }

        table[class^="_table_"] thead th:nth-child(2) {
            z-index: 9;
            background: #f8fbfd;
            padding-left: 10px;
        }

        div[class^="_rank_"] {
            width: 24px;
            height: 24px;
            margin: 0 auto;
            display: grid;
            place-items: center;
            border-radius: 999px;
            color: #677b91;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            background: #eef3f8;
        }

        table[class^="_table_"] tbody tr:nth-child(-n+8) div[class^="_rank_"] {
            color: #ffffff;
            background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
            box-shadow: 0 4px 9px rgba(0, 99, 155, 0.18);
        }

        table[class^="_table_"] tbody tr:nth-child(n+9) div[class^="_rank_"] {
            color: #677b91;
            background: #eef3f8;
        }

        div[class^="_team_"] {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
            height: 45px;
            padding: 0 7px;
        }

        img[class^="_crest_"] {
            width: 25px !important;
            height: 25px !important;
            flex: 0 0 25px;
            object-fit: contain;
            filter: drop-shadow(0 2px 3px rgba(15, 35, 55, 0.10));
        }

        div[class^="_teambox_"] {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        div[class^="_teamname_"] {
            max-width: 82px;
            overflow: hidden;
            color: var(--ink);
            font-size: 11.5px;
            font-weight: 800;
            line-height: 1.1;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        div[class^="_teammeta_"] {
            color: #8aa0b8;
            font-size: 8.5px;
            font-weight: 800;
            letter-spacing: 0.5px;
            line-height: 1;
            text-transform: uppercase;
        }

        th[class^="_center_"],
        td[class^="_center_"] {
            text-align: center !important;
            font-size: 12px;
            font-variant-numeric: tabular-nums;
        }

        [class^="_valuePositive_"] {
            color: var(--success) !important;
            font-weight: 800;
        }

        [class^="_valueNegative_"] {
            color: var(--danger) !important;
            font-weight: 800;
        }

        @supports not (backdrop-filter: blur(8px)) {
            div[class^="_header_"]::before {
                background: rgba(255, 255, 255, 0.14);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                transition: none !important;
                scroll-behavior: auto !important;
            }
        }

        @media (max-width: 320px) {
            #root {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 300px !important;
                padding: 6px !important;
            }

            section[class^="_widgetresult_"] {
                max-width: 100%;
            }
        }

		/***************************BREAKPOINTS Y OTROS AJUSTES PARA EMBED STANDALONE (NO AFECTAN VISTA NORMAL)***************************/

		/* hide first column (numbers) by structural selector 
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table th:first-child,
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table td:first-child {
			display: none !important;
			} */
		/* hide the sibling element after the title (heroMeta) regardless of module class */
		section[aria-labelledby="widgetresult-title"] h2#widgetresult-title + * { display: none !important; }

		/* hide GF, GC, DIF columns specifically (columns 7,8,9) for tabla_resultados */
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table th:nth-child(7),
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table th:nth-child(8),
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table th:nth-child(9),
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table td:nth-child(7),
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table td:nth-child(8),
			body[data-widget-mode="tabla_resultados"] section[aria-labelledby="widgetresult-title"] table td:nth-child(9) {
				display: none !important;
			}


        @supports not (backdrop-filter: blur(8px)) {
            div[class^="_header_"]::before {
                background: rgba(255, 255, 255, 0.14);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                transition: none !important;
                scroll-behavior: auto !important;
            }
        }

        @media (max-width: 320px) {
            #root {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 300px !important;
                padding: 6px !important;
            }

            section[class^="_widgetresult_"] {
                max-width: 100%;
            }
        }