.fh-history-workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fh-history-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #101820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid #F7C600;
    border-radius: 18px;
}

.fh-history-hero img {
    width: 56px;
    height: 56px;
    padding: 6px;
    object-fit: contain;
    background: #0c1218;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.fh-history-kicker {
    margin: 0;
    color: #F7C600;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fh-history-hero h2 {
    margin: 2px 0 0;
    color: #f4f7fb;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.fh-history-eliminated,
.fh-history-empty--card {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
}

.fh-history-eliminated {
    color: #f3c6bc;
    background: #2a1510;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.fh-history-empty--card {
    color: #93a3b8;
    background: #101820;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fh-history-season {
    padding: 18px;
    background: #101820;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.fh-history-season__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fh-history-season__head h3 {
    margin: 0;
    color: #f4f7fb;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fh-history-honours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.fh-history-honours li {
    padding: 6px 11px;
    color: #d5dde6;
    font-size: 12px;
    font-weight: 700;
    background: #18222c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.fh-history-honours li.is-champion {
    color: #111;
    background: #F7C600;
    border-color: #F7C600;
}

.fh-history-path {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fh-history-phase {
    background: #0c141c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.fh-history-phase__summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.fh-history-phase__summary::-webkit-details-marker {
    display: none;
}

.fh-history-phase__index {
    flex: 0 0 auto;
    color: #6f8194;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fh-history-phase__name {
    display: flex;
    flex-direction: column;
    flex: 1 1 140px;
    min-width: 0;
}

.fh-history-phase__name strong {
    font-size: 14px;
    font-weight: 700;
}

.fh-history-phase__name small {
    overflow: hidden;
    color: #93a3b8;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-history-phase__stats {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #c5d0dc;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fh-history-phase__stats .is-points,
.fh-history-pos {
    color: #F7C600;
}

.fh-history-pos small {
    color: #93a3b8;
    font-size: 11px;
    font-weight: 600;
}

.fh-history-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #d5dde6;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    background: #1b2530;
    border-radius: 999px;
}

.fh-history-badge.is-running {
    color: #111;
    background: #F7C600;
}

.fh-history-badge.is-advanced {
    color: #d7ffe6;
    background: #1f6b3a;
}

.fh-history-badge.is-eliminated {
    color: #ffd6d9;
    background: #6b1f27;
}

.fh-history-phase__body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    padding: 4px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fh-history-phase__body.is-cup {
    display: block;
}

.fh-history-phase__body h4,
.fh-history-bracket__head h4 {
    margin: 14px 0 10px;
    color: #F7C600;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fh-history-bracket__head p {
    margin: -6px 0 12px;
    color: #93a3b8;
    font-size: 12px;
}

.fh-history-bracket__scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

.fh-history-bracket__board {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-width: max-content;
}

.fh-history-bracket__round {
    display: flex;
    flex-direction: column;
    width: 232px;
}

.fh-history-bracket__round h5 {
    margin: 0 0 10px;
    color: #93a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fh-history-bracket__round.is-final h5,
.fh-history-bracket__round.is-third_place h5 {
    color: #F7C600;
}

.fh-history-bracket__matches {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
}

.fh-history-bracket__match {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #141e28;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.fh-history-bracket__team {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    color: #d5dde6;
}

.fh-history-bracket__team + .fh-history-bracket__team {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fh-history-bracket__team img,
.fh-history-bracket__mark {
    width: 20px;
    height: 20px;
}

.fh-history-bracket__team img {
    object-fit: contain;
}

.fh-history-bracket__mark {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.fh-history-bracket__name {
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-history-bracket__score {
    color: #93a3b8;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fh-history-bracket__team.is-winner {
    color: #f4f7fb;
    background: rgba(247, 198, 0, 0.08);
}

.fh-history-bracket__team.is-winner .fh-history-bracket__score {
    color: #F7C600;
}

.fh-history-bracket__team.is-current .fh-history-bracket__name {
    color: #F7C600;
}

.fh-history-bracket__team.is-pending {
    color: #6f8194;
}

.fh-history-results__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fh-history-result {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 56px minmax(0, 1fr) 22px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: #141e28;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.fh-history-result__round {
    color: #93a3b8;
    font-size: 11px;
    font-weight: 700;
}

.fh-history-result__team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.fh-history-result__team.is-home {
    justify-content: flex-end;
    text-align: right;
}

.fh-history-result__team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fh-history-result__team img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.fh-history-result__score {
    color: #fff;
    font-size: 13px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fh-history-standings,
.fh-history-players {
    grid-column: 1 / -1;
}

.fh-history-table__scroll {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.fh-history-players__scroll {
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.fh-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fh-history-table th,
.fh-history-table td {
    padding: 8px 8px;
    color: #d5dde6;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.fh-history-table th {
    position: sticky;
    top: 0;
    color: #93a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #121a22;
}

.fh-history-table .is-name {
    width: 100%;
    color: #fff;
    text-align: left;
}

.fh-history-table .is-points {
    color: #F7C600;
    font-weight: 800;
}

.fh-history-table tr.is-current td {
    background: rgba(247, 198, 0, 0.08);
}

.fh-history-table tr.is-current .is-name {
    color: #F7C600;
    font-weight: 700;
}

.fh-history-table__team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fh-history-table__team img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.fh-history-role {
    display: inline-block;
    min-width: 30px;
    padding: 2px 4px;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    background: #93a3b8;
}

.fh-history-role.is-por { background: #f39c12; }
.fh-history-role.is-dif { background: #3498db; }
.fh-history-role.is-cen { background: #2ecc71; }
.fh-history-role.is-att { background: #e74c3c; }

.fh-history-empty,
.fh-history-note {
    margin: 0;
    color: #93a3b8;
    font-size: 12px;
}

.fh-history-note {
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .fh-history-phase__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .fh-history-hero h2 {
        font-size: 22px;
    }

    .fh-history-phase__summary {
        flex-wrap: wrap;
    }

    .fh-history-phase__stats {
        order: 3;
        flex-basis: 100%;
    }

    .fh-history-result {
        grid-template-columns: 56px minmax(0, 1fr) 48px minmax(0, 1fr) 22px;
    }
}
