/* Football Data Sl v4.5.0 — Table Layout (bongdanet 2026+) */

/* ==========================================
   WRAPPER
   ========================================== */
.fb-scraped-content,
.box-list-schedule-all {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* ==========================================
   TABLE BASE
   ========================================== */
.listing-match {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.listing-match td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 13px;
}

/* ==========================================
   HEADER ROW
   ========================================== */
.listing-match .row-header td {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    padding: 10px 6px;
    border-bottom: 2px solid #1a252f;
    white-space: nowrap;
}

/* ==========================================
   MATCH ROWS
   ========================================== */
.listing-match .match-row td {
    padding: 10px 8px;
}

.listing-match .match-row.even {
    background: #f8f9fa;
}

.listing-match .match-row:hover {
    background: #e8f4fd;
}

/* Time column */
.listing-match .match-row td:first-child {
    text-align: center;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    min-width: 50px;
}

/* Teams column */
.listing-match .match-row td:nth-child(2) {
    font-size: 13px;
    line-height: 1.6;
    min-width: 160px;
}

/* Favored team */
.fc-above {
    font-weight: 700;
    color: #c0392b;
}

/* Handicap value */
.listing-match .match-row .text-left {
    text-align: left;
    font-size: 13px;
    padding-left: 8px;
    min-width: 50px;
}

/* Handicap/OU odds */
.listing-match .match-row .text-right {
    text-align: right;
    font-size: 13px;
    padding-right: 8px;
    min-width: 40px;
    color: #2980b9;
}

/* 1x2 odds */
.listing-match .match-row .text-center {
    text-align: center;
    font-size: 13px;
    min-width: 40px;
    color: #2980b9;
}

/* "Hòa" text in team column */
.listing-match .match-row td:nth-child(2) br + br {
    display: none;
}

/* ==========================================
   LEAGUE HEADER (odds-by-league wrapper)
   ========================================== */
.odds-by-league {
    margin-bottom: 15px;
}

.odds-round-name {
    font-weight: 700;
    font-size: 15px;
    padding: 10px 12px;
    background: #34495e;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .listing-match td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .listing-match .row-header td {
        font-size: 11px;
        padding: 8px 4px;
    }

    .listing-match .match-row td:first-child {
        font-size: 11px;
    }

    .listing-match .match-row td:nth-child(2) {
        font-size: 12px;
        min-width: 120px;
    }

    .fc-above {
        font-size: 12px;
    }

    .listing-match .match-row .text-left,
    .listing-match .match-row .text-right,
    .listing-match .match-row .text-center {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .listing-match td {
        padding: 5px 3px;
        font-size: 11px;
    }

    .listing-match .row-header td {
        font-size: 10px;
    }

    .listing-match .match-row .text-left,
    .listing-match .match-row .text-right,
    .listing-match .match-row .text-center {
        font-size: 11px;
    }

    .listing-match .match-row td:nth-child(2) {
        min-width: 100px;
        font-size: 11px;
    }
}

/* ==========================================
   BACKWARD COMPAT (old div-based layout if still used)
   ========================================== */
.wr-item-odds-content { display: contents; }
.item-odd-other { display: none !important; }

/* Hide ad/promo leftovers */
.fb-scraped-content a,
.box-list-schedule-all a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

/* Loading state */
.fb-loading {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.fb-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}
