.adexcore-basket {
    --adexcore-blue: #0f2547;
    --adexcore-gray: #E5E4E2;
    --adexcore-white: #ffffff;
    --adexcore-black: #000000;
    --adexcore-text: #1c2430;
    --adexcore-muted: #667085;
    --adexcore-border: #d9dde5;
    --adexcore-surface: #ffffff;
    --adexcore-surface-alt: #f7f8fa;
    --adexcore-live: #b42318;
    width: 100%;
    color: var(--adexcore-text);
    font: inherit;
}

.adexcore-basket *,
.adexcore-basket *::before,
.adexcore-basket *::after {
    box-sizing: border-box;
}

.adexcore-basket-component__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 0 0 14px;
}

.adexcore-basket-component__title {
    margin: 0;
    color: var(--adexcore-blue);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
    font-weight: 750;
}

.adexcore-basket-component__meta {
    margin: 5px 0 0;
    color: var(--adexcore-muted);
    font-size: 0.82rem;
}

.adexcore-basket-admin-flag {
    flex: 0 0 auto;
    border: 1px solid #f0c36d;
    border-radius: 999px;
    padding: 4px 8px;
    color: #8a5a00;
    background: #fff8e6;
    font-size: 0.72rem;
    font-weight: 700;
}

.adexcore-basket-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--adexcore-border);
    border-radius: 12px;
    background: var(--adexcore-surface);
    box-shadow: 0 8px 24px rgba(15, 37, 71, 0.08);
}

.adexcore-basket-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.adexcore-basket-table th,
.adexcore-basket-table td {
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #eceef2;
    text-align: left;
    vertical-align: middle;
}

.adexcore-basket-table thead th {
    background: var(--adexcore-blue);
    color: var(--adexcore-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.adexcore-basket-table tbody tr:nth-child(even) {
    background: var(--adexcore-surface-alt);
}

.adexcore-basket-table tbody tr:hover {
    background: #f0f4fa;
}

.adexcore-basket-table tbody tr:last-child td {
    border-bottom: 0;
}

.adexcore-basket-col-rank {
    width: 52px;
    text-align: center !important;
    font-variant-numeric: tabular-nums;
}

.adexcore-basket-col-number,
.adexcore-basket-col-value {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.adexcore-basket-col-value {
    font-weight: 800;
    color: var(--adexcore-blue);
}

.adexcore-basket-player-name {
    font-weight: 650;
}

.adexcore-basket-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 14px;
}

.adexcore-basket-game-card {
    border: 1px solid var(--adexcore-border);
    border-radius: 14px;
    padding: 15px;
    background: var(--adexcore-surface);
    box-shadow: 0 8px 24px rgba(15, 37, 71, 0.08);
}

.adexcore-basket-game-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--adexcore-muted);
    font-size: 0.76rem;
    font-weight: 650;
}

.adexcore-basket-game-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: #344054;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.adexcore-basket-game-status--live {
    background: #fee4e2;
    color: var(--adexcore-live);
}

.adexcore-basket-game-card__matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.adexcore-basket-game-team {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.adexcore-basket-game-team__logo,
.adexcore-basket-game-team__placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.adexcore-basket-game-team__logo {
    object-fit: contain;
}

.adexcore-basket-game-team__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--adexcore-gray);
    color: var(--adexcore-blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.adexcore-basket-game-team__name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 700;
}

.adexcore-basket-game-score {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--adexcore-blue);
    font-size: clamp(1.25rem, 4vw, 1.7rem);
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.adexcore-basket-game-score__separator {
    color: #98a2b3;
    font-weight: 500;
}

.adexcore-basket-empty,
.adexcore-basket-notice {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--adexcore-border);
    background: var(--adexcore-surface-alt);
    color: #475467;
}

.adexcore-basket-notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adexcore-basket-notice small {
    opacity: 0.8;
}

.adexcore-basket-notice--error {
    border-color: #fecdca;
    background: #fff4f3;
    color: #b42318;
}

@media (max-width: 640px) {
    .adexcore-basket-table th,
    .adexcore-basket-table td {
        padding: 10px 11px;
    }

    .adexcore-basket-game-card {
        padding: 13px;
    }

    .adexcore-basket-game-card__matchup {
        gap: 8px;
    }

    .adexcore-basket-game-card__meta {
        align-items: flex-start;
    }
}
