
/* TIP1X2_MARKET_PREDICTIONS_V5 */

.t1-pred-market-bar {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:12px 0;
}

.t1-pred-market-bar a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #cbe8e3;
    background:#eaf7f5;
    color:#00747d!important;
    border-radius:7px;
    padding:9px 12px;
    font-size:11px;
    font-weight:750;
    text-decoration:none!important;
    line-height:1.3;
}

.t1-pred-market-bar a:hover {
    background:#d8f4ef;
}

.t1-pred-market-bar a.t1pred5-active {
    background:#008c96!important;
    border-color:#008c96!important;
    color:#fff!important;
}

.t1-pred-match {
    gap:9px!important;
}

.t1pred5-tip,
.t1pred5-odd {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:7px 9px;
    border-radius:7px;
    flex:0 0 auto;
    text-align:center;
    max-width:140px;
    overflow-wrap:anywhere;
}

.t1pred5-tip {
    min-width:88px;
    border:1px solid #cceae5;
    background:#eaf7f5;
}

.t1pred5-odd {
    min-width:64px;
    background:#f7faf9;
    border:1px solid #e0ebe9;
}

.t1pred5-tip small,
.t1pred5-odd small {
    font-size:9px;
    line-height:1.35;
    color:#66858b;
}

.t1pred5-tip strong {
    font-size:12px;
    line-height:1.3;
    color:#007c85;
}

.t1pred5-odd strong {
    font-size:13px;
    color:#173c48;
    font-variant-numeric:tabular-nums;
}

@media(max-width:760px) {
    .t1-pred-market-bar {
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:5px;
    }

    .t1-pred-market-bar a {
        flex-shrink:0;
        white-space:nowrap;
    }

    .t1pred5-tip {
        min-width:54px;
        padding:6px;
    }

    .t1pred5-odd {
        min-width:50px;
        padding:6px;
    }

    .t1pred5-tip strong,
    .t1pred5-odd strong {
        font-size:11px;
    }
}


/* TIP1X2_PREDICTIONS_ROW_GRID_V6 */

/* Desktop: one row for time, teams, tip, score and analysis */
.t1-pred-fixtures .t1-pred-match {
    display: grid !important;
    grid-template-columns:
        48px minmax(0, 1fr) 112px 58px 78px !important;
    align-items: center !important;
    column-gap: 11px !important;
    row-gap: 0 !important;
    padding: 11px 13px !important;
    min-height: 72px !important;
}

/* Extra column only when a real bookmaker odd exists */
.t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
    grid-template-columns:
        48px minmax(0, 1fr) 112px 72px 58px 78px !important;
}

.t1-pred-match > time {
    grid-column: 1;
    grid-row: 1;
    font-size: 10px !important;
    white-space: nowrap;
    margin: 0 !important;
}

.t1-pred-match > .t1-pred-teams {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
}

.t1-pred-match > .t1pred5-tip {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 7px 6px !important;
    box-sizing: border-box;
}

.t1-pred-match > .t1pred5-tip strong {
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.t1-pred-match > .t1pred5-odd {
    grid-column: 4;
    grid-row: 1;
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 7px 4px !important;
    box-sizing: border-box;
}

.t1-pred-match > .t1-pred-result {
    grid-column: 4;
    grid-row: 1;
    text-align: center !important;
    white-space: nowrap;
    margin: 0 !important;
    min-width: 0 !important;
    font-size: 11px !important;
    justify-self: center;
}

.t1-pred-match:has(> .t1pred5-odd) > .t1-pred-result {
    grid-column: 5;
}

.t1-pred-match > .t1-pred-details {
    grid-column: 5;
    grid-row: 1;
    justify-self: stretch;
    align-self: center;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 !important;
    padding: 10px 6px !important;
    box-sizing: border-box;
}

.t1-pred-match:has(> .t1pred5-odd) > .t1-pred-details {
    grid-column: 6;
}

.t1-pred-teams > div {
    min-width: 0;
}

.t1-pred-teams span {
    overflow-wrap: anywhere;
}

/* Narrow desktop and tablets: keep the horizontal row */
@media (min-width: 761px) and (max-width: 1250px) {
    .t1-pred-fixtures .t1-pred-match {
        grid-template-columns:
            42px minmax(0, 1fr) 94px 48px 66px !important;
        column-gap: 6px !important;
        padding: 9px 8px !important;
    }

    .t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
        grid-template-columns:
            42px minmax(0, 1fr) 94px 58px 48px 66px !important;
    }

    .t1-pred-match > .t1pred5-tip strong {
        font-size: 10px !important;
    }

    .t1-pred-match > .t1-pred-details {
        font-size: 9px !important;
    }
}

