.matches-page {
    --fx-chip-active-bg: var(--at-surface-3);
    --fx-chip-active-text: var(--at-text-1);
    --fx-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6.2c0 5 3.4 9.3 8 10.8 4.6-1.5 8-5.8 8-10.8V5Z'/%3E%3C/svg%3E");
    --hub-header-h: 78px;
}

:root body.matches-page:not(.home-page):not(.admin-dashboard-page) {
    background: var(--at-bg-wash) no-repeat !important;
    background-color: var(--at-bg) !important;
}

body.matches-page::before {
    display: none !important;
}

.matches-page .ico {
    width: 18px;
    height: 18px;
    flex: none;
}

.hub-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.hub {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    color: var(--fx-text);
    font-size: 14px;
}

.hub-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.hub-main {
    min-width: 0;
    container: hub-main / inline-size;
}

.hub :is(button, a, input, summary):focus-visible {
    outline: 2px solid var(--fx-focus);
    outline-offset: 2px;
}

.hub-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hub-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.matches-page .hub-title h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.hub-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
}

.matches-page .hub-date {
    color: var(--fx-muted);
    font-size: 14px;
    font-weight: 400;
}

.matches-page .hub-updated {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 400;
}

.hub-updated:empty {
    display: none;
}

.hub-refresh {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text-2);
    cursor: pointer;
}

.hub-refresh .ico {
    width: 18px;
    height: 18px;
}

.hub-refresh:hover {
    color: var(--fx-text);
    background: var(--fx-surface-2);
}

.hub-refresh.is-busy .ico {
    animation: hub-spin .9s linear infinite;
}

.hub-sticky-sentinel {
    display: block;
    height: 1px;
    margin-bottom: -1px;
}

.hub-controls {
    position: sticky;
    top: var(--hub-header-h);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 -8px 12px;
    padding: 8px;
    background: transparent;
    transition: box-shadow var(--at-dur-2) var(--at-ease);
}

.hub-controls.is-stuck {
    background: var(--at-bg);
    box-shadow: 0 1px 0 var(--fx-line), 0 8px 16px -12px rgba(0, 0, 0, .5);
}

.hub-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--at-inset);
}

.hub-days {
    display: flex;
    flex: 1;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.hub-days::-webkit-scrollbar {
    display: none;
}

.hub-days li {
    flex: 1 0 auto;
    scroll-snap-align: center;
}

.hub-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 68px;
    height: 48px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--fx-text-2);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.hub-day:hover {
    background: var(--fx-hover);
    color: var(--fx-text);
}

.hub-day-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.hub-day-date {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.hub-day.is-today .hub-day-name {
    color: var(--at-accent-text);
}

.hub-day.is-selected {
    background: var(--at-surface-3);
    color: var(--fx-text);
    box-shadow: var(--at-shadow-1), inset 0 0 0 1px var(--fx-line);
}

.hub-day.is-selected .hub-day-name {
    font-weight: 800;
}

.hub-day.is-selected .hub-day-date {
    color: var(--fx-text-2);
}

.hub-strip-step,
.hub-calendar {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--fx-text-2);
    cursor: pointer;
}

.hub-strip-step.is-disabled {
    opacity: .35;
    cursor: default;
}

.hub-strip-step:not(.is-disabled):hover,
.hub-calendar:hover {
    background: var(--fx-hover);
    color: var(--fx-text);
}

.hub-strip-tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
    padding-inline-start: 4px;
    border-inline-start: 1px solid var(--fx-line);
}

.hub-calendar-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.hub-today-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hub-today-link:hover {
    border-color: var(--fx-text-2);
}

.hub-today-link[hidden] {
    display: none;
}

.hub-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hub-filters {
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.hub-filters::-webkit-scrollbar {
    display: none;
}

.hub-filter {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--fx-line);
    border-radius: 999px;
    background: transparent;
    color: var(--fx-text-2);
    font: 600 14px/1 Cairo, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.hub-filter:hover {
    border-color: var(--fx-line-strong);
    color: var(--fx-text);
}

.hub-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--at-inset);
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hub-filter-count.is-live {
    color: var(--fx-live);
}

.hub-filter.is-active {
    border-color: var(--fx-line-strong);
    background: var(--fx-chip-active-bg);
    color: var(--fx-chip-active-text);
    box-shadow: var(--at-shadow-1);
}

.hub-filter-live .fx-live-dot {
    margin-inline-end: -2px;
}

.hub-tool-button {
    display: none;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text-2);
    cursor: pointer;
}

.hub-tool-button[aria-expanded="true"] {
    border-color: var(--fx-line-strong);
    background: var(--at-surface-3);
    color: var(--fx-text);
}

.hub-toolbar {
    margin-bottom: 12px;
}

.hub-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-nav-open {
    display: none;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text);
    font: 600 14px/1 Cairo, sans-serif;
    cursor: pointer;
}

.hub-nav-open .ico {
    width: 18px;
    height: 18px;
    color: var(--fx-muted);
}

