.team-profile-page .insights-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.team-profile-page .insights-grid .nav-link { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; padding: 9px 12px; font-size: 13px; font-weight: 600; transition: color .15s, background-color .15s, border-color .15s; }
.team-profile-page .insights-grid .nav-link:hover { color: #115e59; border-color: #5eead4; background: #f0fdfa; transform: none; box-shadow: none; }
.team-profile-page .insights-grid .nav-link.active { color: #fff; border-color: #0f766e; background: #0f766e; }
.team-profile-page a:focus-visible, .team-profile-page input:focus-visible { outline: 3px solid #14b8a6; outline-offset: 3px; }
.team-profile-page .profile-panel { border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; background: #fff; box-shadow: 0 2px 6px rgb(15 23 42 / 4%); }
.team-profile-page .profile-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.team-profile-page .profile-panel-heading h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.team-profile-page .profile-panel-heading p { font-size: 12px; margin: 0; color: #64748b; }
.team-profile-page .profile-panel-heading > .bi { font-size: 26px; color: #0f766e; }
.team-profile-page .profile-count { padding: 4px 9px; border-radius: 7px; background: #f0fdfa; color: #115e59; font-size: 12px; white-space: nowrap; }
.team-profile-page .profile-empty { padding: 24px 12px; margin: 0; text-align: center; color: #64748b; font-size: 14px; }
.team-profile-page .profile-empty > .bi { display: block; font-size: 28px; color: #0f766e; margin-bottom: 8px; }
.team-profile-page .profile-empty h2 { font-size: 20px; color: #334155; }
.team-profile-page [hidden] { display: none !important; }
.team-profile-page .profile-table .table-wrapper { overflow-x: auto; border-radius: 8px; }
.team-profile-page .profile-table .is-selected-team > td { --bs-table-bg: #f0fdfa; --bs-table-striped-bg: #f0fdfa; font-weight: 600; }
.team-profile-page .profile-table .is-selected-team > td:first-child { box-shadow: inset 3px 0 #0f766e; }
.team-profile-page .team-match-list > [data-value] { margin-bottom: 10px !important; padding: 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
/* Keep the score and actions on the same centre line, independently of the date. */
.team-profile-page .profile-fixture-date { text-align: center; font-size: 11px; color: #64748b; margin-bottom: 8px; }
.team-profile-page .profile-fixture-match { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; gap: 10px; }
.team-profile-page .profile-fixture-home { min-width: 0; text-align: right; }
.team-profile-page .profile-fixture-away { min-width: 0; text-align: left; }
.team-profile-page .profile-fixture-home .team { display: flex; justify-content: flex-end; }
.team-profile-page .profile-fixture-away .team { display: flex; justify-content: flex-start; }
.team-profile-page .profile-fixture-score { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; overflow-wrap: anywhere; }
.team-profile-page .profile-kickoff { display: inline-block; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; white-space: nowrap; }
.team-profile-page .profile-fixture-actions { display: flex; justify-content: center; margin-top: 6px; }
.team-profile-page .team-match-list .team-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.team-profile-page .profile-squad { background: #fff; border: 1px solid #e2e8f0; padding: 22px; border-radius: 12px; }
.team-profile-page .profile-squad-search { display: grid; grid-template-columns: auto minmax(140px, 360px) auto; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12px; color: #64748b; }
.team-profile-page .profile-squad-search label { color: #334155; font-weight: 600; }
.team-profile-page .profile-squad-search input { font-size: 13px; }
.team-profile-page .profile-manager { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; text-align: left !important; padding: 14px !important; background: #f0fdfa; }
.team-profile-page .profile-manager .manager-header { grid-column: 2; grid-row: 1; margin: 0 !important; font-size: 10px; }
.team-profile-page .profile-manager .manager-photo-wrapper { grid-column: 1; grid-row: 1 / 3; margin: 0 !important; }
.team-profile-page .profile-manager .manager-name { grid-column: 2; grid-row: 2; font-size: 16px; }
.team-profile-page .profile-manager .manager-photo, .team-profile-page .profile-manager .manager-photo-placeholder { width: 56px !important; height: 56px !important; object-fit: cover; border-radius: 50%; }
.team-profile-page .profile-squad .position-heading { background: #f1f5f9; color: #334155 !important; border-left: 3px solid #0f766e; font-size: 12px; }
.team-profile-page .profile-squad .player-tile { padding: 14px 10px !important; border: 1px solid #e2e8f0 !important; box-shadow: none !important; position: relative; }
.team-profile-page .profile-squad .player-number { width: 26px; height: 26px; font-size: 11px; position: absolute; top: 8px; left: 8px; background: #0f766e !important; }
.team-profile-page .profile-squad .player-image, .team-profile-page .profile-player-placeholder { width: 64px; height: 64px; object-fit: cover; margin: 8px auto 10px !important; }
.team-profile-page .profile-player-placeholder { display: flex; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 50%; color: #64748b; font-size: 30px; }
.team-profile-page .profile-squad .player-name { font-size: 12px; overflow-wrap: anywhere; }
.team-profile-page .profile-squad .player-meta { font-size: 10px !important; }
.team-profile-page .profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.team-profile-page .profile-facts > div { padding: 14px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.team-profile-page .profile-facts dt { color: #64748b; font-weight: 500; font-size: 12px; margin-bottom: 5px; }
.team-profile-page .profile-facts dt .bi { color: #0f766e; margin-right: 4px; }
.team-profile-page .profile-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.team-profile-page .profile-description { color: #475569; line-height: 1.7; white-space: pre-line; }
.team-profile-page .profile-subheading { font-size: 16px; margin: 20px 0 12px; }
.team-profile-page .profile-quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.team-profile-page .profile-stadium-image { margin: 0 0 18px; background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.team-profile-page .profile-stadium-image img { display: block; width: 100%; max-height: 440px; object-fit: contain; }
.team-profile-page .profile-stadium-image figcaption { padding: 28px; color: #64748b; text-align: center; font-size: 13px; }
@media (max-width: 767.98px) {
    .team-profile-page .insights-grid { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 4px; }
    .team-profile-page .insights-grid .nav-item { flex: 0 0 auto; }
    .team-profile-page > .row > .col-md-2 { width: 33.333333%; }
    .team-profile-page .profile-panel, .team-profile-page .profile-squad { padding: 14px; }
    .team-profile-page .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .team-profile-page .profile-squad-search { grid-template-columns: 1fr; gap: 6px; }
    .team-profile-page .team-match-list > [data-value] { padding: 10px; }
    .team-profile-page .profile-fixture-match { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 6px; }
    .team-profile-page .team-match-list .team { gap: 4px; }
    .team-profile-page .team-match-list .badge-icon { flex-shrink: 0; }
}
