.PoweredBy {
    text-align: center;
    margin-top: -10px;
    padding-top: 10px;
    border: 5px solid #1045c9;
    border-radius: 4px;
    border-top-color: rgb(16 69 201 / 0%) !important;
    color: black;
    background: #fff;
    font-family: BebasNeueRegular, arial, Georgia, serif;
    font-size: 20px;
    padding-bottom: 5px !important;
}
a.Poweredweb {
    text-decoration: none!important;
    color: #000000!important;
}
body.dark-skin a.Poweredweb:hover {
    text-decoration: none;
    color: #000000 !important;
}
#widgetfulbol {
   width: 100%;
}
@font-face {
    font-family: 'BebasNeueRegular';
    src: url('../fonts/BebasNeue/BebasNeue-webfont.eot');
    src: url('../fonts/BebasNeue/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/BebasNeue/BebasNeue-webfont.woff') format('woff'),
         url('../fonts/BebasNeue/BebasNeue-webfont.ttf') format('truetype'),
         url('../fonts/BebasNeue/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Renderer propio: sin iframe, banners ni enlaces externos. */
.widget-futbol-custom {
    box-sizing: border-box;
    width: 100%;
    min-height: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 8px;
    background: #f2f2f2;
    color: #101010;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 8px;
}

/* La tabla tiene ocho columnas: en esta vista aprovecha todo el ancho de la
 * columna disponible y se reduce sola en pantallas angostas. */
.widget-futbol-custom-standings {
    width: 100% !important;
    max-width: 100% !important;
}

/* En la página pública el ancho suele ser menor que el de la columna de
 * vista previa del panel. Aumentamos la escala de lectura sólo allí, sin
 * tocar la altura configurada ni el scroll interno. */
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-title {
    padding: 7px 9px;
    font-size: clamp(13px, 3.2vw, 15px);
}

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-scroll {
    overflow-x: hidden;
}

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.2;
    min-width: 0;
    table-layout: fixed !important;
    border-spacing: 0;
}

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(1) { width: 7% !important; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(2) { width: 40% !important; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(3) { width: 9% !important; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(4),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(5),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(6) { width: 8% !important; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(7) { width: 10% !important; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table col:nth-child(8) { width: 10% !important; }

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th,
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td {
    padding: 7px 2px;
    min-width: 0;
    overflow: hidden;
}

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(2),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(2) {
    width: 44%;
}

/* Fijamos las ocho columnas y hacemos que sumen exactamente el 100% para
 * que el tema no agrande DG/PTS por el contenido de sus encabezados. */
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(1),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(1) { width: 7%; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(2),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(2) { width: 43%; }
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(3),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(3),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(4),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(4),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(5),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(5),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(6),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(6),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(7),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(7),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table th:nth-child(8),
.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standings-table td:nth-child(8) { width: 8.3333%; }

.widget-futbol-public.widget-futbol-custom-standings .widget-futbol-standing-badge {
    flex-basis: clamp(20px, 5vw, 22px);
    width: clamp(20px, 5vw, 22px);
    height: clamp(20px, 5vw, 22px);
}

.widget-futbol-custom-status {
    padding: 10px 8px;
    color: #555;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.widget-futbol-custom-status.is-error {
    color: #8a1c1c;
    background: #fff0f0;
    border-radius: 5px;
}

.widget-futbol-custom-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-futbol-live {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2px;
}

.widget-futbol-live-title,
.widget-futbol-standings-title {
    margin: 0;
    padding: 6px 8px;
    border-radius: 6px;
    background: #1c1b70;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.widget-futbol-live-dot {
    color: #ff5b67;
    font-size: 10px;
    vertical-align: 1px;
}

.widget-futbol-standings-group {
    margin-top: 2px;
}

.widget-futbol-standings-scroll {
    overflow-x: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.widget-futbol-standings-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #202020;
    font-size: 11px;
    line-height: 1.15;
}

.widget-futbol-standings-table th,
.widget-futbol-standings-table td {
    padding: 6px 3px;
    border-bottom: 1px solid #ececec;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.widget-futbol-standings-table th {
    background: #e3e3e3;
    color: #333;
    font-weight: 700;
}

.widget-futbol-standings-table tr:last-child td {
    border-bottom: 0;
}

.widget-futbol-standings-table th:first-child,
.widget-futbol-standings-table td:first-child {
    width: 22px;
}

.widget-futbol-standings-table th:nth-child(2),
.widget-futbol-standings-table td:nth-child(2) {
    width: 42%;
    text-align: left;
}

.widget-futbol-standing-team {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
}

.widget-futbol-standing-badge {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.widget-futbol-standing-badge-empty {
    border-radius: 50%;
    background: #e7e7e7;
}

.widget-futbol-standing-team-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-futbol-standing-points {
    color: #1c1b70;
    font-weight: 700;
}

.widget-futbol-match {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.widget-futbol-match-live {
    border: 1px solid #e14b59;
}

.widget-futbol-match-live .widget-futbol-match-meta {
    background: #fff0f2;
}

.widget-futbol-match-live .widget-futbol-match-status {
    color: #c51e3a;
}

.widget-futbol-match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
    background: #e3e3e3;
    color: #222;
    font-size: 11px;
    line-height: 1.2;
}

.widget-futbol-competition {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-futbol-match-time {
    flex: 0 0 auto;
    color: #555;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.widget-futbol-match-status {
    color: #1c1b70;
    font-weight: 700;
}

.widget-futbol-match-date {
    color: #555;
}

.widget-futbol-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 58px;
    padding: 8px 9px;
}

.widget-futbol-team {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    color: #101010;
    font-size: 13px;
}

.widget-futbol-team:nth-child(3) {
    justify-content: flex-end;
    text-align: right;
}

.widget-futbol-team-badge {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.widget-futbol-team-badge-empty {
    width: 28px;
    height: 28px;
}

.widget-futbol-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-futbol-team-score {
    flex: 0 0 auto;
    margin-left: 2px;
    color: #1c1b70;
    font-size: 17px;
}

.widget-futbol-vs {
    color: #777;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 420px) {
    .widget-futbol-match-meta {
        font-size: 10px;
    }

    .widget-futbol-team {
        font-size: 12px;
    }

    .widget-futbol-team-badge,
    .widget-futbol-team-badge-empty {
        flex-basis: 23px;
        width: 23px;
        height: 23px;
    }
}
