.cf-club-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: inherit;
  cursor: pointer;
}
.cf-club-link:hover { color: var(--lime, #c7f65b); text-decoration: underline; text-underline-offset: 3px; }
.cf-club-link-with-logo { display: inline-flex; align-items: center; gap: 10px; }
/* Keep linked club crests compact inside the live table. The generic logo
   component has no intrinsic wrapper size, so without this rule the image's
   natural dimensions increase every standings row. */
.season-table-rows .cf-club-link-with-logo > .has-club-logo {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  overflow: hidden;
}
.season-table-rows .cf-club-link-with-logo > .has-club-logo .club-logo-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.club-profile-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; overflow: hidden; padding: 34px; }
.club-profile-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--club-color) 20%, transparent), transparent 55%); pointer-events: none; }
.club-profile-back { position: absolute; top: 14px; left: 18px; z-index: 2; border: 0; background: none; color: var(--muted, #9ca3af); cursor: pointer; }
.club-profile-crest { width: 104px !important; height: 104px !important; position: relative; }
.club-profile-title, .club-profile-rank { position: relative; }
.club-profile-title h1 { margin: 5px 0 7px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.club-profile-title p { margin: 0; color: var(--muted, #9ca3af); }
.club-profile-rank { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.club-profile-rank strong { font-size: 2.5rem; color: var(--lime, #c7f65b); }
.club-profile-rank span { color: var(--muted, #9ca3af); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.club-profile-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 18px 0; border-radius: 14px; background: rgba(255,255,255,.035); }
.club-profile-tabs button { flex: 1; min-width: 110px; border: 0; border-radius: 10px; padding: 12px 16px; background: transparent; color: var(--muted, #9ca3af); font-weight: 700; cursor: pointer; }
.club-profile-tabs button.active { background: var(--lime, #c7f65b); color: #11150d; }
.club-profile-metrics, .club-record-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.club-profile-metrics article, .club-record-metrics article { padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.035); }
.club-profile-metrics span, .club-record-metrics span { display: block; margin-bottom: 8px; color: var(--muted, #9ca3af); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.club-profile-metrics strong, .club-record-metrics strong { font-size: 1.2rem; }
.club-profile-history, .club-profile-squad, .club-profile-transfers { padding: 24px; }
.club-profile-history header, .club-profile-transfers header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.club-profile-history h2, .club-profile-transfers h2 { margin: 3px 0 0; }
.club-history-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 16px; align-items: center; padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.07); }
.club-history-row.current { color: var(--lime, #c7f65b); }
.club-profile-table-head, .club-profile-player { display: grid; grid-template-columns: minmax(210px, 2fr) .45fr .45fr .45fr .55fr .8fr .8fr .8fr; gap: 12px; align-items: center; }
.club-profile-table-head { padding: 0 8px 12px; color: var(--muted, #9ca3af); font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.club-profile-position-group + .club-profile-position-group { margin-top: 18px; }
.club-profile-position-heading { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-left: 3px solid var(--lime, #c7f65b); border-radius: 7px; background: rgba(199,246,91,.07); }
.club-profile-position-heading strong { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.club-profile-position-heading span { color: var(--muted, #9ca3af); font-size: .72rem; }
.club-profile-player { padding: 11px 8px; border-top: 1px solid rgba(255,255,255,.07); }
.club-profile-player > span:first-child { display: flex; align-items: center; gap: 10px; }
.club-profile-player .cf-player-photo { width: 34px; height: 34px; }
.club-profile-transfers select { min-width: 160px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #151a20; color: inherit; }
.club-transfer-row { display: grid; grid-template-columns: 38px 1fr 120px 140px; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid rgba(255,255,255,.07); }
.club-transfer-row i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(199,246,91,.12); color: var(--lime, #c7f65b); font-style: normal; }
.club-transfer-row.departure i { background: rgba(251,113,133,.12); color: #fb7185; }
.club-transfer-row p { margin: 0; }
.club-transfer-row p span { display: block; margin-top: 3px; color: var(--muted, #9ca3af); font-size: .82rem; }
.club-transfer-row > b { text-align: right; }
.club-achievement-grid, .club-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.club-achievement-grid article, .club-record-grid article { padding: 24px; }
.club-achievement-grid svg { color: #f7cc59; }
.club-achievement-grid span, .club-record-grid small { color: var(--muted, #9ca3af); }
.club-achievement-grid h3, .club-record-grid h3 { margin: 12px 0 4px; font-size: 1.5rem; }
.club-record-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.club-record-scorer { display: flex; gap: 18px; align-items: center; margin-top: 14px; padding: 24px; }
.club-record-scorer svg { color: #f7cc59; }
.club-record-scorer h3, .club-record-scorer p { margin: 3px 0; }
.club-profile-empty { color: var(--muted, #9ca3af); padding: 28px 4px; text-align: center; }
@media (max-width: 1050px) {
  .club-profile-metrics { grid-template-columns: repeat(3, 1fr); }
  .club-profile-table-head { display: none; }
  .club-profile-position-heading { margin-bottom: 2px; }
  .club-profile-player { grid-template-columns: 1.6fr repeat(3, .5fr) .7fr; }
  .club-profile-player > span:nth-child(6), .club-profile-player > span:nth-child(8), .club-profile-player > span:nth-child(7) { display: none; }
}
@media (max-width: 700px) {
  .club-profile-hero { grid-template-columns: auto 1fr; padding: 42px 20px 24px; gap: 16px; }
  .club-profile-crest { width: 72px !important; height: 72px !important; }
  .club-profile-rank { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; align-items: baseline; }
  .club-profile-metrics, .club-record-metrics { grid-template-columns: repeat(2, 1fr); }
  .club-history-row { grid-template-columns: 1fr 1fr; }
  .club-profile-player { grid-template-columns: 1fr auto auto; }
  .club-profile-player > *:nth-child(n+4) { display: none; }
  .club-transfer-row { grid-template-columns: 34px 1fr auto; }
  .club-transfer-row > span { display: none; }
  .club-achievement-grid, .club-record-grid { grid-template-columns: 1fr; }
}
