.page-tim-wrapper { margin-top: 40px; margin-bottom: 4rem; overflow-x: hidden; }
.tim-header {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    border-bottom: 3px solid var(--accent);
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}
.tim-header-content { display: flex; align-items: center; gap: 2rem; }
.tim-logo {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid var(--accent); background: color-mix(in srgb, var(--text) 5%, transparent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tim-logo img { width: 80%; height: 80%; object-fit: contain; }
.tim-info h1 { font-size: 2.2rem; margin: 0 0 0.6rem; color: var(--text); }
.tim-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tim-meta span {
    display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted);
    padding: 0.35rem 0.8rem; background: color-mix(in srgb, var(--text) 3%, transparent);
    border-radius: 20px; border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); font-size: 0.9rem;
}
.tim-meta i { color: var(--accent); }
.tim-tabs {
    display: flex; gap: 0.4rem; margin-bottom: 1.5rem; padding: 0.4rem;
    background: color-mix(in srgb, var(--text) 2%, transparent); border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); flex-wrap: wrap;
}
.tim-tabs .tab-btn {
    flex: 1; min-width: 90px; padding: 0.8rem 1rem; background: transparent;
    border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; border-radius: 8px;
}
.tim-tabs .tab-btn.active { background: var(--accent); color: var(--text); }
.tim-overview { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.player-card {
    background: color-mix(in srgb, var(--bg-body) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--text) 5%, transparent);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.player-photo { height: 140px; background: var(--bg-surface); }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-info { padding: 1.2rem 0.8rem 0.9rem; text-align: center; position: relative; }
.player-number {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--text); width: 28px; height: 28px; line-height: 28px;
    border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}
.player-info h5 { margin: 0.4rem 0 0.2rem; color: var(--text); font-size: 0.95rem; }
.player-nationality { color: var(--text-muted); font-size: 0.8rem; }
.matches-subtabs { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.subtab-btn {
    padding: 0.55rem 1.1rem; border: none; border-radius: 20px;
    background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-muted); font-weight: 600; cursor: pointer;
}
.subtab-btn.active { background: var(--accent); color: var(--text); }
.subtab-pane { display: none; }
.subtab-pane.active { display: block; }
.page-tim-wrapper .jadwal-date-group { margin-bottom: 1.25rem; }
.page-tim-wrapper .date-header h3 {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}
.page-tim-wrapper .jadwal-matches-list { min-width: 0; }
.page-tim-wrapper .football-match-card { max-width: 100%; }
@media (max-width: 900px) {
    .tim-overview { grid-template-columns: 1fr; }
    .tim-header-content { flex-direction: column; text-align: center; }
    .tim-meta { justify-content: center; }
    .tim-info h1 { font-size: 1.5rem; }
    .tim-logo { width: 88px; height: 88px; }
    .squad-grid { grid-template-columns: repeat(2, 1fr); }
}
.page-tim-wrapper .football-match-card,
.page-tim-wrapper .football-match-card.fixture,
.page-tim-wrapper .football-match-card.finished,
.page-tim-wrapper .football-match-card.live {
    border-left: 0 !important;
    box-shadow: none;
}
.page-tim-wrapper .football-match-card::before {
    display: none !important;
}
.tim-match-date {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
@media (max-width: 720px) {
    .squad-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .player-card {
        display: flex;
        align-items: center;
        border-radius: 8px;
    }
    .player-photo {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    .player-info {
        padding: 0.45rem 0.7rem 0.45rem 0.55rem;
        text-align: left;
        position: static;
        flex: 1;
        min-width: 0;
    }
    .player-number {
        position: static;
        transform: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 0.7rem;
        margin-right: 0.35rem;
        vertical-align: middle;
    }
    .player-info h5 {
        display: inline;
        font-size: 0.88rem;
        margin: 0;
    }
    .player-nationality { display: none; }
}
