.rfc-match-hub {
    width: 100%;
    margin: 35px 0;
    color: #fff;
}

.rfc-match-hub-heading {
    margin-bottom: 28px;
    text-align: center;
}

.rfc-match-hub-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1.15;
}

.rfc-match-hub-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin-bottom: 34px;
    background: #0f172a;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 14px;
}

.rfc-match-hub-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 68px;
    padding: 15px 12px;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    color: #9ca3af;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.rfc-match-hub-tab:last-child {
    border-right: 0;
}

.rfc-match-hub-tab:hover,
.rfc-match-hub-tab:focus-visible {
    color: #fff;
    background: rgba(96, 165, 250, .08);
    outline: none;
}

.rfc-match-hub-tab.is-active {
    color: #fff;
    background: #172033;
    box-shadow: inset 0 -4px 0 #60a5fa;
}

.rfc-match-hub-tab-icon {
    color: #60a5fa;
    font-size: 20px;
    line-height: 1;
}

.rfc-match-hub-panel {
    display: none;
}

.rfc-match-hub-panel.is-active {
    display: block;
}

.rfc-match-hub-module + .rfc-match-hub-module {
    margin-top: 28px;
}

.rfc-match-hub-module > .rfc-wer-comparison,
.rfc-match-hub-module > .rfc-wer-history {
    margin-top: 0;
    margin-bottom: 0;
}

.rfc-match-hub-message {
    margin: 0;
    padding: 25px;
    background: #111827;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 14px;
    color: #9ca3af;
    text-align: center;
}

.rfc-match-hub-placeholder {
    padding: 45px 25px;
    background: #111827;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 16px;
    text-align: center;
}

.rfc-match-hub-placeholder-kicker {
    display: block;
    margin-bottom: 7px;
    color: #60a5fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.rfc-match-hub-placeholder h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 26px;
}

.rfc-match-hub-placeholder p {
    max-width: 600px;
    margin: 0 auto;
    color: #9ca3af;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .rfc-match-hub-heading h2 {
        font-size: 27px;
    }

    .rfc-match-hub-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfc-match-hub-tab {
        min-height: 58px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        font-size: 12px;
    }

    .rfc-match-hub-tab:nth-child(2) {
        border-right: 0;
    }

    .rfc-match-hub-tab:nth-child(3),
    .rfc-match-hub-tab:nth-child(4) {
        border-bottom: 0;
    }
}

@media (max-width: 420px) {
    .rfc-match-hub-tab {
        gap: 5px;
        padding: 12px 6px;
        font-size: 11px;
    }

    .rfc-match-hub-tab-icon {
        font-size: 16px;
    }
}

/* =========================================================
   EMBEDDED LINEUPS — LAYOUT COMPATIBILITY
   The team sheet shortcode owns its content; the Match Hub
   only restores its two-column container layout.
========================================================= */
.rfc-match-hub-panel[data-rfc-hub-panel="lineups"] .rfc-team-sheets {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 24px !important;
    width: 100%;
}

.rfc-match-hub-panel[data-rfc-hub-panel="lineups"] .rfc-team-sheet-card {
    min-width: 0;
    width: 100%;
}

.rfc-match-hub-panel[data-rfc-hub-panel="lineups"] .rfc-team-sheet-key {
    grid-column: 1 / -1;
}

/* =========================================================
   GROUPED MATCH SCORERS
========================================================= */
.rfc-wer-match-scorers {
    padding: 30px;
    background: #111827;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 18px;
}

.rfc-wer-match-scorers-heading {
    margin-bottom: 24px;
    text-align: center;
}

.rfc-wer-match-scorers-heading span {
    display: block;
    margin-bottom: 6px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rfc-wer-match-scorers-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
}

.rfc-wer-match-scorers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.rfc-wer-scorer-team-card {
    overflow: hidden;
    min-width: 0;
    background: #172033;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.rfc-wer-scorer-team-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rfc-wer-scorer-team-header img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.rfc-wer-scorer-team-header h3 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 19px;
}

.rfc-wer-scorer-team-header strong {
    color: #60a5fa;
    font-size: 13px;
    text-transform: uppercase;
}

.rfc-wer-scorer-list {
    padding: 4px 20px 12px;
}

.rfc-wer-scorer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rfc-wer-scorer-row:last-child {
    border-bottom: 0;
}

.rfc-wer-scorer-row a,
.rfc-wer-scorer-row strong {
    display: block;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.rfc-wer-scorer-row a:hover {
    color: #60a5fa;
}

.rfc-wer-scorer-row span {
    display: block;
    margin-top: 3px;
    color: #9ca3af;
    font-size: 13px;
}

.rfc-wer-scorer-row b {
    min-width: 42px;
    color: #60a5fa;
    font-size: 22px;
    text-align: right;
}

.rfc-wer-scorer-empty {
    margin: 0;
    padding: 22px 0 12px;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 767px) {
    .rfc-match-hub-panel[data-rfc-hub-panel="lineups"] .rfc-team-sheets,
    .rfc-wer-match-scorers-grid {
        grid-template-columns: 1fr !important;
    }

    .rfc-wer-match-scorers {
        padding: 22px 16px;
    }
}
