.fc-home,
.fc-agenda {
    --fc-accent: #58e4b0;
    --fc-muted: #a6bac4;
    --fc-line: #d2ebdf24;
    --fc-panel: #10191d;
}

body[data-radar-home] .fc-home {
    padding: 0;
    border-color: #58e4b043;
    border-radius: 16px;
    background: #0b1418;
    box-shadow: 0 22px 60px #0005;
}

.fc-hero,
.fc-agenda-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 83% -35%, #58e4b046, transparent 67%),
        linear-gradient(122deg, #0f1e23 0%, #0d171b 50%, #10352c 100%);
}

.fc-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    padding: clamp(20px, 4vw, 38px);
    border-radius: 15px 15px 0 0;
}

.fc-hero::before,
.fc-agenda-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: '';
    background: repeating-radial-gradient(circle at 83% 55%, transparent 0 34px, #58e4b01a 35px 36px, transparent 37px 52px);
    mask-image: linear-gradient(to right, transparent 38%, #000);
}

.fc-hero h2,
.fc-agenda-hero h1 {
    font-family: var(--font-display, 'League Spartan', sans-serif);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
}

.fc-hero h2 {
    margin-block: 6px 16px;
    font-size: clamp(28px, 5vw, 58px);
    max-width: 16ch;
}

.fc-primary,
.fc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.fc-primary {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--fc-accent);
    color: #071a14;
}

.fc-primary:hover {
    background: #a0f6d2;
}

.fc-link {
    color: var(--fc-accent);
}

.fc-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fc-total {
    flex-shrink: 0;
    text-align: right;
    color: var(--fc-accent);
}

.fc-total strong {
    display: block;
    font-family: var(--font-display, 'League Spartan', sans-serif);
    font-size: clamp(50px, 9vw, 118px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: .78;
    letter-spacing: -.075em;
}

.fc-total span {
    display: block;
    margin-top: 9px;
    font-size: clamp(11px, 1.7vw, 15px);
    font-weight: 700;
    letter-spacing: .035em;
}

.fc-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 1px;
    padding-block: 1px;
    background: var(--fc-line);
}

.fc-region {
    position: relative;
    min-width: 0;
    background: var(--fc-panel);
}

.fc-region summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 9px;
    padding: 9px 14px;
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.fc-region summary::-webkit-details-marker {
    display: none;
}

.fc-region summary:hover,
.fc-region[open] summary {
    background: #58e4b016;
}

.fc-region-count {
    margin-inline-start: auto;
    color: var(--fc-accent);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.fc-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-inline-end: 2px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    color: var(--fc-muted);
    transform: translateY(-2px) rotate(45deg);
}

.fc-region[open] .fc-chevron {
    transform: translateY(2px) rotate(225deg);
}

.fc-region-list {
    max-height: min(370px, 55vh);
    margin: 0;
    padding: 5px;
    overflow: auto;
    border: 1px solid #58e4b044;
    border-radius: 0 0 8px 8px;
    background: #111d20;
    list-style: none;
}

.fc-region-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    flex-wrap: wrap;
    padding: 9px 10px;
    border-radius: 5px;
    font-size: 13px;
}

.fc-region-list a:hover,
.fc-region-list a:focus-visible {
    background: #58e4b018;
}

.fc-region-list small,
.fc-scores .rh-live-match-heading small {
    color: var(--fc-muted);
    font-size: 11px;
}

@media (min-width: 840px) {
    .fc-region-list {
        position: absolute;
        z-index: 5;
        top: 100%;
        left: 0;
        min-width: max(100%, 250px);
        box-shadow: 0 18px 40px #0008;
    }

    .fc-region:last-child .fc-region-list {
        right: 0;
        left: auto;
    }
}

body[data-radar-home] .fc-live.rh-live-section,
body[data-radar-home] .fc-live.rh-live-section:not(:has(.rh-live-matches)) {
    display: block;
    margin: 0;
    padding: 14px clamp(14px, 3vw, 24px) 16px;
    border: 0;
}

