/* ================================================================
   NCU Bongdanet Odds v2.0 — Giao diện bảng kèo
   ================================================================ */

.ncu-odds-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
}

.ncu-block-title {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* ----------------------------------------------------------------
   Tabs ngày
   ---------------------------------------------------------------- */
.ncu-day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #1a1a2e;
    padding: 6px 8px;
}

.ncu-tab {
    padding: 6px 13px;
    background: #2d2d44;
    color: #eee;
    cursor: pointer;
    font-size: 13px;
    border-radius: 2px;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.ncu-tab:hover {
    background: #444466;
}

.ncu-tab.active {
    background: #e11d2e;
    color: #fff;
    font-weight: 700;
}

/* ----------------------------------------------------------------
   Tabs giải
   ---------------------------------------------------------------- */
.ncu-league-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.ncu-ltab {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 12px;
    color: #333;
    cursor: default;
    border-radius: 2px;
    white-space: nowrap;
}

.ncu-ltab {
    cursor: pointer;
}

.ncu-ltab.active {
    background: #e11d2e;
    color: #fff;
    border-color: #e11d2e;
}

/* ----------------------------------------------------------------
   Header cột
   ---------------------------------------------------------------- */
.ncu-board-header {
    display: flex;
    background: #b00c1c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 0;
}

/* ----------------------------------------------------------------
   Layout cột (dùng chung cho header + match row)
   ---------------------------------------------------------------- */
.ncu-board-header .ncu-col-match,
.ncu-match-row .ncu-col-match {
    flex: 2.2;
    min-width: 0;
    padding: 7px 8px;
}

.ncu-board-header .ncu-col-asian,
.ncu-match-row .ncu-col-asian,
.ncu-board-header .ncu-col-ou,
.ncu-match-row .ncu-col-ou {
    flex: 1;
    min-width: 0;
    padding: 7px 6px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ncu-board-header .ncu-col-1x2,
.ncu-match-row .ncu-col-1x2 {
    flex: 0.7;
    min-width: 0;
    padding: 7px 6px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----------------------------------------------------------------
   Tiêu đề giải đấu
   ---------------------------------------------------------------- */
.ncu-league-block {
    margin-bottom: 0;
}

.ncu-league-title {
    background: #1a7a3c;
    color: #fff;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 13px;
}

/* ----------------------------------------------------------------
   Match row
   ---------------------------------------------------------------- */
.ncu-match-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e5e5e5;
    min-height: 46px;
}

.ncu-match-row.even {
    background: #fff;
}

.ncu-match-row.odd {
    background: #f2f5ff;
}

/* Cột trận đấu */
.ncu-match-row .ncu-col-match {
    border-left: none;
    display: flex;
    gap: 6px;
    align-items: center;
}

.ncu-time {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    min-width: 36px;
    line-height: 1.5;
}

.ncu-date {
    display: block;
    font-size: 11px;
    color: #999;
}

.ncu-teams {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ncu-home {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncu-away {
    display: block;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cột Châu Á + Tài Xỉu */
.ncu-match-row .ncu-col-asian,
.ncu-match-row .ncu-col-ou {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #e0e0e0;
    padding: 4px 6px;
}

.ncu-odds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
}

.ncu-line,
.ncu-ou-line {
    font-size: 12px;
    color: #555;
}

.ncu-line.green,
.ncu-ou-line.green {
    color: #1a7a3c;
    font-weight: 700;
}

.ncu-odd {
    font-size: 12px;
    color: #cc3300;
    font-weight: 600;
    text-align: right;
}

.ncu-under {
    opacity: 0.88;
}

.ncu-ou-tag {
    font-size: 11px;
    color: #777;
}

/* Cột 1X2 */
.ncu-match-row .ncu-col-1x2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #e0e0e0;
    padding: 4px 6px;
}

.ncu-eu {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cc3300;
    text-align: right;
    padding: 1px 0;
}

/* ----------------------------------------------------------------
   Thông báo trống / lỗi
   ---------------------------------------------------------------- */
.ncu-empty,
.ncu-odds-error {
    padding: 16px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* ----------------------------------------------------------------
   Loading overlay
   ---------------------------------------------------------------- */
.ncu-board-body.ncu-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   Responsive — nhỏ hơn 600px ẩn 1x2
   ---------------------------------------------------------------- */
@media (max-width: 599px) {
    .ncu-board-header .ncu-col-1x2,
    .ncu-match-row .ncu-col-1x2 {
        display: none;
    }
}

/* ----------------------------------------------------------------
   Generic pages: Lịch thi đấu / Kết quả / Bảng xếp hạng
   ---------------------------------------------------------------- */
.ncu-generic-content {
    padding: 0;
    background: #fff;
}

.ncu-generic-wrap {
    border-top: 3px solid #b00c1c;
}

/* Thanh tab ngày/giải của trang lịch-kết quả */
.ncu-generic-content .sub-menu-odds,
.ncu-generic-content .tab-match,
.ncu-static-tab-bar .tab-match,
.ncu-static-tab-bar .ncu-tab-match-static,
.ncu-generic-content .list-link-standing-seo,
.ncu-generic-content .list-link-standing-on-page {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    background: #1a1a2e;
    border-bottom: 1px solid #0f172a;
    list-style: none;
    margin: 0;
}

.ncu-generic-content .sub-menu-odds li,
.ncu-generic-content .tab-match a,
.ncu-generic-content .tab-match .ncu-linkless,
.ncu-generic-content .tab-match .ncu-tab-link,
.ncu-static-tab-bar .ncu-linkless,
.ncu-static-tab-bar .ncu-tab-link,
.ncu-generic-content .sub-menu-odds .ncu-linkless,
.ncu-generic-content .list-link-standing-seo .ncu-linkless,
.ncu-generic-content .list-link-standing-on-page .ncu-linkless,
.ncu-generic-content .ul-list-standings .ncu-linkless {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #a9acb0;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.ncu-generic-content .sub-menu-odds li {
    padding: 0;
    background: transparent;
}

.ncu-generic-content .sub-menu-odds li.active,
.ncu-generic-content .sub-menu-odds li.current,
.ncu-generic-content .sub-menu-odds li:first-child,
.ncu-generic-content .tab-match .active,
.ncu-generic-content .tab-match .ncu-linkless.active,
.ncu-generic-content .tab-match .ncu-tab-link.active,
.ncu-static-tab-bar .ncu-linkless.active,
.ncu-static-tab-bar .ncu-tab-link.active {
    background: #e11d2e;
    color: #fff;
}

/* Khối từng giải giống thanh xanh của bảng kèo */
.ncu-generic-content .title-schedule-league,
.ncu-generic-content .detail-standing h2,
.ncu-generic-content .detail-standing h3,
.ncu-generic-content .detail-standing .title {
    background: #1a7a3c;
    color: #fff;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

/* Danh sách trận */
.ncu-generic-content .list-schedule-all {
    border-top: 1px solid #dbe3ea;
}

.ncu-generic-content .item-schedule {
    border-bottom: 1px solid #e5e5e5;
    padding: 7px 10px;
    background: #fff;
    display: grid;
    grid-template-columns: 56px 1fr auto 1fr auto;
    align-items: center;
    column-gap: 8px;
    margin: 0;
}

.ncu-generic-content .item-schedule.even,
.ncu-generic-content .item-schedule:nth-child(even) {
    background: #f2f5ff;
}

.ncu-generic-content .item-schedule .time,
.ncu-generic-content .item-schedule .hour,
.ncu-generic-content .item-schedule .match-time {
    color: #64748b;
    font-size: 12px;
    margin-right: 8px;
}

.ncu-generic-content .item-schedule .time-info {
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
}

.ncu-generic-content .item-schedule .home,
.ncu-generic-content .item-schedule .away,
.ncu-generic-content .item-schedule .team-home,
.ncu-generic-content .item-schedule .team-away {
    color: #111827;
    font-weight: 600;
}

.ncu-generic-content .item-schedule .home-text,
.ncu-generic-content .item-schedule .away-text {
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ncu-generic-content .item-schedule .home-text.active,
.ncu-generic-content .item-schedule .away-text.active {
    color: #111827;
    font-weight: 700;
}

.ncu-generic-content .item-schedule .ncu-main-score {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: #069345;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.ncu-generic-content .item-schedule .asia-away {
    justify-self: end;
}

.ncu-generic-content .item-schedule .scorelink {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
    background: #069345;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.ncu-generic-content .item-schedule .htscorelink {
    min-width: 52px;
    background: #6f6f6f;
    font-size: 12px;
}

.ncu-generic-content .item-schedule .score,
.ncu-generic-content .item-schedule .match-score,
.ncu-generic-content .item-schedule .result {
    color: #cc3300;
    font-weight: 700;
}

.ncu-generic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px;
    font-size: 13px;
    background: #fff;
}

.ncu-generic-content th,
.ncu-generic-content td {
    border: 1px solid #e5e5e5;
    padding: 6px 8px;
}

.ncu-generic-content th {
    background: #b00c1c;
    color: #fff;
    font-weight: 700;
}

.ncu-generic-content tr:nth-child(even) td {
    background: #f2f5ff;
}

/* BXH */
.ncu-generic-content .content-standing,
.ncu-generic-content .detail-standing,
.ncu-generic-content .block-standing-right {
    margin-bottom: 10px;
    border: 1px solid #dbe3ea;
    background: #fff;
}

.ncu-generic-content .standing-logo,
.ncu-generic-content .standing-image-more {
    display: none;
}

.ncu-generic-content .ul-list-standings {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #f0f4f8;
    border-bottom: 1px solid #e2e8f0;
}

.ncu-generic-content .ul-list-standings li {
    margin: 0;
}

@media (max-width: 768px) {
    .ncu-generic-content .item-schedule {
        grid-template-columns: 52px 1fr auto;
        row-gap: 4px;
    }

    .ncu-generic-content .item-schedule .away-text,
    .ncu-generic-content .item-schedule .asia-away {
        grid-column: 2 / span 2;
    }
}

/* ----------------------------------------------------------------
   Bảng xếp hạng đầy đủ — table.standings
   ---------------------------------------------------------------- */
.ncu-generic-content table.standings {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    margin: 0;
    border: none;
}


.ncu-generic-content table.standings thead td {
    background: #1a1a2e !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 8px 6px !important;
    text-align: center !important;
    border: 1px solid #333 !important;
    white-space: nowrap !important;
}

.ncu-generic-content table.standings thead td:nth-child(2) {
    text-align: left;
}

.ncu-generic-content table.standings tbody tr td {
    padding: 7px 6px;
    text-align: center;
    border: 1px solid #e5e5e5;
    vertical-align: middle;
}

.ncu-generic-content table.standings tbody tr td:nth-child(2) {
    text-align: left;
    font-weight: 600;
    color: #1a56db;
}

.ncu-generic-content table.standings tbody tr:nth-child(even) td {
    background: #f8f9fc;
}

.ncu-generic-content table.standings tbody tr:hover td {
    background: #e8f0fe;
}

/* badge điểm số màu xanh lá */
.ncu-generic-content .button-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    background: #069345 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

/* Badge phong độ */
.ncu-generic-content .match-T,
.ncu-generic-content .match-W {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #069345 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    margin: 1px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

.ncu-generic-content .match-H,
.ncu-generic-content .match-D {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #f59e0b !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    margin: 1px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

.ncu-generic-content .match-B,
.ncu-generic-content .match-L {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #dc2626 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    margin: 1px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

/* Cột hiệu số xanh */
.ncu-generic-content table.standings .green-text {
    color: #069345;
    font-weight: 700;
}

/* Cột liệu ẩn trên mobile */
@media (max-width: 599px) {
    .ncu-generic-content table.standings td.m-hide,
    .ncu-generic-content table.standings th.m-hide {
        display: none;
    }
}

/* Tabs Tất cả / Sân nhà / Sân khách */
.ncu-generic-content .tab-match .table-ranking {
    cursor: pointer;
}

.ncu-generic-content .tab-match .table-ranking.table-ranking-all,
.ncu-generic-content .tab-match .table-ranking.table-ranking-home,
.ncu-generic-content .tab-match .table-ranking.table-ranking-away {
    background: #a9acb0;
    color: #fff;
}

.ncu-generic-content .tab-match .table-ranking.active,
.ncu-generic-content .tab-match .table-ranking:hover {
    background: #e11d2e !important;
    color: #fff !important;
}

/* Wrapper bảng từng chế độ: all/home/away */
.ncu-generic-content .table-ranking-content {
    padding: 0;
    overflow-x: auto;
}

/* ---- Layout trang lich/ket-qua giai cu the (detail-schedule-right) ---- */
.ncu-generic-content .content-block-schedule-result-odds {
    display: block;
    width: 100%;
}
.ncu-generic-content .detail-schedule-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.ncu-generic-content .detail-schedule-right:nth-child(even) {
    background: #f9f9f9;
}
.ncu-generic-content .detail-schedule-right .ncu-linkless,
.ncu-generic-content .detail-schedule-right a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.ncu-generic-content .detail-schedule-right .text-name-club {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ncu-generic-content .detail-schedule-right .home-team {
    text-align: right;
    padding-right: 8px;
}
.ncu-generic-content .detail-schedule-right .away-team {
    text-align: left;
    padding-left: 8px;
}
.ncu-generic-content .detail-schedule-right .time-info {
    background: #1a7a3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.ncu-generic-content .detail-schedule-right .time-info.result-match {
    background: #e11d2e;
}
.ncu-generic-content .day-info {
    padding: 5px 10px;
    font-weight: bold;
    font-size: 12px;
    color: #555;
    background: #f0f0f0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

