/* Season timeline: league name | track (Sep–Apr) | status, with month lines and a today marker
   drawn by .tl-grid behind the rows */

.timeline {
    --tl-cols: 170px 1fr 120px;
    --tl-gap: 16px;
}

.timeline-legend {
    display: flex;
    gap: 8px;
}

.tl-head,
.tl-grid,
.tl-row {
    display: grid;
    grid-template-columns: var(--tl-cols);
    gap: 0 var(--tl-gap);
    align-items: center;
}

.tl-head {
    margin-bottom: 8px;
}

.tl-months {
    display: grid;
    grid-template-columns: repeat(var(--months, 7), 1fr);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tl-months span {
    padding-left: 6px;
}

.tl-body {
    position: relative;
    margin-bottom: 22px;   /* room for the Today label */
}

.tl-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tl-lines {
    position: relative;
    height: 100%;
    background: repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px calc(100% / var(--months, 7)));
    border-right: 1px solid var(--border);
}

.tl-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--live);
}

/* The label hangs below the last row, clear of the month names */
.tl-today span {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 4px);
    padding: 0 6px;
    border-radius: 999px;
    background: var(--live);
    color: var(--live-ink);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tl-row {
    position: relative;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
}

.tl-row + .tl-row {
    border-top: 1px solid var(--border);
}

.tl-name {
    display: block;
    font-weight: 500;
}

.tl-row:hover .tl-name {
    color: var(--accent-text);
}

.tl-span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.tl-track {
    position: relative;
    height: 14px;
}

.tl-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: var(--accent);
    transition: filter 0.15s;
}

.tl-row.live .tl-bar {
    background: var(--live);
}

.tl-row.done .tl-bar,
.tl-row.off .tl-bar {
    background: var(--track);
}

.tl-row:hover .tl-bar {
    filter: brightness(1.25);
}

.tl-row .chip {
    justify-self: end;
}


.leagues-more {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

.event-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--raised);
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s;
}

.event-list a:hover {
    background: var(--raised-hover);
}

.event-list a span {
    flex: 1;
}

.event-list .fa-chevron-right {
    color: var(--muted);
    font-size: 12px;
}

.event-list a > i:first-child {
    width: 20px;
    color: var(--accent-text);
    text-align: center;
}

.champions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
    transition: border-color 0.15s;
}

.champions:hover {
    border-color: var(--accent-text);
}

.champions > i:first-child {
    color: var(--gold);
    font-size: 32px;
}

.champions > span {
    flex: 1;
}

.champions-title {
    display: block;
    font: 800 22px Nunito, sans-serif;
}

.champions-sub {
    color: var(--muted);
    font-size: 14px;
}


@media (max-width: 767px) {
    .timeline {
        --tl-cols: 104px 1fr;
        --tl-gap: 12px;
    }

    .tl-head > :nth-child(3),
    .tl-grid > :nth-child(3),
    .tl-row .chip,
    .timeline-legend {
        display: none;
    }

    .tl-months {
        font-size: 10px;
        letter-spacing: 0;
    }

    .tl-months span {
        padding-left: 3px;
    }

    .leagues-more {
        grid-template-columns: 1fr;
    }
}