.hub-search {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.hub-search .ico {
    position: absolute;
    inset-inline-start: 10px;
    width: 17px;
    height: 17px;
    color: var(--fx-muted);
    pointer-events: none;
}

.matches-page .hub-search input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    font: 600 13px Cairo, sans-serif;
    outline-offset: 0;
}

.matches-page .hub-search input:focus {
    border-color: var(--fx-focus) !important;
    outline: none;
}

.hub-view {
    display: flex;
    flex: none;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    background: var(--at-inset);
}

.hub-view button {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--fx-text-2);
    font: 600 13px/1 Cairo, sans-serif;
    cursor: pointer;
}

.hub-view button[aria-pressed="true"] {
    background: var(--at-surface-3);
    color: var(--fx-text);
    box-shadow: var(--at-shadow-1), inset 0 0 0 1px var(--fx-line);
}

.hub-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--fx-live) 40%, transparent);
    border-radius: 10px;
    background: var(--fx-live-soft);
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 600;
}

.hub-banner[hidden] {
    display: none;
}

.hub-banner .ico {
    color: var(--fx-live);
}

.hub-banner span {
    flex: 1;
}

.hub-banner button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: var(--fx-surface);
    color: var(--fx-text);
    font: 700 12px/1 Cairo, sans-serif;
    cursor: pointer;
}

.hub-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 48px 24px;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
    text-align: center;
}

.hub-empty .ico {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    color: var(--fx-muted);
}

.hub-empty-title {
    color: var(--fx-text);
    font-size: 15px;
    font-weight: 800;
}

.hub-empty-text {
    max-width: 360px;
    color: var(--fx-muted);
    font-size: 13px;
    line-height: 1.7;
}

.hub-retry {
    height: 40px;
    margin-top: 10px;
    padding: 0 16px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: var(--fx-surface-2);
    color: var(--fx-text);
    font: 600 14px/1 Cairo, sans-serif;
    cursor: pointer;
}

.hub-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hub-button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text);
    font: 600 14px/1 Cairo, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.hub-button:hover {
    background: var(--fx-surface-2);
}

.matches-page .hub-button.is-primary {
    border-color: transparent;
    background: var(--at-accent-fill);
    color: #ffffff;
    font-weight: 800;
}

.matches-page .hub-button.is-primary:hover {
    background: var(--at-accent-fill-hover);
}

.hub-shimmer {
    display: block;
    border-radius: 6px;
    background: var(--at-skeleton) linear-gradient(90deg, transparent 25%, var(--at-skeleton-shine) 50%, transparent 75%) 0 0 / 300% 100% no-repeat;
    animation: hub-shimmer 1.2s linear infinite;
}

.fx-group {
    overflow: hidden;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
}

.fx-group + .fx-group,
.fx-rest-list > .fx-group:first-child {
    margin-top: 12px;
}

.fx-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 8px 8px 8px;
    padding-inline-start: 12px;
    border-bottom: 1px solid var(--fx-line);
    background: var(--fx-surface-2);
}

.fx-group.is-collapsed .fx-group-head {
    border-bottom: 0;
}

.fx-group-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(16, 34, 57, .08);
}

.fx-group-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fx-group-logo.is-zoom {
    overflow: hidden;
}

.fx-group-logo.is-zoom img {
    transform: scale(1.7);
}

.fx-group-logo.is-empty,
.fx-group-logo.is-broken {
    background: var(--fx-score-bg);
    color: var(--fx-muted);
}

.fx-group-logo.is-broken img {
    display: none;
}

.fx-group-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fx-group-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.matches-page .fx-group-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fx-group-name a,
.fx-group-name span {
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    unicode-bidi: plaintext;
}

.fx-group-live {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--fx-live-soft);
    color: var(--fx-live);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fx-group-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fx-group-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fx-group-sub > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-flag {
    flex: none;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--fx-line);
}

.fx-dot {
    margin: 0 4px;
}

.fx-group-count {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: var(--fx-score-bg);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fx-group-count.has-live {
    color: var(--fx-text);
}

.fx-pin,
.fx-toggle {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fx-muted);
    cursor: pointer;
}

.fx-pin:hover,
.fx-toggle:hover {
    background: var(--fx-hover);
    color: var(--fx-text);
}

.fx-pin[aria-pressed="true"] {
    color: var(--fx-accent);
}

.fx-pin[aria-pressed="true"] .ico {
    fill: currentColor;
}

.fx-toggle .ico {
    transition: transform .2s ease;
}

.fx-toggle[aria-expanded="false"] .ico {
    transform: rotate(90deg);
}

.fx-group.is-pinned .fx-group-head {
    box-shadow: inset -3px 0 0 var(--fx-accent);
}

.fx-slot-head .fx-group-name {
    flex: 1;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.fx-slot-head .ico {
    width: 16px;
    height: 16px;
    color: var(--fx-muted);
}

.fx-slot.is-live .fx-group-name {
    color: var(--fx-live);
}

.fx-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-list[hidden] {
    display: none;
}

.fx-row {
    position: relative;
    border-top: 1px solid var(--fx-line);
}

.fx-row:first-child {
    border-top: 0;
}

.fx-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 260px) 84px minmax(0, 260px) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    padding-inline-end: 52px;
    color: var(--fx-text);
    text-decoration: none;
    transition: background-color .15s ease;
}

