@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

#easybet_all {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Separación entre tarjetas */
    width: 100%;
    font-family: 'Outfit', sans-serif;
    background: transparent;
    border: none;
}

/* Forzar ancho */
#easybet_all,
.elementor-widget-container:has(#easybet_all),
.elementor-column:has(#easybet_all) {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.easybet_match {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100% !important;
    padding: 20px 30px;
    background: #ffffff;
    /* Fondo blanco para cada tarjeta */
    border-radius: 16px;
    /* Bordes redondeados */
    border: 1px solid #f1f5f9;
    /* Borde muy sutil */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    /* Sombra sutil */
    position: relative;
    box-sizing: border-box;
    scroll-margin-top: 100px;
    /* Margen para anclajes (evita que se esconda bajo el header) */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto hover: la tarjeta se eleva ligeramente */
.easybet_match:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* 1. GRUPO Y FECHA (Izquierda) */
.easybet_mtop {
    display: flex;
    flex-direction: column;
    width: 18% !important;
    order: 1;
}

.easybet_mtop span:first-child {
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.match-datetime {
    color: #64748b !important;
    font-size: 14px !important; /* Ajustado a 14px */
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

/* ESTRUCTURA PLANO */
.easybet_teams,
.easybet_bet {
    display: contents !important;
}

.easybet_bet form {
    display: contents !important;
    font-size: 0 !important;
}

/* 2. EQUIPO 1 */
.easybet_teams div:first-child {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 28%;
    /* Más espacio para nombres largos */
    text-align: right;
    padding-right: 10px;
}

/* 3. SCORES CENTRALES */
.easybet_bet input[name*="p1"] {
    order: 3;
}

.easybet_bet form::after {
    content: ":";
    order: 4;
    font-size: 16px !important;
    font-weight: 600;
    /* Menos peso visual */
    color: #fe8106;
    margin: 0 10px;
    display: flex;
    align-items: center;
    height: 48px;
}

.easybet_bet input[name*="p2"] {
    order: 5;
}

.easybet_bet input[type=number] {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    /* Quitar padding por defecto para centrar */
    line-height: 48px !important;
    /* Forzar centrado vertical */
    background: #ffffff !important;
    border: 1px solid #fe8106 !important;
    /* Más sutil, como se pidió */
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

/* RESULTADO REAL (Cuadritos grises simulando inputs) */
.easybet_real_score_container {
    order: 4;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    /* Fuerza la separación de los cuadros */
    width: auto;
}

/* Forzar el orden estricto de los elementos para evitar que el colon salte */
.easybet_real_score_container>div:nth-child(1) {
    order: 1 !important;
}

.easybet_real_score_container>div:nth-child(2) {
    order: 2 !important;
}

.easybet_real_score_container>div:nth-child(3) {
    order: 3 !important;
}

.real-score-box {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    /* Evitar desajustes */
    line-height: 48px !important;
    /* Centrado vertical perfecto */
    text-align: center !important;
    background: #f8fafc !important;
    /* Gris claro simulando "deshabilitado" */
    border: 1px solid #cbd5e1 !important;
    /* Borde sutil gris */
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    /* Texto gris oscuro */
    display: block !important;
    /* Reemplaza flex por block para line-height */
}

.real-score-colon {
    font-size: 16px !important;
    font-weight: 600;
    /* Menos peso visual */
    color: #94a3b8;
    margin: 0 !important;
    /* El gap de container se encarga del espacio */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ocultar los cuadritos de resultado real si los cuadros de apuesta verdes (form) están visibles */
.easybet_match:has(form) .easybet_real_score_container {
    display: none !important;
}

/* 4. EQUIPO 2 */
.easybet_teams div:last-child {
    order: 6;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 28%;
    /* Más espacio para nombres largos */
    padding-left: 10px;
}

/* 5. BOTÓN */
.easybet_bet input[type=submit] {
    order: 7;
    margin-left: auto !important;
    padding: 12px 25px;
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-apostar {
    background: #9f25b4 !important;
    color: #fff !important;
}

.btn-actualizar {
    background: #f59e0b !important;
    color: #fff !important;
}

/* Ocultar sección antigua de apuestas (para evitar cajas flotantes y líneas punteadas) */
.easybet_beted {
    display: none !important;
}

.easybet_bet_user {
    display: none !important;
}

/* NUEVO: TU PRONÓSTICO (Bajo la fecha) */
.my-bet-container {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

#easybet_all .my-bet-container .my-bet-label { 
    font-size: 11px; 
    text-transform: uppercase; 
    color: #9f25b4 !important; /* Mismo azul que el marcador */
    font-weight: 800; 
    display: inline-block; 
    margin: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0;
}

#easybet_all .my-bet-container .my-bet-score {
    font-size: 17px !important; /* Ajustado a 17px */
    font-weight: 900 !important;
    color: #9f25b4 !important;
    background: rgb(255 251 241 / 70%) !important;
    border: 1px solid #c44bd8 !important;
    padding: 3px 14px !important; /* Ajuste sutil de padding */
    border-radius: 8px !important;
    display: inline-block !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

#easybet_all .my-bet-container .my-bet-empty { 
    font-size: 11px; 
    font-style: italic; 
    color: #ef4444 !important; /* Rojo vibrante */
    display: inline-block; 
    margin: 0; 
}


/* Contenedor del estado (derecha) */
.status-container-right {
    order: 7;
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Badges de Estado */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.finished {
    background: #faf2fe !important;
    color: #9f25b4 !important;
    border: 1px solid #9f25b4 !important;
}

.status-badge.live {
    background: #f7ecfd;
    color: #9f25b4;
    border: 1px solid #9f25b4;
}

/* Ocultar ruidos */
.easybet_bet span,
.easybet_place,
.easybet_bet form br {
    display: none !important;
}

.easybet_teams img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}

.easybet_teams span {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* Mensaje Amarillo */
.easybet_info_msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: #fff9db !important;
    border-bottom: 1px solid #ffe066 !important;
    color: #856404 !important;
    font-size: 12px !important;
    font-weight: 700;
    text-align: center;
    z-index: 100;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    animation: fadeOutBox 0.5s ease 5s forwards;
}

@keyframes fadeOutBox {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }
}

.easybet_match:has(.easybet_info_msg) {
    animation: shrinkPadding 0.5s ease 5s forwards;
    padding-top: 70px;
}

@keyframes shrinkPadding {
    0% {
        padding-top: 70px;
    }

    100% {
        padding-top: 20px;
    }
}

/* Ocultar flechitas */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Móvil */
@media (max-width: 767px) {
    .easybet_match {
        padding: 15px !important;
        justify-content: center !important;
        row-gap: 10px !important;
    }

    /* Fila 1: Grupo, Fecha y Tu Pronóstico */
    .easybet_mtop {
        order: 1 !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
        margin-bottom: 5px;
    }

    .my-bet-container {
        border-top: none;
        margin-top: 10px;
        padding-top: 0;
        display: flex !important;
        flex-direction: row !important;
        /* Mantenemos horizontal incluso en móvil para evitar saltos */
        align-items: center;
    }

    /* Fila 2: Badge de Estado (Centrado) */
    .status-container-right {
        order: 2 !important;
        width: 100% !important;
        justify-content: center !important;
        margin: 0 0 10px 0 !important;
    }

    /* Fila 3: Equipos y Marcadores (Bandera arriba, Nombre abajo) */
    .easybet_teams div:first-child {
        order: 3 !important;
        width: 28% !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: center !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .easybet_teams div:last-child {
        order: 7 !important;
        width: 28% !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: center !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .easybet_teams div:first-child span,
    .easybet_teams div:last-child span {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .easybet_teams img {
        width: 36px;
        height: 26px;
    }

    /* Centro: Cuadros de apuesta o Resultado Real con Órdenes Estrictos */
    .easybet_bet input[name*="p1"] {
        order: 4 !important;
    }

    .easybet_bet form::after {
        order: 5 !important;
        margin: 0 5px !important;
        flex-shrink: 0 !important;
    }

    .easybet_bet input[name*="p2"] {
        order: 6 !important;
    }

    .easybet_real_score_container {
        order: 5 !important;
        /* Se coloca justo en medio (entre 3 y 7) */
        min-width: 90px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        /* Anula el gap de escritorio en móvil */
    }

    /* Forzar orden inquebrantable de los cuadros reales */
    .easybet_real_score_container .real-score-box:first-child {
        order: 1 !important;
        margin: 0 !important;
    }

    .easybet_real_score_container .real-score-colon {
        order: 2 !important;
        margin: 0 5px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .easybet_real_score_container .real-score-box:last-child {
        order: 3 !important;
        margin: 0 !important;
    }

    /* Reducir tamaño de inputs móviles y PROHIBIR que se aplasten (flex-shrink: 0) */
    .easybet_bet input[type=number],
    .real-score-box {
        width: 40px !important;
        min-width: 40px !important;
        /* Obliga al navegador a no aplastarlo */
        height: 40px !important;
        line-height: 40px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
        /* Evita que se hagan píldoras */
        padding: 0 !important;
    }

    /* Fila 4: Botón de Acción */
    .easybet_bet input[type=submit] {
        order: 8 !important;
        width: 100% !important;
        margin: 15px 0 0 0 !important;
    }
}

/* ========================================= */
/* --- ESTILOS DEL RANKING (Podio y Lista) --- */
/* ========================================= */

/* ========================================= */
/* --- ESTILOS DEL RANKING (Podio y Lista) --- */
/* ========================================= */

.easybet_ranking_container {
    background: #fff;
    border-radius: 12px;
    padding: 40px 0 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ocultar la cabecera vieja */
.easybet_rank_user {
    display: none !important;
}

/* PODIO */
.easybet_podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 60px;
    /* Más espacio para las medallas inferiores */
    padding: 0 15px;
}

.podium_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    padding: 20px 5px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rank_2 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    /* Bronce/Naranja */
    width: 30%;
    max-width: 160px;
    height: 190px !important;
}

.rank_1 {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    /* Oro/Amarillo */
    width: 35%;
    max-width: 190px;
    height: 230px !important;
    color: white;
    z-index: 2;
    box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.5);
}

.rank_3 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    /* Plata/Gris */
    width: 30%;
    max-width: 160px;
    height: 180px !important;
}

.podium_avatar_wrapper {
    position: relative;
    margin-bottom: 15px;
}

.podium_avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.rank_1 .podium_avatar {
    width: 85px !important;
    height: 85px !important;
    border: 3px solid white !important;
}

.podium_rank_badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1e293b;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
}

.rank_1 .podium_rank_badge {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.podium_crown {
    display: none !important;
}

.podium_name {
    font-size: 13px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #1e293b;
}

.rank_1 .podium_name {
    color: #ffffff;
    font-size: 15px;
}

.podium_points {
    font-size: 12px;
    font-weight: 500;
    color: rgba(30, 41, 59, 0.8);
}

.rank_1 .podium_points {
    color: #fffbeb;
}

/* Iconos de Trofeo/Medalla debajo de las tarjetas */
.podium_medal_icon {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

/* LISTA */
.easybet_ranking_list {
    border-top: 1px solid #f1f5f9;
    padding: 0;
}

.ranking_list_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px; /* Reducido de 20px para ahorrar espacio */
    border-bottom: 1px solid #f1f5f9;
}

.ranking_list_item:hover {
    background: #f8fafc;
}

.list_rank_circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    font-size: 15px;
    background: #fff;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Ocultar avatar en la lista como en la imagen */
.list_avatar {
    display: none !important;
}

.list_user_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

.list_user_name {
    font-weight: 800;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-align: left !important;
}

.list_user_points {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Barra de progreso */
.list_user_points::after {
    content: "";
    display: block;
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 20px 0 0 #64748b;
    /* Simulamos la parte llena */
}

.list_arrow {
    color: #cbd5e1;
    font-size: 20px;
    margin-left: 15px;
}

.easybet-item-hidden {
    display: none !important;
}

/* BOTÓN VER MÁS */
.ranking_show_more_container {
    padding: 25px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.ranking_show_more_btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking_show_more_btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.ranking_footer_btn {
    display: none !important;
}