/* ==========================================================================
   SPORTS BETTING ODDS - BULLETPROOF FLEXBOX
   ========================================================================== */
.betting-odds {
    padding: 24px;
}

.betting-odds .box-title {
    margin-bottom: 16px;
}

/* Master Container */
.odds-list {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--color-bg-white);
}

/* ==========================================================================
   DESKTOP ROW LAYOUT (Using Flexbox to prevent scrambling)
   ========================================================================== */
.odds-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.15s ease;
    min-height: 64px;
    gap: 16px;
}

.odds-row:last-child {
    border-bottom: none;
}

.odds-row:hover {
    background-color: var(--color-bg-light);
}

/* Info Wrapper (Holds Date + Match Name on the left) */
.odds-row__info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    min-width: 0; /* Crucial: allows long team names to truncate */
}

.odds-row__date {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-body);
    white-space: nowrap;
    flex-shrink: 0;
    width: 105px;
}

.odds-row__separator {
    display: none;
}

.odds-row__match {
    font-size: 14px;
    font-weight: 500; 
    color: var(--color-primary-blue);
    line-height: 1.4;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if screen gets small, protecting the buttons! */
}

/* Picks (Odds Buttons on the right) */
.odds-row__picks {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Never allows buttons to crush */
}

.odds-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    height: 30px;
    padding-left: 6px;
    justify-content: space-between;
    width: 86px; 
    flex-shrink: 0; 
    background-color: var(--color-bg-white);
}

.odds-pick__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-blue);
}

.odds-pick__bookmaker {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.odds-pick__bookmaker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.odds-pick__value {
    background-color: var(--color-accent-yellow);
    color: #ffffff;
    font-size: 10px !important;    /* Made slightly smaller */
    font-weight: 800;
    padding: 0 8px;                /* Adjusted padding for balance */
    height: 30px;
    display: flex;
    align-items: center;           /* Perfect vertical centering */
    justify-content: center;       /* Perfect horizontal centering */
    text-align: center;
    flex-grow: 1;                  /* Fills the remaining space neatly */
}

/* Chevron Arrow */
.odds-row__chevron {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary-blue);
    flex-shrink: 0;
}

.odds-footer-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-body);
    margin-top: 16px;
}

/* ==========================================================================
   TABLET & MOBILE OPTIMIZATION
   Matches your video exactly!
   ========================================================================== */
@media (max-width: 1024px) {
    .betting-odds {
        padding: 16px;
    }

    .odds-list {
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        margin-bottom: 0;
    }

    .odds-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius, 8px);
        margin-bottom: 16px;
        background-color: var(--color-bg-white);
        min-height: auto;
        gap: 12px;
    }

    .odds-row:last-child {
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 16px;
    }

    .odds-row__info {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .odds-row__date {
        width: auto;
        margin-bottom: 4px;
    }

    .odds-row__match {
        white-space: normal;
        text-align: center;
        overflow: visible;
    }

    .odds-row__picks {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .odds-row__chevron {
        display: none;
    }
}