a.fx-link:hover {
    background: var(--fx-surface-2);
}

.fx-row.has-sub .fx-link {
    row-gap: 2px;
}

.fx-row.has-sub .fx-status,
.fx-row.has-sub .fx-meta {
    grid-row: 1 / span 2;
}

.fx-sub {
    grid-row: 2;
    grid-column: 2 / 5;
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    unicode-bidi: plaintext;
}

.matches-page a.fx-link:focus-visible {
    outline-offset: -2px;
    border-radius: 4px;
}

.fx-status {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.fx-time {
    color: var(--fx-text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.fx-time-period {
    margin-inline-start: 3px;
    color: var(--fx-text-2);
    font-size: 11px;
    font-weight: 600;
}

.fx-state {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

.fx-status.is-postponed .fx-state,
.fx-status.is-cancelled .fx-state,
.fx-status.is-stopped .fx-state,
.fx-status.is-break .fx-state {
    color: var(--fx-warning);
}

.fx-status.is-live {
    color: var(--fx-live);
}

.fx-minute {
    white-space: nowrap;
}

.fx-live-dot {
    position: relative;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fx-live);
}

.fx-live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: fx-pulse 1.8s ease-out infinite;
}

.fx-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--fx-text);
    font-size: 14px;
    font-weight: 600;
}

.fx-home {
    flex-direction: row-reverse;
}

.fx-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fx-team.is-winner {
    font-weight: 800;
}

.fx-team.is-loser {
    color: var(--fx-muted);
}

.fx-crest {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
}

.fx-crest img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

html:not([data-theme="light"]) .matches-page .fx-crest img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .22));
}

.fx-crest.is-empty::before,
.fx-crest.is-broken::before {
    content: "";
    position: absolute;
    inset: 0 6%;
    background: hsl(var(--crest-h, 210) 45% 35%);
    -webkit-mask: var(--fx-shield) center / contain no-repeat;
    mask: var(--fx-shield) center / contain no-repeat;
}

.fx-crest.is-empty::after,
.fx-crest.is-broken::after {
    content: attr(data-initial);
    position: relative;
    color: #ffffff;
    font-size: calc(var(--crest-size, 24px) * .46);
    font-weight: 800;
    line-height: 1;
    transform: translateY(-6%);
}

html[data-theme="light"] .matches-page .fx-crest:is(.is-empty, .is-broken)::before,
html[data-visual-theme="light"] .matches-page .fx-crest:is(.is-empty, .is-broken)::before {
    background: hsl(var(--crest-h, 210) 40% 70%);
}

html[data-theme="light"] .matches-page .fx-crest:is(.is-empty, .is-broken)::after,
html[data-visual-theme="light"] .matches-page .fx-crest:is(.is-empty, .is-broken)::after {
    color: var(--at-text-1);
}

.fx-crest.is-broken img {
    display: none;
}

.fx-cards {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 2px;
    color: var(--fx-text-2);
    font-size: 11px;
    font-weight: 700;
}

.fx-cards .ico {
    width: 12px;
    height: 14px;
}

.fx-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fx-goals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 84px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--fx-score-bg);
    color: var(--fx-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background-color .3s ease, color .3s ease;
}

.fx-goal {
    min-width: 14px;
    font-weight: inherit;
    text-align: center;
}

