.fbm-mc {
    --fbm-color-text: #172033;
    --fbm-color-muted: #687386;
    --fbm-color-border-subtle: #e5e8ee;
    --fbm-color-surface: #ffffff;
    --fbm-color-surface-muted: #f5f7fa;
    --fbm-color-surface-module: #ffffff;
    --fbm-color-live: #d3132a;
    --fbm-color-focus: #155eef;
    --fbm-color-accent: #14213d;
    --fbm-space-1: 0.25rem;
    --fbm-space-2: 0.5rem;
    --fbm-space-3: 0.75rem;
    --fbm-space-4: 1rem;
    --fbm-space-5: 1.5rem;
    --fbm-space-6: 2rem;
    --fbm-radius-control: 0.45rem;
    --fbm-radius-module: 0.75rem;
    --fbm-module-header-height: 3.6rem;
    --fbm-match-height: 4.25rem;
    --fbm-match-line-height: 1.95rem;
    --fbm-match-action-width: 2.65rem;
    --fbm-match-state-width: 4.35rem;
    --fbm-match-crest-size: 1.9rem;
    --fbm-match-team-size: 0.96rem;
    --fbm-match-score-size: 1.12rem;
    --fbm-match-gap: 0.55rem;
    width: 100%;
    color: var(--fbm-color-text);
    background: var(--fbm-color-surface);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
    container-type: inline-size;
}

.fbm-mc,
.fbm-mc * {
    box-sizing: border-box;
}

.fbm-mc button,
.fbm-mc input {
    color: inherit;
    font: inherit;
}

.fbm-mc button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fbm-mc button:disabled {
    cursor: default;
    opacity: 0.35;
}

.fbm-mc button:focus-visible,
.fbm-mc input:focus-visible,
.fbm-mc [tabindex]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--fbm-color-focus) 55%, transparent);
    outline-offset: 2px;
}

.fbm-mc__boot,
.fbm-mc__state {
    display: flex;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
    gap: var(--fbm-space-3);
    color: var(--fbm-color-muted);
    text-align: center;
}

.fbm-mc__app {
    width: 100%;
    min-width: 0;
}

.fbm-mc__header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--fbm-space-4);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__tabs {
    display: flex;
    min-width: 0;
    gap: var(--fbm-space-5);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.fbm-mc__tab-menu {
    position: relative;
    display: none;
    min-width: 0;
    flex: 1 1 auto;
}

.fbm-mc__tab-menu-toggle {
    display: flex;
    width: 100%;
    min-height: 3rem;
    min-width: 0;
    align-items: center;
    gap: var(--fbm-space-2);
    padding: var(--fbm-space-2) 0;
    color: var(--fbm-color-text);
    font-weight: 750;
    text-align: left;
}

.fbm-mc__tab-menu-toggle > svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.fbm-mc__tab-menu-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__tab-menu-current .fbm-mc__team-tab-label,
.fbm-mc__tab-menu-current .fbm-mc__competition-tab-label {
    max-width: 100%;
}

.fbm-mc__tab-menu-current .fbm-mc__team-tab-label > span:last-child,
.fbm-mc__tab-menu-current .fbm-mc__competition-tab-label > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__tab-menu-chevron {
    margin-left: auto;
    color: var(--fbm-color-muted);
    font-size: 0.62rem;
}

.fbm-mc__tab-menu-list {
    position: absolute;
    z-index: 50;
    top: calc(100% + var(--fbm-space-1));
    left: 0;
    display: grid;
    width: min(24rem, calc(100cqi - 1rem));
    max-height: min(70vh, 30rem);
    padding: var(--fbm-space-1);
    overflow-y: auto;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
    box-shadow: 0 0.75rem 2rem rgba(23, 32, 51, 0.16);
}

.fbm-mc__tab-menu-item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: calc(var(--fbm-radius-control) - 0.12rem);
}

.fbm-mc__tab-menu-item:hover,
.fbm-mc__tab-menu-item.is-active {
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__tab-menu-item.is-active {
    box-shadow: inset 3px 0 0 var(--fbm-color-accent);
}

.fbm-mc__tab-menu-option {
    display: flex;
    min-width: 0;
    min-height: 2.8rem;
    align-items: center;
    padding: var(--fbm-space-2) var(--fbm-space-3);
    overflow: hidden;
    font-weight: 700;
    text-align: left;
}

.fbm-mc__tab-menu-option > span,
.fbm-mc__tab-menu-option .fbm-mc__team-tab-label > span:last-child,
.fbm-mc__tab-menu-option .fbm-mc__competition-tab-label > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__tab-menu-close {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    color: var(--fbm-color-muted);
    font-size: 1.1rem;
}

.fbm-mc__tab-menu-close:hover {
    background: var(--fbm-color-border-subtle);
    color: var(--fbm-color-text);
}

.fbm-mc__tab-shell {
    position: relative;
    display: inline-flex;
    max-width: 12rem;
    flex: 0 0 auto;
    align-items: center;
}

.fbm-mc__tab-shell .fbm-mc__tab {
    max-width: 100%;
    padding-right: 1.55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__tab-shell--team {
    max-width: none;
}

.fbm-mc__tab-shell--competition {
    max-width: none;
}

.fbm-mc__tab-shell--team .fbm-mc__tab,
.fbm-mc__tab-shell--competition .fbm-mc__tab {
    overflow: visible;
    text-overflow: clip;
}

.fbm-mc__team-tab-label,
.fbm-mc__competition-tab-label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.45em;
    line-height: 1;
}

.fbm-mc__team-tab-badge {
    display: inline-flex;
    width: 2em;
    height: 2em;
    flex: 0 0 2em;
    align-items: center;
    justify-content: center;
}

.fbm-mc__team-tab-badge img,
.fbm-mc__team-detail-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__tab-close {
    position: absolute;
    z-index: 1;
    right: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    color: var(--fbm-color-muted);
    font-size: 1.05rem;
}

.fbm-mc__tab-close:hover {
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-text);
}

.fbm-mc__account-button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: var(--fbm-space-2);
    padding: 0 var(--fbm-space-2);
    color: var(--fbm-color-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.fbm-mc__account-button:hover,
.fbm-mc__account-button.is-authenticated {
    color: var(--fbm-color-text);
}

.fbm-mc__account-icon {
    color: #aab2c0;
    font-size: 0.68rem;
}

.fbm-mc__account-button.is-authenticated .fbm-mc__account-icon {
    color: #16803d;
}

.fbm-mc__account-avatar {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.fbm-mc__account-panel {
    margin-top: var(--fbm-space-3);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.fbm-mc__account-settings {
    margin-top: var(--fbm-space-3);
}

.fbm-mc__account-panel-head,
.fbm-mc__account-summary,
.fbm-mc__auth-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fbm-space-3);
}

.fbm-mc__account-panel-head h2,
.fbm-mc__account-summary p,
.fbm-mc__auth-intro,
.fbm-mc__auth-notice {
    margin: 0;
}

.fbm-mc__account-panel-head h2 {
    font-size: 1rem;
}

.fbm-mc__account-panel-head > button {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--fbm-color-muted);
    font-size: 1.3rem;
}

.fbm-mc__account-subtabs {
    display: flex;
    gap: var(--fbm-space-2);
    margin-top: var(--fbm-space-4);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc .fbm-mc__account-subtabs > button {
    position: relative;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fbm-color-muted);
    cursor: pointer;
    font-weight: 750;
}

.fbm-mc .fbm-mc__account-subtabs > button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    content: '';
}

.fbm-mc .fbm-mc__account-subtabs > button:hover,
.fbm-mc .fbm-mc__account-subtabs > button:focus-visible,
.fbm-mc .fbm-mc__account-subtabs > button.is-active {
    color: var(--fbm-color-text);
}

.fbm-mc .fbm-mc__account-subtabs > button.is-active::after {
    background: var(--fbm-color-accent);
}

.fbm-mc__account-space {
    display: grid;
    gap: var(--fbm-space-4);
    margin-top: var(--fbm-space-3);
}

.fbm-mc__account-identity p,
.fbm-mc__account-favorites h3,
.fbm-mc__account-favorites-empty,
.fbm-mc__account-favorites-loading {
    margin: 0;
}

.fbm-mc__account-identity {
    padding-bottom: var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    color: var(--fbm-color-muted);
    font-size: 0.88rem;
}

.fbm-mc__account-identity b {
    color: var(--fbm-color-text);
}

.fbm-mc__account-details {
    padding-bottom: var(--fbm-space-4);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__account-details h3 {
    margin: 0 0 var(--fbm-space-3);
    font-size: 0.95rem;
}

.fbm-mc__account-management {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 36rem);
    align-items: start;
    gap: var(--fbm-space-5);
}

.fbm-mc__account-detail-nav {
    display: grid;
    gap: var(--fbm-space-1);
    padding-right: var(--fbm-space-4);
    border-right: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc .fbm-mc__account-detail-nav > button {
    width: 100%;
    min-height: 2.65rem;
    justify-content: flex-start;
    padding: 0 var(--fbm-space-3);
    border-radius: var(--fbm-radius-control);
    color: var(--fbm-color-muted);
    font-size: 0.84rem;
    font-weight: 750;
    text-align: left;
}

.fbm-mc .fbm-mc__account-detail-nav > button:hover,
.fbm-mc .fbm-mc__account-detail-nav > button:focus-visible,
.fbm-mc .fbm-mc__account-detail-nav > button.is-active {
    background: var(--fbm-color-surface);
    color: var(--fbm-color-text);
}

.fbm-mc .fbm-mc__account-detail-nav > button.is-active {
    box-shadow: inset 3px 0 0 var(--fbm-color-focus);
}

.fbm-mc__account-detail-content,
.fbm-mc__account-management > .fbm-mc__account-details {
    min-width: 0;
}

.fbm-mc__avatar-row {
    display: flex;
    align-items: center;
    gap: var(--fbm-space-4);
}

.fbm-mc__avatar-preview {
    display: grid;
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: 50%;
    background: var(--fbm-color-surface);
    color: var(--fbm-color-muted);
    font-size: 1.1rem;
    font-weight: 800;
}

.fbm-mc__avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbm-mc__avatar-choose {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    padding: 0 var(--fbm-space-3);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 750;
}

.fbm-mc__avatar-choose input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.fbm-mc__avatar-cropper {
    display: grid;
    max-width: 32rem;
    gap: var(--fbm-space-3);
    margin-top: var(--fbm-space-4);
}

.fbm-mc__avatar-cropper canvas {
    width: min(100%, 24rem);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: #eef1f5;
}

.fbm-mc__avatar-cropper label {
    display: grid;
    gap: var(--fbm-space-1);
    color: var(--fbm-color-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.fbm-mc__avatar-cropper input[type="range"] {
    width: 100%;
}

.fbm-mc__avatar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--fbm-space-3);
}

.fbm-mc__account-support {
    margin-top: var(--fbm-space-4);
    color: var(--fbm-color-muted);
    font-size: 0.84rem;
}

.fbm-mc__account-support summary {
    width: fit-content;
    cursor: pointer;
    color: var(--fbm-color-focus);
    font-weight: 700;
}

.fbm-mc__account-security-note {
    max-width: 42rem;
    margin: var(--fbm-space-3) 0 0;
    padding: var(--fbm-space-3);
    border-left: 3px solid #e0a100;
    background: rgba(224, 161, 0, 0.09);
    color: var(--fbm-color-text);
    font-size: 0.82rem;
    line-height: 1.45;
}

.fbm-mc__account-favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fbm-space-4);
}

