.nffschedule {
    --nff-border: rgba(0, 0, 0, .12);
    --nff-soft: rgba(0, 0, 0, .035);
    --nff-highlight: rgba(255, 193, 7, .16);
    --nff-accent: #0b5ed7;
    --nff-accent-soft: rgba(11, 94, 215, .1);
    --nff-card-bg: var(--body-bg, #fff);
    width: 100%;
}

.nffschedule [hidden] { display: none !important; }
.nffschedule__row--filtered-out { display: none !important; }

.nffschedule__heading {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .9rem;
}

.nffschedule__title { margin: 0; }

.nffschedule__heading-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

.nffschedule__next-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nff-border);
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--nff-accent-soft), transparent 62%), var(--nff-card-bg);
    box-shadow: 0 .35rem 1.1rem rgba(0, 0, 0, .06);
}

.nffschedule__next-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .28rem;
    background: var(--nff-accent);
}

.nffschedule__next-card-topline,
.nffschedule__next-meta,
.nffschedule__next-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem .8rem;
}

.nffschedule__next-card-topline { justify-content: space-between; }

.nffschedule__next-card-title {
    margin: 0;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    color: var(--nff-accent);
}

.nffschedule__next-meta {
    margin-top: .45rem;
    font-size: .92rem;
    font-weight: 600;
    opacity: .85;
}

.nffschedule__next-kickoff::before,
.nffschedule__next-details span + span::before {
    content: "•";
    margin-right: .8rem;
    opacity: .55;
}

.nffschedule__next-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 .8rem;
}

.nffschedule__next-team {
    min-width: 0;
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.nffschedule__next-team--home { text-align: right; }
.nffschedule__next-team--away { text-align: left; }

.nffschedule__next-team--home .nffschedule__team-wrap { justify-content: flex-end; }
.nffschedule__next-vs { font-size: 1.2rem; font-weight: 800; opacity: .5; }

.nffschedule__next-details {
    justify-content: center;
    font-size: .86rem;
    opacity: .72;
}

.nffschedule__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 .75rem;
}

.nffschedule__tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.35rem;
    padding: .42rem .75rem;
    border: 1px solid var(--nff-border);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nffschedule__tab:hover,
.nffschedule__tab:focus-visible {
    border-color: var(--nff-accent);
    outline: 0;
    box-shadow: 0 0 0 .18rem var(--nff-accent-soft);
}

.nffschedule__tab.is-active {
    border-color: var(--nff-accent);
    background: var(--nff-accent);
    color: #fff;
}

.nffschedule__count {
    display: inline-grid;
    place-items: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 .32rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    font-size: .76rem;
    font-weight: 700;
}

.nffschedule__tab.is-active .nffschedule__count { background: rgba(255, 255, 255, .2); }

.nffschedule__scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--nff-border);
    border-radius: .65rem;
}

.nffschedule__table {
    width: 100%;
    min-width: 860px;
    margin: 0;
    border-collapse: collapse;
    font-size: .95rem;
}

.nffschedule__table th,
.nffschedule__table td {
    padding: .68rem .72rem;
    border-bottom: 1px solid var(--nff-border);
    vertical-align: middle;
    text-align: left;
}

.nffschedule__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--body-bg, #fff);
    font-weight: 700;
    white-space: nowrap;
}

.nffschedule__table tbody tr:nth-child(even) { background: var(--nff-soft); }
.nffschedule__table tbody tr:last-child td { border-bottom: 0; }
.nffschedule__row--highlight { background: var(--nff-highlight) !important; }
.nffschedule__row--next { box-shadow: inset .24rem 0 0 var(--nff-accent); }

.nffschedule__team { font-weight: 600; }
.nffschedule__team--club { font-weight: 750; }

.nffschedule__team-wrap {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
}

.nffschedule__team-wrap--hero { gap: .65rem; }

.nffschedule__team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.nffschedule__team-logo--hero {
    width: 40px;
    height: 40px;
}