.fx-score-sep {
    width: 12px;
    color: var(--at-text-4);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.fx-score.is-empty .fx-goals {
    background: transparent;
}

.fx-row.is-live .fx-goals,
.fx-row.is-break .fx-goals {
    background: var(--fx-live-soft);
    color: var(--fx-live);
}

.fx-row.is-home-win .fx-goal-away,
.fx-row.is-away-win .fx-goal-home {
    color: var(--fx-muted);
}

.fx-row.is-goal .fx-goals,
.fx-row.is-goal .fx-goal {
    background: var(--at-accent-fill);
    color: #ffffff;
}

.fx-row.is-goal .fx-goals {
    animation: fx-goal-flash .6s var(--at-ease-out) 2;
}

.fx-note {
    display: inline-flex;
    gap: 3px;
    color: var(--fx-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fx-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.fx-meta:empty {
    display: none;
}

.fx-tv,
.fx-comp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.fx-tv .ico {
    width: 14px;
    height: 14px;
    color: var(--fx-muted);
}

.fx-tv-text {
    display: flex;
    min-width: 0;
    line-height: 1.3;
}

.fx-tv-channel {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-tv-voice {
    display: none;
}

.fx-comp-tag .fx-group-logo {
    width: 20px;
    height: 20px;
    padding: 2px;
    border-radius: 5px;
}

.fx-comp-tag .fx-group-logo img {
    width: 16px;
    height: 16px;
}

.fx-follow {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fx-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.fx-follow:hover {
    background: var(--fx-hover);
    color: var(--fx-text);
}

.fx-follow[aria-pressed="true"] {
    color: var(--fx-star);
}

.fx-follow[aria-pressed="true"] .ico {
    fill: currentColor;
}

.fx-row.is-skeleton .fx-link {
    pointer-events: none;
}

.fx-sk-status {
    width: 44px;
    height: 14px;
}

.fx-sk-team {
    width: 70%;
    height: 14px;
    justify-self: center;
}

.fx-sk-score {
    width: 56px;
    height: 28px;
    justify-self: center;
}

.fx-sk-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.fx-sk-title {
    width: 160px;
    height: 14px;
}

.fx-rest {
    margin-top: 16px;
}

.fx-rest-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px dashed var(--fx-line-strong);
    border-radius: 12px;
    background: transparent;
    color: var(--fx-text);
    font: 700 14px/1.2 Cairo, sans-serif;
    text-align: start;
    cursor: pointer;
}

.fx-rest-toggle:hover {
    border-style: solid;
    background: var(--fx-hover);
}

.fx-rest-toggle > span:first-child {
    flex: 1;
}

.fx-rest-meta {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

.fx-rest-toggle .ico {
    color: var(--fx-muted);
    transform: rotate(90deg);
    transition: transform .2s ease;
}

.fx-rest.is-open .fx-rest-toggle .ico {
    transform: none;
}

.fx-rest-list[hidden] {
    display: none;
}

.hub-nav,
.hub-side {
    position: sticky;
    top: calc(var(--hub-header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hub-nav {
    max-height: calc(100vh - var(--hub-header-h) - 32px);
}

.hub-nav-sheet-head {
    display: none;
}

.hub-nav:empty,
.hub-side:empty {
    display: none;
}

.hub-panel {
    overflow: hidden;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
}

.hub-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 1px solid var(--fx-line);
}

.matches-page .hub-panel-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.hub-panel-head a {
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.hub-panel-head a:hover {
    color: var(--fx-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hub-nav {
    overflow-y: auto;
    scrollbar-width: none;
}

.hub-nav-panel {
    display: flex;
    flex: none;
    flex-direction: column;
}

.hub-nav-panel .hub-nav-list {
    max-height: 240px;
}

.hub-nav-panel.is-grow {
    flex: 1 1 auto;
    min-height: 220px;
}

.hub-nav-panel.is-grow .hub-nav-list {
    flex: 1;
    max-height: none;
}

.hub-nav-filter {
    padding: 8px 8px 0;
}

.matches-page .hub-nav-filter input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    font: 600 12px Cairo, sans-serif;
}

.hub-nav-list {
    min-height: 0;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.hub-nav-panel.is-grow .hub-nav-list {
    padding-bottom: 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}

.hub-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text-2);
    font: 600 13px/1.3 Cairo, sans-serif;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.hub-nav-item:hover {
    background: var(--fx-hover);
    color: var(--fx-text);
}

.hub-nav-item .fx-group-logo {
    width: 24px;
    height: 24px;
    padding: 3px;
    border-radius: 6px;
}

.hub-nav-item .fx-group-logo img {
    width: 18px;
    height: 18px;
}

.hub-nav-item .fx-crest {
    width: 22px;
    height: 22px;
}

.hub-nav-label {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

.hub-nav-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    unicode-bidi: plaintext;
}

.hub-nav-country {
    flex: none;
    color: var(--fx-muted);
    font-size: 12px;
}

.hub-nav-country::before {
    content: "· ";
}

.hub-nav-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hub-nav-note {
    color: var(--fx-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.hub-nav-empty {
    padding: 12px 14px;
    color: var(--fx-muted);
    font-size: 12px;
    line-height: 1.7;
}

.hub-featured-body {
    display: block;
    padding: 16px 14px 14px;
    color: var(--fx-text);
    text-decoration: none;
}

.hub-featured-body:hover {
    background: var(--fx-hover);
}

.hub-featured-comp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
}

.hub-featured-comp img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hub-featured-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.hub-featured-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.hub-featured-team .fx-crest,
.hub-featured-team .fx-crest img {
    --crest-size: 44px;
    width: 44px;
    height: 44px;
}

.hub-featured-team > span:last-child {
    display: -webkit-box;
    max-inline-size: 12ch;
    overflow: hidden;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hub-featured-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 88px;
    padding-top: 4px;
}

.hub-featured-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hub-featured-score .fx-score-sep {
    font-size: 20px;
}

.hub-featured-time {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.hub-featured-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hub-featured-status.is-live {
    color: var(--fx-live);
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.hub-table th {
    height: 32px;
    padding: 0 6px;
    color: var(--fx-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.hub-table td {
    height: 36px;
    padding: 0 6px;
    border-top: 1px solid var(--fx-line);
    color: var(--fx-text-2);
    font-weight: 600;
    text-align: center;
}

html[data-theme="light"] .matches-page .hub-table td,
html[data-visual-theme="light"] .matches-page .hub-table td {
    border-color: var(--fx-line) !important;
    background: transparent !important;
    color: var(--fx-text-2) !important;
}

.hub-table th:first-child,
.hub-table td:first-child {
    width: 28px;
    padding-inline-start: 14px;
}

.hub-table th:nth-child(2),
.hub-table td:nth-child(2) {
    text-align: start;
}

.hub-table td:last-child {
    padding-inline-end: 14px;
    color: var(--fx-text);
    font-weight: 800;
}

html[data-theme="light"] .matches-page .hub-table td:last-child,
html[data-visual-theme="light"] .matches-page .hub-table td:last-child {
    color: var(--fx-text) !important;
}

.hub-table-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 150px;
    color: var(--fx-text);
}

.hub-table-team .fx-crest,
.hub-table-team .fx-crest img {
    --crest-size: 18px;
    width: 18px;
    height: 18px;
}

.hub-table-team span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hub-news {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.hub-news a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    color: var(--fx-text);
    text-decoration: none;
}

.hub-news a:hover {
    background: var(--fx-hover);
}

.hub-news-thumb {
    width: 64px;
    height: 44px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--fx-score-bg);
}

.hub-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-news-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hub-news-time {
    display: block;
    margin-top: 2px;
    color: var(--fx-muted);
    font-size: 11px;
    font-weight: 600;
}

.hub-panel-loading {
    padding: 14px;
}

.hub-panel-loading .hub-shimmer {
    height: 12px;
    margin-bottom: 10px;
}

.hub-panel-loading .hub-shimmer:last-child {
    width: 60%;
    margin-bottom: 0;
}

@keyframes fx-pulse {
    0% { opacity: .6; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.6); }
}

@keyframes fx-goal-flash {
    50% { filter: brightness(1.35); }
}

@keyframes hub-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes hub-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-live-dot::after,
    .hub-shimmer,
    .fx-row.is-goal .fx-goals,
    .hub-refresh.is-busy .ico {
        animation: none;
    }

    .hub-day,
    .fx-link,
    .fx-goals,
    .fx-toggle .ico,
    .fx-rest-toggle .ico {
        transition: none;
    }
}

.hub-list {
    container: fixture-list / inline-size;
}

.matches-page .hub-nav-sheet-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.hub-nav-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text-2);
    cursor: pointer;
}

.hub-nav-backdrop[hidden] {
    display: none;
}

html.hub-sheet-open {
    overflow: hidden;
}

@container fixture-list (max-width: 640px) {
    .fx-group-head {
        gap: 10px;
        padding-inline-start: 10px;
    }

    .matches-page .fx-group-name {
        font-size: 14px;
    }

    .fx-link {
        grid-template-columns: 52px minmax(0, 1fr) 28px;
        grid-template-areas:
            "status home home-goals"
            "status away away-goals";
        row-gap: 6px;
        column-gap: 10px;
        min-height: 64px;
        padding: 10px 12px;
        padding-inline-end: 48px;
    }

    .fx-status {
        grid-area: status;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
    }

    .fx-row.has-sub .fx-status {
        grid-area: status;
    }

    .fx-status.is-live {
        flex-direction: row;
        align-items: center;
    }

    .fx-home {
        grid-area: home;
        flex-direction: row;
    }

    .fx-away {
        grid-area: away;
    }

    .fx-team {
        font-size: 15px;
    }

    .fx-score,
    .fx-goals,
    .fx-score.is-empty {
        display: contents;
    }

    .fx-link .fx-score-sep {
        display: none;
    }

    .fx-goal {
        min-width: 28px;
        padding: 1px 0;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.3;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .fx-goal-home {
        grid-area: home-goals;
    }

    .fx-goal-away {
        grid-area: away-goals;
    }

    .fx-row.is-live .fx-goal,
    .fx-row.is-break .fx-goal {
        color: var(--fx-live);
    }

    .fx-note {
        grid-row: 3;
        grid-column: 2 / -1;
        justify-self: start;
    }

    .fx-meta,
    .fx-row.has-sub .fx-meta {
        grid-row: 3;
        grid-column: 2 / -1;
        flex-direction: row;
        align-items: center;
        justify-self: end;
    }

    .fx-sub {
        grid-row: 4;
        grid-column: 2 / -1;
        justify-self: start;
    }

    .fx-row.has-sub .fx-comp-tag {
        display: none;
    }

    .fx-follow {
        inset-inline-end: 4px;
    }
}

@container fixture-list (max-width: 360px) {
    .fx-link {
        grid-template-columns: 48px minmax(0, 1fr) 28px;
        column-gap: 8px;
    }

    .fx-team {
        font-size: 14px;
    }
}

@media (max-width: 1180px) {
    .hub-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hub-nav {
        display: none;
    }

    .hub-nav-open {
        display: inline-flex;
    }

    .hub.is-nav-open .hub-nav {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 10040;
        display: flex;
        width: min(360px, 88vw);
        max-height: none;
        padding: 12px;
        overflow-y: auto;
        background: var(--at-bg);
        box-shadow: var(--at-shadow-3);
    }

    .hub.is-nav-open .hub-nav-sheet-head {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 4px;
    }

    .hub-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10035;
        background: rgba(3, 7, 15, .6);
    }
}

@media (max-width: 1019px) {
    .hub-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hub-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        align-items: start;
    }
}

@media (max-width: 767px) {
    .matches-page {
        --hub-header-h: 90px;
    }

    .hub {
        width: 100%;
        padding: 16px 0 32px;
    }

    .hub-main {
        padding: 0 16px;
    }

    .hub-side {
        margin: 0 16px;
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-head {
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .hub-title {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 10px;
    }

    .matches-page .hub-title h1 {
        font-size: 22px;
    }

    .matches-page .hub-date {
        font-size: 13px;
    }

    .matches-page .hub-updated {
        display: none;
    }

    .hub-controls {
        margin: 0 -16px 12px;
        padding: 8px 16px;
    }
}

@container hub-main (max-width: 560px) {
    .hub-strip {
        padding: 3px;
    }

    .hub-days {
        scroll-snap-type: x mandatory;
    }

    .hub-days li {
        flex: 0 0 20%;
        scroll-snap-align: start;
    }

    .hub-day {
        min-width: 0;
        height: 44px;
        padding: 0 2px;
    }

    .hub-day-month {
        display: none;
    }

    .hub-strip-step,
    .hub-calendar {
        width: 30px;
    }

    .hub-strip-step::after,
    .hub-calendar::after {
        content: "";
        position: absolute;
        inset: 0 -5px;
    }

    .hub-today-link {
        padding: 0 8px;
    }

    .hub-filters {
        gap: 8px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px);
        mask-image: linear-gradient(to right, transparent 0, #000 24px);
    }

    .hub-filter {
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .hub-tool-button {
        display: inline-grid;
    }

    .hub-toolbar {
        display: none;
    }

    .hub.is-search-open .hub-toolbar,
    .hub.is-more-open .hub-toolbar {
        display: block;
    }

    .hub-tools {
        flex-wrap: wrap;
    }

    .hub-search {
        flex-basis: 100%;
    }

    .hub.is-more-open .hub-search,
    .hub.is-search-open .hub-view,
    .hub.is-search-open .hub-nav-open {
        display: none;
    }

    .hub-view {
        flex: 1;
    }

    .hub-view button {
        flex: 1;
    }
}

.hub-live {
    margin-bottom: 28px;
}

.hub-live:empty {
    display: none;
}

.lv-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.matches-page .lv-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--fx-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.lv-count {
    color: var(--fx-muted);
    font-size: 13px;
}

.lv-all {
    height: 36px;
    margin-inline-start: auto;
    padding: 0 16px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--fx-text-2);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lv-all:hover {
    color: var(--fx-text);
    background: var(--fx-surface-2);
}

.lv-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.lv-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lv-item {
    min-width: 0;
}

.lv-card {
    --lv-home-c: var(--lv-home, var(--fx-live));
    --lv-away-c: var(--lv-away, var(--fx-live));
    --lv-goal: var(--fx-live);
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 12px;
    height: 100%;
    padding: 16px 14px 14px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--fx-line);
    border-radius: 18px;
    background:
        radial-gradient(120% 70% at 85% 0%, color-mix(in srgb, var(--lv-home-c) 9%, transparent), transparent 60%),
        radial-gradient(120% 70% at 15% 0%, color-mix(in srgb, var(--lv-away-c) 9%, transparent), transparent 60%),
        var(--at-surface-1);
    box-shadow: var(--at-shadow-2);
    color: inherit;
    text-decoration: none;
    transition: transform var(--at-dur-2) var(--at-ease-out), border-color var(--at-dur-2) ease;
}

.lv-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(to left, var(--lv-home-c) 0 50%, var(--lv-away-c) 50% 100%);
}

.lv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid color-mix(in srgb, var(--lv-home-c) 55%, var(--lv-away-c));
    border-radius: inherit;
    opacity: .28;
    pointer-events: none;
    animation: lv-breathe 3.6s ease-in-out infinite alternate;
}

.lv-card:hover {
    transform: translateY(-2px);
    border-color: var(--fx-line-strong);
}

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

.lv-comp {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 700;
}

.lv-comp .fx-group-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.lv-comp-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-round {
    flex: none;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 400;
}

.lv-round::before {
    content: "·";
    margin-inline-end: 6px;
}

.lv-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.lv-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.lv-team .fx-crest {
    --crest-size: 56px;
    width: 56px;
    height: 56px;
}

.lv-team .fx-crest img {
    width: 56px;
    height: 56px;
}

.lv-name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: var(--fx-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lv-team .fx-cards {
    margin-top: -4px;
}

.lv-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 108px;
}

.lv-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
}

.lv-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lv-ring circle {
    fill: none;
    stroke-width: 3.5;
}

.lv-ring-track {
    stroke: var(--fx-line-strong);
}

.lv-ring-fill {
    stroke: var(--fx-live);
    stroke-linecap: round;
    stroke-dasharray: 100;
}

.lv-ring-label {
    position: relative;
    color: var(--fx-live);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lv-ring.is-break .lv-ring-fill {
    stroke: var(--at-warning);
    stroke-dasharray: 3 2;
}

.lv-ring.is-break .lv-ring-label {
    color: var(--at-warning);
    font-size: 10px;
}

.lv-ring.is-extra .lv-ring-fill {
    stroke: var(--at-info);
}

.lv-ring.is-extra .lv-ring-label {
    color: var(--at-info);
}

.lv-score {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.lv-digit {
    display: block;
    height: 44px;
    overflow: hidden;
    color: var(--fx-text);
    font-size: 40px;
    font-weight: 800;
    line-height: 44px;
    font-variant-numeric: tabular-nums;
}

.lv-digit > span {
    display: block;
}

.lv-digit.is-rolling > span {
    animation: lv-roll 520ms var(--at-ease-out);
}

.lv-sep {
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--fx-text-4, var(--fx-muted));
}

.lv-note {
    color: var(--fx-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.lv-note bdi + span {
    margin: 0 3px;
}

.lv-events {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 16px;
    align-content: start;
}

.lv-scorers {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lv-scorers li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    color: var(--fx-text-2);
    font-size: 12px;
    line-height: 1.5;
}

.lv-scorers li span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-scorers li bdi {
    flex: none;
    color: var(--fx-muted);
    font-variant-numeric: tabular-nums;
}

.lv-scorers .ico {
    width: 12px;
    height: 12px;
    color: var(--fx-muted);
}

.lv-scorers li.is-red .ico {
    color: var(--at-card-red);
}

.lv-scorers-more {
    color: var(--fx-muted);
}

.lv-foot {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.lv-latest {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--fx-surface-2);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 700;
}

.lv-latest > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-latest bdi {
    flex: none;
    color: var(--fx-muted);
    font-variant-numeric: tabular-nums;
}

.lv-latest .ico {
    width: 14px;
    height: 14px;
}

.lv-latest:is(.is-goal, .is-penaltyGoal, .is-ownGoal) {
    background: var(--fx-live-soft);
    color: var(--fx-text);
}

.lv-latest:is(.is-goal, .is-penaltyGoal, .is-ownGoal) .ico {
    color: var(--fx-live);
}

.lv-latest.is-red .ico {
    color: var(--at-card-red);
}

.lv-latest.is-var {
    background: var(--at-warning-soft);
}

.lv-latest.is-empty {
    background: transparent;
    color: var(--fx-muted);
    font-weight: 400;
}

.lv-latest.is-new {
    animation: lv-chip-in 520ms var(--at-ease-out) both;
}

.lv-burst {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 2px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--lv-goal) 58%, var(--at-surface-1)) 0, color-mix(in srgb, var(--lv-goal) 22%, var(--at-surface-1)) 45%, color-mix(in srgb, var(--at-surface-1) 96%, transparent) 78%);
    color: #ffffff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.lv-burst::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border: 3px solid var(--lv-goal);
    border-radius: 50%;
    opacity: 0;
}

.lv-burst b {
    position: relative;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.lv-burst span {
    position: relative;
    color: var(--at-text-on-ink, #eef3fa);
    font-size: 14px;
    font-weight: 700;
}

.lv-card.is-goal-home {
    --lv-goal: var(--lv-home-c);
}

.lv-card.is-goal-away {
    --lv-goal: var(--lv-away-c);
}

.lv-card.is-celebrating {
    border-color: color-mix(in srgb, var(--lv-goal) 70%, transparent);
}

.lv-card.is-celebrating .lv-burst {
    animation: lv-burst 2600ms var(--at-ease-out) both;
}

.lv-card.is-celebrating .lv-burst::before {
    animation: lv-pulse 1100ms var(--at-ease-out) 2;
}

.lv-more-item {
    display: flex;
}

.lv-more {
    display: grid;
    flex: 1;
    place-content: center;
    gap: 4px;
    min-height: 120px;
    border: 1px dashed var(--fx-line-strong);
    border-radius: 18px;
    background: transparent;
    color: var(--fx-text-2);
    font: inherit;
    cursor: pointer;
}

.lv-more b {
    color: var(--fx-text);
    font-size: 28px;
    font-weight: 800;
}

.lv-feed {
    padding: 14px 12px 8px;
    border: 1px solid var(--fx-line);
    border-radius: 18px;
    background: var(--at-surface-1);
}

.matches-page .lv-feed h3 {
    margin: 0 4px 8px;
    color: var(--fx-text);
    font-size: 16px;
    font-weight: 800;
}

.lv-feed-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lv-event {
    position: relative;
}

.lv-event a {
    position: relative;
    display: grid;
    grid-template-columns: 44px 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.lv-event a:hover {
    background: var(--fx-surface-2);
}

.lv-event a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--fx-live-soft);
    opacity: 0;
    pointer-events: none;
}

.lv-event-minute {
    display: grid;
    place-items: center;
    height: 26px;
    border-radius: 999px;
    background: var(--fx-surface-2);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lv-event-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fx-surface-2);
    color: var(--fx-text-2);
}

.lv-event-icon .ico {
    width: 16px;
    height: 16px;
}

.lv-event:is(.is-goal, .is-penaltyGoal, .is-ownGoal) .lv-event-icon {
    background: var(--fx-text);
    color: var(--at-surface-1);
}

.lv-event.is-red .lv-event-icon {
    background: color-mix(in srgb, var(--at-card-red) 16%, transparent);
    color: var(--at-card-red);
}

.lv-event.is-var .lv-event-icon {
    background: var(--at-warning-soft);
    color: var(--at-warning);
}

.lv-event-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.lv-event-title {
    overflow: hidden;
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-event-match {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--fx-muted);
    font-size: 12px;
}

.lv-event-match span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lv-event-match .fx-crest {
    --crest-size: 16px;
    width: 16px;
    height: 16px;
}

.lv-event.is-new {
    animation: lv-feed-in 560ms var(--at-ease-out) both;
}

.lv-event.is-new a::after {
    animation: lv-feed-glow 2400ms ease-out both;
}

.lv-feed-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 4px 12px;
    color: var(--fx-muted);
    font-size: 13px;
    line-height: 1.7;
}

.hub-live.is-entering .lv-item,
.hub-live.is-entering .lv-feed {
    animation: hub-rise 600ms var(--at-ease-out) both;
}

.hub-live.is-entering .lv-item:nth-child(2) { animation-delay: 70ms; }
.hub-live.is-entering .lv-item:nth-child(3) { animation-delay: 140ms; }
.hub-live.is-entering .lv-item:nth-child(4) { animation-delay: 210ms; }
.hub-live.is-entering .lv-item:nth-child(5) { animation-delay: 280ms; }
.hub-live.is-entering .lv-item:nth-child(6) { animation-delay: 350ms; }
.hub-live.is-entering .lv-item:nth-child(7) { animation-delay: 420ms; }
.hub-live.is-entering .lv-feed { animation-delay: 240ms; }

.hub-live.is-entering .lv-ring-fill {
    animation: lv-ring-draw 1100ms var(--at-ease-out) 200ms both;
}

.hub-list.is-entering .fx-group,
.hub-list.is-entering .hub-empty {
    animation: hub-rise 560ms var(--at-ease-out) both;
}

.hub-list.is-entering .fx-group:nth-child(2) { animation-delay: 80ms; }
.hub-list.is-entering .fx-group:nth-child(3) { animation-delay: 160ms; }
.hub-list.is-entering .fx-group:nth-child(4) { animation-delay: 240ms; }
.hub-list.is-entering .fx-group:nth-child(n + 5) { animation-delay: 300ms; }

@keyframes hub-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes lv-breathe {
    from { opacity: .18; }
    to { opacity: .62; }
}

@keyframes lv-roll {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes lv-ring-draw {
    from { stroke-dashoffset: 100; }
}

@keyframes lv-chip-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes lv-feed-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

@keyframes lv-feed-glow {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes lv-burst {
    0% { opacity: 0; }
    10% { opacity: 1; }
    82% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes lv-pulse {
    0% { opacity: .9; transform: scale(.25); }
    100% { opacity: 0; transform: scale(2.4); }
}

html[data-theme="light"] .lv-burst b,
html[data-visual-theme="light"] .lv-burst b {
    color: var(--at-text-1);
    text-shadow: none;
}

html[data-theme="light"] .lv-burst span,
html[data-visual-theme="light"] .lv-burst span {
    color: var(--at-text-2);
}

@media (max-width: 1180px) {
    .lv-body {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .lv-feed-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        column-gap: 12px;
    }
}

@media (max-width: 767px) {
    .hub-head,
    .hub-live {
        padding: 0 16px;
    }

    .hub-live {
        margin-bottom: 20px;
    }

    .matches-page .lv-head h2 {
        font-size: 19px;
    }

    .lv-all {
        height: 40px;
    }

    .lv-cards {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 2px 16px 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }

    .lv-cards::-webkit-scrollbar {
        display: none;
    }

    .lv-item {
        flex: 0 0 min(84%, 330px);
        scroll-snap-align: start;
    }

    .lv-team .fx-crest,
    .lv-team .fx-crest img {
        width: 48px;
        height: 48px;
    }

    .lv-digit {
        height: 40px;
        font-size: 36px;
        line-height: 40px;
    }

    .lv-feed-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .lv-event:nth-child(n + 6) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-card,
    .lv-card::after,
    .lv-digit.is-rolling > span,
    .lv-latest.is-new,
    .lv-event.is-new,
    .lv-event.is-new a::after,
    .lv-card.is-celebrating .lv-burst::before,
    .hub-live.is-entering .lv-item,
    .hub-live.is-entering .lv-feed,
    .hub-live.is-entering .lv-ring-fill,
    .hub-list.is-entering .fx-group,
    .hub-list.is-entering .hub-empty {
        animation: none;
        transition: none;
    }

    .lv-card.is-celebrating .lv-burst {
        animation: none;
        opacity: 1;
    }

    .lv-card:hover {
        transform: none;
    }
}