.match-v2 {
    padding-top: 10px;
}

.match-v2__intro {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 18px 0;
}

/* ---------- Match hero ---------- */

.match-hero {
    background: linear-gradient(135deg, #152943 0%, #1e3a5f 100%);
    border-radius: 14px;
    padding: 18px 20px 22px;
    color: #fff;
    margin-bottom: 20px;
}

.match-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.match-hero__league {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    color: #cfe3ff;
    padding: 4px 10px;
    border-radius: 999px;
}

.match-hero__status {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #e63946;
    padding: 4px 10px;
    border-radius: 999px;
}

.match-hero__status:empty {
    display: none;
}

.match-hero__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.match-hero__team {
    display: block;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.match-hero__team:hover .match-hero__team-name {
    text-decoration: underline;
}

.match-hero__team-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.match-hero__center {
    text-align: center;
    min-width: 92px;
}

.match-hero__score-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #b9c8dc;
    margin-right: 4px;
}

.match-hero__score {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .04em;
}

.match-hero__score-sep {
    margin: 0 6px;
    opacity: .6;
}

.match-hero__half-score {
    font-size: 13px;
    color: #cfe3ff;
    margin-top: 2px;
}

.match-hero__time {
    font-size: 22px;
    font-weight: 700;
}

.match-hero__date {
    font-size: 12px;
    color: #b9c8dc;
    margin-top: 2px;
}

/* ---------- Tabs ---------- */

.match-tabs {
    display: flex;
    gap: 4px;
    background: #152943;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.match-tabs__btn {
    flex: 1;
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #b9c8dc;
    padding: 11px 16px;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}

.match-tabs__btn:hover {
    color: #fff;
}

.match-tabs__btn.is-active {
    color: #152943;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.match-tabs__btn.is-active:hover {
    color: #152943;
}

.match-tab-panel[hidden] {
    display: none;
}

/* ---------- Cards / tables ---------- */

.match-card {
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(21, 41, 67, .04);
}

.match-card--empty {
    text-align: center;
    color: #5c6b7a;
}

.match-card__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #152943;
}

.match-card__section-title {
    font-size: 15px;
    font-weight: 700;
    color: #152943;
    margin: 4px 0 10px;
}

.match-fixture-table,
.match-odds-table {
    width: 100%;
    border-collapse: collapse;
}

.match-fixture-table th,
.match-fixture-table td,
.match-odds-table th,
.match-odds-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #eef1f4;
}

.match-fixture-table th,
.match-odds-table th {
    background: #152943;
    color: #fff;
    font-weight: 600;
}

.match-odds-table tbody tr:last-child td {
    border-bottom: none;
}

.match-odds-table tbody tr:hover:not(.is-selected-odd):not(.row_success) {
    background: #f7f9fb;
}

.match-odds-table tr.is-selected-odd {
    background: #e63946;
}

.match-odds-table tr.is-selected-odd td {
    color: #fff;
    border-bottom-color: #e63946;
}

.match-odds-table tr.is-selected-odd:hover {
    background: #d62839;
}

/* Gerçekleşen (kazanan) oran — takım karşılaştırma sekmesindeki tıklamayla
   seçilen kırmızı satırdan (is-selected-odd) ayrı, bağımsız bir anlam taşır. */
.match-odds-table tr.row_success {
    background: #8bc34a;
}

.match-odds-table tr.row_success td {
    color: #fff;
    border-bottom-color: #8bc34a;
}

.match-odds-table tr.row_success:hover {
    background: #7cb342;
}

.match-card__team-link {
    color: #007c23;
    font-weight: 600;
    text-decoration: none;
}

.match-card__team-link:hover {
    text-decoration: underline;
}

.match-odds-table-wrap {
    overflow-x: hidden;
}

/* Son maçlar (H2H geçmiş) tablosu: her maç iki satırdan oluşur — üstte
   takım isimleri (tam genişlik, gerekirse satır kırar), altında Tarih/IY/MS
   (3 dar sütun, sabit genişlik sayesinde asla "..." ile kesilmez ve
   konteynerden taşmaz). Her maç kendi <tbody>'sinde — "Daha Fazla Göster"
   JS'i bu <tbody>'leri açıp kapatıyor. */
.match-history-table {
    table-layout: fixed;
}

.match-history-table th,
.match-history-table td {
    width: 33.34%;
}

.match-history-row--teams td {
    background: #f7f9fb;
    font-weight: 600;
    color: #152943;
    white-space: normal;
    word-break: break-word;
    border-bottom: none;
}

.match-history-row--meta td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5c6b7a;
}

@media (max-width: 480px) {
    .match-history-table th,
    .match-history-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

.match-history-more {
    display: block;
    width: 100%;
    appearance: none;
    background: #f7f9fb;
    border: 1px solid #e4e8ec;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #152943;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.match-history-more:hover {
    background: #eef1f4;
}

.match-history-more[hidden] {
    display: none;
}

.match-pair-results-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef6ff;
    border: 1px solid #cfe3fb;
    border-radius: 8px;
    color: #152943;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    margin: 0 0 12px;
}

.match-pair-results-hint__icon {
    font-size: 16px;
}

.match-pair-results-table th:last-child,
.match-pair-results-table td:last-child {
    width: 34px;
}

.js-pair-results-row {
    cursor: pointer;
}

.js-pair-results-row:hover td {
    background: #eef6ff;
}

.match-pair-results-row__arrow {
    color: #007c23;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.match-compare-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.match-compare-columns .js-comparison-odd {
    cursor: pointer;
}

.match-compare-columns__col {
    flex: 1 1 320px;
    min-width: 0;
}

/* Oran yüzdesi karşılaştırması: seçilen oranı iki tarafta birden görebilmek
   için bu iki tablo her ekran genişliğinde yan yana kalmalı, alt alta değil. */
.match-compare-columns--odds {
    flex-wrap: nowrap;
}

.match-compare-columns--odds .match-compare-columns__col {
    flex: 1 1 0;
}

@media (max-width: 767px) {
    .match-hero {
        padding: 16px 14px 18px;
    }

    .match-hero__team-name {
        font-size: 14px;
    }

    .match-hero__score {
        font-size: 22px;
    }

    .match-hero__time {
        font-size: 18px;
    }

    .match-tabs__btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    .match-compare-columns {
        flex-direction: column;
    }

    .match-compare-columns.match-compare-columns--odds {
        flex-direction: row;
        gap: 8px;
    }

    .match-compare-columns--odds .match-card {
        padding: 8px;
    }

    .match-compare-columns--odds .match-odds-table th,
    .match-compare-columns--odds .match-odds-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .match-compare-columns--odds .match-odds-table th {
        white-space: normal;
        word-break: break-word;
    }
}