.fc-live-heading {
    justify-content: space-between;
    flex-wrap: wrap;
}

.fc-live-heading h3 {
    font-size: 16px;
    font-weight: 800;
}

.fc-live-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: #58e4b01e;
    color: var(--fc-accent);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

body[data-radar-home] .fc-live .rh-live-empty {
    margin-top: 6px;
    font-size: 13px;
}

.fc-scores .rh-live-match {
    min-width: 0;
    padding: 13px 14px;
    border-color: #58e4b046;
    background: linear-gradient(145deg, #58e4b00d, transparent 70%), #0d1a1c;
}

.fc-scores .rh-live-match-heading > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.fc-scores .rh-live-match-heading strong {
    color: #f4faf7;
    font-size: 13px;
}

.fc-scores .rh-live-match-heading > span {
    align-self: flex-start;
    padding: 2px 6px;
    border-radius: 4px;
    background: #58e4b017;
    white-space: nowrap;
}

.fc-scores .rh-live-team strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.fc-scores .rh-live-team b {
    min-width: 1.5ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fc-agenda .fc-agenda-hero {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    padding: clamp(18px, 3.8vw, 36px);
    border: 1px solid #58e4b043;
    border-radius: 14px;
    overflow: hidden;
}

.fc-agenda-hero h1 {
    margin-top: 6px;
    font-size: clamp(35px, 6vw, 66px);
}

.fc-agenda-hero > a {
    display: inline-flex;
    font-size: 13px;
}

.fc-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fc-modes,
.fc-league-filter {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fc-modes {
    padding: 4px;
    border: 1px solid var(--fc-line);
    border-radius: 9px;
    background: var(--fc-panel);
}

.fc-modes a,
.fc-league-filter button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.fc-modes a[aria-current],
.fc-league-filter button {
    border-color: #58e4b055;
    background: #58e4b019;
    color: var(--fc-accent);
}

.fc-modes a[aria-current] .rh-live-dot {
    background: var(--fc-accent);
}

.fc-modes a:hover,
.fc-league-filter button:hover {
    border-color: var(--fc-accent);
}

.fc-league-filter {
    max-width: 100%;
}

.fc-league-filter select {
    width: min(320px, 100%);
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--fc-line);
    border-radius: 6px;
    background: var(--fc-panel);
    color: inherit;
    color-scheme: dark;
    font-size: 13px;
}

.fc-agenda .ag-day-heading {
    background: linear-gradient(100deg, #58e4b014, transparent 65%);
}

.fc-agenda .ag-time strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
}

.fc-agenda .ag-status {
    text-align: right;
}

.fc-agenda .ag-empty .fc-link {
    margin-top: 10px;
}

.fc-home :focus-visible,
.fc-agenda :focus-visible {
    outline: 2px solid var(--fc-accent);
    outline-offset: 2px;
}

.fc-agenda .ag-match:focus-visible,
.fc-region summary:focus-visible,
.fc-region-list a:focus-visible {
    outline-offset: -2px;
}

@media (max-width: 839px) {
    .fc-region[open] {
        grid-column: 1 / -1;
    }

    .fc-region-list {
        border-radius: 0;
    }
}

@media (max-width: 639px) {
    .fc-hero {
        align-items: center;
        gap: 12px;
    }

    .fc-primary {
        gap: 5px;
        font-size: 11px;
    }

    .fc-regions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-region summary {
        padding-inline: 10px;
        font-size: 12px;
    }

    .fc-region:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .fc-scores:has(> :nth-child(2)) {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        padding-bottom: 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-color: #58e4b061 transparent;
        scrollbar-width: thin;
    }

    .fc-scores .rh-live-match {
        scroll-snap-align: start;
    }

    .fc-league-filter {
        width: 100%;
    }

    .fc-league-filter select {
        flex: 1;
        width: auto;
    }

    .fc-agenda .ag-status {
        text-align: left;
    }
}
