/* ─────────────────────────────────────────────────────────────────────
   Events list — Soft Structuralism, self-contained.
   Double-bezel cards · hairline icons · staggered fade-up entry.
   ───────────────────────────────────────────────────────────────────── */
.afrc-events-list {
    --afrc-ink:        #0a0e1a;
    --afrc-ink-soft:   #2a3142;
    --afrc-muted:      #6b7280;
    --afrc-faint:      #9aa3b2;
    --afrc-line:       rgba(10, 14, 26, 0.07);
    --afrc-line-soft:  rgba(10, 14, 26, 0.04);
    --afrc-shell:      rgba(10, 14, 26, 0.025);
    --afrc-surface:    #ffffff;
    --afrc-red:        #e30613;
    --afrc-red-soft:   rgba(227, 6, 19, 0.08);
    --afrc-blue:       #2f5db8;
    --afrc-blue-soft:  rgba(47, 93, 184, 0.08);
    --afrc-slate:      #5b6473;
    --afrc-slate-soft: rgba(91, 100, 115, 0.08);
    --afrc-ease:       cubic-bezier(0.32, 0.72, 0, 1);

    display: grid;
    gap: 0.5rem;
    margin: 1.25rem 0;
    font-family: inherit;
    color: var(--afrc-ink);
}

/* Outer shell — the aluminum tray */
.afrc-events-list .afrc-evt {
    position: relative;
    padding: 4px;
    background: var(--afrc-shell);
    border: 1px solid var(--afrc-line);
    border-radius: 18px;
    opacity: 0;
    transform: translateY(14px);
    animation: afrc-evt-rise 720ms var(--afrc-ease) forwards;
    animation-delay: calc(var(--afrc-i, 0) * 55ms + 60ms);
    transition: transform 380ms var(--afrc-ease), box-shadow 380ms var(--afrc-ease), border-color 380ms var(--afrc-ease);
    will-change: transform;
}

.afrc-events-list .afrc-evt:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 14, 26, 0.12);
    box-shadow: 0 18px 38px -22px rgba(10, 14, 26, 0.22), 0 2px 6px -2px rgba(10, 14, 26, 0.05);
}

/* Inner core — the glass plate */
.afrc-events-list .afrc-evt__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.1rem;
    padding: 0.85rem 1.05rem;
    background: var(--afrc-surface);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--afrc-line-soft);
    overflow: hidden;
}

/* Hair-thin accent strip — bottom border that pulls color from the kind */
.afrc-events-list .afrc-evt__inner::after {
    content: "";
    position: absolute;
    left: 1.05rem; right: 1.05rem; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--afrc-line), transparent);
    pointer-events: none;
}

/* Date block */
.afrc-events-list .afrc-evt__date {
    display: grid;
    justify-items: center;
    align-content: center;
    min-width: 44px;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    background: var(--afrc-shell);
    border: 1px solid var(--afrc-line-soft);
}
.afrc-events-list .afrc-evt__day {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    color: var(--afrc-ink);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.afrc-events-list .afrc-evt__mon {
    margin-top: 2px;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--afrc-muted);
}

/* Body */
.afrc-events-list .afrc-evt__body {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}
.afrc-events-list .afrc-evt__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--afrc-faint);
    font-variant-numeric: tabular-nums;
}
.afrc-events-list .afrc-evt__past {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--afrc-shell);
    color: var(--afrc-muted);
    letter-spacing: 0.14em;
}
.afrc-events-list .afrc-evt__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--afrc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.afrc-events-list .afrc-evt__loc {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2px;
    font-size: 0.82rem;
    color: var(--afrc-muted);
    min-width: 0;
}
.afrc-events-list .afrc-evt__loc > svg {
    width: 13px; height: 13px;
    color: var(--afrc-faint);
    flex-shrink: 0;
}
.afrc-events-list .afrc-evt__loc a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--afrc-ink-soft);
    background: none;
    text-decoration: none;
    transition: color 280ms var(--afrc-ease);
    min-width: 0;
}
.afrc-events-list .afrc-evt__loc a > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.afrc-events-list .afrc-evt__loc a > svg {
    width: 11px; height: 11px;
    color: var(--afrc-faint);
    transition: transform 280ms var(--afrc-ease), color 280ms var(--afrc-ease);
    flex-shrink: 0;
}
.afrc-events-list .afrc-evt__loc a:hover,
.afrc-events-list .afrc-evt__loc a:focus-visible {
    color: var(--afrc-ink);
}
.afrc-events-list .afrc-evt__loc a:hover > svg {
    color: var(--afrc-ink);
    transform: translate(1px, -1px);
}

/* Aside (chip + CTA) */
.afrc-events-list .afrc-evt__aside {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.afrc-events-list .afrc-evt__chip {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--afrc-slate-soft);
    color: var(--afrc-slate);
    line-height: 1.2;
    white-space: nowrap;
}
.afrc-events-list .afrc-evt--training .afrc-evt__chip { background: var(--afrc-blue-soft); color: var(--afrc-blue); }
.afrc-events-list .afrc-evt--game     .afrc-evt__chip { background: var(--afrc-red-soft);  color: var(--afrc-red); }

.afrc-events-list .afrc-evt__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 999px;
    background: var(--afrc-ink);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 10px -4px rgba(10, 14, 26, 0.4);
    transition: transform 280ms var(--afrc-ease), background 280ms var(--afrc-ease);
}
.afrc-events-list .afrc-evt__cta > svg {
    width: 13px; height: 13px;
    transition: transform 280ms var(--afrc-ease);
}
.afrc-events-list .afrc-evt__cta:hover,
.afrc-events-list .afrc-evt__cta:focus-visible {
    background: var(--afrc-red);
    transform: scale(1.06);
}
.afrc-events-list .afrc-evt__cta:hover > svg {
    transform: translate(1px, -1px);
}
.afrc-events-list .afrc-evt:active { transform: translateY(-1px) scale(0.998); }

