.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-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.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);
    -webkit-overflow-scrolling: touch;
}

.adexcore-basket-table {
    width: 100%;
    min-width: 620px;
    table-layout: fixed;
    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 {
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.adexcore-basket-table tbody tr:nth-child(even) {
    background: var(--adexcore-surface-alt);
}

.adexcore-basket-table tbody tr:hover {
    background: #f0f4fa;
    box-shadow: inset 3px 0 0 rgba(15, 37, 71, 0.18);
}

.adexcore-basket-table tbody tr:last-child th,
.adexcore-basket-table tbody tr:last-child td {
    border-bottom: 0;
}

.adexcore-basket-col-rank {
    width: 58px;
    text-align: center !important;
    font-variant-numeric: tabular-nums;
}

.adexcore-basket-col-player {
    width: 44%;
}

.adexcore-basket-col-team {
    width: 30%;
}

.adexcore-basket-col-number {
    width: 70px;
}

.adexcore-basket-col-value {
    width: 88px;
}

.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-player-name__text,
.adexcore-basket-col-team {
    overflow-wrap: anywhere;
    word-break: normal;
}

.adexcore-basket-player-team-mobile {
    display: none;
}

.adexcore-basket-rank-badge {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--adexcore-text);
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 750;
}

.adexcore-basket-leader-row--rank-1 .adexcore-basket-rank-badge {
    background: var(--adexcore-blue);
    color: var(--adexcore-white);
    box-shadow: 0 3px 8px rgba(15, 37, 71, 0.16);
}

.adexcore-basket-leader-row--rank-2 .adexcore-basket-rank-badge,
.adexcore-basket-leader-row--rank-3 .adexcore-basket-rank-badge {
    border: 1px solid #cfd5df;
    background: #f1f3f6;
    color: var(--adexcore-blue);
}

.adexcore-basket-leader-row--top .adexcore-basket-player-name {
    font-weight: 750;
}

.adexcore-basket-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 14px;
}
.adexcore-basket-games [hidden] { display: none !important; }
.adexcore-basket-game-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #E5E4E2;
    border-top: 3px solid #0f2547;
    border-radius: 10px;
    background: #fff;
    color: #0f2547;
}
.adexcore-basket-game-card__meta,
.adexcore-basket-game-card__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: #475467;
    overflow-wrap: anywhere;
}
.adexcore-basket-game-card__meta { margin-bottom: 14px; }
.adexcore-basket-game-card__footer { margin-top: 14px; }
.adexcore-basket-game-status {
    padding: 4px 8px;
    border-radius: 5px;
    color: #0f2547;
    background: #E5E4E2;
    font-size: .72rem;
    font-weight: 800;
}
.adexcore-basket-game-status--live { background: #fee4e2; color: #9b1c13; }
.adexcore-basket-game-card__matchup { display: grid; gap: 12px; }
.adexcore-basket-game-team {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(3ch, auto);
    align-items: center;
    gap: 10px;
}
.adexcore-basket-game-team__badge { position: relative; width: 36px; height: 36px; }
.adexcore-basket-game-team__logo,
.adexcore-basket-game-team__placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.adexcore-basket-game-team__logo { position: absolute; inset: 0; object-fit: contain; background: #fff; }
.adexcore-basket-game-team__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E4E2;
    color: #0f2547;
    font-size: .75rem;
    font-weight: 800;
}
.adexcore-basket-game-team__name { overflow-wrap: anywhere; font-size: .94rem; line-height: 1.35; font-weight: 650; }
.adexcore-basket-game-score { text-align: right; font-size: 1.65rem; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.adexcore-basket-games [data-game-timing] { font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; color: #0f2547; }
.adexcore-basket-games [data-connection] { font-size: .8rem; color: #475467; }
.adexcore-basket-games [data-connection="stale"] > [data-connection] { color: #854a0e; }
.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-component__header {
        align-items: flex-start;
    }

    .adexcore-basket-table-wrap {
        overflow-x: hidden;
        border-radius: 10px;
    }

    .adexcore-basket-table {
        min-width: 0;
        table-layout: fixed;
    }

    .adexcore-basket-table th,
    .adexcore-basket-table td {
        padding: 10px 9px;
    }

    .adexcore-basket-table thead th {
        font-size: 0.7rem;
        letter-spacing: 0.025em;
    }

    .adexcore-basket-col-rank {
        width: 46px;
    }

    .adexcore-basket-col-player {
        width: auto;
    }

    .adexcore-basket-col-number {
        width: 50px;
    }

    .adexcore-basket-col-value {
        width: 68px;
    }

    .adexcore-basket-col-team {
        display: none;
    }

    .adexcore-basket-player-name__text {
        display: block;
        line-height: 1.25;
    }

    .adexcore-basket-player-team-mobile {
        display: block;
        margin-top: 3px;
        color: var(--adexcore-muted);
        font-size: 0.74rem;
        line-height: 1.2;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

    .adexcore-basket-rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.74rem;
    }

    .adexcore-basket-game-card {
        padding: 13px;
    }

    .adexcore-basket-game-card__matchup {
        gap: 8px;
    }

    .adexcore-basket-game-card__meta {
        align-items: flex-start;
    }
}

@media (max-width: 390px) {
    .adexcore-basket-table th,
    .adexcore-basket-table td {
        padding-inline: 7px;
    }

    .adexcore-basket-col-rank {
        width: 42px;
    }

    .adexcore-basket-col-number {
        width: 46px;
    }

    .adexcore-basket-col-value {
        width: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adexcore-basket-table tbody tr {
        transition: none;
    }
}
