/* Career search presentation: desktop workspace, independent mobile list. */
.career-database { padding-inline: clamp(24px,3.2vw,80px); }
.career-database .button { font: inherit; font-weight: 650; cursor: pointer; }
.career-database__layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: clamp(24px,2vw,40px); align-items: stretch; }
/* The results determine the row height; expanded filters stay inside that height. */
.career-database__sidebar { display: flex; contain: size; min-width: 0; min-height: 0; margin-top: 0; }
.career-database__results { min-height: 540px; }
.career-database__sidebar[hidden] { display: none; }
.career-results-toolbar { grid-template-columns: minmax(0,1fr) auto; align-items: start; margin-bottom: 36px; gap: 12px; }
.career-results-search { min-height: 58px; border-radius: 16px; background: #171c24; box-shadow: inset 0 1px #ffffff05; }
.career-results-search input { font-size: 1rem; }
.career-filter-trigger { display: none; }
.career-filter-count { display: inline-grid; min-width: 23px; height: 23px; place-items: center; border-radius: 6px; background: var(--color-career); color: #06101b; font-size: .8rem; }
.career-filter-count[hidden],.career-active-filters[hidden] { display: none; }
.career-active-filters { display: grid; gap: 12px; margin: -12px 0 24px; color: var(--color-muted); font-size: .88rem; }
.career-active-filters a { color: #91c4ff; text-underline-offset: 3px; }
.career-table-wrap { container-type: inline-size; overflow-x: auto; border-radius: 18px; background: var(--panel-fill); box-shadow: var(--panel-shadow); scrollbar-width: thin; }
.career-player-table { table-layout: fixed; --career-portrait-width: 54px; }
.career-player-table[data-column-count="7"] { min-width: 980px; }
/* Definite lengths are required here: percentage math on a table column may
   resolve as auto, dividing the name space between all selected statistics. */
.career-player-table .col-player { width: 320px; }
.career-player-table .col-club { width: 84px; }
.career-player-table .col-data { width: auto; }
.career-player-table .col-rating,.career-player-table .col-potential { width: 64px; }
.career-player-table :is(.col-value,.col-wage,.col-release_clause) { width: 96px; }
.career-player-table:not(:has(.col-data:not(.col-rating):not(.col-potential))) .col-player { width: auto; }
.career-player-table th { font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 17px 8px; vertical-align: middle; }
.career-player-table th:first-child,.career-player-table td:first-child { padding-left: 18px; }
.career-player-table th:first-child { padding-left: 84px; }
.career-player-table td { padding: 14px 8px; font-size: .95rem; height: 88px; }
.career-player-table th.career-cell-data,.career-player-table td.career-cell-data,.career-player-table .career-cell-club { text-align: center; font-variant-numeric: tabular-nums; }
.career-cell-data .career-table-sort { position: relative; justify-content: center; flex-wrap: nowrap; gap: 0; }
.career-cell-data .career-table-sort > .career-sort-indicator { position: absolute; left: calc(100% + 3px); }
.career-player-table th[aria-sort="none"] .career-sort-indicator { opacity: .35; }
.career-player-table th:is(:hover,:focus-within) .career-sort-indicator { opacity: 1; }
.career-player-table th[aria-sort="ascending"],.career-player-table th[aria-sort="descending"] { color: #b1d6ff; background: #248cff12; box-shadow: inset 0 -2px #5da8ff; }
.career-table-sort { min-height: 36px; flex-wrap: nowrap; white-space: nowrap; gap: 6px; }
.career-table-sort > .career-sort-indicator { flex: 0 0 auto; font-size: .85rem; line-height: 1; }
.career-column-short { display: none; }
.career-player-table :is([data-column="rating"],[data-column="potential"]) .career-column-full { display: none; }
.career-player-table :is([data-column="rating"],[data-column="potential"]) .career-column-short { display: inline; }
.career-player-table th,.career-player-table td { overflow-wrap: normal; }
.career-player-table th:last-child,.career-player-table td:last-child { padding-right: 16px; }
.career-player-table :is([data-column="rating"],[data-column="potential"]):last-child { padding-right: 8px; }
.career-cell-data { white-space: nowrap; }
.career-cell-club { white-space: nowrap; }
@container (max-width: 1040px) {
  .career-column-full { display: none; }
  .career-column-short { display: inline; }
}
.career-player-table__portrait { width: var(--career-portrait-width); height: 60px; background: linear-gradient(150deg,#2b313c,#1d232d); border-color: #ffffff08; border-radius: 12px; }
.career-player-table__player strong { font-size: 1rem; font-weight: 650; letter-spacing: -.02em; }
.career-player-table__player > a { display: grid; grid-template-columns: var(--career-portrait-width) minmax(0,1fr); gap: 12px; width: 100%; min-width: 0; }
/* Prefer spaces when wrapping; only break an unusually long single word when
   it cannot fit. Names grow the row and have no clipping or line limit. */
.career-player-table__player .career-player-name,.career-mobile-row__body .career-player-name { display: block; min-width: 0; max-width: 100%; height: auto; max-height: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; word-break: normal; line-height: 1.4; }
.career-player-nation { display: flex; align-items: center; min-height: 24px; }
.nation-flag { object-fit: contain; border-radius: 2px; vertical-align: middle; }
.career-logo-pair { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.catalog-logo-missing { display: inline-grid; place-items: center; width: 30px; height: 30px; color: var(--color-muted); }
.career-position-chip { display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 42px; border-radius: 7px; border: 1px solid #7cb4ff36; background: #1d3650; color: #b6d8ff; font-size: .92rem; font-weight: 750; }
.career-rating-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; background: var(--rating-bg,#29323d); color: var(--rating-ink,#f5f6f8); font-size: 1.08rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.career-player-table tbody tr:is(:hover,:focus-within) { background: #1b2633; }
.career-player-table tbody tr:is(:hover,:focus-within) td:first-child { box-shadow: inset 3px 0 #58a7ff; }
.career-filter-panel { display: flex; flex-direction: column; min-height: 0; width: 100%; border: 1px solid #ffffff0e; border-radius: 18px; background: linear-gradient(155deg,#18212d,#141920 180px); overflow: hidden; }
.career-filter-panel__header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid #ffffff0a; }
.career-filter-panel__header .eyebrow { display: none; }
.career-filter-panel__header h2 { margin: 0; font-size: 1.12rem; font-weight: 650; letter-spacing: -.025em; }
.career-filter-panel__header h2:focus { outline: none; box-shadow: none; }
.career-database__sidebar [data-career-dialog-close] { display: none; }
.career-filter-panel .career-filter-form--sheet { display: flex; flex-direction: column; gap: 0; min-height: 0; flex: 1; padding: 0; }
.career-filter-panel__fields { display: grid; flex: 1; min-height: 0; align-content: start; gap: 25px; padding: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.career-database__sidebar .career-filter-panel { flex: 1; max-height: none; }
.career-filter-panel__fields > .career-filter-group:first-child { border: 0; padding-top: 0; }
.career-filter-panel .career-filter-group legend { font-size: .8rem; font-weight: 650; letter-spacing: .025em; }
.career-filter-panel .career-field select,.career-filter-panel .career-field input,.career-filter-panel .career-range input { min-height: 44px; font-size: .9rem; background: #20262f; border-color: #ffffff12; border-radius: 9px; color: #e5e8ed; }
.career-filter-panel .career-range > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
.career-filter-panel input { min-width: 0; }
.career-filter-panel .career-position-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.career-filter-panel .career-position-grid span { min-height: 44px; font-size: .8rem; border-radius: 8px; background: #20262f; }
.career-filter-panel .career-position-grid input:checked + span { color: #fff; background: #1266d1; border-color: #4b9fff; box-shadow: inset 0 1px #ffffff24; }
.career-filter-panel__footer { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; margin-top: auto; border-top: 1px solid #ffffff0a; background: #141920; }
.career-filter-panel__footer .button { min-height: 44px; padding-inline: 12px; font-size: .8rem; }
.career-filter-panel__footer .button--accent { flex: 1; background: #1266d1; color: #fff; border-color: #408bdd; }
.career-squad-files { flex: 0 0 auto; display: grid; gap: 10px; padding: 15px 16px 16px; border-top: 1px solid #ffffff0a; background: #10161e; }
.career-squad-files__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.career-squad-files__header .eyebrow { display: block; margin-bottom: 2px; color: #7590ad; font-size: .57rem; letter-spacing: .08em; }
.career-squad-files__header h3 { margin: 0; font-size: .91rem; letter-spacing: -.01em; }
.career-squad-files__games { display: inline-flex; gap: 3px; padding: 2px; border: 1px solid #ffffff14; border-radius: 7px; background: #080f18; }
.career-squad-files__games a { min-width: 43px; padding: 5px 6px; border-radius: 5px; color: #8d9caf; font-size: .64rem; font-weight: 850; text-align: center; text-decoration: none; }
.career-squad-files__games a:is(:hover,:focus-visible,.is-active) { color: #fff; background: #18395b; }
.career-squad-files__games a.is-active { box-shadow: inset 0 0 0 1px #3996ee; }
.career-squad-files__form { display: grid; gap: 8px; margin: 0; }
.career-squad-files__form select { width: 100%; min-width: 0; min-height: 40px; padding: 7px 30px 7px 9px; border: 1px solid #ffffff16; border-radius: 8px; color: #e7edf5; background: #20262f; font: inherit; font-size: .73rem; }
.career-squad-files__actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 7px; }
.career-squad-files__actions .button { min-width: 0; min-height: 38px; justify-content: center; padding: 7px 8px; font-size: .72rem; }
.career-squad-files__actions .button--accent { color: #07121d; background: var(--color-career); border-color: var(--color-career); }
.career-squad-files__actions button:disabled { cursor: not-allowed; opacity: .45; }
.career-squad-files__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; color: #8fa0b4; font-size: .66rem; line-height: 1.4; }
.career-squad-files__meta span { color: #d6a76e; }
.career-filter-panel .career-filter-accordion summary { min-height: 44px; font-size: .87rem; }
.career-filter-sheet { inset: 12px 12px 12px auto; width: min(440px,calc(100% - 24px)); max-width: 100%; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 0; border-radius: 24px; overflow: hidden; }
.career-filter-sheet[open] { display: flex; }
.career-filter-sheet .career-filter-panel { border: 0; border-radius: 0; }
.career-filter-sheet .career-filter-panel__footer { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
.career-columns { position: relative; z-index: 5; }
.career-columns > summary { min-height: 58px; list-style: none; display: flex; align-items: center; gap: 10px; border: 1px solid #ffffff16; background: #171c24; border-radius: 14px; padding: 0 18px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.career-columns summary::-webkit-details-marker { display: none; }
.career-columns[open] > summary { border-color: #518fdd; }
.career-columns form { position: absolute; top: calc(100% + 10px); right: 0; width: 540px; max-width: calc(100vw - 40px); max-height: min(760px,calc(100dvh - 150px)); display: flex; flex-direction: column; padding: 22px; border: 1px solid #54799f6b; border-radius: 20px; background: #18212d; box-shadow: 0 24px 70px #0008; }
.career-columns__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.career-columns__heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.career-columns__heading > span { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; background: #234568; font-size: .8rem; color: #dcedff; }
.career-columns p { color: #b7c0cd; font-size: .8rem; line-height: 1.5; margin: 0 0 12px; }
.career-columns__presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.career-columns__presets button { min-height: 36px; padding: 5px 10px; border: 1px solid #ffffff20; border-radius: 8px; background: #202d3c; color: #dce8f8; font: inherit; font-size: .75rem; cursor: pointer; }
.career-columns__presets button[aria-pressed="true"] { background: #1259a1; border-color: #7fb5e9; }
.career-columns__selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.career-column-chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; border: 1px solid #52799e; border-radius: 8px; background: #233d58; padding-left: 9px; font-size: .75rem; }
.career-column-chip > span { overflow-wrap: anywhere; }
.career-column-chip button { flex-shrink: 0; min-width: 32px; min-height: 36px; padding: 0; border: 0; border-radius: 6px; color: #e9f4ff; background: transparent; font: inherit; cursor: pointer; }
.career-column-chip button:hover { background: #ffffff15; }
.career-columns__search { margin-bottom: 12px; }
.career-columns__search input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: #f5f8ff; background: #0f1926; border: 1px solid #ffffff24; border-radius: 10px; font: inherit; font-size: .9rem; }
.career-columns__catalog { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; min-height: 80px; flex: 1 1 auto; }
.career-column-group { border-bottom: 1px solid #ffffff13; }
.career-column-group summary { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: .87rem; font-weight: 650; cursor: pointer; }
.career-column-group summary::after { content: '⌄'; margin-left: auto; }
.career-column-group[open] summary::after { transform: rotate(180deg); }
.career-column-group [data-column-group-count] { padding: 3px 7px; border-radius: 6px; color: #b7d8ff; background: #233d58; font-size: .7rem; }
[data-column-group-count]:empty,[data-column-group][hidden],[data-column-option][hidden],[data-column-empty][hidden] { display: none; }
.career-column-group fieldset { border: 0; padding: 0 0 12px; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 12px; }
.career-column-group label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; border-radius: 8px; font-size: .85rem; cursor: pointer; overflow-wrap: anywhere; }
.career-column-group label:has(input:checked) { background: #ffffff08; }
.career-column-group input { width: 18px; height: 18px; accent-color: #248cff; flex-shrink: 0; }
.career-column-group label:has(input:disabled:not(:checked)) { color: #9daab9; }
.career-columns__footer { padding-top: 14px; }
.career-columns__actions { display: flex; gap: 8px; margin-bottom: 9px; }
.career-columns__actions button { flex: 1; }
.career-columns .career-columns__status { margin: 0; min-height: 24px; }
html.has-platform-dialog { overflow: hidden; }
/* Searchable native-select enhancements stay in the scrollable filter panel. */
.career-field > label { color: var(--color-muted); font-size: .875rem; font-weight: 650; }
.career-combobox { min-width: 0; }
.career-combobox__control { position: relative; }
.career-filter-panel .career-combobox__control input { padding-right: 42px; min-height: 46px; }
.career-combobox.has-value input { color: #f5f8ff; border-color: #427dbb; background: #172c43; }
.career-combobox__clear { position: absolute; right: 1px; top: 1px; width: 42px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; color: #b7c8dc; background: transparent; font: inherit; font-size: 1.3rem; cursor: pointer; }
.career-combobox__clear[hidden],.career-combobox__suggestions[hidden],.career-combobox__note[hidden],.career-club-hint[hidden] { display: none; }
.career-combobox__suggestions { margin-top: 7px; border: 1px solid #3e536c; border-radius: 12px; background: #1c2836; overflow: hidden; box-shadow: 0 8px 24px #0003; }
.career-combobox__list { position: relative; max-height: 228px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 4px; }
.career-combobox__option { display: flex; align-items: center; min-height: 44px; padding: 9px 10px; border-radius: 8px; color: #dae4f2; font-size: .88rem; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.career-combobox__option[aria-selected="true"] { color: #fff; background: #234368; }
.career-combobox__option.is-active,.career-combobox__option:hover { color: #fff; background: #2469b3; }
.career-combobox__note { margin: 0; padding: 10px 12px; border-top: 1px solid #ffffff12; font-size: .78rem; color: #bccbdd; line-height: 1.5; }
.career-club-hint { color: #94b9e7; font-size: .75rem; line-height: 1.5; }
.career-attribute-tools { display: grid; gap: 8px; margin-top: 12px; }
.career-text-action { min-height: 36px; justify-self: start; padding: 0 2px; border: 0; color: #9dcdff; background: transparent; font: inherit; font-size: .8rem; cursor: pointer; }
.career-text-action[hidden],.career-attribute-count:empty { display: none; }
.career-filter-accordion > summary > .career-attribute-count { margin-left: auto; margin-right: 12px; min-width: 24px; padding: 3px 6px; border-radius: 6px; background: #1a4474; text-align: center; color: #dcecff; font-size: .78rem; }
.career-filter-panel .career-attribute-help { font-size: .78rem; margin-block: 10px 14px; }
.career-attribute-category-filter { border-top: 1px solid #ffffff10; }
.career-filter-panel .career-attribute-category-filter > summary { gap: 10px; padding: 8px 0; min-height: 48px; font-size: .8rem; font-weight: 600; }
.career-attribute-category-filter > summary::after { content: '›'; font-size: 1.3rem; transform: rotate(90deg); }
.career-attribute-category-filter[open] > summary::after { content: '›'; transform: rotate(-90deg); }
.career-attribute-ranges { display: grid; gap: 16px; padding-bottom: 20px; }
.career-attribute-ranges .career-range > span { font-weight: 500; font-size: .83rem; }
[data-attribute-category][hidden],[data-attribute-row][hidden],[data-attribute-empty][hidden],.career-range-error[hidden] { display: none; }
.has-range-error input { border-color: #f1858d !important; }
.career-range .career-range-error { color: #ffa5ac; font-size: .75rem; font-weight: 500; }
.career-quick-view__metrics .career-rating-badge { width: 44px; height: 44px; color: var(--rating-ink); background: var(--rating-bg); }
.career-pagination { display: grid; justify-content: center; justify-items: center; gap: 12px; margin-top: 24px; text-align: center; }
.career-pagination > .career-pagination__controls { display: flex; justify-content: center; align-items: center; gap: 6px; }
.career-pagination a,.career-pagination__disabled { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding-inline: 6px; border: 1px solid var(--color-border); border-radius: 10px; font-variant-numeric: tabular-nums; }
.career-pagination__disabled { color: #718095; opacity: .5; }
.career-pagination a:focus-visible { outline: 2px solid #a0d0ff; outline-offset: 3px; }
@media (min-width: 1600px) {
  .career-database__layout { grid-template-columns: 300px minmax(0,1fr); }
  .career-player-table .col-player { width: 380px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .career-database { padding-inline: 24px; }
  .career-database__layout { grid-template-columns: 230px minmax(0,1fr); gap: 20px; }
  .career-filter-panel__fields { padding: 16px; }
  .career-player-table { --career-portrait-width: 40px; }
  .career-player-table .col-player { width: 300px; }
  .career-player-table .col-club { width: 74px; }
  .career-player-table th,.career-player-table td { padding-inline: 4px; }
  .career-player-table th:first-child,.career-player-table td:first-child { padding-left: 12px; }
  .career-player-table th:first-child { padding-left: 60px; }
  .career-player-table th:last-child,.career-player-table td:last-child { padding-right: 10px; }
  .career-player-table__player > a { gap: 8px; }
  .career-player-table__player strong { font-size: .92rem; }
  .career-player-table__portrait { height: 50px; }
  .career-logo-pair { gap: 6px; }
  .career-logo-pair img { width: 26px; height: 26px; }
  .career-column-full { display: none; }
  .career-column-short { display: inline; }
  .career-player-table [data-column="foot"],.career-player-table [data-column="contract"] { font-size: .8rem; white-space: normal; }
}
@media (max-width: 1023px) {
  .career-database { padding-inline: 20px; }
  .career-database__layout { display: flex; flex-direction: column; gap: 20px; }
  .career-database__sidebar { contain: none; width: 100%; order: 2; }
  .career-database__results { min-height: 0; }
  .career-database__sidebar .career-filter-panel { max-height: none; }
  .career-mobile-tabs { margin: 0 0 20px; padding: 0 0 4px; }
  .career-mobile-bottom-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .career-results-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 28px; }
  .career-results-search { grid-column: 1 / -1; }
  .career-filter-trigger,.career-results-toolbar > .career-mobile-only { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; font-size: .85rem; }
  .career-columns > summary { min-height: 48px; font-size: .85rem; padding-inline: 8px; justify-content: center; gap: 5px; }
  .career-filter-trigger { min-width: 0; padding-inline: 8px; }
  .career-filter-panel .career-field input,.career-filter-panel .career-range input { font-size: 16px; }
  .career-columns > summary > svg { display: none; }
  .career-columns form { position: fixed; top: max(90px,env(safe-area-inset-top)); left: 20px; right: 20px; width: auto; max-width: none; max-height: calc(100dvh - 180px); overflow-y: auto; }
  .career-columns form { padding: 16px; }
  .career-columns__search input { font-size: 16px; }
  .career-mobile-metric-tabs a { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
  .career-mobile-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 8px 10px; padding: 13px 10px; border-radius: 14px; background: #141920; }
  .career-mobile-row__position { grid-column: 2; grid-row: 2; justify-items: start; display: flex; align-items: center; gap: 8px; }
  .career-mobile-row__portrait { grid-column: 1; grid-row: 1 / 3; }
  .career-mobile-row__body { grid-column: 2 / -1; grid-row: 1; }
  .career-mobile-row__body > strong { font-size: .95rem; }
  .career-mobile-row__metrics { grid-column: 3; grid-row: 2; }
  .career-mobile-row__metrics small { font-size: .65rem; }
  .career-mobile-row__position small { font-size: .78rem; }
  .career-mobile-row .career-position-chip { width: 38px; height: 38px; min-height: 38px; font-size: .8rem; }
  .career-mobile-row .career-rating-badge { width: 38px; height: 38px; }
  .career-mobile-row__identity .nation-flag { height: 18px; }
  .career-database[data-metrics="finance"] .career-mobile-row__metrics--finance { grid-column: 2 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; min-width: 0; gap: 5px 8px; padding-top: 10px; border-top: 1px solid var(--color-border); }
  .career-mobile-row__metrics--finance b { font-size: .88rem; white-space: nowrap; }
  .career-mobile-row__metrics--finance b:first-of-type { grid-area: 1 / 1; }
  .career-mobile-row__metrics--finance b:nth-of-type(2) { grid-area: 1 / 2; }
  .career-mobile-row__metrics--finance b:nth-of-type(3) { grid-area: 1 / 3; }
  .career-mobile-row__metrics--finance small:first-of-type { grid-area: 2 / 1; }
  .career-mobile-row__metrics--finance small:nth-of-type(2) { grid-area: 2 / 2; }
  .career-mobile-row__metrics--finance small:nth-of-type(3) { grid-area: 2 / 3; }
}
@media (max-width: 480px) {
  .career-database { padding-inline: 16px; }
  .career-filter-sheet { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .career-database[data-metrics="finance"] .career-mobile-row__metrics--finance { gap: 4px; padding-top: 8px; }
  .career-mobile-row__metrics--finance b { font-size: .78rem; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes career-option-enter { from { opacity: .3; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
  .career-filter-panel { animation: platform-enter 650ms var(--motion-ease); }
  .career-combobox__suggestions { animation: career-option-enter 200ms var(--motion-ease); }
  .career-combobox__option,.career-combobox__control input { transition: background-color 160ms,border-color 180ms; }
  .career-player-table .career-rating-badge,.career-mobile-row .career-rating-badge { transition: transform 280ms var(--motion-ease),box-shadow 220ms; }
  .career-player-table .catalog-logo,.career-mobile-row .catalog-logo { transition: transform 350ms var(--motion-ease); }
  .career-player-table__portrait,.career-mobile-row__portrait { position: relative; }
  .career-player-table__portrait::after,.career-mobile-row__portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 25%,#ffffff2a 50%,transparent 75%); transform: translateX(-120%); transition: transform 650ms var(--motion-ease); }
  .career-attribute-ranges { animation: platform-enter 260ms var(--motion-ease); }
  .career-columns form { animation: platform-fade 160ms ease-out; }
  .career-columns > summary { transition: border-color 180ms,background-color 180ms; }
  .career-columns > summary:hover { background: #202a37; }
  .career-player-table th { transition: background-color 180ms,color 180ms,box-shadow 180ms; }
  .career-sort-indicator { transition: opacity 180ms; }
}
/* Live-search states: the input and its caret stay mounted during requests. */
.career-results-search { position: relative; }
.career-results-search:focus-within { border-color: var(--color-career); }
.career-results-search::after {
  content: ''; position: absolute; right: 10px; bottom: -1px; left: 10px;
  height: 2px; background: var(--color-career); opacity: 0;
  transform: scaleX(.25); transform-origin: left;
}
.is-searching .career-results-search::after { opacity: 1; }
.career-search-error:not([hidden]) {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 14px; border: 1px solid #ad635c;
  border-radius: var(--radius-control); background: var(--color-surface); font-size: .9rem;
}
.career-search-error .button { flex-shrink: 0; }
[data-career-results]:focus { outline: none; }
[data-career-results]:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-control); }
.career-filter-reset { color: var(--color-career); font-weight: 750; }
.career-results-search { transition: border-color var(--motion-fast); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes career-search-progress {
    0%, 100% { transform: scaleX(.25); opacity: .55; }
    50% { transform: scaleX(1); opacity: 1; }
  }
  .is-searching .career-results-search::after { animation: career-search-progress 1.1s ease-in-out infinite; }
}
@media (max-width: 767px) {
  .career-search-error:not([hidden]) { align-items: flex-start; flex-direction: column; }
  .career-search-error .button { min-height: 44px; }
  .career-field input, .career-field select, .career-range input { min-height: 44px; font-size: 16px; }
  .career-position-grid span { min-height: 44px; }
  .career-squad-files__actions .button { min-height: 44px; }
}

@media (max-width: 1023px) {
  .career-mobile-row__metrics b:first-of-type { grid-area: 1 / 1; }
  .career-mobile-row__metrics b:nth-of-type(2) { grid-area: 1 / 2; }
  .career-mobile-row__metrics small:first-of-type { grid-area: 2 / 1; }
  .career-mobile-row__metrics small:nth-of-type(2) { grid-area: 2 / 2; }
}
.career-mobile-row__custom { display: none; }
@media (max-width: 1023px) {
  .career-mobile-metric-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .career-database[data-metrics="custom"] .career-mobile-row__metrics,.career-database[data-metrics="custom"] .career-mobile-row__position { display: none; }
  .career-database[data-metrics="custom"] .career-mobile-row__body { grid-column: 2 / -1; }
  .career-database[data-metrics="custom"] .career-mobile-row__custom { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; grid-column: 2 / -1; grid-row: 2; padding-top: 8px; }
  .career-mobile-row__custom > span { display: grid; align-content: start; gap: 5px; min-width: 0; }
  .career-mobile-row__custom small { color: #a6b5c8; font-size: .65rem; overflow-wrap: anywhere; }
  .career-mobile-row__custom strong { font-size: .85rem; overflow-wrap: anywhere; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .career-player-table tbody tr:hover .career-rating-badge,.career-mobile-row:hover .career-rating-badge { transform: translateY(-2px); box-shadow: 0 5px 15px #0004; }
  .career-player-table tbody tr:hover .catalog-logo,.career-mobile-row:hover .catalog-logo { transform: translateY(-1px) scale(1.07); }
  .career-player-table tbody tr:hover .career-player-table__portrait::after,.career-mobile-row:hover .career-mobile-row__portrait::after { transform: translateX(120%); }
  .career-combobox__clear:hover { color: #fff; background: #ffffff12; }
}

/* Removable, URL-backed filter chips. */
.career-active-filters__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.career-active-filters__heading > a { flex-shrink: 0; min-height: 36px; display: inline-flex; align-items: center; }
.career-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.career-filter-chips .career-filter-chip { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; min-height: 40px; padding: 6px 10px 6px 12px; border: 1px solid #478fd16b; border-radius: 10px; background: #172e46; color: #d3e7ff; text-decoration: none; font-size: .8rem; }
.career-filter-chip > span:first-child { overflow-wrap: anywhere; }
.career-filter-chip > span:last-child { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #b9d8ff; font-size: 1.1rem; }
.career-filter-chip:hover { background: #21466e; border-color: #82beff; }
.career-filter-chip:hover > span:last-child { background: #ffffff17; color: #fff; }
.career-player-row { cursor: pointer; }
.career-player-row:focus-within { outline: 2px solid #78bbff; outline-offset: -2px; }
.career-player-table__player a:focus-visible { outline-offset: 3px; border-radius: 8px; }
.career-player-table [data-column^="attr_"] .career-column-full { display: none; }
.career-player-table [data-column^="attr_"] .career-column-short { display: inline; }
[data-searchable-filter] select[hidden] { display: none; }
[data-custom-sort-options] { display: contents; }
@media (prefers-reduced-motion: no-preference) {
  .career-filter-chip { transition: background-color 180ms,border-color 180ms,transform 180ms; animation: career-option-enter 220ms ease-out; }
  .career-filter-chip:hover { transform: translateY(-1px); }
  .career-column-chip { animation: career-option-enter 180ms ease-out; }
  .career-player-table__portrait img,.career-mobile-row__portrait img { transition: transform 480ms var(--motion-ease); }
  .career-player-row:hover .career-player-table__portrait img,.career-mobile-row:hover .career-mobile-row__portrait img { transform: translateY(-2px) scale(1.06); }
}
@media (max-width: 767px) {
  .career-filter-chips .career-filter-chip { min-height: 44px; }
  .career-columns form { max-height: calc(100dvh - 140px); }
  .career-columns__presets button { min-height: 40px; }
  .career-column-chip button { min-width: 36px; min-height: 40px; }
}
@media (max-width: 359px) { .career-column-group fieldset { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .career-pagination [data-mobile-page="false"] { display: none; } }
.catalog-logo[src$="/liga-bpi.png"] { background: #f8fbff; border-radius: 4px; padding: 2px; }

.career-multi-hint { color: #acbfd3; font-size: .8rem; line-height: 1.55; margin: 4px 0 18px; }
.career-combobox__selected { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.career-combobox__selected[hidden] { display: none; }
.career-combobox__chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 100%; min-height: 36px; border: 1px solid #5084ae77; border-radius: 9px; background: #22476a; color: #e8f4ff; padding: 6px 9px; font: inherit; font-size: .8rem; cursor: pointer; text-align: left; line-height: 1.35; }
.career-combobox__chip > span:first-child { overflow-wrap: anywhere; }
.career-combobox__chip > span:last-child { flex: 0 0 auto; font-size: 1.1rem; }
.career-combobox__chip:hover { background: #2d5b83; border-color: #73b5e8; }
.career-combobox__chip:focus-visible { outline: 2px solid #a4d6ff; outline-offset: 2px; }
.career-combobox__option[aria-selected="true"]::after { content: '✓'; margin-left: auto; padding-left: 10px; flex-shrink: 0; }
.career-position-grid [data-position-all] { min-height: 44px; padding: 5px; border: 1px solid var(--panel-border); border-radius: 8px; background: #20262f; color: #b6c8dc; font: inherit; font-size: .8rem; cursor: pointer; }
.career-position-grid [data-position-all][aria-pressed="true"] { color: #fff; background: #1266d1; border-color: #4b9fff; box-shadow: inset 0 1px #ffffff24; }
@media (pointer: coarse) { .career-combobox__chip { min-height: 44px; } }

/* v35.2 — one-click squad update views. */
.career-change-tabs { display:flex; align-items:center; gap:8px; margin:12px 0 18px; padding:5px; overflow-x:auto; border:1px solid var(--panel-border); border-radius:12px; background:#101b29; scrollbar-width:none; }
.career-change-tabs::-webkit-scrollbar { display:none; }
.career-change-tabs a { flex:0 0 auto; min-height:38px; display:inline-flex; align-items:center; justify-content:center; padding:7px 12px; border:1px solid transparent; border-radius:8px; color:#9fb0c4; font-size:.78rem; font-weight:800; text-decoration:none; white-space:nowrap; }
.career-change-tabs a:hover { color:#fff; background:#ffffff0a; }
.career-change-tabs a.is-active { color:#fff; border-color:#3497ff; background:#12345a; box-shadow:inset 0 1px #ffffff14; }
@media (max-width:767px) { .career-change-tabs { margin-inline:-2px; } .career-change-tabs a { min-height:42px; } }

/* 49.31: keep the ordinary navigation fallback usable on small screens. */
.career-database .career-search-error { flex-wrap: wrap; }
.career-database [data-career-full-page] { color: var(--career-accent, #248CFF); overflow-wrap: anywhere; text-underline-offset: .2em; }
.career-database [data-career-full-page]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