/* Past states */
.afrc-events-list .afrc-evt.is-past { opacity: 0.92; }
.afrc-events-list .afrc-evt.is-past .afrc-evt__inner { background: #fafbfc; }
.afrc-events-list .afrc-evt.is-past .afrc-evt__title { color: var(--afrc-ink-soft); font-weight: 500; }

/* Mobile */
@media (max-width: 600px) {
    .afrc-events-list .afrc-evt__inner {
        grid-template-columns: auto 1fr;
        gap: 0.8rem;
        padding: 0.75rem 0.85rem;
    }
    .afrc-events-list .afrc-evt__aside {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 0.4rem;
        margin-top: 0.2rem;
        border-top: 1px solid var(--afrc-line-soft);
    }
    .afrc-events-list .afrc-evt__title { white-space: normal; }
}

@keyframes afrc-evt-rise {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .afrc-events-list .afrc-evt {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    .afrc-events-list .afrc-evt:hover { transform: none; }
}

/* Next-match countdown card */
.afrc-next-match {
    --afrc-nm-bg-from: #1f3fa6;
    --afrc-nm-bg-to: #142a73;
    --afrc-nm-accent: #ff2e4d;
    --afrc-nm-text: #ffffff;
    --afrc-nm-muted: rgba(255, 255, 255, 0.72);
    --afrc-nm-tile-bg: rgba(255, 255, 255, 0.08);
    --afrc-nm-tile-border: rgba(255, 255, 255, 0.16);

    position: relative;
    color: var(--afrc-nm-text);
    background: linear-gradient(135deg, var(--afrc-nm-bg-from), var(--afrc-nm-bg-to));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px -24px rgba(20, 42, 115, 0.55);
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.afrc-next-match__topbar {
    position: relative;
    height: 5px;
    background: linear-gradient(
        90deg,
        #0055A4 0%,    #0055A4 33.333%,
        #FFFFFF 33.333%, #FFFFFF 66.666%,
        #EF4135 66.666%, #EF4135 100%
    );
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.afrc-next-match__inner {
    padding: 18px 24px 20px;
}

.afrc-next-match__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.afrc-next-match__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.afrc-next-match__pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--afrc-nm-accent);
    box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7);
    animation: afrc-nm-pulse 1.8s infinite;
}

@keyframes afrc-nm-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 46, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); }
}

.afrc-next-match__live {
    font-size: 13px;
    color: var(--afrc-nm-muted);
}

.afrc-next-match__title {
    font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -0.01em;
}

.afrc-next-match__vs {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--afrc-nm-muted);
    text-transform: lowercase;
}

.afrc-next-match__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--afrc-nm-text);
    font-size: 13px;
    margin-bottom: 4px;
}

.afrc-next-match__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.afrc-next-match__meta-item i {
    opacity: 0.85;
}

.afrc-next-match__location {
    margin: 6px 0 14px;
    font-size: 13px;
    color: var(--afrc-nm-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.afrc-next-match__location a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
}

.afrc-next-match__location a:hover {
    border-bottom-style: solid;
}

.afrc-next-match__countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.afrc-next-match__tile {
    background: var(--afrc-nm-tile-bg);
    border: 1px solid var(--afrc-nm-tile-border);
    border-radius: 10px;
    padding: 10px 4px 8px;
    text-align: center;
}

.afrc-next-match__num {
    display: block;
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.afrc-next-match__lbl {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--afrc-nm-muted);
    text-transform: uppercase;
}

.afrc-next-match__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 280ms cubic-bezier(0.32, 0.72, 0, 1), transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.afrc-next-match__cta:active { transform: scale(0.99); }

.afrc-next-match__cta:hover,
.afrc-next-match__cta:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.afrc-next-match.is-started .afrc-next-match__countdown {
    opacity: 0.55;
}

@media (max-width: 480px) {
    .afrc-next-match__inner { padding: 14px 16px 16px; }
    .afrc-next-match__countdown { gap: 6px; }
    .afrc-next-match__tile { padding: 8px 4px 6px; }
    .afrc-next-match__title { gap: 6px; margin-bottom: 6px; }
    .afrc-next-match__location { margin: 4px 0 10px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Fallback card (no upcoming match) — inherits next-match shell
   ───────────────────────────────────────────────────────────────────── */
.afrc-next-match--empty .afrc-empty__title {
    font-size: clamp(20px, 3vw, 28px);
    margin: 0 0 4px;
}
.afrc-next-match--empty .afrc-empty__lede {
    margin: 0 0 14px;
    color: var(--afrc-nm-muted);
    font-size: 13px;
    line-height: 1.45;
    max-width: 46ch;
}
.afrc-next-match--empty .afrc-empty__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.afrc-next-match--empty .afrc-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
    transition:
        transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
        background 280ms cubic-bezier(0.32, 0.72, 0, 1),
        border-color 280ms cubic-bezier(0.32, 0.72, 0, 1);
}
.afrc-next-match--empty .afrc-empty__cta > svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.afrc-next-match--empty .afrc-empty__cta:hover,
.afrc-next-match--empty .afrc-empty__cta:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}
.afrc-next-match--empty .afrc-empty__cta--instagram:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%);
    border-color: transparent;
}
.afrc-next-match--empty .afrc-empty__cta--facebook:hover {
    background: #1877f2;
    border-color: transparent;
}
.afrc-next-match--empty .afrc-empty__cta:active { transform: scale(0.99); }
