.ft-home-grid {
    text-align: left;
    width: 100%;
    padding: .5rem .75rem 1.5rem;
}

.ft-home-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .4rem;
}

.ft-home-table {
    font-size: .8rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.ft-home-table th,
.ft-home-table td {
    text-align: center;
    vertical-align: middle;
    padding: .4rem .45rem;
}

.ft-home-table thead th {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    border-top: 0;
    cursor: pointer;
    user-select: none;
    background: #fff;
}

.ft-home-table thead th.asc::after,
.ft-home-table thead th.desc::after {
    content: " ▲";
    font-size: .6rem;
    color: #212529;
}

.ft-home-table thead th.desc::after {
    content: " ▼";
}

.ft-home-table .ft-team-col {
    text-align: left;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    min-width: 11.5rem;
}

.ft-home-table thead .ft-team-col {
    z-index: 2;
}

.ft-home-table tbody tr:hover .ft-team-col {
    background: #f8f9fa;
}

.ft-team-open {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: #212529;
    text-align: left;
    white-space: nowrap;
}

.ft-team-open:hover {
    text-decoration: underline;
}

.ft-table-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.ft-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    text-align: left;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    color: #212529;
}

#team-modal .ft-card {
    box-shadow: none;
    border: 0;
    border-radius: 0;
}

.ft-card-header {
    display: flex;
    gap: .65rem;
    padding: .7rem .75rem .55rem;
    align-items: flex-start;
    border-bottom: 1px solid #f1f3f5;
}

.ft-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
}

.ft-logo-fallback {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: .3rem;
    background: #f1f3f5;
    color: #868e96;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ft-header-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ft-name {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
}

.ft-meta {
    color: #6c757d;
    font-size: .72rem;
    margin-top: .12rem;
}

.ft-record {
    font-weight: 600;
    margin-top: .15rem;
    font-size: .82rem;
}

.ft-grades {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .2rem;
    flex: 0 0 auto;
}

.ft-grades .badge {
    font-weight: 600;
    font-size: .68rem;
}

.ft-section-label {
    font-size: .62rem;
    font-weight: 700;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .4rem .65rem 0;
}

.ft-strip {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f1f3f5;
}

.ft-nhl-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ft-nhl-grid .ft-stat {
    flex: none;
    min-width: 0;
    padding: .28rem .06rem .35rem;
}

.ft-nhl-grid .ft-stat-label {
    letter-spacing: 0;
    white-space: nowrap;
}

.ft-stat {
    flex: 1 1 14%;
    min-width: 3.15rem;
    padding: .3rem .25rem .4rem;
    text-align: center;
}

.ft-stat-label {
    display: block;
    font-size: .6rem;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ft-stat-value {
    font-weight: 600;
    font-size: .82rem;
}

.ft-best {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem .65rem;
    padding: .45rem .7rem .7rem;
}

.ft-best-item {
    min-width: 0;
}

.ft-best-role {
    display: block;
    font-size: .6rem;
    color: #868e96;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .05rem;
}

.ft-best-line {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
}

.ft-best-line .ft-player-btn,
.ft-best-line a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: .78rem;
    padding: 0;
    line-height: 1.2;
    text-align: left;
}

.ft-muted {
    color: #adb5bd;
    font-style: italic;
}

.ft-pos-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: .62rem;
    font-weight: 700;
    color: #fff;
    background: #6c757d;
    min-width: 22px;
    text-align: center;
    flex: 0 0 auto;
}

.ft-pos-chip.pos-C { background: #007bff; }
.ft-pos-chip.pos-L { background: #28a745; }
.ft-pos-chip.pos-R { background: #dc3545; }
.ft-pos-chip.pos-D { background: #6f42c1; }
.ft-pos-chip.pos-G { background: #ffc107; color: #212529; }
.ft-pos-chip.pos-F { background: #17a2b8; }

.ft-grade-pill {
    display: inline-block;
    padding: .05rem .35rem;
    border-radius: 10px;
    background: #343a40;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    flex: 0 0 auto;
}

#fantasy-team-card-host {
    min-height: 8rem;
}

#team-modal .modal-body {
    padding: .5rem .65rem .75rem;
}
