.nuliga-display {
    --nuliga-accent: #0f64c9;
    --nuliga-border: #d9e2ec;
    --nuliga-surface: #ffffff;
    --nuliga-head: #f6f8fb;
    --nuliga-muted: #617185;
    --nuliga-highlight: #eaf3ff;
    margin: 1.25rem 0;
    overflow: hidden;
    border: 1px solid var(--nuliga-border);
    border-radius: 16px;
    background: var(--nuliga-surface);
    color: inherit;
}

.nuliga-display__header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--nuliga-border);
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
}

.nuliga-display__heading {
    min-width: 0;
}

.nuliga-display__eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: var(--nuliga-accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nuliga-display__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.2;
}

.nuliga-display__badge {
    flex: 0 0 auto;
    padding: .48rem .78rem;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--nuliga-accent);
    font-size: .82rem;
    font-weight: 700;
}

.nuliga-display__notice {
    margin: 0;
    padding: .65rem 1.35rem;
    border-bottom: 1px solid var(--nuliga-border);
    background: #fff8e6;
    color: #75550a;
    font-size: .9rem;
}

.nuliga-display__table-wrap {
    overflow-x: auto;
    background: var(--nuliga-surface);
}

.nuliga-display__table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    margin: 0;
}

.nuliga-display__table th,
.nuliga-display__table td {
    padding: .82rem .72rem;
    border-bottom: 1px solid var(--nuliga-border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.nuliga-display__table th {
    background: var(--nuliga-head);
    color: #354253;
    font-size: .88rem;
    font-weight: 700;
}

.nuliga-display__table tbody tr:last-child td {
    border-bottom: 0;
}

.nuliga-display__table tbody tr:hover td {
    background: #f9fbfd;
}

.nuliga-display__row--own-team td,
.nuliga-display__row--own-team:hover td {
    background: var(--nuliga-highlight);
    font-weight: 700;
}

.nuliga-display__row--own-team td:first-child {
    box-shadow: inset 4px 0 0 var(--nuliga-accent);
}

.nuliga-display__footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.35rem;
    border-top: 1px solid var(--nuliga-border);
    background: #fbfcfe;
    color: var(--nuliga-muted);
    font-size: .78rem;
}

.nuliga-display__source {
    color: var(--nuliga-accent);
    text-decoration: none;
}

.nuliga-display__source:hover,
.nuliga-display__source:focus {
    text-decoration: underline;
}

.nuliga-display--error,
.nuliga-display__empty {
    padding: .9rem 1rem;
}

@media (max-width: 700px) {
    .nuliga-display__header {
        align-items: flex-start;
        padding: 1rem;
    }

    .nuliga-display__footer {
        padding: .75rem 1rem;
    }

    .nuliga-display__table-wrap {
        overflow: visible;
        padding: .75rem;
        background: #f7f9fc;
    }

    .nuliga-display__table {
        min-width: 0;
        border: 0;
    }

    .nuliga-display__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nuliga-display__table,
    .nuliga-display__table tbody,
    .nuliga-display__table tr,
    .nuliga-display__table td {
        display: block;
        width: 100%;
    }

    .nuliga-display__table tr {
        margin-bottom: .75rem;
        overflow: hidden;
        border: 1px solid var(--nuliga-border);
        border-radius: 10px;
        background: var(--nuliga-surface);
    }

    .nuliga-display__table tbody tr:last-child {
        margin-bottom: 0;
    }

    .nuliga-display__table td {
        display: grid;
        grid-template-columns: minmax(6rem, 34%) 1fr;
        gap: .75rem;
        white-space: normal;
        border-bottom: 1px solid var(--nuliga-border);
    }

    .nuliga-display__table td:last-child {
        border-bottom: 0;
    }

    .nuliga-display__table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--nuliga-muted);
    }

    .nuliga-display__row--own-team td:first-child {
        box-shadow: inset 4px 0 0 var(--nuliga-accent);
    }
}