.nffschedule__role-badge {
    display: inline-flex;
    align-items: center;
    margin-left: .4rem;
    padding: .16rem .4rem;
    border: 1px solid var(--nff-border);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.nffschedule__role-badge--home { background: var(--nff-accent-soft); }
.nffschedule__role-badge--away { background: var(--nff-soft); }

.nffschedule__result,
.nffschedule__result-head {
    text-align: center !important;
    white-space: nowrap;
    font-weight: 700;
}

.nffschedule__score {
    display: inline-grid;
    grid-template-columns: minmax(1.55rem, auto) auto minmax(1.55rem, auto);
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border: 1px solid var(--nff-border);
    border-radius: .45rem;
    background: var(--nff-card-bg);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.nffschedule__score-number { padding: .25rem .42rem; }
.nffschedule__score-separator { padding: .25rem .05rem; opacity: .55; }
.nffschedule__score--pending { display: inline-grid; grid-template-columns: 1fr; min-width: 3.2rem; opacity: .45; }
.nffschedule__score--text { display: inline-block; min-width: 3.2rem; padding: .25rem .42rem; }

.nffschedule__nowrap { white-space: nowrap; }

.nffschedule__next-badge {
    display: inline-block;
    margin-left: .35rem;
    padding: .15rem .42rem;
    border-radius: 999px;
    background: var(--nff-accent-soft);
    color: var(--nff-accent);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.2;
    vertical-align: middle;
}

.nffschedule__source {
    margin-top: .6rem;
    font-size: .8rem;
    opacity: .72;
}

.nffschedule__notice,
.nffschedule__error,
.nffschedule__empty-filter { margin-bottom: .75rem; }
.nffschedule__empty-filter { margin-top: .75rem; }

@media (prefers-color-scheme: dark) {
    .nffschedule {
        --nff-border: rgba(255, 255, 255, .18);
        --nff-soft: rgba(255, 255, 255, .045);
        --nff-highlight: rgba(255, 193, 7, .13);
        --nff-accent-soft: rgba(92, 156, 255, .16);
        --nff-card-bg: rgba(255, 255, 255, .035);
    }
}

@media (max-width: 767.98px) {
    .nffschedule__heading-logo { width: 38px; height: 38px; }
    .nffschedule__next-card { padding: .9rem; }

    .nffschedule__next-matchup {
        grid-template-columns: 1fr;
        gap: .45rem;
        text-align: center;
    }

    .nffschedule__next-team,
    .nffschedule__next-team--home,
    .nffschedule__next-team--away { text-align: center; }

    .nffschedule__next-team .nffschedule__team-wrap,
    .nffschedule__next-team--home .nffschedule__team-wrap { justify-content: center; }

    .nffschedule__next-vs { font-size: .85rem; }
    .nffschedule__next-kickoff::before { content: none; margin: 0; }
    .nffschedule__next-meta { display: grid; justify-items: start; gap: .15rem; }

    .nffschedule__tabs { gap: .35rem; }
    .nffschedule__tab { flex: 1 1 auto; justify-content: center; padding-inline: .55rem; }

    .nffschedule__scroll { border: 0; overflow: visible; }
    .nffschedule__table { min-width: 0; display: block; }

    .nffschedule__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;
    }

    .nffschedule__table tbody,
    .nffschedule__table tr,
    .nffschedule__table td { display: block; width: 100%; }

    .nffschedule__table tbody tr {
        margin-bottom: .8rem;
        padding: .35rem .75rem;
        border: 1px solid var(--nff-border);
        border-radius: .65rem;
        background: transparent;
    }

    .nffschedule__row--next { box-shadow: inset .22rem 0 0 var(--nff-accent); }

    .nffschedule__table td {
        display: grid;
        grid-template-columns: minmax(7rem, 35%) 1fr;
        gap: .65rem;
        padding: .45rem 0;
        border-bottom: 1px solid var(--nff-border);
        text-align: left !important;
        white-space: normal;
    }

    .nffschedule__table td:last-child { border-bottom: 0; }
    .nffschedule__table td::before { content: attr(data-label); font-weight: 700; }
    .nffschedule__next-badge { margin-top: .3rem; margin-left: 0; }
    .nffschedule__role-badge { margin-left: .3rem; }
    .nffschedule__result .nffschedule__score { justify-self: start; }
}
