.team-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
    padding: 30px 0 24px;
}
.team-identity {
    display: flex;
    align-items: center;
    gap: 22px;
}
.team-logo-shell {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16,24,40,.05);
}
.team-logo-shell img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}
.team-identity h1 {
    margin: 7px 0 10px;
}
.team-identity p {
    margin: 0;
    color: #667085;
}
.team-rank-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16,24,40,.05);
}
.team-rank-card > strong {
    display: block;
    margin: 8px 0 2px;
    color: #14213d;
    font-size: 48px;
    line-height: 1;
}
.team-rank-card > span:not(.eyebrow) {
    color: #667085;
    font-size: 12px;
}
.rank-mini {
    margin-top: 14px;
    color: #475467;
    font-size: 12px;
}
.team-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 18px;
    padding: 20px 0 34px;
}
.team-summary-card,
.perelman-card {
    padding-bottom: 20px;
}
.team-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 0 20px;
}
.team-stat-grid div {
    padding: 15px 10px;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}
.team-stat-grid strong {
    display: block;
    color: #14213d;
    font-size: 24px;
}
.team-stat-grid span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
}
.perelman-card {
    padding: 22px;
}
.perelman-card h2 {
    margin: 8px 0 10px;
}
.perelman-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
}
.perelman-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.perelman-grid span {
    padding: 9px;
    border-radius: 9px;
    background: #f8fafc;
    color: #667085;
    font-size: 11px;
}
.perelman-grid b {
    color: #14213d;
}
.team-empty {
    padding: 0 20px;
    color: #667085;
}
.team-matches {
    padding-bottom: 34px;
}
.team-match-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.team-match-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16,24,40,.04);
}
.team-match-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 9px;
}
.result-badge,
.future-badge {
    min-width: 24px;
    padding: 3px 5px;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
}
.result-badge {
    background: #f0fdf4;
    color: #15803d;
}
.future-badge {
    background: #eff6ff;
    color: #2563eb;
}
.opponent-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
}
.opponent-row img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.opponent-row small,
.opponent-row strong {
    display: block;
}
.opponent-row small {
    color: #98a2b3;
    font-size: 9px;
    text-transform: uppercase;
}
.opponent-row strong {
    margin-top: 2px;
    font-size: 12px;
}
.team-match-score {
    margin: 13px 0 8px;
    color: #14213d;
    font-size: 24px;
    font-weight: 800;
}
.team-match-card time,
.venue-line {
    display: block;
    color: #667085;
    font-size: 10px;
    line-height: 1.5;
}
.venue-line {
    margin-top: 8px;
}
@media (max-width: 1050px) {
    .team-match-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .team-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .team-hero,
    .team-dashboard {
        grid-template-columns: 1fr;
    }
    .team-identity {
        align-items: flex-start;
    }
    .team-logo-shell {
        width: 88px;
        height: 88px;
        border-radius: 18px;
        flex: 0 0 auto;
    }
    .team-logo-shell img {
        width: 66px;
        height: 66px;
    }
    .team-match-grid {
        grid-template-columns: 1fr;
    }
}

/* SportViewLab team fixture competition label */
.team-match-competition {
    margin-top: 8px;
    color: #7f8da0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .01em;
}
