/* Контейнер */
.afv3-wrap {
    --afv3-bg: #f5f7fb;
    --afv3-text: #1f2937;
    --afv3-muted: #6b7280;
    --afv3-accent: #0b8f74;
    --afv3-accent-2: #2563eb;
    --afv3-border: #e5e7eb;
    --afv3-pill-grad-from: #37b7ab;
    --afv3-pill-grad-to: #87a5c3;

    background: var(--afv3-bg);
    padding: 12px;
    border-radius: 12px;
    color: var(--afv3-text);
    font-size: 14px;
    line-height: 1.35;
}

/* Таблица */
.afv3-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    border: none;
}

.afv3-th {
    text-align: left;
    font-weight: 600;
    color: var(--afv3-muted);
    padding: 6px 10px;
    font-size: 14px;
}

.afv3-td {
    background: #fff;
    padding: 12px 10px;
    border-top: 1px solid var(--afv3-border);
    border-bottom: 1px solid var(--afv3-border);
}

.afv3-tr .afv3-td:first-child {
    border-left: 1px solid var(--afv3-border);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.afv3-tr .afv3-td:last-child {
    border-right: 1px solid var(--afv3-border);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.afv3-center {
    text-align: center;
}
.afv3-nowrap {
    white-space: nowrap;
}

/* Ред заглавие на лигата */
.afv3-league-row .afv3-td {
    background: linear-gradient(135deg, #0b8f74, #40b5ae);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
}

.afv3-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.afv3-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    object-fit: cover;
}

/* Матч колона */
.afv3-match {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 66px;
}

.afv3-match-team {
    display: flex;
    align-items: center;
    gap: 5px;
}

.afv3-time {
    font-size: 16px;
    font-weight: 700;
}

.afv3-teamlogo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(0.1);
}

.afv3-teamname {
    font-weight: 600;
    font-size: 16px;
}
.afv3-vs {
    color: var(--afv3-muted);
    font-weight: 500;
}

/* Пилове за коефициент и залог */
.afv3-oddpill {
    display: inline-block;
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--afv3-pill-grad-from),
        var(--afv3-pill-grad-to)
    );
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.afv3-betpill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #eef2ff;
    color: var(--afv3-accent-2);
    font-weight: 800;
    border-radius: 50%;
    border: 1px solid #dbeafe;
}

/* Празно състояние */
.afv3-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--afv3-border);
    border-radius: 10px;
    padding: 16px;
    color: var(--afv3-muted);
}

.afv3-table td, .afv3-table th {
  border: none !important;
}

/* Респонсив */
@media (max-width: 560px) {
    .afv3-th:nth-child(3),
    .afv3-th:nth-child(4),
    .afv3-td:nth-child(3),
    .afv3-td:nth-child(4) {
        width: 1%;
    }
    .afv3-teamname {
        font-weight: 500;
        font-size: 13px;
    }
    .afv3-oddpill {
        min-width: auto;
        padding: 8px 4px;
        font-size: 12px;
    }
    .afv3-betpill {
        width: 30px;
        height: 30px;
    }

    .afv3-match {
        /* align-items: flex-start;
        gap: 2px;
        height: auto;
        flex-direction: column; */
        display: grid;
        grid-template-columns: 20px auto;
        gap: 2px;
        align-items: center;
        height: auto;
    }
    .afv3-match .afv3-vs {
        display: none;
    }
    .afv3-td {
      padding: 9px 2px;
    }
    .afv3-time {
      font-size: 14px;
    }
    .afv3-wrap {
      padding: 5px;
    }
}

.text-center {
    text-align: center !important;
}