/* Mobile: compact grid without overlapping */
@media (max-width: 760px) {
    .t1-pred-fixtures .t1-pred-match {
        grid-template-columns:
            39px minmax(0, 1fr) 78px 43px 62px !important;
        column-gap: 5px !important;
        padding: 9px 6px !important;
        min-height: 68px !important;
    }

    .t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
        grid-template-columns:
            39px minmax(0, 1fr) 78px 48px 43px 62px !important;
    }

    .t1-pred-match > .t1pred5-tip,
    .t1-pred-match > .t1pred5-odd {
        padding: 5px 3px !important;
    }

    .t1-pred-match > .t1pred5-tip strong {
        font-size: 10px !important;
    }

    .t1-pred-match > .t1-pred-details {
        padding: 8px 3px !important;
        font-size: 9px !important;
    }
}

/* Very small screens: allow a second line instead of overlap */
@media (max-width: 480px) {
    .t1-pred-fixtures .t1-pred-match,
    .t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
        grid-template-columns:
            39px minmax(0, 1fr) 74px 43px !important;
        row-gap: 7px !important;
    }

    .t1-pred-match > time {
        grid-column: 1;
        grid-row: 1;
    }

    .t1-pred-match > .t1-pred-teams {
        grid-column: 2;
        grid-row: 1;
    }

    .t1-pred-match > .t1pred5-tip {
        grid-column: 3;
        grid-row: 1;
    }

    .t1-pred-match > .t1-pred-result,
    .t1-pred-match:has(> .t1pred5-odd) > .t1-pred-result {
        grid-column: 4;
        grid-row: 1;
    }

    .t1-pred-match > .t1pred5-odd {
        grid-column: 3;
        grid-row: 2;
    }

    .t1-pred-match > .t1-pred-details,
    .t1-pred-match:has(> .t1pred5-odd) > .t1-pred-details {
        grid-column: 4;
        grid-row: 2;
    }
}


/* TIP1X2_COMPACT_PREDICTION_BADGES_V7 */

/* Keep only the prediction value and actual odd */
.t1-pred-match > .t1pred5-tip > small,
.t1-pred-match > .t1pred5-odd > small {
    display: none !important;
}

/* Single-line compact desktop grid */
@media (min-width: 761px) {
    .t1-pred-fixtures .t1-pred-match {
        display: grid !important;
        grid-template-columns:
            46px minmax(0, 1fr) 104px 48px 74px !important;
        align-items: center !important;
        column-gap: 9px !important;
        padding: 9px 12px !important;
        min-height: 58px !important;
        row-gap: 0 !important;
    }

    .t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
        grid-template-columns:
            46px minmax(0, 1fr) 104px 53px 48px 74px !important;
    }
}

/* Small prediction badge */
.t1-pred-match > .t1pred5-tip {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 31px !important;
    padding: 5px 6px !important;
    margin: 0 !important;
    border-radius: 5px !important;
    gap: 0 !important;
    box-sizing: border-box;
}

.t1-pred-match > .t1pred5-tip strong {
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

/* Small bookmaker odds badge */
.t1-pred-match > .t1pred5-odd {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 31px !important;
    padding: 5px 4px !important;
    margin: 0 !important;
    border-radius: 5px !important;
    gap: 0 !important;
    box-sizing: border-box;
}

.t1-pred-match > .t1pred5-odd strong {
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Smaller result and analysis button */
.t1-pred-match > .t1-pred-result {
    font-size: 10px !important;
    font-weight: 800 !important;
}

.t1-pred-match > .t1-pred-details {
    min-height: 30px !important;
    padding: 7px 5px !important;
    font-size: 9px !important;
    border-radius: 5px !important;
}

/* Tighter team rows */
.t1-pred-match > .t1-pred-teams {
    gap: 2px !important;
    margin: 0 !important;
}

.t1-pred-match > .t1-pred-teams img {
    width: 19px !important;
    height: 19px !important;
}

/* Tablet */
@media (min-width: 761px) and (max-width: 1250px) {
    .t1-pred-fixtures .t1-pred-match {
        grid-template-columns:
            40px minmax(0,1fr) 90px 42px 62px !important;
        column-gap: 5px !important;
        padding: 8px !important;
    }

    .t1-pred-fixtures .t1-pred-match:has(> .t1pred5-odd) {
        grid-template-columns:
            40px minmax(0,1fr) 90px 48px 42px 62px !important;
    }
}

/* Mobile keeps the responsive layout */
@media (max-width: 760px) {
    .t1-pred-match > .t1pred5-tip,
    .t1-pred-match > .t1pred5-odd {
        padding: 5px 3px !important;
        min-height: 28px !important;
    }
}