.fbm-mc__account-favorites {
    min-width: 0;
    padding: var(--fbm-space-3);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
}

.fbm-mc__account-favorites h3 {
    margin-bottom: var(--fbm-space-3);
    font-size: 0.9rem;
}

.fbm-mc__account-favorites ul {
    display: grid;
    gap: var(--fbm-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.fbm-mc__account-favorite {
    display: grid;
    grid-template-columns: 2.25rem 2rem minmax(0, 1fr);
    min-height: 2.75rem;
    align-items: center;
    gap: var(--fbm-space-2);
    padding: 0;
}

.fbm-mc__account-favorite-badge {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fbm-mc__account-favorite-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__account-favorite-badge .fbm-mc__crest-fallback {
    width: 100%;
    height: 100%;
    font-size: 0.64rem;
}

.fbm-mc button.fbm-mc__account-favorite-toggle {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #e0a100;
}

.fbm-mc button.fbm-mc__account-favorite-toggle:hover,
.fbm-mc button.fbm-mc__account-favorite-toggle:focus-visible {
    color: #e0a100;
    opacity: 0.72;
}

.fbm-mc__account-favorite-icon {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fbm-mc button.fbm-mc__account-favorite-name {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: var(--fbm-space-2) 0;
    color: var(--fbm-color-text);
    font-size: 0.86rem;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc button.fbm-mc__account-favorite-name:hover,
.fbm-mc button.fbm-mc__account-favorite-name:focus-visible {
    color: var(--fbm-color-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.fbm-mc__account-favorites-empty,
.fbm-mc__account-favorites-loading {
    color: var(--fbm-color-muted);
    font-size: 0.82rem;
}

.fbm-mc__account-catalog {
    min-width: 0;
    padding-top: var(--fbm-space-5);
    border-top: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__account-catalog h3 {
    margin: 0 0 var(--fbm-space-3);
    font-size: 1rem;
}

.fbm-mc__account-catalog-kind {
    display: inline-flex;
    gap: var(--fbm-space-1);
    padding: var(--fbm-space-1);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc .fbm-mc__account-catalog-kind > button {
    padding: var(--fbm-space-2) var(--fbm-space-3);
    border-radius: calc(var(--fbm-radius-control) - 0.15rem);
    color: var(--fbm-color-muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.fbm-mc .fbm-mc__account-catalog-kind > button.is-active {
    background: var(--fbm-color-surface);
    color: var(--fbm-color-text);
    box-shadow: 0 1px 3px rgba(23, 32, 51, 0.14);
}

.fbm-mc__account-catalog-filters {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) minmax(12rem, 1fr) minmax(14rem, 1.4fr);
    align-items: end;
    gap: var(--fbm-space-3);
    margin-top: var(--fbm-space-4);
}

.fbm-mc__account-catalog-filters label {
    display: grid;
    min-width: 0;
    gap: var(--fbm-space-1);
    color: var(--fbm-color-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.fbm-mc__account-catalog-filters select,
.fbm-mc__account-catalog-filters input {
    width: 100%;
    min-height: 2.65rem;
    padding: var(--fbm-space-2) var(--fbm-space-3);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
    color: var(--fbm-color-text);
    font-size: 0.86rem;
}

.fbm-mc__account-catalog-search:last-child {
    grid-column: -2 / -1;
}

.fbm-mc__account-catalog-filters.is-competitions {
    grid-template-columns: minmax(9rem, 0.8fr) minmax(14rem, 1.4fr);
}

.fbm-mc__account-catalog-filters.is-competitions .fbm-mc__account-catalog-search {
    grid-column: auto;
}

.fbm-mc__account-catalog-count {
    margin: var(--fbm-space-3) 0 var(--fbm-space-2);
    color: var(--fbm-color-muted);
    font-size: 0.78rem;
}

.fbm-mc__account-catalog-list {
    display: grid;
    max-height: 34rem;
    gap: var(--fbm-space-1);
    margin: 0;
    padding: var(--fbm-space-2) 0;
    overflow-y: auto;
    border-top: 1px solid var(--fbm-color-border-subtle);
    list-style: none;
}

.fbm-mc__account-catalog-item {
    display: grid;
    min-height: 3rem;
    grid-template-columns: 2rem 2.25rem minmax(0, 1fr);
    align-items: center;
    gap: var(--fbm-space-2);
}

.fbm-mc button.fbm-mc__account-catalog-toggle {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fbm-color-muted);
}

.fbm-mc button.fbm-mc__account-catalog-toggle:hover,
.fbm-mc button.fbm-mc__account-catalog-toggle:focus-visible {
    color: var(--fbm-color-text);
}

.fbm-mc button.fbm-mc__account-catalog-toggle.is-active {
    color: #e0a100;
}

.fbm-mc__account-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: var(--fbm-space-1);
    border-top: 1px solid var(--fbm-color-border-subtle);
}

@media (max-width: 680px) {
    .fbm-mc__account-favorites-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fbm-mc__account-catalog-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .fbm-mc__account-catalog-search:last-child {
        grid-column: auto;
    }

    .fbm-mc__account-management {
        grid-template-columns: minmax(0, 1fr);
    }

    .fbm-mc__account-detail-nav {
        grid-template-columns: repeat(4, minmax(max-content, 1fr));
        overflow-x: auto;
        padding-right: 0;
        padding-bottom: var(--fbm-space-2);
        border-right: 0;
        border-bottom: 1px solid var(--fbm-color-border-subtle);
    }

    .fbm-mc .fbm-mc__account-detail-nav > button {
        justify-content: center;
        text-align: center;
    }

    .fbm-mc .fbm-mc__account-detail-nav > button.is-active {
        box-shadow: inset 0 -3px 0 var(--fbm-color-focus);
    }

}

.fbm-mc__auth-form {
    display: grid;
    max-width: 36rem;
    gap: var(--fbm-space-3);
    margin-top: var(--fbm-space-3);
}

.fbm-mc__auth-field {
    display: grid;
    gap: var(--fbm-space-1);
    color: var(--fbm-color-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.fbm-mc__auth-field input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0 var(--fbm-space-3);
    border: 1px solid #b7c0d1;
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
}

.fbm-mc__auth-field textarea {
    width: 100%;
    min-height: 7rem;
    padding: var(--fbm-space-3);
    border: 1px solid #b7c0d1;
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
    resize: vertical;
}

.fbm-mc__auth-primary {
    width: fit-content;
    min-height: 2.65rem;
    padding: 0 var(--fbm-space-4);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-accent) !important;
    color: #fff !important;
    font-weight: 750;
}

.fbm-mc__auth-link {
    width: fit-content;
    min-height: 2.4rem;
    color: var(--fbm-color-focus) !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
}

.fbm-mc__auth-notice {
    margin-top: var(--fbm-space-3);
    padding: var(--fbm-space-2) var(--fbm-space-3);
    border-left: 3px solid var(--fbm-color-focus);
    background: var(--fbm-color-surface);
    font-size: 0.84rem;
}

.fbm-mc__tab {
    position: relative;
    min-height: 3rem;
    padding: var(--fbm-space-2) 0;
    color: var(--fbm-color-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.fbm-mc__tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.fbm-mc__tab.is-active {
    color: var(--fbm-color-text);
}

.fbm-mc__tab.is-active::after {
    background: var(--fbm-color-accent);
}

.fbm-mc__tabpanel {
    min-width: 0;
}

.fbm-mc__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--fbm-space-3);
    padding: var(--fbm-space-4) 0;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__filters {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--fbm-space-1);
    overflow-x: auto;
    scrollbar-width: thin;
}

.fbm-mc__filter,
.fbm-mc__view-button,
.fbm-mc__date-label {
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: var(--fbm-radius-control);
    color: var(--fbm-color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.fbm-mc__filter:hover,
.fbm-mc__filter.is-active,
.fbm-mc__view-button:hover,
.fbm-mc__view-button[aria-pressed="true"] {
    color: var(--fbm-color-text);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.fbm-mc__view-options {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem;
    border-radius: var(--fbm-radius-control);
    background: color-mix(in srgb, var(--fbm-color-surface-muted) 60%, transparent);
}

.fbm-mc__view-options .fbm-mc__view-button {
    min-height: 2.2rem;
}

.fbm-mc__view-options .fbm-mc__view-button.is-active {
    color: var(--fbm-color-text);
    background: var(--fbm-color-surface);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--fbm-color-text) 12%, transparent);
}

.fbm-mc__view-mode-icon {
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fbm-mc__date-controls,
.fbm-mc__toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fbm-space-1);
}

.fbm-mc__toolbar-actions {
    justify-content: flex-end;
}

.fbm-mc__icon-button,
.fbm-mc__calendar,
.fbm-mc__favorite,
.fbm-mc__team-favorite,
.fbm-mc__add {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fbm-color-muted);
}

.fbm-mc__icon-button:hover,
.fbm-mc__calendar:hover,
.fbm-mc__add:hover {
    color: var(--fbm-color-text);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__search-icon {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.fbm-mc__calendar {
    position: relative;
    cursor: pointer;
}

.fbm-mc__calendar svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fbm-mc__calendar-picker {
    position: relative;
    display: inline-flex;
}

.fbm-mc__calendar-popover {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.65rem);
    left: 50%;
    width: min(22rem, calc(100vw - 2rem));
    padding: var(--fbm-space-3);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: 0.9rem;
    background: var(--fbm-color-surface);
    box-shadow: 0 1rem 2.6rem rgba(20, 33, 61, 0.18);
    transform: translateX(-50%);
}

.fbm-mc__calendar-head {
    display: grid;
    min-height: 2.8rem;
    grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
    align-items: center;
    margin-bottom: var(--fbm-space-2);
    text-align: center;
}

.fbm-mc__calendar-head button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.fbm-mc__calendar-head button:hover,
.fbm-mc__calendar-day:hover {
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__calendar-head strong {
    font-size: 1rem;
    text-transform: capitalize;
}

.fbm-mc__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.22rem;
}

.fbm-mc__calendar-weekday {
    padding: 0.3rem 0;
    color: var(--fbm-color-muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-align: center;
    text-transform: uppercase;
}

.fbm-mc__calendar-day,
.fbm-mc__calendar-empty {
    display: inline-flex;
    min-width: 0;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.fbm-mc__calendar-day.is-today {
    box-shadow: inset 0 0 0 1px var(--fbm-color-accent);
    font-weight: 800;
}

.fbm-mc__calendar-day.is-selected {
    background: var(--fbm-color-accent) !important;
    color: #fff;
    font-weight: 800;
}

.fbm-mc__calendar-today {
    width: 100%;
    min-height: 2.5rem;
    margin-top: var(--fbm-space-2);
    border-top: 1px solid var(--fbm-color-border-subtle) !important;
    color: var(--fbm-color-focus) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
}

.fbm-mc__search-wrap {
    display: flex;
    min-width: min(18rem, 40vw);
    align-items: center;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface);
}

.fbm-mc__search {
    width: 100%;
    min-width: 0;
    height: 2.6rem;
    padding: 0 var(--fbm-space-3);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.88rem;
}

.fbm-mc__notice {
    margin: var(--fbm-space-3) 0;
    padding: 0.35rem var(--fbm-space-4);
    border-left: 3px solid var(--fbm-color-muted);
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-text);
    font-size: 0.85rem;
}

.fbm-mc__notice--warning {
    border-color: #d97706;
}

.fbm-mc__notice--error,
.fbm-mc__fatal {
    border-color: var(--fbm-color-live);
}

.fbm-mc__state--empty {
    min-height: 14rem;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--fbm-color-border-subtle);
    border-top-color: var(--fbm-color-accent);
    border-radius: 50%;
    animation: fbm-mc-spin 0.8s linear infinite;
}

.fbm-mc__country {
    padding-top: var(--fbm-space-5);
}

.fbm-mc__country-title {
    display: flex;
    margin: 0;
    align-items: center;
    gap: var(--fbm-space-2);
    color: var(--fbm-color-text);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.fbm-mc__flag,
.fbm-mc__flag-text {
    display: inline-flex;
    width: 1.5rem;
    height: 1.05rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 2px;
    font-size: 1.05rem;
    line-height: 1;
}

.fbm-mc__flag--england {
    position: relative;
    border: 1px solid #d8dce3;
    background: #fff;
}

.fbm-mc__flag--england::before,
.fbm-mc__flag--england::after {
    position: absolute;
    background: #c8102e;
    content: "";
}

.fbm-mc__flag--england::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.23rem;
    transform: translateX(-50%);
}

.fbm-mc__flag--england::after {
    top: 50%;
    right: 0;
    left: 0;
    height: 0.23rem;
    transform: translateY(-50%);
}

.fbm-mc__priority-section {
    padding: var(--fbm-space-5) 0;
    border-bottom: 2px solid var(--fbm-color-border-subtle);
}

.fbm-mc__section-favorite-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fbm-mc__chronological {
    padding-top: var(--fbm-space-5);
}

.fbm-mc__competition {
    margin-top: var(--fbm-space-2);
}

.fbm-mc__competition-header {
    position: relative;
    display: grid;
    min-height: 3.2rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) max-content;
    align-items: center;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.fbm-mc__competition-header:hover {
    background: color-mix(in srgb, var(--fbm-color-surface-muted) 72%, transparent);
}

.fbm-mc__competition-toggle {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.fbm-mc__competition-toggle:focus-visible {
    border-radius: var(--fbm-radius-control);
    outline: 2px solid var(--fbm-color-accent);
    outline-offset: -2px;
}

.fbm-mc__competition-header > .fbm-mc__favorite,
.fbm-mc__competition-heading,
.fbm-mc__competition-actions {
    position: relative;
    z-index: 1;
}

.fbm-mc__competition-heading {
    pointer-events: none;
}

.fbm-mc__competition-actions,
.fbm-mc__competition-disclosure {
    display: inline-flex;
    align-items: center;
}

.fbm-mc__competition-actions {
    gap: var(--fbm-space-2);
    padding-right: 0.55rem;
    pointer-events: none;
}

.fbm-mc__competition-disclosure {
    min-width: 2.75rem;
    justify-content: flex-end;
    gap: 0.38rem;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.fbm-mc__competition-open {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: 999px;
    color: var(--fbm-color-accent);
    background: var(--fbm-color-surface);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}

.fbm-mc__competition-open:hover {
    border-color: var(--fbm-color-accent);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__collapse-triangle {
    font-size: 0.68rem;
    line-height: 1;
}

.fbm-mc__competition-count {
    color: var(--fbm-color-text);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1;
}

.fbm-mc__competition-live-count {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.28rem;
    place-items: center;
    border: 1px solid #b91c1c;
    border-radius: 0.12rem;
    color: #fff;
    background: #b91c1c;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.fbm-mc__competition-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--fbm-space-2);
}

.fbm-mc__competition-heading h3 {
    display: flex;
    min-width: 0;
    margin: 0;
    align-items: center;
    gap: 0.5em;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.fbm-mc__competition-badge {
    display: inline-grid;
    width: 2em;
    height: 2em;
    flex: 0 0 2em;
    place-items: center;
    overflow: hidden;
}

.fbm-mc__competition-badge img,
.fbm-mc__competition-badge .fbm-mc__crest-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__competition-badge .fbm-mc__crest-fallback {
    font-size: 0.55em;
}

.fbm-mc__favorite,
.fbm-mc__team-favorite {
    color: #c5cad3;
}

.fbm-mc__favorite-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fbm-mc__favorite.is-active,
.fbm-mc__team-favorite.is-active {
    color: #e0a100;
}

.fbm-mc__match-list {
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__match {
    display: grid;
    min-height: var(--fbm-match-height);
    grid-template-columns: var(--fbm-match-action-width) var(--fbm-match-state-width) minmax(0, 1fr);
    grid-template-rows: minmax(var(--fbm-match-line-height), auto) minmax(var(--fbm-match-line-height), auto) auto;
    align-items: stretch;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.fbm-mc__match:last-child {
    border-bottom: 0;
}

.fbm-mc__match:hover {
    background: color-mix(in srgb, var(--fbm-color-surface-muted) 72%, transparent);
}

.fbm-mc__add {
    align-self: center;
    grid-column: 1;
    grid-row: 1 / 3;
    border-right: 1px solid var(--fbm-color-border-subtle);
    font-size: 1.25rem;
}

.fbm-mc__match-state {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / 3;
    border-right: 1px solid var(--fbm-color-border-subtle);
    color: var(--fbm-color-muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    text-align: center;
}

.fbm-mc__status--live,
.fbm-mc__transient,
.fbm-mc__module-event,
.fbm-mc__module.is-live .fbm-mc__module-score .fbm-mc__status {
    color: var(--fbm-color-live);
    font-weight: 800;
}

.fbm-mc__live-dot {
    display: inline-block;
    width: 0.43rem;
    height: 0.43rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: currentColor;
    animation: fbm-mc-pulse 1.8s ease-in-out infinite;
}

.fbm-mc__team-line {
    display: grid;
    min-width: 0;
    grid-template-columns: 1.9rem var(--fbm-match-crest-size) minmax(0, 1fr) auto minmax(2.7rem, auto);
    align-items: center;
    gap: var(--fbm-match-gap);
    padding: 0 0.65rem;
}

.fbm-mc__team-line--home {
    grid-column: 3;
    grid-row: 1;
}

.fbm-mc__team-line--away {
    grid-column: 3;
    grid-row: 2;
}

.fbm-mc__team-favorite {
    width: 2rem;
    height: 2rem;
}

.fbm-mc__crest,
.fbm-mc__module-crest {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
}

.fbm-mc__crest {
    width: var(--fbm-match-crest-size);
    height: var(--fbm-match-crest-size);
}

.fbm-mc__crest img,
.fbm-mc__module-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__crest-fallback {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: 50%;
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-muted);
    font-size: 0.57rem;
    font-weight: 800;
}

.fbm-mc__team-name {
    min-width: 0;
    overflow: hidden;
    font-size: var(--fbm-match-team-size);
    font-weight: 600;
    white-space: nowrap;
}

.fbm-mc__team-line.is-emphasized .fbm-mc__team-name,
.fbm-mc__team-line.is-emphasized .fbm-mc__score {
    font-weight: 850;
}

.fbm-mc__score {
    min-width: 2.7rem;
    justify-self: end;
    color: var(--fbm-color-text);
    font-size: var(--fbm-match-score-size);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: right;
}

.fbm-mc__penalty {
    margin-left: 0.2rem;
    color: var(--fbm-color-muted);
    font-size: 0.7rem;
}

.fbm-mc__red-card {
    display: inline-flex;
    align-items: center;
    color: #d3132a;
    font-size: 1rem;
    line-height: 1;
}

.fbm-mc__red-card b {
    margin-left: 0.15rem;
    font-size: 0.66rem;
}

.fbm-mc__transient {
    padding: 0.2rem var(--fbm-space-3) 0.45rem;
    grid-column: 3;
    grid-row: 3;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fbm-mc__updated,
.fbm-mc__local-notice {
    margin: var(--fbm-space-3) 0 0;
    color: var(--fbm-color-muted);
    font-size: 0.72rem;
    text-align: right;
}

.fbm-mc__timezone {
    white-space: nowrap;
}

.fbm-mc__sync-state {
    display: flex;
    min-height: 2.25rem;
    margin: var(--fbm-space-3) 0 0;
    align-items: center;
    justify-content: flex-end;
    gap: var(--fbm-space-2);
    color: var(--fbm-color-muted);
    font-size: 0.72rem;
    text-align: right;
}

.fbm-mc__sync-indicator {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.fbm-mc__sync-state--saving .fbm-mc__sync-indicator,
.fbm-mc__sync-state--loading .fbm-mc__sync-indicator {
    border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
    border-top-color: currentColor;
    background: transparent;
    animation: fbm-mc-sync-spin 800ms linear infinite;
}

.fbm-mc__sync-state--saved {
    color: #287a47;
}

.fbm-mc__sync-state--loaded {
    color: #287a47;
}

.fbm-mc__sync-state--changed,
.fbm-mc__sync-state--unloaded {
    color: #936c13;
}

.fbm-mc__sync-state--error,
.fbm-mc__sync-state--offline {
    color: #a24034;
}

.fbm-mc__sync-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--fbm-space-2);
}

.fbm-mc__sync-state button {
    min-height: 1.9rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.fbm-mc__sync-state button:disabled {
    opacity: 0.45;
    cursor: wait;
}

@container (max-width: 34rem) {
    .fbm-mc__sync-state {
        flex-wrap: wrap;
    }

    .fbm-mc__sync-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@keyframes fbm-mc-sync-spin {
    to { transform: rotate(360deg); }
}

.fbm-mc__detail {
    padding: var(--fbm-space-5) 0;
}

.fbm-mc__detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--fbm-space-2);
    margin-bottom: var(--fbm-space-3);
}

.fbm-mc__detail-actions button {
    min-height: 2.4rem;
    padding: 0 var(--fbm-space-3);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.fbm-mc__detail-actions button:hover {
    color: var(--fbm-color-text);
}

.fbm-mc__detail-actions .fbm-mc__detail-track {
    margin-right: auto;
    background: var(--fbm-color-accent);
    color: #fff;
}

.fbm-mc__detail-actions .fbm-mc__detail-track:hover {
    color: #fff;
}

.fbm-mc__detail-actions .fbm-mc__detail-track.is-added,
.fbm-mc__detail-actions .fbm-mc__detail-track:disabled {
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-muted);
    cursor: default;
    opacity: 1;
}

.fbm-mc__detail-hero {
    display: grid;
    min-height: 13rem;
    grid-template-columns: minmax(0, 1fr) minmax(7rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: var(--fbm-space-5);
    padding: var(--fbm-space-5);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
    background: linear-gradient(135deg, var(--fbm-color-surface-muted), var(--fbm-color-surface));
}

.fbm-mc__detail-team,
.fbm-mc__detail-result {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--fbm-space-3);
    text-align: center;
}

.fbm-mc__detail-team-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--fbm-space-3);
    border-radius: var(--fbm-radius-control);
    color: inherit;
    text-align: center;
}

.fbm-mc__detail-team-link:hover strong {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.fbm-mc__detail-team-link:focus-visible {
    outline: 3px solid var(--fbm-color-focus);
    outline-offset: 4px;
}

.fbm-mc__detail-result {
    width: clamp(16rem, 38cqi, 30rem);
}

.fbm-mc__detail-team strong {
    font-size: clamp(0.9rem, 2.4cqi, 1.25rem);
}

.fbm-mc__detail-crest {
    display: inline-flex;
    width: clamp(3.6rem, 10cqi, 6.5rem);
    height: clamp(3.6rem, 10cqi, 6.5rem);
    align-items: center;
    justify-content: center;
}

.fbm-mc__detail-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__team-detail,
.fbm-mc__competition-detail {
    padding: var(--fbm-space-5) 0;
}

.fbm-mc__team-detail-hero,
.fbm-mc__competition-detail-hero {
    display: flex;
    min-height: 13rem;
    align-items: center;
    justify-content: center;
    gap: var(--fbm-space-5);
    padding: var(--fbm-space-5);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
    background: linear-gradient(135deg, var(--fbm-color-surface-muted), var(--fbm-color-surface));
    text-align: center;
}

.fbm-mc__team-detail-hero h1,
.fbm-mc__competition-detail-hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4cqi, 2.25rem);
}

.fbm-mc__competition-detail-hero .fbm-mc__competition-badge {
    width: clamp(5rem, 14cqi, 8rem);
    height: clamp(5rem, 14cqi, 8rem);
    flex-basis: clamp(5rem, 14cqi, 8rem);
}

.fbm-mc__team-detail-badge {
    display: inline-flex;
    width: clamp(5rem, 14cqi, 8rem);
    height: clamp(5rem, 14cqi, 8rem);
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.fbm-mc__team-detail-placeholder,
.fbm-mc__competition-detail-placeholder {
    margin: var(--fbm-space-4) 0 0;
    color: var(--fbm-color-muted);
    text-align: center;
}

.fbm-mc__team-subtabs {
    display: flex;
    margin-top: var(--fbm-space-4);
    gap: var(--fbm-space-2);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
}

.fbm-mc__team-subtab {
    position: relative;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
    color: var(--fbm-color-muted);
    cursor: pointer;
    font-weight: 750;
}

.fbm-mc__team-subtab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    content: '';
}

.fbm-mc__team-subtab.is-active {
    color: var(--fbm-color-text);
}

.fbm-mc__team-subtab.is-active::after {
    background: var(--fbm-color-accent);
}

.fbm-mc__team-subpanel {
    padding-top: var(--fbm-space-4);
}

.fbm-mc__team-overview.fbm-mc__competition-canvas {
    margin-top: 0;
}

.fbm-mc__team-latest-module {
    display: flex;
    height: calc(var(--fbm-module-header-height) + 18.25rem + 2px);
    min-height: calc(var(--fbm-module-header-height) + 18.25rem + 2px);
    grid-column: span 2;
    flex-direction: column;
}

.fbm-mc__competition-dashboard-module.fbm-mc__team-latest-module {
    height: auto;
    min-height: 0;
    overflow: auto;
}

.fbm-mc__team-latest-header-badge {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    align-items: center;
    justify-content: center;
}

.fbm-mc__team-latest-header-badge img,
.fbm-mc__team-latest-header-badge .fbm-mc__crest-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__team-latest-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.fbm-mc__team-latest-match {
    display: grid;
    height: 3.65rem;
    min-height: 3.65rem;
    grid-template-columns: 2.8rem 3.05rem 2.05rem minmax(0, 1fr) 2.7rem;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    cursor: pointer;
}

.fbm-mc__team-latest-match:hover {
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__team-latest-competition,
.fbm-mc__team-latest-state,
.fbm-mc__team-result {
    display: flex;
    min-width: 0;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: center;
}

.fbm-mc__team-latest-competition {
    grid-column: 1;
}

.fbm-mc__team-latest-competition .fbm-mc__competition-badge {
    width: 1.9rem;
    height: 1.9rem;
    flex-basis: 1.9rem;
}

.fbm-mc__team-latest-state {
    grid-column: 2;
    flex-direction: column;
    padding: 0.3rem;
    text-align: center;
}

.fbm-mc__team-latest-date {
    color: var(--fbm-color-muted);
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

.fbm-mc__team-latest-state .fbm-mc__status {
    min-width: 0;
    color: var(--fbm-color-muted);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.15;
}

.fbm-mc__team-latest-match .fbm-mc__fixture-team--home {
    grid-column: 4;
    grid-row: 1;
}

.fbm-mc__team-latest-match .fbm-mc__fixture-team--away {
    grid-column: 4;
    grid-row: 2;
}

.fbm-mc__team-latest-add {
    grid-column: 3;
    grid-row: 1 / 3;
}

.fbm-mc__team-latest-match .fbm-mc__fixture-team {
    padding-right: 0.5rem;
}

.fbm-mc__team-result {
    width: 1.45rem;
    height: 1.45rem;
    grid-column: 5;
    align-self: center;
    justify-self: start;
    margin-left: 0.25rem;
    border-radius: 0.2rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.fbm-mc__team-result--win {
    background: #16803a;
}

.fbm-mc__team-result--draw {
    background: #c66a00;
}

.fbm-mc__team-result--loss {
    background: #b42318;
}

.fbm-mc__team-calendar-controls {
    display: flex;
    justify-content: center;
    margin-bottom: var(--fbm-space-4);
}

.fbm-mc__team-calendar-controls .fbm-mc__date-label {
    min-width: 10rem;
    text-transform: capitalize;
}

.fbm-mc__team-calendar {
    min-width: 0;
}

.fbm-mc__team-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--fbm-space-2);
}

.fbm-mc__team-calendar-weekday {
    padding: 0.35rem;
    color: var(--fbm-color-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
}

.fbm-mc__team-calendar-day {
    min-width: 0;
    min-height: 9.6rem;
    padding: 0.35rem;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__team-calendar-day.is-outside {
    border-color: transparent;
    background: transparent;
}

.fbm-mc__team-calendar-day-number {
    display: block;
    min-height: 1.35rem;
    color: var(--fbm-color-muted);
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1.35rem;
    text-align: right;
}

.fbm-mc__team-calendar-day.has-matches {
    background: var(--fbm-color-surface);
}

.fbm-mc .fbm-mc__team-calendar-match {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 0.25rem;
    aspect-ratio: 1 / 1;
    touch-action: manipulation;
}

.fbm-mc__team-calendar-match .fbm-mc__module-header {
    cursor: default;
}

.fbm-mc__team-calendar-mobile {
    display: none;
}

.fbm-mc__team-calendar-mobile-day + .fbm-mc__team-calendar-mobile-day {
    margin-top: var(--fbm-space-5);
}

.fbm-mc__team-calendar-mobile-day > h2 {
    margin: 0;
    padding: 0.4rem var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    color: var(--fbm-color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: capitalize;
}

.fbm-mc__team-calendar-mobile-competition > header {
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: 0.4rem var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__team-calendar-mobile-competition .fbm-mc__competition-link {
    justify-content: flex-start;
}

.fbm-mc__team-calendar-mobile-competition .fbm-mc__competition-badge {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
}

.fbm-mc__team-calendar-mobile-competition + .fbm-mc__team-calendar-mobile-competition {
    margin-top: var(--fbm-space-3);
}

.fbm-mc__competition-canvas {
    display: grid;
    margin-top: var(--fbm-space-4);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: var(--fbm-space-4);
    align-items: start;
}

.fbm-mc__competition-module {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
    background: var(--fbm-color-surface-module);
    box-shadow: 0 0.4rem 1.25rem color-mix(in srgb, var(--fbm-color-text) 6%, transparent);
}

.fbm-mc__standings-module {
    grid-column: span 2;
}

.fbm-mc__competition-schedule-module {
    grid-column: span 2;
}

.fbm-mc__competition-fixtures-stack {
    display: grid;
    min-width: 0;
    grid-column: span 2;
    gap: var(--fbm-space-4);
}

.fbm-mc__competition-fixtures-stack > .fbm-mc__competition-schedule-module {
    grid-column: auto;
}

.fbm-mc__standings-head {
    display: flex;
    height: var(--fbm-module-header-height);
    min-height: 3.6rem;
    max-height: var(--fbm-module-header-height);
    align-items: center;
    justify-content: space-between;
    gap: var(--fbm-space-3);
    padding: var(--fbm-space-3) var(--fbm-space-4);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__standings-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
}

.fbm-mc__standings-head small {
    display: block;
    margin-top: 0.15rem;
    color: var(--fbm-color-muted);
    font-size: 0.72rem;
}

.fbm-mc__module-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
}

.fbm-mc__module-heading > .fbm-mc__competition-badge {
    width: 2.2rem;
    height: 2.2rem;
    flex-basis: 2.2rem;
}

.fbm-mc__module-heading-copy {
    min-width: 0;
}

.fbm-mc__module-heading-copy h2,
.fbm-mc__module-heading-copy small {
    overflow-wrap: anywhere;
}

.fbm-mc__module-head-actions {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.fbm-mc__module-tracking-toggle {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fbm-color-accent);
    font-size: 1.1rem;
    font-weight: 850;
    line-height: 1;
}

.fbm-mc__module-tracking-toggle:hover,
.fbm-mc__module-tracking-toggle:focus-visible {
    background: color-mix(in srgb, var(--fbm-color-accent) 9%, transparent);
}

.fbm-mc__module-tracking-toggle.is-added {
    color: var(--fbm-color-accent);
}

.fbm-mc__module-tracking-toggle.is-present {
    color: var(--fbm-color-accent);
}

.fbm-mc__live-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
    border-radius: 999px;
    color: var(--fbm-color-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
}

.fbm-mc__live-switch:hover {
    background: color-mix(in srgb, var(--fbm-color-live) 7%, transparent);
}

.fbm-mc__live-switch.is-on {
    color: var(--fbm-color-live);
}

.fbm-mc__live-switch-track {
    position: relative;
    display: inline-block;
    width: 2.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fbm-color-muted) 35%, transparent);
    transition: background 160ms ease;
}

.fbm-mc__live-switch-track > span {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 0.79rem;
    height: 0.79rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 24%);
    transition: transform 160ms ease;
}

.fbm-mc__live-switch.is-on .fbm-mc__live-switch-track {
    background: var(--fbm-color-live);
}

.fbm-mc__live-switch.is-on .fbm-mc__live-switch-track > span {
    transform: translateX(1rem);
}

.fbm-mc__live-switch.is-unavailable,
.fbm-mc__live-switch.is-unavailable:hover {
    color: var(--fbm-color-muted);
    background: transparent;
}

.fbm-mc__live-switch.is-unavailable .fbm-mc__live-switch-track {
    background: color-mix(in srgb, var(--fbm-color-muted) 35%, transparent);
}

.fbm-mc__standings-scroll {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.fbm-mc__standings-module table {
    width: 100%;
    border: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 !important;
    box-shadow: none !important;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.fbm-mc__standings-module thead,
.fbm-mc__standings-module tbody,
.fbm-mc__standings-module tr {
    border: 0 !important;
    box-shadow: none !important;
}

.fbm-mc__standings-module th,
.fbm-mc__standings-module td {
    height: 2.15rem;
    padding: 0.28rem 0.38rem;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.fbm-mc__standings-module thead tr,
.fbm-mc__standings-module tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--fbm-color-border-subtle) !important;
}

.fbm-mc__standings-module th {
    color: var(--fbm-color-muted);
    background: color-mix(in srgb, var(--fbm-color-surface-muted) 65%, transparent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fbm-mc__standings-module tbody tr:last-child td {
    border-bottom: 0;
}

.fbm-mc__standings-module tbody tr.is-live {
    color: var(--fbm-color-live);
    font-weight: 800;
}

.fbm-mc__standing-position {
    width: 2rem;
    color: var(--fbm-color-muted);
}

.fbm-mc__standing-team {
    min-width: 0;
    text-align: left !important;
}

.fbm-mc__standing-team-link {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1.45rem minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--fbm-radius-control);
    line-height: 1.15;
    text-align: left;
}

.fbm-mc__standing-team-link:hover > span:last-child {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.fbm-mc__standing-team-name {
    display: inline-flex;
    min-width: 0;
    align-self: center;
    align-items: center;
    gap: 0.28rem;
    overflow: hidden;
    white-space: nowrap;
}

.fbm-mc__standing-movement {
    display: inline-block;
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-right: 0.28rem solid transparent;
    border-left: 0.28rem solid transparent;
}

.fbm-mc__standing-movement--up {
    border-right-width: 0.3rem;
    border-bottom: 0.46rem solid #168344;
    border-left-width: 0.3rem;
}

.fbm-mc__standing-movement--down {
    border-top: 0.46rem solid var(--fbm-color-live);
}

.fbm-mc__standing-badge {
    display: inline-flex;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    align-items: center;
    align-self: center;
    justify-content: center;
    line-height: 1;
}

.fbm-mc__standing-badge img,
.fbm-mc__standing-badge .fbm-mc__crest-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__standing-badge .fbm-mc__crest-fallback {
    font-size: 0.52rem;
}

.fbm-mc__standing-points {
    font-weight: 850;
}

.fbm-mc__standings-state {
    display: flex;
    min-height: 12rem;
    align-items: center;
    justify-content: center;
    gap: var(--fbm-space-2);
    padding: var(--fbm-space-4);
    color: var(--fbm-color-muted);
    text-align: center;
}

.fbm-mc__standings-state--error,
.fbm-mc__standings-warning {
    color: var(--fbm-color-live);
}

.fbm-mc__standings-warning {
    margin: 0;
    padding: var(--fbm-space-2) var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    font-size: 0.72rem;
}

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

.fbm-mc__competition-dashboard-module .fbm-mc__standings-scroll,
.fbm-mc__competition-dashboard-module .fbm-mc__fixtures-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
}

.fbm-mc__fixture {
    display: grid;
    height: 3.65rem;
    min-height: 3.65rem;
    grid-template-columns: 2.5rem 3.05rem 2.05rem minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    border: 0;
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    margin: 0;
    cursor: pointer;
}

.fbm-mc__fixture:last-child {
    border-bottom: 0;
}

.fbm-mc__fixture:hover {
    background: var(--fbm-color-surface-muted);
}

.fbm-mc__fixture.is-live {
    background: color-mix(in srgb, var(--fbm-color-live) 4%, transparent);
}

.fbm-mc__fixture-date,
.fbm-mc__fixture-state,
.fbm-mc__fixture-add {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    border-right: 0;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.fbm-mc__fixture-date {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 0.3rem;
    color: var(--fbm-color-muted);
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.fbm-mc__fixture-state {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0.3rem;
}

.fbm-mc__fixture-state .fbm-mc__status {
    min-width: 0;
    color: var(--fbm-color-muted);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.15;
}

.fbm-mc__fixture.is-live .fbm-mc__fixture-state .fbm-mc__status {
    color: var(--fbm-color-live);
}

.fbm-mc__fixture-add {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 100%;
    min-height: 100%;
    padding: 0;
    border-radius: 0;
    color: var(--fbm-color-accent);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
}

.fbm-mc__fixture-add:hover,
.fbm-mc__fixture-add:focus-visible {
    background: color-mix(in srgb, var(--fbm-color-accent) 9%, transparent);
}

.fbm-mc__fixture-team {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.38rem;
    padding: 0.14rem 0.8rem 0.14rem 0.42rem;
    line-height: 1.15;
}

.fbm-mc__fixture-team--home {
    grid-column: 4;
    grid-row: 1;
}

.fbm-mc__fixture-team--away {
    grid-column: 4;
    grid-row: 2;
}

.fbm-mc__fixture-team strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.fbm-mc__fixture-team > b {
    min-width: 1.15rem;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.fbm-mc__fixture.is-live .fbm-mc__fixture-team > b {
    color: var(--fbm-color-live);
}

.fbm-mc__fixture-badge {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fbm-mc__fixture-badge img,
.fbm-mc__fixture-badge .fbm-mc__crest-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__fixture-badge .fbm-mc__crest-fallback {
    font-size: 0.48rem;
}

.fbm-mc__detail-scoreline {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
}

.fbm-mc__detail-scoreline > strong {
    font-size: clamp(2rem, 6cqi, 3.6rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.fbm-mc__detail-scoreline > strong:first-child {
    text-align: right;
}

.fbm-mc__detail-scoreline > strong:last-child {
    text-align: left;
}

.fbm-mc__detail-scoreline > span {
    color: var(--fbm-color-muted);
    font-size: clamp(1.5rem, 4cqi, 2.5rem);
    font-weight: 400;
}

.fbm-mc__detail-scorers {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.fbm-mc__detail-scorer-list {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 0.2rem;
    list-style: none;
    color: var(--fbm-color-muted);
    font-size: clamp(0.68rem, 1.5cqi, 0.82rem);
    line-height: 1.3;
}

.fbm-mc__detail-scorer-list--home {
    align-items: flex-end;
    text-align: right;
}

.fbm-mc__detail-scorer-list--away {
    align-items: flex-start;
    text-align: left;
}

.fbm-mc__detail-scorers--score .fbm-mc__detail-scorer-list--home {
    grid-column: 1;
}

.fbm-mc__detail-scorers--score .fbm-mc__detail-scorer-list--away {
    grid-column: 2;
}

.fbm-mc__detail-scorer-list--team {
    display: none;
}

.fbm-mc__detail-scorer-list li {
    display: flex;
    max-width: 100%;
    gap: 0.35rem;
}

.fbm-mc__detail-scorer-list .fbm-mc__scorer-name {
    overflow: visible;
    min-width: 0;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
}

.fbm-mc__detail-scorer-list time {
    flex: 0 0 auto;
    color: var(--fbm-color-text);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.fbm-mc__detail-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: var(--fbm-space-4) 0;
    overflow: hidden;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
    background: var(--fbm-color-surface);
}

.fbm-mc__detail-meta > div {
    display: flex;
    min-width: 0;
    padding: var(--fbm-space-3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--fbm-color-border-subtle);
    border-bottom: 0;
    background: var(--fbm-color-surface);
    text-align: center;
}

.fbm-mc__detail-meta > div:last-child {
    border-right: 0;
}

.fbm-mc__detail-meta dt,
.fbm-mc__detail-meta dd {
    margin: 0;
}

.fbm-mc__detail-meta dt,
.fbm-mc__lineup h3,
.fbm-mc__officials small {
    color: var(--fbm-color-muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.fbm-mc__detail-meta dd {
    margin-top: 0.2rem;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.fbm-mc__detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fbm-space-4);
}

.fbm-mc__lineup,
.fbm-mc__detail-section {
    padding: var(--fbm-space-4);
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
}

.fbm-mc__lineup h2,
.fbm-mc__detail-section h2 {
    margin: 0 0 var(--fbm-space-3);
    font-size: 1rem;
}

.fbm-mc__lineup h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fbm-space-2);
}

.fbm-mc__lineup-team {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.45em;
}

.fbm-mc__lineup-badge {
    display: inline-flex;
    width: 2em;
    height: 2em;
    flex: 0 0 2em;
    align-items: center;
    justify-content: center;
}

.fbm-mc__lineup-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbm-mc__lineup-badge .fbm-mc__crest-fallback {
    width: 100%;
    height: 100%;
    font-size: 0.48em;
}

.fbm-mc__lineup h2 small {
    flex: 0 0 auto;
    color: var(--fbm-color-muted);
}

.fbm-mc__lineup h3 {
    margin: var(--fbm-space-4) 0 var(--fbm-space-1);
}

.fbm-mc__lineup ol,
.fbm-mc__timeline,
.fbm-mc__officials {
    padding: 0;
    margin: 0;
    list-style: none;
}

.fbm-mc__lineup li {
    display: grid;
    min-height: 2.25rem;
    grid-template-columns: 1.8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--fbm-space-2);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    font-size: 0.82rem;
}

.fbm-mc__lineup li:last-child {
    border-bottom: 0;
}

.fbm-mc__lineup li small {
    color: var(--fbm-color-muted);
    font-size: 0.68rem;
}

.fbm-mc__lineup-person {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
}

.fbm-mc__lineup-person > span:first-child {
    min-width: 0;
}

.fbm-mc__player-events {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.fbm-mc__player-event {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    color: var(--fbm-color-muted);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fbm-mc__player-event .fbm-mc__event-icon {
    font-size: 0.9em;
}

.fbm-mc__shirt {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
}

.fbm-mc__detail-section {
    margin-top: var(--fbm-space-4);
}

.fbm-mc__timeline li {
    display: grid;
    min-height: 2.7rem;
    grid-template-columns: minmax(0, 1fr) 3.6rem minmax(0, 1fr);
    align-items: center;
    column-gap: var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    font-size: 0.82rem;
}

.fbm-mc__timeline li:last-child {
    border-bottom: 0;
}

.fbm-mc__timeline time {
    grid-column: 2;
    grid-row: 1;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
}

.fbm-mc__timeline-side,
.fbm-mc__timeline-neutral {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--fbm-space-2);
}

.fbm-mc__timeline-side--home {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-end;
    text-align: right;
}

.fbm-mc__timeline-side--away {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-start;
    text-align: left;
}

.fbm-mc__timeline-neutral {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding-bottom: var(--fbm-space-2);
    color: var(--fbm-color-muted);
    text-align: center;
}

.fbm-mc__timeline-names,
.fbm-mc__timeline-neutral span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.fbm-mc__timeline-names {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.fbm-mc__timeline-side--home .fbm-mc__timeline-names {
    justify-content: flex-end;
}

.fbm-mc__timeline-side--away .fbm-mc__timeline-names {
    justify-content: flex-start;
}

.fbm-mc__timeline-assist {
    color: var(--fbm-color-muted);
}

.fbm-mc__timeline-player--off {
    color: #c3312b;
}

.fbm-mc__timeline-player--on {
    color: #168447;
}

.fbm-mc__timeline-sub-arrow {
    color: var(--fbm-color-muted);
    font-weight: 800;
}

.fbm-mc__event-icon {
    position: relative;
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.fbm-mc__event-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fbm-mc__whistle-mouth,
.fbm-mc__whistle-ring,
.fbm-mc__boot-laces,
.fbm-mc__boot-sole,
.fbm-mc__boot-studs,
.fbm-mc__goal-frame,
.fbm-mc__penalty-cross,
.fbm-mc__arrow-up,
.fbm-mc__arrow-down {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fbm-mc__whistle-body,
.fbm-mc__boot-body {
    fill: #111;
}

.fbm-mc__whistle-mouth {
    stroke: #fff;
    stroke-width: 1.25;
}

.fbm-mc__whistle-ring {
    stroke: #111;
    stroke-width: 1.7;
}

.fbm-mc__whistle-hole {
    fill: #fff;
}

.fbm-mc__boot-sole {
    stroke: #111;
    stroke-width: 1.8;
}

.fbm-mc__goal-frame {
    stroke: var(--fbm-color-muted);
    stroke-width: 1.15;
}

.fbm-mc__penalty-cross {
    stroke: #c3312b;
    stroke-width: 3.1;
}

.fbm-mc__arrow-up,
.fbm-mc__arrow-down {
    stroke-width: 3.25;
}

.fbm-mc__arrow-up {
    stroke: #168447;
}

.fbm-mc__arrow-down {
    stroke: #c3312b;
}

.fbm-mc__event-icon--goal,
.fbm-mc__event-icon--own-goal {
    color: var(--fbm-color-text);
}

.fbm-mc__football-emoji,
.fbm-mc__penalty-ball-emoji {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.fbm-mc__football-emoji {
    display: inline-flex;
    width: 1.08rem;
    height: 1.08rem;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
}

.fbm-mc__penalty-ball-emoji {
    position: absolute;
    z-index: 1;
    top: 59%;
    left: 50%;
    font-size: 0.86rem;
    transform: translate(-50%, -50%);
}

.fbm-mc__event-icon--own-goal::after {
    position: absolute;
    z-index: 1;
    right: -0.02rem;
    bottom: -0.04rem;
    padding: 0.12rem 0.2rem;
    border: 1px solid #fff;
    border-radius: 0.22rem;
    background: #111;
    color: #fff;
    content: "OG";
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
}

.fbm-mc__event-icon--goal-disallowed {
    border: 1.5px solid currentColor;
}

.fbm-mc__event-icon--penalty-scored,
.fbm-mc__event-icon--substitution-on {
    color: #168447;
}

.fbm-mc__event-icon--penalty-missed,
.fbm-mc__event-icon--substitution-off,
.fbm-mc__event-icon--goal-disallowed {
    color: #c3312b;
}

.fbm-mc__event-icon--assist {
    color: #111;
}

.fbm-mc__event-icon--assist .fbm-mc__event-svg {
    width: 88%;
    height: 82%;
}

.fbm-mc__player-event .fbm-mc__event-icon--substitution-on .fbm-mc__event-svg,
.fbm-mc__player-event .fbm-mc__event-icon--substitution-off .fbm-mc__event-svg {
    width: 62%;
    height: 78%;
}

.fbm-mc__player-event .fbm-mc__event-icon--substitution-on .fbm-mc__arrow-up,
.fbm-mc__player-event .fbm-mc__event-icon--substitution-off .fbm-mc__arrow-down {
    stroke-width: 2.5;
}

.fbm-mc__event-icon--yellow-card,
.fbm-mc__event-icon--second-yellow,
.fbm-mc__event-icon--red-card {
    border-radius: 0;
}

.fbm-mc__event-icon--yellow-card::before,
.fbm-mc__event-icon--second-yellow::before,
.fbm-mc__event-icon--red-card::before {
    width: 0.82rem;
    height: 1.22rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.12rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    content: "";
}

.fbm-mc__event-icon--yellow-card::before {
    background: #f4c900;
}

.fbm-mc__event-icon--second-yellow::before {
    background: linear-gradient(135deg, #f4c900 0 50%, #d22f27 50% 100%);
}

.fbm-mc__event-icon--red-card::before {
    background: #d22f27;
}

.fbm-mc__event-icon--substitution,
.fbm-mc__event-icon--substitution-on,
.fbm-mc__event-icon--substitution-off {
    border-radius: 0;
}

.fbm-mc__event-icon--substitution {
    color: #147b68;
}

.fbm-mc__event-icon--period-start,
.fbm-mc__event-icon--period-end {
    color: var(--fbm-color-muted);
}

.fbm-mc__event-icon--var {
    border: 1px solid currentColor;
    border-radius: 0.3rem;
    color: #3d5c95;
    font-size: 0.46rem;
    letter-spacing: 0;
}

.fbm-mc__officials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--fbm-space-3);
}

.fbm-mc__officials li {
    display: flex;
    flex-direction: column;
}

.fbm-mc__officials strong {
    font-size: 0.84rem;
}

.fbm-mc__detail-empty {
    margin: 0;
    padding: var(--fbm-space-3) 0;
    color: var(--fbm-color-muted);
    font-size: 0.82rem;
}

.fbm-mc__dashboard {
    min-height: min(68vh, 48rem);
    padding: var(--fbm-space-5) 0;
}

.fbm-mc__dashboard--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--fbm-color-border-subtle);
    background: color-mix(in srgb, var(--fbm-color-surface-muted) 45%, transparent);
}

.fbm-mc__dashboard-empty {
    max-width: 30rem;
    padding: var(--fbm-space-6);
    text-align: center;
}

.fbm-mc__dashboard-empty > span {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: 50%;
    color: var(--fbm-color-muted);
    font-size: 1.5rem;
}

.fbm-mc__dashboard-empty h2 {
    margin: var(--fbm-space-4) 0 var(--fbm-space-2);
    font-size: 1.25rem;
}

.fbm-mc__dashboard-empty p {
    margin: 0;
    color: var(--fbm-color-muted);
}

.fbm-mc__modules {
    --fbm-dashboard-gap: var(--fbm-space-4);
    --fbm-dashboard-unit: calc((100cqi - (7 * var(--fbm-dashboard-gap))) / 8);
    position: relative;
    display: grid;
    min-height: var(--fbm-dashboard-unit);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: var(--fbm-dashboard-unit);
    align-items: stretch;
    gap: var(--fbm-dashboard-gap);
    transition: min-height 140ms ease;
}

.fbm-mc__module {
    --fbm-module-scale: min(0.5cqi, 1cqb);
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--fbm-color-border-subtle);
    border-radius: var(--fbm-radius-module);
    background: var(--fbm-color-surface-module);
    box-shadow: 0 0.45rem 1.3rem rgba(20, 33, 61, 0.06);
    touch-action: pan-y;
    container-type: size;
}

.fbm-mc__module.is-dragging {
    opacity: 0.82;
}

.fbm-mc__module.is-resizing {
    opacity: 0.55;
}

.fbm-mc__resize-handle {
    position: absolute;
    z-index: 7;
    display: block;
    touch-action: none;
}

.fbm-mc__resize-handle::after {
    display: none;
}

.fbm-mc__resize-handle--n,
.fbm-mc__resize-handle--s {
    right: 0.8rem;
    left: 0.8rem;
    height: 0.55rem;
    cursor: ns-resize;
}

.fbm-mc__resize-handle--n { top: 0; }
.fbm-mc__resize-handle--s { bottom: 0; }

.fbm-mc__resize-handle--n::after,
.fbm-mc__resize-handle--s::after {
    right: 35%;
    left: 35%;
    height: 2px;
}

.fbm-mc__resize-handle--n::after { top: 1px; }
.fbm-mc__resize-handle--s::after { bottom: 1px; }

.fbm-mc__resize-handle--e,
.fbm-mc__resize-handle--w {
    top: 0.8rem;
    bottom: 0.8rem;
    width: 0.55rem;
    cursor: ew-resize;
}

.fbm-mc__resize-handle--e { right: 0; }
.fbm-mc__resize-handle--w { left: 0; }

.fbm-mc__resize-handle--e::after,
.fbm-mc__resize-handle--w::after {
    top: 35%;
    bottom: 35%;
    width: 2px;
}

.fbm-mc__resize-handle--e::after { right: 1px; }
.fbm-mc__resize-handle--w::after { left: 1px; }

.fbm-mc__resize-handle--ne,
.fbm-mc__resize-handle--nw,
.fbm-mc__resize-handle--se,
.fbm-mc__resize-handle--sw {
    width: 0.8rem;
    height: 0.8rem;
}

.fbm-mc__resize-handle--ne { top: 0; right: 0; cursor: nesw-resize; }
.fbm-mc__resize-handle--nw { top: 0; left: 0; cursor: nwse-resize; }
.fbm-mc__resize-handle--se { right: 0; bottom: 0; cursor: nwse-resize; }
.fbm-mc__resize-handle--sw { bottom: 0; left: 0; cursor: nesw-resize; }

.fbm-mc__resize-handle--ne::after,
.fbm-mc__resize-handle--nw::after,
.fbm-mc__resize-handle--se::after,
.fbm-mc__resize-handle--sw::after {
    width: 0.38rem;
    height: 0.38rem;
    border: solid color-mix(in srgb, var(--fbm-color-focus) 75%, transparent);
    background: transparent;
}

.fbm-mc__resize-handle--ne::after { top: 1px; right: 1px; border-width: 2px 2px 0 0; }
.fbm-mc__resize-handle--nw::after { top: 1px; left: 1px; border-width: 2px 0 0 2px; }
.fbm-mc__resize-handle--se::after { right: 1px; bottom: 1px; border-width: 0 2px 2px 0; }
.fbm-mc__resize-handle--sw::after { bottom: 1px; left: 1px; border-width: 0 0 2px 2px; }

.fbm-mc__modules.is-drag-active,
.fbm-mc__modules.is-resize-active {
    background-image: radial-gradient(circle, color-mix(in srgb, var(--fbm-color-muted) 22%, transparent) 1px, transparent 1px);
    background-position: 0 0;
    background-size: calc(var(--fbm-dashboard-unit) + var(--fbm-dashboard-gap)) calc(var(--fbm-dashboard-unit) + var(--fbm-dashboard-gap));
}

.fbm-mc__module-drop-preview {
    position: absolute;
    z-index: 3;
    display: none;
    pointer-events: none;
    border: 2px dashed color-mix(in srgb, var(--fbm-color-focus) 60%, transparent);
    border-radius: var(--fbm-radius-module);
    background: color-mix(in srgb, var(--fbm-color-focus) 9%, transparent);
}

.fbm-mc__module-drop-preview.is-visible {
    display: block;
}

.fbm-mc__module-header {
    display: flex;
    height: var(--fbm-module-header-height);
    min-height: 3.5rem;
    max-height: var(--fbm-module-header-height);
    align-items: center;
    justify-content: space-between;
    gap: var(--fbm-space-3);
    padding: var(--fbm-space-2) var(--fbm-space-3);
    border-bottom: 1px solid var(--fbm-color-border-subtle);
    cursor: grab;
    transition: background-color 120ms ease;
    min-height: var(--fbm-module-header-height);
    gap: clamp(0.25rem, calc(9.25 * var(--fbm-module-scale)), var(--fbm-space-3));
    padding: clamp(0.2rem, calc(6.15 * var(--fbm-module-scale)), var(--fbm-space-2))
        clamp(0.3rem, calc(9.25 * var(--fbm-module-scale)), var(--fbm-space-3));
}

.fbm-mc__module.is-dragging .fbm-mc__module-header {
    background: color-mix(in srgb, var(--fbm-color-text) 10%, var(--fbm-color-surface-module));
    cursor: grabbing;
}

.fbm-mc__module-header > div:first-child:not(.fbm-mc__module-heading) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.fbm-mc__module-header > div:first-child:not(.fbm-mc__module-heading) > span {
    overflow: hidden;
    font-size: clamp(0.45rem, calc(9.6 * var(--fbm-module-scale)), 0.78rem);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__module-header > div:first-child:not(.fbm-mc__module-heading) > small {
    color: var(--fbm-color-muted);
    font-size: clamp(0.4rem, calc(8.25 * var(--fbm-module-scale)), 0.67rem);
}

.fbm-mc__module-header .fbm-mc__module-heading {
    flex: 1 1 auto;
    overflow: hidden;
}

.fbm-mc__module-header .fbm-mc__module-heading > .fbm-mc__competition-badge {
    width: clamp(1.4rem, calc(33.2 * var(--fbm-module-scale)), 2.2rem);
    height: clamp(1.4rem, calc(33.2 * var(--fbm-module-scale)), 2.2rem);
    flex-basis: clamp(1.4rem, calc(33.2 * var(--fbm-module-scale)), 2.2rem);
}

.fbm-mc__module-header .fbm-mc__module-heading-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.fbm-mc__module-header .fbm-mc__module-heading-copy > span {
    overflow: hidden;
    font-size: clamp(0.45rem, calc(9.6 * var(--fbm-module-scale)), 0.78rem);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__module-header .fbm-mc__module-heading-copy > small {
    overflow: hidden;
    color: var(--fbm-color-muted);
    font-size: clamp(0.4rem, calc(8.25 * var(--fbm-module-scale)), 0.67rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbm-mc__module--compact-match .fbm-mc__module-heading-copy > small {
    color: var(--fbm-color-text);
    font-size: clamp(0.94rem, calc(16 * var(--fbm-module-scale)), 1.08rem);
    font-weight: 800;
    line-height: 1;
}

.fbm-mc__module--compact-match .fbm-mc__module-header {
    gap: 0.2rem;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
}

.fbm-mc__module--compact-match .fbm-mc__module-heading {
    gap: 0.35rem;
}

.fbm-mc__module--compact-match .fbm-mc__module-header .fbm-mc__module-heading > .fbm-mc__competition-badge {
    width: clamp(2.1rem, calc(43 * var(--fbm-module-scale)), 2.5rem);
    height: clamp(2.1rem, calc(43 * var(--fbm-module-scale)), 2.5rem);
    flex-basis: clamp(2.1rem, calc(43 * var(--fbm-module-scale)), 2.5rem);
}

.fbm-mc__module-actions {
    display: flex;
    flex: 0 0 auto;
    gap: min(0.15rem, calc(1.85 * var(--fbm-module-scale)));
}

.fbm-mc__module-actions button {
    width: clamp(1.35rem, calc(27.7 * var(--fbm-module-scale)), 2.25rem);
    height: clamp(1.35rem, calc(27.7 * var(--fbm-module-scale)), 2.25rem);
    border-radius: 50%;
    color: var(--fbm-color-muted);
    cursor: pointer;
}

.fbm-mc__module-actions button:hover {
    background: var(--fbm-color-surface-muted);
    color: var(--fbm-color-text);
}

.fbm-mc__module-body {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.2rem, calc(9.25 * var(--fbm-module-scale)), var(--fbm-space-3));
    padding: clamp(0.25rem, calc(9.25 * var(--fbm-module-scale)), var(--fbm-space-4));
    cursor: pointer;
}

.fbm-mc__module--compact-match .fbm-mc__module-body {
    display: flex;
    min-height: 0;
    padding: 0.12rem 0.28rem 0.2rem;
    flex-direction: column;
    gap: 0.08rem;
}

.fbm-mc__compact-match-meta {
    display: flex;
    min-height: 1rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    color: var(--fbm-color-muted);
    font-size: clamp(0.78rem, calc(14 * var(--fbm-module-scale)), 0.94rem);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.fbm-mc__compact-match-meta .fbm-mc__status,
.fbm-mc__compact-match-meta .fbm-mc__module-date {
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.fbm-mc__module--compact-match.is-live .fbm-mc__compact-match-meta .fbm-mc__status {
    color: var(--fbm-color-live);
}

.fbm-mc__compact-match-teams {
    display: grid;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0;
}

.fbm-mc__compact-match-team {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
}

.fbm-mc__module-team {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.15rem, calc(6.15 * var(--fbm-module-scale)), var(--fbm-space-2));
    text-align: center;
}

.fbm-mc__module-team b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.45rem, calc(10.1 * var(--fbm-module-scale)), 0.82rem);
    line-height: 1.2;
    white-space: nowrap;
}

.fbm-mc__module-crest {
    width: clamp(1.45rem, calc(39.4 * var(--fbm-module-scale)), 3.2rem);
    height: clamp(1.45rem, calc(39.4 * var(--fbm-module-scale)), 3.2rem);
}

.fbm-mc__module--compact-match .fbm-mc__module-crest {
    width: clamp(2.45rem, calc(56 * var(--fbm-module-scale)), 3.15rem);
    height: clamp(2.45rem, calc(56 * var(--fbm-module-scale)), 3.15rem);
}

.fbm-mc__compact-team-score {
    color: var(--fbm-color-text);
    font-size: clamp(1.28rem, calc(27 * var(--fbm-module-scale)), 1.7rem);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    line-height: 1;
}

.fbm-mc__compact-team-score .fbm-mc__penalty {
    font-size: 0.55em;
}

.fbm-mc__module-score {
    display: flex;
    min-width: clamp(2.5rem, calc(61.5 * var(--fbm-module-scale)), 5rem);
    flex-direction: column;
    align-items: center;
    color: var(--fbm-color-muted);
    font-size: clamp(0.42rem, calc(8.85 * var(--fbm-module-scale)), 0.72rem);
    text-align: center;
}

.fbm-mc__module-date {
    color: var(--fbm-color-muted);
    font-size: inherit;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.fbm-mc__module--compact-match .fbm-mc__module-score {
    min-width: 3rem;
    font-size: clamp(0.86rem, calc(14.6 * var(--fbm-module-scale)), 0.98rem);
    font-weight: 750;
    line-height: 1.05;
}

.fbm-mc__module--compact-match .fbm-mc__module-date,
.fbm-mc__module--compact-match .fbm-mc__module-score > .fbm-mc__status {
    font-size: inherit;
    line-height: 1.05;
}

.fbm-mc__module-score strong {
    display: flex;
    align-items: center;
    gap: clamp(0.15rem, calc(6.15 * var(--fbm-module-scale)), var(--fbm-space-2));
    color: var(--fbm-color-text);
    font-size: clamp(0.9rem, calc(24.6 * var(--fbm-module-scale)), 2rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.fbm-mc__module--compact-match .fbm-mc__module-score strong {
    gap: 0.16rem;
    font-size: clamp(1.55rem, calc(31 * var(--fbm-module-scale)), 1.9rem);
    line-height: 1;
}

.fbm-mc__module-score strong span {
    color: var(--fbm-color-muted);
    font-weight: 400;
}

.fbm-mc__module-penalties {
    margin-top: min(0.2rem, calc(2.45 * var(--fbm-module-scale)));
}

.fbm-mc__module-event {
    padding: clamp(0.15rem, calc(6.15 * var(--fbm-module-scale)), var(--fbm-space-2))
        clamp(0.25rem, calc(9.25 * var(--fbm-module-scale)), var(--fbm-space-3));
    border-top: 1px solid color-mix(in srgb, var(--fbm-color-live) 20%, var(--fbm-color-border-subtle));
    background: color-mix(in srgb, var(--fbm-color-live) 5%, transparent);
    font-size: clamp(0.42rem, calc(8.85 * var(--fbm-module-scale)), 0.72rem);
    text-align: center;
    text-transform: uppercase;
}

.fbm-mc__module--unavailable {
    display: flex;
    padding: clamp(0.3rem, calc(12.3 * var(--fbm-module-scale)), var(--fbm-space-4));
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-style: dashed;
}

.fbm-mc__module--unavailable p {
    align-self: center;
    color: var(--fbm-color-muted);
    text-align: center;
    font-size: clamp(0.45rem, calc(10.1 * var(--fbm-module-scale)), 0.82rem);
}

.fbm-mc__module .fbm-mc__crest-fallback {
    font-size: clamp(0.32rem, calc(7 * var(--fbm-module-scale)), 0.57rem);
}

.fbm-mc__module .fbm-mc__live-dot {
    width: clamp(0.22rem, calc(5.3 * var(--fbm-module-scale)), 0.43rem);
    height: clamp(0.22rem, calc(5.3 * var(--fbm-module-scale)), 0.43rem);
    margin-right: clamp(0.15rem, calc(4.3 * var(--fbm-module-scale)), 0.35rem);
}

.fbm-mc__toast {
    position: fixed;
    z-index: 99999;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    max-width: min(26rem, calc(100vw - 2rem));
    padding: 0.8rem 1rem;
    border-radius: var(--fbm-radius-control);
    background: var(--fbm-color-accent);
    box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fbm-mc__toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fbm-mc__toast button {
    margin-left: var(--fbm-space-2);
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
}

.fbm-mc__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    margin: -1px;
    white-space: nowrap;
}

@container (max-width: 74.99rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - (6 * var(--fbm-dashboard-gap))) / 7);
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

}

@container (max-width: 65.49rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - (5 * var(--fbm-dashboard-gap))) / 6);
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

}

@container (max-width: 55.99rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - (4 * var(--fbm-dashboard-gap))) / 5);
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

}

@container (max-width: 46.49rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - (3 * var(--fbm-dashboard-gap))) / 4);
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@container (max-width: 36.99rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - (2 * var(--fbm-dashboard-gap))) / 3);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@container (max-width: 27.49rem) {
    .fbm-mc__modules {
        --fbm-dashboard-unit: calc((100cqi - var(--fbm-dashboard-gap)) / 2);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fbm-mc__competition-canvas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fbm-mc__standings-module {
        grid-column: span 2;
    }

}

@container (max-width: 64rem) {
    .fbm-mc__team-calendar-desktop {
        display: none;
    }

    .fbm-mc__team-calendar-mobile {
        display: block;
    }
}

@container (max-width: 48rem) {
    .fbm-mc__tabs {
        display: none;
    }

    .fbm-mc__tab-menu {
        display: block;
    }

    .fbm-mc__app {
        --fbm-match-height: 3.8rem;
        --fbm-match-line-height: 1.72rem;
        --fbm-match-action-width: 2.35rem;
        --fbm-match-state-width: 3.9rem;
        --fbm-match-crest-size: 1.65rem;
        --fbm-match-team-size: 0.88rem;
        --fbm-match-score-size: 1rem;
        --fbm-match-gap: 0.42rem;
    }

    .fbm-mc__toolbar {
        grid-template-columns: 1fr;
    }

    .fbm-mc__date-controls {
        grid-row: 1;
    }

    .fbm-mc__filters {
        justify-content: flex-start;
        grid-row: 2;
    }

    .fbm-mc__toolbar-actions {
        justify-content: space-between;
        grid-row: 3;
    }

    .fbm-mc__search-wrap {
        min-width: 0;
        flex: 1 1 auto;
    }

    .fbm-mc__detail-hero {
        min-height: 11rem;
        gap: var(--fbm-space-3);
        padding: var(--fbm-space-4);
    }

    .fbm-mc__detail-result {
        width: clamp(13rem, 34cqi, 18rem);
    }

    .fbm-mc__detail-meta {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: var(--fbm-space-3);
    }

    .fbm-mc__detail-meta > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.2rem 0.25rem;
        align-items: baseline;
        border-right: 0;
    }

    .fbm-mc__detail-meta dt {
        text-align: right;
    }

    .fbm-mc__detail-meta dd {
        margin-top: 0;
        text-align: left;
    }
}

@container (max-width: 34rem) {
    .fbm-mc__app {
        --fbm-match-height: 3.3rem;
        --fbm-match-line-height: 1.45rem;
        --fbm-match-action-width: 1.8rem;
        --fbm-match-state-width: 3.8rem;
        --fbm-match-crest-size: 1.35rem;
        --fbm-match-team-size: 0.78rem;
        --fbm-match-score-size: 0.9rem;
        --fbm-match-gap: 0.3rem;
    }

    .fbm-mc__header {
        gap: var(--fbm-space-2);
    }

    .fbm-mc__tabs {
        min-width: 0;
        gap: var(--fbm-space-3);
    }

    .fbm-mc__account-button {
        max-width: 9rem;
    }

    .fbm-mc__account-button span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fbm-mc__account-summary,
    .fbm-mc__auth-secondary {
        align-items: flex-start;
        flex-direction: column;
    }

    .fbm-mc__view-button span {
        display: none;
    }

    .fbm-mc__competition-actions {
        gap: 0.35rem;
        padding-right: 0.35rem;
    }

    .fbm-mc__competition-open span:first-child {
        display: none;
    }

    .fbm-mc__competition-open {
        width: 2rem;
        padding: 0;
        justify-content: center;
    }

    .fbm-mc__team-line {
        grid-template-columns: 1.45rem var(--fbm-match-crest-size) minmax(0, 1fr) auto minmax(2rem, auto);
        padding-right: 0.35rem;
        padding-left: 0.3rem;
    }

    .fbm-mc__team-favorite {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.82rem;
    }

    .fbm-mc__match-state {
        font-size: 0.6rem;
    }

    .fbm-mc__add {
        font-size: 1rem;
    }

    .fbm-mc__red-card {
        font-size: 0.78rem;
    }

    .fbm-mc__detail-hero {
        min-height: 9rem;
        grid-template-columns: minmax(0, 1fr) 4.8rem minmax(0, 1fr);
        align-items: start;
        gap: var(--fbm-space-2);
        padding: var(--fbm-space-3);
    }

    .fbm-mc__detail-result {
        width: 4.8rem;
    }

    .fbm-mc__detail-team,
    .fbm-mc__detail-result {
        display: grid;
        grid-template-rows: 3.6rem auto auto;
        align-content: start;
        justify-items: center;
        gap: var(--fbm-space-2);
    }

    .fbm-mc__detail-team-link {
        display: grid;
        grid-row: 1 / 3;
        grid-template-rows: 3.6rem auto;
        align-content: start;
        justify-items: center;
        gap: var(--fbm-space-2);
    }

    .fbm-mc__detail-crest,
    .fbm-mc__detail-scoreline {
        grid-row: 1;
        align-self: center;
    }

    .fbm-mc__detail-team-link > strong,
    .fbm-mc__detail-result > .fbm-mc__status {
        grid-row: 2;
    }

    .fbm-mc__detail-team > .fbm-mc__detail-scorer-list--team {
        grid-row: 3;
        align-self: start;
    }

    .fbm-mc__detail-scorers--score {
        display: none;
    }

    .fbm-mc__team-detail-hero,
    .fbm-mc__competition-detail-hero {
        min-height: 9rem;
        flex-direction: column;
        gap: var(--fbm-space-3);
        padding: var(--fbm-space-4);
    }

    .fbm-mc__detail-scorer-list--team {
        display: flex;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .fbm-mc__detail-team {
        gap: var(--fbm-space-2);
    }

    .fbm-mc__detail-columns {
        grid-template-columns: 1fr;
    }

    .fbm-mc__timeline li {
        grid-template-columns: minmax(0, 1fr) 2.8rem minmax(0, 1fr);
        column-gap: var(--fbm-space-1);
        font-size: 0.72rem;
    }

    .fbm-mc__timeline-side {
        gap: 0.3rem;
    }

    .fbm-mc__calendar-popover {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(22rem, calc(100vw - 1.5rem));
        transform: translate(-50%, -50%);
    }
}

@media (prefers-color-scheme: dark) {
    .fbm-mc[data-fbm-mc-theme="auto"] {
        --fbm-color-text: #f4f6fa;
        --fbm-color-muted: #aab2c0;
        --fbm-color-border-subtle: #333b4a;
        --fbm-color-surface: #171b23;
        --fbm-color-surface-muted: #222833;
        --fbm-color-surface-module: #1b2029;
        --fbm-color-accent: #d8dfed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fbm-mc__spinner,
    .fbm-mc__live-dot,
    .fbm-mc__sync-state--saving .fbm-mc__sync-indicator,
    .fbm-mc__sync-state--loading .fbm-mc__sync-indicator {
        animation: none;
    }

    .fbm-mc__toast {
        transition: none;
    }
}

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

@keyframes fbm-mc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
