.team-page { max-width: 1440px; padding-top: 20px; padding-bottom: 40px; color: #20282d; }
.team-page *, .team-page h1, .team-page h2, .team-page h3 { letter-spacing: 0; }
.team-page a { text-decoration: none; }
.team-page [hidden] { display: none !important; }
.club-banner { position: relative; isolation: isolate; min-height: 300px; background: var(--club-color); color: white; overflow: hidden; border-radius: 8px 8px 0 0; }
.club-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.16)); z-index: -1; }
.club-banner__cover { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; z-index: -2; }
.club-banner__identity { display: flex; align-items: center; gap: 28px; min-height: 300px; padding: 36px; }
.club-badge { flex: 0 0 144px; width: 144px; height: 160px; display: grid; place-items: center; }
.club-badge img { width: 100%; height: 100%; object-fit: contain; }
.club-badge > span { display: grid; place-items: center; width: 120px; height: 120px; background: #fff; color: #20282d; border-radius: 8px; font-size: 56px; font-weight: 800; }
.club-banner__text { min-width: 0; }
.club-banner h1 { font-size: 38px; line-height: 1.15; color: #fff; overflow-wrap: anywhere; margin: 0 0 10px; }
.club-banner p { margin: 0 0 16px; }
.club-tags, .club-actions, .club-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.club-tags { margin: 14px 0; font-size: 13px; }
.club-tags span { background: rgba(0,0,0,.3); padding: 5px 9px; border-radius: 4px; overflow-wrap: anywhere; }
.club-actions { margin-top: 20px; gap: 18px; }
.club-actions form { margin: 0; }
.team-page .btn { border-radius: 5px; font-size: 14px; min-height: 40px; padding: 9px 18px; white-space: normal; }
.club-socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ccd6dc; border-radius: 50%; font-size: 11px; font-weight: 800; color: inherit; }
.club-socials a:hover { background: #e9f2fa; color: #1765bf; }
.team-page .team-section-tabs { margin: 0; padding: 0 14px; gap: 8px; background: #fff; border-bottom: 1px solid #dce5e9; backdrop-filter: none; }
.team-page .team-section-tabs__item { border-radius: 0; padding: 18px 12px; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; }
.team-page .team-section-tabs__item.is-active, .team-page .team-section-tabs__item:hover { background: transparent; color: #1765bf; border-bottom-color: #1765bf; }
.team-page :focus-visible { outline: 3px solid #1983dc; outline-offset: 3px; }
.team-page .team-tab-panels { margin-top: 18px; }
.club-dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.club-dashboard > * { min-width: 0; }
.club-card { background: #fff; border: 1px solid #dce5e9; border-radius: 6px; padding: 18px; }
.club-dashboard h2 { font-size: 16px; line-height: 1.4; font-weight: 750; margin: 0 0 16px; color: #20282d; }
.club-dashboard h3 { font-size: 14px; line-height: 1.45; font-weight: 650; margin: 10px 0 6px; }
.club-dashboard p { font-size: 13px; }
.club-muted, .club-dashboard small { color: #617078; font-size: 12px; line-height: 1.5; }
.club-empty { color: #617078; padding: 24px 0; margin: 0; }
.club-summary, .club-form, .club-goals, .club-scorer { grid-column: span 3; }
.club-summary__numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.club-summary__numbers strong { display: block; font-size: 20px; white-space: nowrap; }
.club-summary__numbers span { color: #617078; font-size: 12px; }
.club-summary .club-muted { margin: 12px 0 0; }
.club-form__results { display: flex; flex-wrap: wrap; gap: 6px; }
.club-result { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 4px; font-weight: 700; color: #fff; font-size: 14px; }
.club-result--win { background: #00885e; }
.club-result--loss { background: #d93846; }
.club-result--draw { background: #edf0f2; color: #35434b; }
.club-result:hover { color: inherit; box-shadow: 0 0 0 2px #aebdc5; }
.club-value { font-size: 26px; }
.club-goal-bar { height: 9px; margin-top: 16px; background: #d7dee3; overflow: hidden; border-radius: 6px; }
.club-goal-bar span { display: block; height: 100%; background: #1676db; }
.club-scorer > a { display: flex; align-items: center; gap: 12px; color: inherit; font-size: 13px; }
.club-scorer img { width: 64px; height: 80px; object-fit: cover; border-radius: 5px; }
.club-scorer strong, .club-scorer small { display: block; overflow-wrap: anywhere; }
.club-scorer small { margin-top: 8px; font-weight: 700; }
.club-match { grid-column: span 4; display: flex; flex-direction: column; }
.club-match__date, .club-match > .club-muted { text-align: center; margin: 0 0 5px; }
.club-match__teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 12px; margin: 22px 0; }
.club-match__teams > a { display: flex; align-items: center; flex-direction: column; text-align: center; color: inherit; min-width: 0; font-size: 13px; }
.club-match__teams strong { overflow-wrap: anywhere; margin-top: 10px; }
.club-match__teams img { width: 64px; height: 72px; object-fit: contain; }
.club-match__teams > b { font-size: 23px; align-self: start; padding-top: 22px; white-space: nowrap; }
.club-mark { display: grid; place-items: center; width: 64px; height: 72px; border-radius: 6px; background: #edf2f5; color: #3a5263; font-size: 26px; flex-shrink: 0; }
.club-match > .btn { margin-top: auto; }
.club-match-result { align-self: center; margin-bottom: 12px; border-radius: 4px; padding: 4px 10px; font-size: 12px; background: #edf0f2; }
.club-match-result--win { background: #e3f5ed; color: #006544; }
.club-match-result--loss { background: #ffedef; color: #b32333; }
.club-upcoming { grid-column: span 4; }
.club-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.club-heading h2 { margin: 0; }
.club-heading a { font-size: 12px; color: #1765bf; }
.club-fixture { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; border-top: 1px solid #e9eef1; padding: 13px 0; color: inherit; font-size: 13px; align-items: center; }
.club-fixture strong { overflow-wrap: anywhere; font-size: 13px; }
.club-fixture span small { display: block; }
.club-fixture > small { background: #edf5fb; color: #1765bf; border-radius: 4px; padding: 4px 6px; }
.club-news { grid-column: span 8; }
.club-about { grid-column: span 4; }
.club-videos, .club-statistics { grid-column: span 6; }
.club-news, .club-about, .club-videos, .club-statistics { padding: 20px 0; border-top: 1px solid #dce5e9; }
.club-news__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.club-story, .club-video { color: inherit; min-width: 0; overflow-wrap: anywhere; }
.club-story > img, .club-media-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; margin-bottom: 8px; }
.club-media-placeholder { display: grid; place-items: center; background: #edf2f5; color: #617078; font-size: 16px; font-weight: 800; }
.club-about dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e4eaed; font-size: 13px; }
.club-about dt { color: #617078; font-weight: 400; }
.club-about dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.club-colors { display: flex; gap: 8px; }
.club-colors span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e1e7eb; }
.club-video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.club-video__image { display: flex; align-items: center; justify-content: space-evenly; gap: 8px; aspect-ratio: 16/10; background: #edf2f5; border-radius: 5px; padding: 10px; color: #1765bf; }
.club-video__image img { width: 30%; height: 64px; object-fit: contain; }
.club-statistics__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.club-statistics__grid > div { border-left: 3px solid #d5e9e0; padding: 5px 10px; background: #f7faf9; }
.club-statistics__grid > div:nth-last-child(2) { border-color: #e2b235; }
.club-statistics__grid > div:last-child { border-color: #d93846; }
.club-statistics dt { font-size: 11px; color: #617078; font-weight: 400; }
.club-statistics dd { margin: 0; font-size: 20px; font-weight: 750; }
.team-page .team-history-sections > section { border: 0; border-top: 1px solid #dce5e9; border-radius: 0; box-shadow: none; padding: 24px 0; margin: 0; background: transparent; }
.team-page .team-history-sections h2 { font-size: 20px; }
.team-page .content-card { border-radius: 6px; }
@media (max-width: 1100px) {
    .club-summary, .club-form, .club-goals, .club-scorer { grid-column: span 6; }
    .club-match { grid-column: span 6; }
    .club-upcoming { grid-column: span 12; }
    .club-news__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .club-videos, .club-statistics { grid-column: span 12; }
}
@media (max-width: 600px) {
    .team-page { padding: 0 12px 24px; }
    .club-banner { min-height: 270px; margin: 0 -12px; border-radius: 0; }
    .club-banner__identity { gap: 14px; min-height: 270px; padding: 24px 16px; align-items: flex-start; }
    .club-banner h1 { font-size: 26px; }
    .club-badge { flex-basis: 72px; width: 72px; height: 88px; }
    .club-badge > span { width: 64px; height: 72px; font-size: 32px; }
    .club-banner p { font-size: 13px; }
    .club-tags { font-size: 11px; gap: 6px; }
    .club-actions { gap: 10px; }
    .club-socials { gap: 7px; }
    .club-socials a { width: 34px; height: 34px; }
    .team-page .team-section-tabs { margin: 0 -12px; padding: 0 8px; gap: 0; }
    .team-page .team-section-tabs__item { padding: 15px 12px; font-size: 13px; }
    .club-dashboard { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .club-dashboard > * { grid-column: 1; }
    .club-summary { order: 0; padding: 12px; background: #f3f7f9; border: 0; }
    .club-summary > h2, .club-summary > p { display: none; }
    .club-summary__numbers { text-align: center; }
    .club-match--next { order: 1; }
    .club-match--last { order: 2; }
    .club-form { order: 3; }
    .club-scorer { order: 4; }
    .club-upcoming { order: 5; }
    .club-news { order: 6; }
    .club-about { order: 7; }
    .club-videos { order: 8; }
    .club-statistics { order: 9; }
    .club-goals { display: none; }
    .club-form__results { gap: 12px; }
    .club-result { width: 42px; }
    .club-video-grid { grid-template-columns: minmax(0,1fr); }
    .club-video { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 0 12px; }
    .club-video__image { grid-row: span 2; }
    .club-video h3 { margin: 0; }
    .club-video__image img { height: 44px; }
    .club-statistics__grid { gap: 8px; }
    .club-statistics__grid > div { padding: 5px 8px; }
}
