#bracket {overflow:hidden;background-color: #2A343D;padding-top: 20px;font-size: 12px;padding: 25px 0; font-family: 'Istok Web', sans-serif; background-size: cover; padding-bottom: 0px; }
.container-fase {max-width: 1100px;margin: 0 auto;display:block;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: -webkit-flex;display: -webkit-flex;display: flex;-webkit-flex-direction:row;flex-direction: row; }
.split-fase {display:block;float:left;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: -webkit-flex;display:flex;width: 42%;-webkit-flex-direction:row;-moz-flex-direction:row;flex-direction:row; }
.champion {float:left;display:block;width: 16%;-webkit-flex-direction:row;flex-direction:row;-webkit-align-self:center;align-self:center;margin-top: 0px;text-align: center;padding: 230px 0\9;} 
.champion i {color: #a0a6a8; font-size: 45px;padding: 0px 0; }
.round-fase {display:block;float:left;display: -webkit-box;display: -moz-box;display: -ms-flexbox;display: -webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;width:95%;width:30.8333%\9; }
.split-two {}
.split-one .round-fase {margin: 0 2.5% 0 0;}
.split-two .round-fase {margin: 0 0 0 2.5%;}
.matchup {margin:0;width: 100%; padding: 10px 0;padding-bottom: 70px; height:60px;-webkit-transition: all 0.2s;transition: all 0.2s; }
.score-partido {font-size: 11px;text-transform: uppercase;float: right;color: #2C7399;font-weight: bold;font-family: 'Roboto Condensed', sans-serif;position: absolute;right: 5px;}
.team-partido {padding: 0 5px;margin: 3px 0;height: 35px; line-height: 25px;white-space: nowrap; overflow: hidden;position: relative;}
.round-two .matchup {margin:0; height: 160px;padding: 52px 0;}
.round-three .matchup {margin:0; height: 60px; padding: 131px 0;}
.round-details {font-family: 'Roboto Condensed', sans-serif; font-size: 13px; color: #15B095;text-transform: uppercase;text-align: center;height: 40px;}
.round-details-champion {font-family: 'Roboto Condensed', sans-serif; font-size: 13px; color: #15B095;text-transform: uppercase;text-align: center;height: 20px;}
.champion li, .round-fase li {background-color: #fff;box-shadow: none; opacity: 0.45;}
.current-partido li {opacity: 1; }
.current-partido li.team-partido {background-color: #fff;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);opacity: 1;}
.final-partido {margin: 3.5em 0;} /* ANCHO DE PANEL CONTENEDOR */
.fa-trophy:before { font-style: normal; }
.aoh-div-team-winlose { line-height:10px; display:inline-block; padding-top:9px; position:absolute; padding-left:6px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width:10vh; }

#div_bracket_container {
  overflow: hidden;
}

#div_bracket_data {
  margin-top: -500%;
  transition: all 1s;
}

#div_bracket_data.expanded {
  margin-top: 0;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.3);
    -ms-transform: scale(1.3);
    transform: scale(1.3);
  }

  100% {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}

.date {font-size: 10px; letter-spacing: 2px;font-family: 'Istok Web', sans-serif;color:#CfCfCf;}

@media screen and (min-width: 981px) and (max-width: 1099px) {
  .container-fase {margin: 0 1%;}
  .champion {width: 14%;}
  .split-fase {width:43%; }
  .split-one .vote-box {margin-left: 138px;}

}

@media screen and (max-width: 980px) {
  .container-fase {-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;}
  .split-fase, .champion {width: 90%;margin: 15px 5%;}
  .champion {-webkit-box-ordinal-group:3;-moz-box-ordinal-group:3;-ms-flex-order:3;-webkit-order:3;order:3;}
  .split-fase {border-bottom: 1px solid #b6b6b6; padding-bottom: 20px;}
}


@media screen and (max-width: 400px) {

  .split-fase {width: 95%;margin: 25px 2.5%;}
  .round {width:21%;}
  .current-partido {-webkit-flex-grow:1;-moz-flex-grow:1;flex-grow:1;}
  .round-details {font-size: 90%;}

}



#bracket_usuario {overflow:hidden;background-color: #FFFFFF;padding-top: 20px;font-size: 12px;padding: 25px 0; font-family: 'Istok Web', sans-serif; background-size: cover; padding-bottom: 0px; border:1px solid #15B095; color:#666666;}
#bracket_usuario .current-partido li.team-partido {background-color: #fff;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);opacity: 1; border:1px solid #CCCCCC;}



/***** BRACKET MUNDIALFUTBOL48 *****/

/* --- CONTENEDOR PRINCIPAL --- */
.quinew_bracket-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* --- TÍTULOS DE LAS FASES --- */
.quinew_titles-row {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
    /* Los títulos deben seguir la misma estructura que el contenido */
}

.quinew_title-item {
    flex: 1 1 0;      /* MISMO ANCHO QUE LAS COLUMNAS */
    color: var(--green);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.quinew_title-item-campeon {
    padding-top: 15px;
    color: var(--green);
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- CONTENIDO DEL BRACKET --- */
.quinew_bracket-content {
    display: flex;
    width: 100%;
    gap: 10px;
}

.quinew_side {
    display: flex;
    flex: 1; 
    gap: 10px;
    min-width: 0;
}

.quinew_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;      /* Todas las columnas miden igual */
    gap: 5px;
    min-width: 0;     /* Permite que el contenido se encoja para truncar texto */
}

/* --- CAJA DE PARTIDO Y EQUIPOS --- */
.quinew_match-box {
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 4px;
}

.quinew_team {
    display: flex;
    align-items: center;
    padding: 1px 2px;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.quinew_team:last-child {
    border: none;
}

.quinew_team img {
    flex: 0 0 20px;
    height: 20px;
    object-fit: contain;
}

/* TRUNCADO DE TEXTO */
.quinew_team span:not(.quinew_score-partido) {
    display: block;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 11px;
    text-align: left;
}

.quinew_center-area-datel-final {
    text-transform: uppercase; 
    text-align: center;
    font-size: 11px;
}

.quinew_score-partido {
    flex: 0 0 22px;
    text-align: center;
    background: #f4f4f4;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
}

/* --- ÁREA CENTRAL (FINAL) --- */
.quinew_center-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 180px; /* Ajusta según el ancho de tu final */
    flex-shrink: 0;
}

.quinew_champion-box {
    padding: 10px;
    background: #eee;
    border: 2px solid var(--green);
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
}

/* Alineación vertical (Escritorio) */
.quinew_r8 .quinew_match-box { margin: 25px 0; }
.quinew_r4 .quinew_match-box { margin: 75px 0; }
.quinew_r2 .quinew_match-box { margin: 165px 0; }


/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 992px) {
    /* 1. Ocultamos la fila de títulos general porque desordena el flujo en móvil */
    .quinew_titles-row {
        display: none;
    }

    .quinew_bracket-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .quinew_side {
        display: contents;
    }

    .quinew_column {
        min-width: 45%;
        flex: none;
        margin-bottom: 0px;
        display: flex;
        flex-direction: column;
    }

    .quinew_column::before, .quinew_center-area::before {
        content: attr(data-phase); /* Usamos el texto que ya tienes */
        display: block;
        
        /* COPIAMOS EL ESTILO DE .quinew_title-item */
        color: var(--green);
        text-align: center;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        
        margin-bottom: 1px;
        width: 100%;
    }

    /* 3. Reordenamiento de bloques (Título y partidos se mueven juntos) */
    .quinew_col-16 { order: 1; }
    .quinew_col-8  { order: 2; }
    .quinew_col-4  { order: 3; }
    .quinew_col-2  { order: 4; }
    
    .quinew_center-area { 
        order: 5; 
        width: 50%; 
        margin-top: 0px; 
        padding: 10px;
    }

    /* Quitamos los márgenes de escritorio para que no se desfase el móvil */
    .quinew_match-box { 
        margin: 0 !important; 
    }
}

/***** BRACKET MUNDIALFUTBOL48 *****/