.page.page--today {
    --mc-gutter: var(--gutter);
    max-width: var(--content-wide);
    padding: 24px var(--gutter) calc(64px + var(--tab-bar-space));
}

@media (min-width: 1024px) {
    .page.page--today {
        padding-top: 32px;
    }
}

.today {
    min-width: 0;
}

.today > * + * {
    margin-top: 32px;
}

.today > .today__bar {
    margin-top: 24px;
}

.page-hero {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.page-hero__copy {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
    max-width: 48rem;
}

.page-hero__title {
    margin: 4px 0 0;
    color: var(--text-strong);
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.125;
    letter-spacing: -0.01em;
}

.page-hero__lead {
    margin: 0;
    max-width: var(--prose);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.page-hero__copy .mc-note-inline {
    margin: 0;
    color: var(--faint);
    font-size: 0.8125rem;
}

.page-hero__kpis {
    display: none;
    gap: 12px;
    margin: 0;
}

.kpi {
    display: grid;
    gap: 2px;
    min-width: 9.5rem;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.kpi__label {
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.kpi__value {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.75rem;
    letter-spacing: -0.02em;
}

.kpi:first-child .kpi__value {
    color: var(--green-ink);
}

@media (min-width: 768px) {
    .page-hero {
        position: relative;
        overflow: hidden;
        padding: 32px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background:
            radial-gradient(ellipse 60% 120% at 88% 0%, rgb(var(--green-rgb) / 0.08), transparent 70%),
            radial-gradient(ellipse 40% 80% at 35% 110%, rgb(var(--info-rgb) / 0.06), transparent 70%),
            var(--surface);
        box-shadow: var(--shadow-3);
    }

    .page-hero__kpis {
        display: flex;
    }

    .page-hero__lead {
        font-size: 1.125rem;
        line-height: 1.55;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        padding: 48px;
    }

    .page-hero__title {
        font-size: 3rem;
        line-height: 1.08;
    }
}

.today__overline {
    display: none;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.today__bar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.today__bar > nav {
    min-width: 0;
}

.today__chips {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.today__chips::-webkit-scrollbar {
    display: none;
}

.today__chips > li {
    flex: none;
    scroll-snap-align: start;
}

.day-strip__day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.day-strip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-4);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.day-strip__unit {
    display: none;
}

.day-strip__day.is-active {
    border-color: transparent;
    background: var(--btn-green);
    color: var(--on-green);
}

.day-strip__day.is-active .day-strip__count {
    background: var(--on-green);
    color: var(--btn-green);
}

.day-strip__day.today__chip--empty:not(.is-active) {
    color: var(--faint);
}

.day-strip__day.today__chip--empty:not(.is-active) .day-strip__count {
    background: transparent;
    color: var(--faint);
}

@media (hover: hover) {
    .day-strip__day:not(.is-active):hover {
        border-color: var(--border-strong);
        background: var(--surface-2);
        color: var(--text-strong);
    }
}

.chip-row {
    display: flex;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 6px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.filter-chip__count {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-xs);
    background: var(--surface-4);
    color: var(--text);
    font-size: 0.6875rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-chip.is-active {
    border-color: transparent;
    background: var(--btn-green);
    color: var(--on-green);
    font-weight: 700;
}

.filter-chip.is-active .filter-chip__count {
    background: color-mix(in srgb, var(--green-fill-ink) 18%, transparent);
    color: inherit;
}

.filter-chip.today__chip--empty:not(.is-active) {
    color: var(--faint);
}

@media (hover: hover) {
    .filter-chip:not(.is-active):hover {
        background: var(--surface-3);
        color: var(--text);
    }
}

@media (max-width: 767px) {
    .today__chips {
        padding-block: 5px;
    }

    .day-strip__day,
    .filter-chip {
        position: relative;
        min-height: 34px;
    }

    .day-strip__day::after,
    .filter-chip::after {
        content: '';
        position: absolute;
        inset: -5px 0;
    }

    .day-strip__count {
        min-width: 24px;
        height: 24px;
    }
}

.day-strip__day:focus-visible,
.filter-chip:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.day-strip__day:active,
.filter-chip:active {
    transform: scale(0.98);
    transition-duration: 80ms;
}

@media (min-width: 768px) {
    .today__overline {
        display: block;
    }

    .day-strip {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
    }

    .day-strip__day {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        width: 100%;
        min-height: 0;
        padding: 12px 8px;
        overflow: hidden;
        border-radius: var(--radius);
        text-align: center;
    }

    .day-strip__label {
        color: var(--muted);
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .day-strip__count {
        min-width: 0;
        height: auto;
        padding: 0;
        border-radius: 0;
        background: none;
        color: var(--text-strong);
        font-family: var(--display);
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .day-strip__unit {
        display: block;
        color: var(--faint);
        font-size: 0.6875rem;
        font-weight: 500;
    }

    .day-strip__day.is-active {
        border-color: var(--border-strong);
        background: var(--surface-3);
        color: var(--text-strong);
        box-shadow: var(--shadow-2);
    }

    .day-strip__day.is-active::before {
        content: '';
        position: absolute;
        inset: 0 0 auto;
        height: 2px;
        background: var(--green);
    }

    .day-strip__day.is-active .day-strip__label {
        color: var(--green-ink);
        font-weight: 700;
    }

    .day-strip__day.is-active .day-strip__count {
        background: none;
        color: var(--text-strong);
    }

    .day-strip__day.today__chip--empty:not(.is-active) :is(.day-strip__label, .day-strip__count, .day-strip__unit) {
        color: var(--faint);
    }

    .chip-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 4px;
        overflow: visible;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }

    .chip-row .filter-chip {
        border-color: transparent;
        border-radius: var(--radius);
        background: transparent;
    }

    .chip-row .filter-chip.is-active {
        background: var(--btn-green);
    }
}

@media (min-width: 768px) and (hover: hover) {
    .chip-row .filter-chip:not(.is-active):hover {
        background: var(--surface-3);
    }
}

.today__groups {
    display: grid;
    gap: 32px;
}

.league-group {
    display: grid;
    gap: 12px;
}

.today__live-tile {
    color: var(--loss);
}

.league-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-3);
}

:root[data-theme="light"] .league-head {
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.league-head__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-sunken);
    color: var(--green-ink);
}

.league-head__tile .icon {
    width: 22px;
    height: 22px;
}

.league-head__text {
    min-width: 0;
}

.league-head__title {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.league-head__name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-strong);
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.league-head__meta {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.league-head__count {
    flex: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .league-head {
        gap: 16px;
        padding: 16px 24px;
    }

    .league-head__name {
        font-size: 1.5rem;
    }
}

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

.match-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.match-row:active {
    transform: scale(0.98);
    transition-duration: 80ms;
}

.match-row:focus-within {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.match-row--featured {
    box-shadow: inset 4px 0 0 var(--green), var(--shadow-2);
}

.match-row--live {
    box-shadow: inset 4px 0 0 var(--loss), var(--shadow-1);
}

.match-row__ribbon {
    justify-self: start;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    background: var(--btn-green);
    color: var(--on-green);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.match-row__teams {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.match-row__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.match-row__time {
    flex: none;
    color: var(--text-strong);
}

.match-row__league {
    min-width: 0;
    overflow: hidden;
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-row__meta .mc-live-detail {
    flex: 0 1 auto;
}

.match-row__meta .match-row__league {
    flex-shrink: 100;
}

@media (max-width: 767px) {
    .match-row__meta:has(.mc-live:not([hidden])) .match-row__time {
        display: none;
    }

    .match-row__meta:has(.mc-live:not([hidden])) .mc-live {
        margin-left: 0;
    }
}

@media (max-width: 389px) {
    .match-row__meta:has(.mc-live:not([hidden])):has(.mc-live-detail:not(:empty)) .match-row__league {
        display: none;
    }
}

.match-row__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--text-strong);
}

.match-row__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.match-row__link:focus-visible {
    outline: none;
}

.match-row__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-row__team--b {
    flex-direction: row-reverse;
    text-align: right;
}

.match-row__team .mc-crest {
    --crest-size: 24px;
    border-radius: var(--radius-xs);
}

.match-row__name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.match-row__vs {
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-row__model {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.match-row__caption {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.match-row__placeholder {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 4px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-xs);
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.match-row__bar {
    border: 0;
}

.match-row__bar .split-bar__seg.is-favourite {
    box-shadow: var(--glow-bar);
}

.model-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.model-values__item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.model-values__key {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.model-values__key::after {
    content: ':';
}

.model-values__item.is-favourite {
    font-weight: 800;
}

.model-values__item--a.is-favourite {
    color: var(--green-ink);
}

.model-values__item--b.is-favourite {
    color: var(--side-b-ink);
}

.model-values__item--draw.is-favourite {
    color: var(--text-strong);
}

.match-row__action {
    justify-self: end;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--green-ink);
    font-weight: 600;
}

.match-row__action .icon {
    width: 16px;
    height: 16px;
}

.match-row__action.btn--primary {
    background: none;
    color: var(--green-ink);
    box-shadow: none;
}

@media (hover: hover) {
    .match-row:hover {
        border-color: var(--border-strong);
        background: var(--surface-2);
    }

    .match-row:hover .match-row__action {
        transform: none;
    }

    .match-row:hover .match-row__action .icon {
        transform: translateX(2px);
    }
}

.match-row__action .icon {
    transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
    .match-row {
        grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(11rem, 3fr);
        align-items: center;
        gap: 24px;
        padding: 24px;
    }

    .match-row--compact {
        grid-template-columns: minmax(0, 9fr) minmax(11rem, 3fr);
    }

    .match-row__ribbon {
        position: absolute;
        top: -1px;
        right: -1px;
        z-index: 2;
        border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
    }

    .match-row__teams {
        gap: 8px;
    }

    .match-row__link {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .match-row__vs {
        display: none;
    }

    .match-row__team--b {
        flex-direction: row;
        text-align: left;
    }

    .match-row__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .match-row__bar {
        order: 1;
        gap: 2px;
        height: 12px;
        padding: 2px;
    }

    .match-row__caption {
        order: 0;
    }

    .model-values {
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 6px;
    }

    .model-values__item {
        justify-content: center;
        padding: 4px 6px;
        border-radius: var(--radius-xs);
        background: color-mix(in srgb, var(--bg-sunken) 60%, transparent);
        font-size: 0.75rem;
    }

    .model-values__key {
        font-size: 0.6875rem;
    }

    .model-values__item--a.is-favourite {
        background: var(--green-soft);
    }

    .model-values__item--b.is-favourite {
        background: var(--sky-soft);
    }

    .model-values__item--draw.is-favourite {
        background: var(--surface-4);
    }

    .match-row__action,
    .match-row__action.btn--primary {
        justify-self: end;
        min-height: var(--btn-h);
        padding: 0 12px 0 16px;
        border: 1px solid var(--border);
        background: var(--btn-bg);
        box-shadow: var(--btn-shadow);
        color: var(--text-strong);
    }

    .match-row__action.btn--primary {
        border-color: transparent;
        background: var(--btn-green);
        box-shadow: var(--btn-primary-shadow);
        color: var(--on-green);
    }
}

@media (min-width: 1024px) and (hover: hover) {
    .match-row:hover .match-row__action:not(.btn--primary) {
        border-color: transparent;
        background: var(--btn-green);
        color: var(--on-green);
    }
}

.empty-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 48px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.empty-card[hidden] {
    display: none;
}

.empty-card__icon {
    width: 32px;
    height: 32px;
    color: var(--faint);
}

.today__empty {
    margin: 0;
    color: var(--muted);
}

.today__empty a {
    display: block;
    margin-top: 8px;
    font-weight: 700;
}

.today__next {
    margin-top: 24px;
    text-align: center;
}

.today__promoted {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 2px;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.today__promoted:active {
    transform: scale(0.98);
    transition-duration: 80ms;
}

.today__promoted:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

@media (hover: hover) {
    .today__promoted:hover {
        border-color: var(--green-line);
        color: var(--text);
    }
}

.today__promoted-art {
    position: absolute;
    top: 50%;
    right: -24px;
    z-index: -1;
    width: 220px;
    color: var(--sport-art);
    opacity: 0.2;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    translate: 0 -50%;
}

.today__promoted-kind {
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.today__promoted-name {
    color: var(--text-strong);
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.today__promoted-cta {
    margin-top: 4px;
    color: var(--green-ink);
    font-weight: 600;
}

.today > .today__cta {
    margin-top: 32px;
}

@media (min-width: 1024px) {
    .today__cta.cta-band--split .cta-band__actions {
        flex-direction: row;
    }
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.disclaimer__badge {
    flex: none;
    height: 24px;
}

.disclaimer__copy {
    display: grid;
    gap: 2px;
}

.disclaimer__title {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.875rem;
    font-weight: 700;
}

.disclaimer__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .day-strip__day,
    .day-strip__count,
    .filter-chip,
    .filter-chip__count,
    .match-row,
    .match-row__action .icon,
    .today__promoted {
        transition: none;
    }

    .day-strip__day:active,
    .filter-chip:active,
    .match-row:active,
    .today__promoted:active {
        transform: none;
    }
}
