:root {
    color-scheme: light;
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-raised: #f5f5f5;
    --line: #d6d7d8;
    --text: #1e1e1e;
    --muted: #616161;
    --accent: #007acc;
    --accent-dark: #005a9e;
    --blue: #006fbe;
    --font: "Segoe UI", Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
/* Bright: Visual Studio Light workbench, panels and blue selection accents. */
:root .site-header { background: #eeeeee; border-color: #cecece; }
:root .brand-mark { border-color: #c9c9c9; }
:root .brand-mark, :root .brand-dot { color: #007acc; }
:root .global-search, :root .filter-form { background: #ffffff; border-color: #cecece; }
:root .global-search:focus-within, :root .filter-form:focus-within { border-color: #007acc; }
:root .edition > span { color: #6e6e6e; }
:root .edition { color: #333333; border-color: var(--line); }
:root .list-header { background: #f5f5f5; color: #616161; }
:root .player-row, :root .club-list-row { border-color: #e7e7e7; }
:root .player-row:hover, :root .club-list-row:hover { background: #f0f6fb; }
:root .player-subline, :root .player-alias, :root .club-list-name small { color: #616161; }
:root .club-link { color: #424242; }
:root .player-name:hover, :root .club-link:hover, :root .nation-link:hover { color: #007acc; }
:root .rating.elite, :root .ability b.elite { background: #007acc; color: #ffffff; border-color: #007acc; }
:root .rating.excellent, :root .ability b.excellent { background: #e5f1fb; color: #006fbe; border-color: #9dc3e6; }
:root .rating.good, :root .ability b.good { background: #f3f7e9; color: #4e7223; border-color: #c4d6a7; }
:root .rating.normal, :root .ability b.normal { background: #f5f5f5; color: #616161; border-color: #d6d7d8; }
:root .rating.random, :root .ability b.random { background: #f3edf9; color: #68217a; }
:root .avatar { background: #f5f5f5; border-color: #c9c9c9; border-bottom-color: #adadad; color: #505050; }
:root .profile-hero, :root .club-hero, :root .nation-hero { background: #ffffff; border-color: #d6d7d8; }
:root .profile-accent { background: #007acc; }
:root .avatar-large { background: #e5f1fb; border-color: #9dc3e6; color: #006fbe; }
:root .profile-title .eyebrow, :root .club-title .eyebrow { color: #007acc; }
:root .profile-title p, :root .club-title p { color: #616161; }
:root .ability > span, :root .club-summary span { color: #616161; }
:root .ability i { color: #6e6e6e; }
:root .attribute-group h2 > span { color: #007acc; }
:root .club-card { background: #f5f9fc; border-color: #b8d3e8; }
:root .club-card:hover { border-color: #007acc; }
:root .club-crest { background: #e5f1fb; color: #006fbe; border-color: #9dc3e6; }
:root .club-card small, :root .club-card span span { color: #616161; }
:root .club-summary { border-color: #d6d7d8; }
:root .button { background: #f5f5f5; border-color: #adadad; color: #333333; }
:root .button:hover { background: #e5e5e5; }
:root .button-primary { background: #007acc; border-color: #007acc; color: #ffffff; }
:root .button-primary:hover { background: #006fbe; }
:root .column-sort.selected { color: #007acc; }
:root .page-number.active { background: #007acc; color: #ffffff; }
:root .page-number:hover, :root .page-arrow:hover { border-color: #007acc; color: #007acc; }
:root .breadcrumbs a:hover { color: #007acc; }
:root .row-arrow { color: #6e6e6e; }
:root .player-row:hover .row-arrow, :root .club-list-row:hover .row-arrow { color: #007acc; }
:root .result-count b, :root .player-age, :root .breadcrumbs > span:last-child, :root .profile-group h2, :root .club-average b { color: #333333; }
:root .eyebrow, :root .profile-stat > span, :root .panel-bottom, :root .site-footer { color: #6e6e6e; }
:root input::placeholder { color: #717171; }
:root kbd { border-color: #c9c9c9; color: #616161; background: #f5f5f5; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
:root body { background: #f5f5f5; }
body, button, input { color-scheme: light; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input { min-width: 0; color: var(--text); border: 0; outline: none; background: transparent; }
input::placeholder { color: #71808e; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
h1, h2, p { margin: 0; }
.muted { color: var(--muted); }
.dot { color: #5c6975; padding: 0 8px; }

.notice-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: #1e1e1e66; }
.notice-overlay[hidden] { display: none; }
.notice-dialog { width: min(480px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid #adadad; border-radius: 6px; background: #ffffff; box-shadow: 0 12px 40px #00000026; }
.notice-header { padding: 18px 24px; border-bottom: 1px solid #d6d7d8; background: #eeeeee; }
.notice-header span { color: #007acc; font: 10px var(--mono); letter-spacing: 1.2px; }
.notice-header h2 { margin-top: 7px; font-size: 20px; }
.notice-body { padding: 26px 24px; }
.notice-body p { color: #424242; line-height: 1.9; }
.notice-body .notice-tip { margin-top: 14px; color: #616161; font-size: 12px; }
.notice-actions { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid #d6d7d8; background: #f5f5f5; }
.activation-shell { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0; }
.activation-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.activation-copy h1 { margin: 18px 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; line-height: 1.2; }
.activation-copy > p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.activation-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
.activation-form label { color: #c2ccd4; font-size: 12px; font-weight: 600; }
.activation-form input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #9aa5ad; border-radius: 3px; background: #ffffff; color: #1e1e1e; caret-color: #1e1e1e; font: 14px var(--mono); }
.activation-form input::placeholder { color: #71808e; }
.activation-form input:focus { border-color: #007acc; }
.activation-form input:-webkit-autofill { -webkit-text-fill-color: #1e1e1e; box-shadow: 0 0 0 1000px #ffffff inset; }
.activation-form .button { min-height: 42px; }
.activation-error { color: #ef9a9a; font-size: 12px; }
.activation-group { padding: 16px; border-radius: 6px; background: #ffffff; text-align: center; }
.group-qr { display: block; width: 100%; height: auto; }
.activation-group p { margin-top: 10px; color: #424242; font-size: 12px; }
@media (max-width: 760px) {
    .activation-shell { padding: 32px 0; }
    .activation-card { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
    .activation-group { width: min(300px, 100%); margin: 0 auto; }
}

.site-header { height: 76px; border-bottom: 1px solid var(--line); background: #10151b; }
.header-inner { max-width: 1440px; height: 100%; margin: auto; padding: 0 36px; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { display: flex; align-items: baseline; color: var(--accent); font-size: 24px; font-weight: 900; letter-spacing: -2px; padding-right: 12px; border-right: 1px solid #35414a; }
.brand-mark > span { font-size: 13px; letter-spacing: -1px; }
.brand-dot { color: var(--accent); }
.main-nav { display: flex; align-self: stretch; gap: 24px; }
.main-nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); }
.global-search { margin-left: auto; width: min(320px, 28vw); position: relative; display: flex; align-items: center; height: 38px; gap: 10px; padding: 0 12px; border: 1px solid #34404b; border-radius: 5px; background: #0c1117; }
.global-search:focus-within { border-color: #7c9752; }
.global-search input { flex: 1; min-width: 0; font-size: 12px; }
.global-search button { padding: 4px; color: var(--muted); font-size: 11px; }
.global-search button:hover { color: var(--text); }
button:disabled { cursor: wait; opacity: .65; }
.search-icon { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border: 1.5px solid #8695a2; border-radius: 50%; position: relative; }
.search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; background: #8695a2; transform: rotate(45deg); right: -4px; bottom: -2px; }
kbd { font: 10px var(--mono); color: #83919c; border: 1px solid #34404b; border-radius: 3px; padding: 2px 5px; }
.edition { font-size: 11px; font-weight: 700; color: #c2ccd4; padding-left: 26px; border-left: 1px solid var(--line); line-height: 1.5; }
.edition > span { display: block; color: #72808d; font: 8px var(--mono); letter-spacing: .8px; }

.page-shell { width: min(1240px, calc(100% - 72px)); margin: 0 auto; padding: 54px 0 76px; min-height: calc(100vh - 200px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #9ba9b4; font: 10px var(--mono); letter-spacing: 1.6px; }
.eyebrow > span:first-child:not(:last-child) { width: 5px; height: 5px; background: var(--accent); }
.page-heading h1 { margin: 12px 0 10px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -1.8px; line-height: 1.1; }
.heading-period { color: var(--accent); }
.page-heading p { color: var(--muted); line-height: 1.8; }
.database-summary { display: flex; gap: 36px; padding-bottom: 5px; }
.database-summary > div { display: flex; flex-direction: column; gap: 7px; }
.database-summary b { font: 22px var(--mono); letter-spacing: -.8px; }
.database-summary span { color: var(--muted); font-size: 11px; }
.data-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.panel-toolbar { min-height: 77px; display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.filter-form { display: flex; align-items: center; width: 450px; max-width: 100%; gap: 11px; height: 38px; border: 1px solid #35414c; border-radius: 4px; padding-left: 13px; background: #0f151b; }
.filter-form input { flex: 1; font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #45515c; border-radius: 3px; min-height: 36px; padding: 0 16px; background: #242e37; color: var(--text); font-size: 12px; font-weight: 600; }
.button:hover { filter: brightness(1.1); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #16210c; }
.filter-form .button { align-self: stretch; min-height: auto; border-radius: 0 3px 3px 0; border: 0; }
.clear-filter { color: var(--muted); font-size: 11px; white-space: nowrap; }
.potential-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.potential-toggle:hover, .potential-toggle.active { border-color: var(--accent); color: var(--accent); }
.potential-toggle.active { background: #e5f1fb; }
.potential-toggle span { font: 12px var(--mono); }
.result-count { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.result-count b { color: #dce3e8; font-family: var(--mono); font-weight: 500; }
.list-header { display: grid; grid-template-columns: 138px minmax(140px, 1fr) 110px 100px 100px 52px 26px; gap: 18px; align-items: center; padding: 13px 24px; color: #81919e; font: 9px var(--mono); letter-spacing: .7px; border-bottom: 1px solid var(--line); background: #11171d; }
.column-sort { display: inline-flex; align-items: center; gap: 10px; }
.list-header .wage-column { display: inline-flex; }
.column-sort span { opacity: .4; }
.column-sort:hover, .column-sort.selected { color: var(--accent); }
.column-sort.selected span { opacity: 1; }
.player-row { display: grid; grid-template-columns: 96px 42px minmax(140px, 1fr) 110px 100px 100px 52px 26px; gap: 18px; align-items: center; min-height: 84px; padding: 14px 24px; border-bottom: 1px solid #222c35; transition: background .15s; }
.player-row:last-child { border-bottom: 0; }
.player-row:hover { background: #19231f; }
.player-ratings { display: flex; gap: 7px; }
.rating { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 33px; border-radius: 3px; font: bold 13px var(--mono); }
.rating.elite, .ability b.elite { background: var(--accent); color: #1a2910; }
.rating.excellent, .ability b.excellent { background: #a5d99a; color: #18321b; }
.rating.good, .ability b.good { background: #d8cd85; color: #342e14; }
.rating.normal, .ability b.normal { background: #33414d; color: #c1ccd5; }
.rating.random, .ability b.random { background: #b1a3db; color: #251d3c; font-size: 10px; }
.avatar { position: relative; overflow: hidden; width: 42px; height: 46px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 5px 5px 8px 8px; border: 1px solid #43505b; border-bottom: 2px solid #758576; background: linear-gradient(145deg, #2e3b46, #1b252e); color: #bac7d0; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
/* The photo covers the initials; a missing/failed photo reveals them. */
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #ffffff; }
.avatar-img[hidden] { display: none; }
.player-identity { min-width: 0; }
.player-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; letter-spacing: -.1px; }
.player-name:hover { color: var(--accent); }
.player-subline { display: flex; align-items: center; gap: 7px; margin-top: 7px; min-width: 0; font-size: 10px; color: var(--muted); }
.player-subline > span:not(.dot) { white-space: nowrap; }
.player-alias { margin-top: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); }
.player-alias span { margin-right: 6px; padding: 0 4px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; letter-spacing: .5px; }
.flag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 16px; object-fit: cover; border-radius: 1px; line-height: 1; vertical-align: middle; }
.flag-placeholder { color: #70818d; font-size: 8px; }
.flag-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 16px; line-height: 1; }
.profile-title .flag-emoji, .info-panel .flag-emoji { flex-basis: 24px; width: 24px; height: 20px; font-size: 20px; }
.club-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #b8c5ce; }
.club-link > span { color: #6e8070; }
.club-link:hover { color: var(--accent); }
.player-contract, .player-wage { color: var(--muted); font: 11px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-wage { text-align: left; }
.player-age { color: #bdc8d0; font: 12px var(--mono); text-align: left; }
.mobile-label { display: none; }
.row-arrow { color: #81918b; font-size: 19px; text-align: right; transition: transform .15s, color .15s; }
.player-row:hover .row-arrow, .club-list-row:hover .row-arrow { color: var(--accent); transform: translateX(3px); }
.panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 65px; padding: 12px 22px; border-top: 1px solid var(--line); color: #758592; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 12px; }
.page-numbers { display: flex; gap: 3px; }
.page-number, .page-arrow { display: flex; justify-content: center; align-items: center; min-width: 27px; height: 27px; border: 1px solid transparent; border-radius: 3px; font: 11px var(--mono); }
.page-number:hover, .page-arrow:hover { border-color: #52614a; color: var(--accent); }
.page-number.active { color: #19240f; background: var(--accent); }
.page-arrow.disabled { color: #46535d; }
.page-range { display: none; font: 10px var(--mono); }
.empty { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.empty b { color: var(--text); font-size: 17px; }

.breadcrumbs { display: flex; gap: 11px; align-items: center; margin-bottom: 23px; color: #8c9ba7; font-size: 11px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs > span:last-child { color: #ced6dc; }
.profile-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 35px 36px 35px 42px; border: 1px solid #34422f; border-radius: 7px; background: linear-gradient(112deg, #1d2a20, #151e1d 62%, #182026); }
.profile-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.profile-main { display: flex; align-items: center; gap: 24px; min-width: 0; }
.avatar-large { width: 92px; height: 102px; font-size: 26px; border-radius: 10px 10px 17px 17px; border-color: #576b52; background: linear-gradient(145deg, #384a36, #202d26); color: #d9e6ce; }
.profile-title { min-width: 0; }
.profile-title .eyebrow { font-size: 9px; }
.profile-title .eyebrow span { color: #647860; }
.profile-title h1 { margin: 10px 0 11px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.profile-title p { display: flex; align-items: center; gap: 7px; color: #aab8b0; font-size: 11px; }
/* Natural-position chips. Colour follows the FM pitch lines. */
.position-list { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.position-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; padding: 2px 6px; border: 1px solid var(--line);
    border-radius: 3px; background: var(--surface-raised);
    font: 600 9px var(--mono); letter-spacing: .3px; line-height: 1.5;
    white-space: nowrap; cursor: default;
}
.pos-gk { border-color: #e3c46f; background: #fbf3dd; color: #8a6a12; }
.pos-df { border-color: #9dc3e6; background: #e5f1fb; color: #006fbe; }
.pos-mf { border-color: #a9cfa0; background: #edf7ec; color: #3f7a33; }
.pos-fw { border-color: #e8a9a1; background: #fdefeb; color: #c03f2c; }
.position-empty { color: var(--muted); font-size: 11px; }
/* Player list: chips sit under the nationality/club subline. */
.player-positions { margin-top: 5px; }
.player-positions .position-chip { font-size: 8px; min-width: 25px; padding: 1px 4px; }
/* Profile hero: chips directly under the player's name, above the nation row. */
.profile-positions { margin: 0 0 11px; }
.profile-positions .position-chip { min-width: 36px; padding: 3px 8px; font-size: 10px; }
/* Detail "Player info" block. */
.position-info .position-list { gap: 6px; }
.position-info .position-chip { min-width: 32px; font-size: 10px; padding: 3px 8px; }
/* Position familiarity sits between identity and attributes. The pitch and
   its explanation share a dedicated panel instead of squeezing player info. */
.position-panel { margin-bottom: 22px; padding: 26px 28px 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.position-panel .section-heading { margin-bottom: 22px; }
.position-map { display: grid; grid-template-columns: 270px minmax(0, 1fr); justify-content: center; align-items: center; gap: 48px; }
.position-pitch { position: relative; width: 100%; aspect-ratio: 7 / 10; overflow: hidden; isolation: isolate; border: 1px solid #bfd0bd; border-radius: 5px; background: #f2f6ef; }
.position-pitch::before { content: ''; position: absolute; z-index: -1; inset: 7px; border: 1px solid #ffffff; pointer-events: none; }
.pitch-markings, .pitch-markings-vertical { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #a8bea5; stroke-width: 1; opacity: .75; }
.pitch-markings { display: none; }
.pitch-markings path, .pitch-markings circle, .pitch-markings-vertical path, .pitch-markings-vertical circle { vector-effect: non-scaling-stroke; }
.pitch-cell { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 25%; height: 10.5%; border: 1px solid; border-radius: 4px; font-family: var(--mono); line-height: 1; transform: translate(-50%, -50%); cursor: default; }
.pitch-cell b { font-size: 10px; font-weight: 650; letter-spacing: .15px; }
.pitch-cell small { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pitch-cell[data-level="natural"], .legend-swatch[data-level="natural"] { border-color: #347c46; background: #438b51; color: #ffffff; }
.pitch-cell[data-level="accomplished"], .legend-swatch[data-level="accomplished"] { border-color: #a5c86c; background: #d2e8a7; color: #405e20; }
.pitch-cell[data-level="competent"], .legend-swatch[data-level="competent"] { border-color: #e4c661; background: #f5e5a4; color: #745b18; }
.pitch-cell[data-level="awkward"], .legend-swatch[data-level="awkward"] { border-color: #d79c72; background: #f0d3bc; color: #81512f; }
.pitch-cell[data-level="unavailable"] { border: 0; background: #e5ebe280; color: #9ba59a; }
.pitch-cell[data-level="unavailable"] b { font-weight: 500; }
.legend-swatch[data-level="unavailable"] { border: 1px solid #c7d0c8; background: #edf0ec; }
.pitch-cell[data-position="ST"] { left: 50%; top: 8%; }
.pitch-cell[data-position="AML"] { left: 18%; top: 22%; }
.pitch-cell[data-position="AMC"] { left: 50%; top: 22%; }
.pitch-cell[data-position="AMR"] { left: 82%; top: 22%; }
.pitch-cell[data-position="ML"] { left: 18%; top: 38%; }
.pitch-cell[data-position="MC"] { left: 50%; top: 38%; }
.pitch-cell[data-position="MR"] { left: 82%; top: 38%; }
.pitch-cell[data-position="WBL"] { left: 18%; top: 57%; }
.pitch-cell[data-position="DM"] { left: 50%; top: 57%; }
.pitch-cell[data-position="WBR"] { left: 82%; top: 57%; }
.pitch-cell[data-position="DL"] { left: 18%; top: 76%; }
.pitch-cell[data-position="DC"] { left: 50%; top: 76%; }
.pitch-cell[data-position="DR"] { left: 82%; top: 76%; }
.pitch-cell[data-position="GK"] { left: 50%; top: 92%; }
.position-map-empty .position-pitch { opacity: .65; }
.position-legend { width: 100%; max-width: 420px; }
.position-summary { display: flex; align-items: center; gap: 16px; min-height: 52px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.position-summary > span { color: var(--muted); font-size: 11px; }
.position-summary .position-chip { min-width: 40px; padding: 4px 9px; border-color: var(--line); background: var(--surface-raised); color: var(--text); font-size: 11px; }
.position-summary > b { font-size: 12px; font-weight: 500; }
.position-legend > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.position-legend > h3 span { color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.position-legend ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.position-legend li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 34px; border-bottom: 1px solid #eceeea; font-size: 11px; }
.position-legend li:last-child { border-bottom: 0; }
.position-legend li b { font-weight: 500; }
.position-legend li span { display: none; }
.position-legend li em { color: var(--muted); font: normal 10px var(--mono); }
.legend-swatch { display: block; width: 7px; height: 7px; border: 0; border-radius: 50%; }
.position-legend p { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.info-panel dt .dt-en { margin-left: 6px; color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.ability-cards { display: flex; gap: 24px; }
.ability { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.ability > span { grid-column: 1 / 3; margin-bottom: 8px; color: #a0b0a5; font-size: 10px; }
.ability > span small { margin-left: 5px; font: 9px var(--mono); color: #738577; }
.ability b { display: flex; align-items: center; justify-content: center; width: 62px; height: 58px; border-radius: 5px; font: bold 25px var(--mono); }
.ability i { font: 9px var(--mono); font-style: normal; color: #819083; }
.detail-grid { display: block; margin-top: 22px; }
.info-panel { margin-bottom: 22px; }
.info-panel, .attributes-panel, .hidden-panel, .position-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.info-panel > h2 { padding: 22px; font-size: 14px; border-bottom: 1px solid var(--line); }
.info-panel > h2 span { display: block; margin-top: 6px; color: #738390; font: 8px var(--mono); letter-spacing: 1.5px; }
.info-sections { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); }
.info-section { min-width: 0; padding: 0 26px 24px; }
.info-section + .info-section { border-left: 1px solid var(--line); }
.info-section > h3 { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; font-size: 11px; font-weight: 650; }
.info-section > h3 span { color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.info-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; padding: 14px 0 0; }
.info-panel dl > div { min-width: 0; padding: 0; border: 0; }
.info-panel dl > .info-wide { grid-column: 1 / -1; }
.info-panel dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.info-panel dd { min-height: 24px; font-size: 13px; }
.info-panel .player-full-name { font-size: 14px; font-weight: 600; }
.info-panel time, .physical-value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.info-panel dd > .flag-emoji { flex: 0 0 auto; }
.age-chip { display: inline-flex; align-items: center; margin-left: 4px; padding: 3px 7px; border: 1px solid #e0e6e9; border-radius: 4px; background: #f5f5f5; color: #616161; font: 10px var(--mono); line-height: 1.2; white-space: nowrap; }
.club-field { padding-top: 2px !important; }
.info-panel .club-card { width: 100%; max-width: none; margin: -2px 0 0; padding: 14px; }
.info-panel .club-card small { margin-bottom: 4px; }
.info-panel .club-card b { font-size: 12px; }
dl { margin: 0; padding: 9px 22px 15px; }
dl > div { padding: 13px 0; border-bottom: 1px solid #253039; }
dl > div:last-child { border: 0; }
dt { margin-bottom: 7px; color: #8495a2; font-size: 10px; }
dd { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
dd small { margin-left: auto; color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.weekly-wage { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
#weekly-wage-value { font: 600 12px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.weekly-wage > small { margin-left: 0; }
.currency-switch { display: inline-flex; flex-basis: 100%; gap: 3px; margin-top: 4px; }
.currency-switch button { min-width: 38px; min-height: 25px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-raised); color: var(--muted); font: 600 9px var(--mono); }
.currency-switch button:hover { border-color: var(--accent); color: var(--accent); }
.currency-switch button.active { border-color: var(--accent); background: var(--accent); color: #ffffff; }
.club-card { display: flex; align-items: center; gap: 12px; margin: 4px 15px 15px; padding: 14px 12px; border: 1px solid #354432; border-radius: 5px; background: #19231b; }
.club-card:hover { border-color: #6a834e; }
.club-crest { width: 38px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid #4b5b46; clip-path: polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); background: #2d3c2a; color: #d0e2bb; font-size: 11px; font-weight: 700; }
.club-card > span:nth-child(2) { min-width: 0; }
.club-card small, .club-card b, .club-card span span { display: block; }
.club-card small { color: #899b89; font-size: 9px; margin-bottom: 5px; }
.club-card b { font-size: 11px; line-height: 1.5; }
.club-card span span { margin-top: 5px; color: #93a28f; font-size: 9px; }
.club-card i { margin-left: auto; font-style: normal; color: var(--accent); }
.attributes-panel { padding: 26px 28px 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-heading h2 { margin-top: 9px; font-size: 21px; letter-spacing: -.5px; }
.section-heading h2 > span { margin-left: 10px; color: #8695a1; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.scale-note { color: #7c8c99; font: 9px var(--mono); }
.attribute-toolbar { display: flex; align-items: center; gap: 14px; }
.language-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); }
.language-switch button { min-width: 38px; height: 27px; padding: 0 9px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font: 600 10px var(--font); }
.language-switch button:hover { color: var(--accent); }
.language-switch button.active { background: var(--accent); color: #ffffff; }
.attribute-group h2 .group-name { color: inherit; font: inherit; }
.profile-group h2 .group-name { color: inherit; font: inherit; }
.attribute-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.attribute-group { min-width: 0; padding: 0 26px; }
.attribute-group:first-child { padding-left: 0; }
.attribute-group:last-child { padding-right: 0; }
.attribute-group + .attribute-group { border-left: 1px solid var(--line); }
.attribute-group h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; letter-spacing: -.1px; }
.attribute-group h2 > span { color: #728465; font: 9px var(--mono); }
.attribute-group h2 small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 400; }
.attribute-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 33px; border-bottom: 1px solid var(--attribute-divider, #edf0e9); }
.attribute-row:last-child { border-bottom: 0; }
.attribute-row > span:first-child { color: var(--attribute-label, #bac5cc); font-size: 11px; line-height: 1.4; }
.attribute-value { flex: 0 0 25px; text-align: right; background: transparent; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; }
.attribute-value.elite { color: #4c7d1e; }
.attribute-value.good { color: #75863b; }
.attribute-value.average { color: #9a8037; }
.attribute-value.low { color: #9b7469; }
:root { --attribute-divider: #e7e7e7; --attribute-label: #424242; }
.rating.random, .ability b.random { background: #e8dfbd; color: #68512a; font-size: 11px; }
.hidden-panel { margin-top: 22px; padding: 26px 28px 30px; }
.hidden-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.profile-group { min-width: 0; }
.profile-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface-raised); color: var(--text); font-size: 13px; font-weight: 650; }
.profile-group h2 > span { color: var(--accent); font: 9px var(--mono); }
.profile-group h2 small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 400; }
.profile-stats { display: grid; grid-template-columns: 1fr; }
.profile-stat { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--attribute-divider, #e7e7e7); }
.profile-stat:last-child { border-bottom: 0; }
.profile-stat > span { color: var(--attribute-label, #bac5cc); font-size: 12px; }
.profile-stat b { display: flex; align-items: center; justify-content: center; width: 30px; height: 26px; border-radius: 3px; font: 600 12px var(--mono); font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }
.player-tabs { display: flex; align-items: stretch; gap: 30px; margin-top: 16px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.player-tab { position: relative; min-height: 46px; padding: 0 2px 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .15s; }
.player-tab::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.player-tab:hover { color: var(--text); }
.player-tab.active { color: var(--accent); font-weight: 650; }
.player-tab.active::after { background: var(--accent); }
#overview-panel, #career-panel { outline-offset: 6px; }
.career-panel { margin-top: 22px; }
.career-content { display: grid; gap: 22px; }
.career-status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); }
.career-status > b { color: var(--text); font-size: 16px; }
.career-status > span { font-size: 11px; }
.career-status > .career-loading { width: 24px; height: 24px; margin-bottom: 8px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: career-spin .8s linear infinite; }
@keyframes career-spin { to { transform: rotate(360deg); } }
.career-retry { margin-top: 10px; }
.career-history { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.career-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px 26px; border-bottom: 1px solid var(--line); }
.career-history-heading h2 { margin-top: 9px; font-size: 21px; letter-spacing: -.5px; }
.career-history-heading > span { color: var(--muted); font: 10px var(--mono); }
.career-table-wrap { overflow-x: auto; }
.career-table { width: 100%; border-collapse: collapse; text-align: left; }
.career-table caption { padding: 13px 24px; border-bottom: 1px solid var(--line); background: var(--surface-raised); color: var(--muted); font-size: 10px; text-align: left; }
.career-table th { padding: 15px 10px; border-bottom: 1px solid var(--line); background: var(--surface-raised); color: var(--muted); font: 9px var(--mono); letter-spacing: .5px; white-space: nowrap; }
.career-table th:first-child, .career-table td:first-child { padding-left: 24px; }
.career-table th:last-child, .career-table td:last-child { padding-right: 24px; }
.career-table td { padding: 18px 10px; border-bottom: 1px solid #e7e7e7; color: var(--muted); font-size: 11px; line-height: 1.6; vertical-align: middle; }
.career-table tbody tr:last-child td { border-bottom: 0; }
.career-table tbody tr:hover { background: #f0f6fb; }
.career-season { color: var(--text) !important; font: 600 12px var(--mono) !important; white-space: nowrap; }
.career-club { min-width: 135px; }
.career-club-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text); font-size: 12px; font-weight: 600; }
.loan-badge, .latest-badge { display: inline-flex; padding: 1px 5px; border: 1px solid #9dc3e6; border-radius: 3px; background: #e5f1fb; color: #006fbe; font-size: 8px; font-weight: 500; white-space: nowrap; }
.latest-badge { border-color: var(--line); background: var(--surface-raised); color: var(--muted); }
.career-competition { min-width: 120px; max-width: 190px; }
.career-stat { color: var(--text) !important; font: 600 13px var(--mono) !important; font-variant-numeric: tabular-nums; text-align: center; }
.career-date, .career-fee { font: 10px var(--mono) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.career-note { color: var(--muted); font-size: 10px; line-height: 1.8; }
.career-empty { border: 0; border-radius: 0; }

.club-list-row { display: flex; align-items: center; gap: 17px; padding: 17px 24px; min-height: 79px; border-bottom: 1px solid #242e37; }
.club-list-row:last-child { border: 0; }
.club-list-row:hover { background: #19231f; }
.club-list-name { min-width: 0; flex: 1; }
.club-list-name b, .club-list-name small { display: block; }
.club-list-name b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-list-name small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.club-best, .club-average { width: 70px; }
.club-best small, .club-average small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 5px; }
.club-best b { color: var(--accent); font: 14px var(--mono); }
.club-average b { font: 12px var(--mono); color: #b9c7d0; }
.club-list-row > .row-arrow { margin-left: 15px; }
.club-hero { display: flex; align-items: center; gap: 24px; padding: 32px 36px; border: 1px solid #34422f; border-radius: 7px; background: linear-gradient(112deg, #1d2a20, #151e1d); margin-bottom: 22px; }
.club-crest-large { width: 80px; height: 91px; font-size: 23px; }
.club-title { min-width: 0; flex: 1; }
.club-title h1 { font-size: clamp(25px, 3.2vw, 38px); margin: 10px 0; letter-spacing: -1.3px; overflow-wrap: anywhere; }
.club-title p { color: #a6b5aa; font-size: 11px; }
.club-summary { display: flex; gap: 30px; }
.club-summary > div { text-align: center; }
.club-summary b, .club-summary span { display: block; }
.club-summary b { font: 23px var(--mono); }
.club-summary span { margin-top: 8px; color: #94a495; font-size: 10px; }
.squad-title { margin-top: 8px; font-size: 20px; }
.filter-form.compact { width: 280px; margin-left: auto; }
.filter-form.compact + .result-count { margin-left: 0; }
.nation-link { color: inherit; }
.nation-filter { max-width: 180px; height: 36px; margin-left: 5px; padding: 0 24px 0 8px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font-size: 10px; cursor: pointer; }
.nation-filter option { background: var(--surface); color: var(--text); }
.nation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nation-row { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 79px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.nation-row:nth-child(odd) { border-right: 1px solid var(--line); }
.nation-row:hover { background: var(--surface-raised); }
.nation-code { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 30px; border: 1px solid var(--line); border-radius: 2px; background: #f5f5f5; color: #006fbe; font: 10px var(--mono); }
.nation-name { flex: 1; min-width: 0; }
.nation-name b { display: block; font-size: 13px; }
.nation-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.nation-count, .nation-best { width: 65px; font: 11px var(--mono); }
.nation-count small, .nation-best small { display: block; margin-top: 5px; color: var(--muted); font: 9px var(--font); }
.nation-best b { color: #007acc; font-weight: 600; }
.nation-hero { display: flex; align-items: center; gap: 24px; padding: 32px 36px; border: 1px solid #34422f; border-radius: 7px; background: linear-gradient(112deg, #1d2a20, #151e1d); margin-bottom: 22px; }
.nation-code-large { width: 80px; height: 65px; font-size: 19px; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; }
.not-found h1 { font-size: 36px; }
.not-found p { color: var(--muted); }
.site-footer { max-width: 1240px; margin: auto; padding: 26px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #677783; font-size: 10px; }
.site-footer > div { display: flex; align-items: center; gap: 22px; }
.footer-brand { font-size: 13px; letter-spacing: -.4px; }

@media (min-width: 1440px) {
    .site-footer { width: calc(100% - 72px); }
}
@media (max-width: 1050px) {
    .header-inner { gap: 24px; padding: 0 26px; }
    .edition { display: none; }
    .global-search { width: 280px; }
    .page-shell { width: calc(100% - 52px); }
    .list-header { grid-template-columns: 130px minmax(110px, 1fr) 100px 90px 86px 40px 18px; gap: 12px; padding-right: 18px; padding-left: 18px; }
    .player-row { grid-template-columns: 82px 36px minmax(110px, 1fr) 100px 90px 86px 40px 18px; gap: 12px; padding-right: 18px; padding-left: 18px; }
    .player-contract, .player-wage { font-size: 10px; }
    .database-summary { gap: 22px; }
    .info-section { padding-right: 20px; padding-left: 20px; }
    .attribute-grid { column-gap: 24px; }
    .attributes-panel { padding: 24px 22px; }
    .attribute-group { padding: 0 18px; }
    .profile-hero { padding: 30px 26px; }
    .profile-main { gap: 18px; }
    .ability-cards { gap: 18px; }
    .ability b { width: 50px; height: 50px; }
    .ability i { display: none; }
    .site-footer { margin: 0 26px; }
}
@media (max-width: 800px) {
    .site-header { height: auto; }
    .header-inner { padding: 16px 20px; flex-wrap: wrap; gap: 17px 24px; }
    .main-nav { order: 2; }
    .global-search { order: 3; width: 100%; margin-left: 0; }
    .global-search button { white-space: nowrap; }
    .page-shell { width: calc(100% - 40px); padding-top: 36px; }
    .list-header { grid-template-columns: 156px minmax(0, 1fr) 70px 26px; gap: 18px; padding-right: 24px; padding-left: 24px; }
    .player-row { grid-template-columns: 96px 42px minmax(0, 1fr) 52px 26px; gap: 18px; padding-right: 24px; padding-left: 24px; }
.list-header > div:nth-last-child(5), .list-header > div:nth-last-child(3), .list-header > div:nth-last-child(2), .player-contract, .player-wage, .player-positions { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; gap: 25px; }
    .database-summary { width: 100%; justify-content: space-between; padding: 0; }
    .profile-hero { flex-direction: column; align-items: flex-start; }
    .ability-cards { width: 100%; justify-content: flex-end; }
    .ability { display: flex; gap: 13px; }
    .ability > span { margin: 0; }
    .ability b { width: 46px; height: 40px; font-size: 19px; }
    .info-sections { grid-template-columns: 1fr; }
    .info-section + .info-section { margin-top: 24px; padding-top: 0; border-top: 1px solid var(--line); border-left: 0; }
    .position-map { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .position-pitch { width: 100%; max-width: none; aspect-ratio: 2 / 1; }
    .pitch-markings { display: block; }
    .pitch-markings-vertical { display: none; }
    .pitch-cell { flex-direction: row; gap: 5px; width: 11.5%; height: 19%; }
    .pitch-cell b, .pitch-cell small { font-size: 11px; }
    .pitch-cell[data-position="GK"] { left: 9%; top: 50%; }
    .pitch-cell[data-position="DL"] { left: 25%; top: 22%; }
    .pitch-cell[data-position="DC"] { left: 25%; top: 50%; }
    .pitch-cell[data-position="DR"] { left: 25%; top: 78%; }
    .pitch-cell[data-position="WBL"] { left: 42%; top: 22%; }
    .pitch-cell[data-position="DM"] { left: 42%; top: 50%; }
    .pitch-cell[data-position="WBR"] { left: 42%; top: 78%; }
    .pitch-cell[data-position="ML"] { left: 59%; top: 22%; }
    .pitch-cell[data-position="MC"] { left: 59%; top: 50%; }
    .pitch-cell[data-position="MR"] { left: 59%; top: 78%; }
    .pitch-cell[data-position="AML"] { left: 76%; top: 22%; }
    .pitch-cell[data-position="AMC"] { left: 76%; top: 50%; }
    .pitch-cell[data-position="AMR"] { left: 76%; top: 78%; }
    .pitch-cell[data-position="ST"] { left: 91%; top: 50%; }
    .position-legend { max-width: none; }
    .position-summary { margin-bottom: 16px; padding-bottom: 14px; }
    .position-legend ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .position-legend li { display: flex; justify-content: center; border: 0; }
    .position-legend li em { margin-left: 0; }
    .attribute-grid { grid-template-columns: 1fr; gap: 26px; }
    .attribute-group, .attribute-group:first-child, .attribute-group:last-child { padding: 0; }
    .attribute-group + .attribute-group { border-left: 0; }
    .club-card { max-width: 350px; }
    .hidden-grid { grid-template-columns: 1fr; gap: 25px; }
    .club-hero { flex-wrap: wrap; }
    .club-title { flex-basis: calc(100% - 110px); }
    .club-summary { width: 100%; justify-content: space-around; padding-top: 20px; border-top: 1px solid #34422f; }
    .panel-toolbar:has(.squad-title) { flex-wrap: wrap; }
    .filter-form.compact { margin-left: 0; width: 100%; }
    .filter-form.compact + .result-count { margin-left: auto; }
}
@media (max-width: 680px) {
    .career-history-heading { align-items: center; gap: 14px; padding: 21px 18px; }
    .career-history-heading h2 { font-size: 19px; }
    .career-history-heading > span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-raised); font-size: 9px; white-space: nowrap; }
    .career-table-wrap { overflow: visible; padding: 12px; background: var(--surface-raised); }
    .career-table { display: block; }
    .career-table caption, .career-table thead { display: none; }
    .career-table tbody { display: grid; gap: 12px; }
    .career-table tbody tr,
    .career-table tbody tr:last-child {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "season club"
            "competition competition"
            "apps goals"
            "from to"
            "fee fee";
        gap: 14px 16px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--surface);
        box-shadow: 0 1px 2px #1e1e1e08;
    }
    .career-table tbody tr:hover { background: var(--surface); }
    .career-table td,
    .career-table th:first-child,
    .career-table td:first-child,
    .career-table th:last-child,
    .career-table td:last-child {
        display: block;
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        white-space: normal;
        text-align: left;
    }
    .career-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font: 9px var(--font); }
    .career-table .career-season {
        grid-area: season;
        display: inline-flex;
        align-items: center;
        align-self: start;
        justify-self: start;
        width: max-content;
        padding: 4px 7px;
        border: 1px solid #9dc3e6;
        border-radius: 4px;
        background: #e5f1fb;
        color: #006fbe !important;
        font-size: 12px !important;
        line-height: 1.4;
    }
    .career-table .career-season::before,
    .career-table .career-club::before { display: none; }
    .career-table .career-club { grid-area: club; align-self: start; }
    .career-table .career-club-name { justify-content: flex-end; align-items: flex-start; gap: 5px; font-size: 11px; line-height: 1.55; text-align: right; overflow-wrap: anywhere; }
    .career-table .loan-badge, .career-table .latest-badge { flex: 0 0 auto; margin-top: 1px; }
    .career-table .career-competition {
        grid-area: competition;
        padding: 9px 11px;
        border-radius: 4px;
        background: var(--surface-raised);
        color: var(--text);
        font-size: 11px;
        line-height: 1.55;
    }
    .career-table .career-competition::before { margin-bottom: 3px; }
    .career-table .career-stat {
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: #fbfcfd;
        font-size: 17px !important;
        line-height: 1.3;
    }
    .career-table td[data-label="出场"] { grid-area: apps; }
    .career-table td[data-label="进球"] { grid-area: goals; }
    .career-table td[data-label="加盟日期"] { grid-area: from; }
    .career-table td[data-label="离队日期"] { grid-area: to; }
    .career-table .career-date { padding: 0 2px; color: var(--text); font-size: 10px !important; line-height: 1.5; white-space: nowrap; }
    .career-table .career-fee {
        grid-area: fee;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        color: var(--text);
        font-size: 11px !important;
        line-height: 1.5;
        text-align: right;
    }
    .career-table .career-fee::before { flex: 0 0 auto; margin-bottom: 0; }
    .career-note { padding: 0 4px; font-size: 10px; line-height: 1.8; }
    .career-status { min-height: 240px; padding: 28px 20px; text-align: center; }
    .career-empty { min-height: 180px; }
}

@media (max-width: 480px) {
    .career-panel { margin-top: 16px; }
    .career-content { gap: 16px; }
    .career-history-heading { padding: 18px 16px; }
    .career-history-heading h2 { font-size: 18px; }
    .career-history-heading .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
    .career-table-wrap { padding: 10px; }
    .career-table tbody { gap: 10px; }
    .career-table tbody tr,
    .career-table tbody tr:last-child { gap: 13px 12px; padding: 14px; }
    .career-table .career-season { padding: 3px 6px; font-size: 11px !important; }
    .career-table .career-club-name { font-size: 10px; gap: 4px; }
    .career-table .loan-badge, .career-table .latest-badge { padding: 1px 4px; font-size: 7px; }
    .career-table .career-competition { padding: 9px 10px; font-size: 10px; }
    .career-table .career-stat { padding: 9px 10px; font-size: 16px !important; }
    .career-table .career-date { font-size: 9px !important; }
    .career-table .career-fee { padding-top: 10px; font-size: 10px !important; }
    .career-note { padding: 0 2px; font-size: 9px; }
}
@media (max-width: 560px) {
    .header-inner { padding: 14px 16px; gap: 17px 18px; }
    .brand { font-size: 18px; }
    .brand-mark { font-size: 22px; }
    .main-nav { margin-left: 0; gap: 16px; }
    .main-nav a { font-size: 11px; }
    .filter-form { flex-wrap: wrap; height: auto; min-height: 38px; padding: 7px 9px; }
    .nation-filter { width: 100%; max-width: none; height: 30px; margin: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .nation-list { grid-template-columns: 1fr; }
    .nation-row:nth-child(odd) { border-right: 0; }
    .nation-hero { flex-wrap: wrap; padding: 24px 20px; gap: 16px; }
    .nation-hero .club-title { flex-basis: calc(100% - 100px); }
    .main-nav a { font-size: 12px; }
    .page-shell { width: calc(100% - 28px); padding: 29px 0 50px; }
    .page-heading h1 { font-size: 35px; }
    .page-heading p { font-size: 12px; }
    .database-summary b { font-size: 19px; }
    .panel-toolbar { padding: 14px; gap: 10px; }
    .filter-form { width: 100%; }
    .panel-toolbar { flex-wrap: wrap; }
    .potential-toggle { min-height: 30px; }
    .panel-toolbar > .result-count:not(.compact + .result-count) { display: none; }
    .list-header { grid-template-columns: 80px minmax(0, 1fr) 30px 14px; gap: 11px; padding: 12px 14px; font-size: 8px; }
    .list-header > div:nth-last-child(1) .column-sort { justify-content: center; }
    .player-row { grid-template-columns: 69px minmax(0, 1fr) 26px 14px; gap: 11px; min-height: 86px; padding: 13px 14px; }
    .player-row .avatar { display: none; }
    .player-ratings { gap: 4px; }
    .rating { width: 31px; height: 30px; font-size: 11px; }
    .player-name { font-size: 12px; }
    .player-subline { gap: 5px; font-size: 9px; margin-top: 6px; }
    .player-subline > .dot, .player-subline > span:not(.flag) { display: none; }
    .player-alias { margin-top: 3px; font-size: 9px; }
    .player-positions { margin-top: 4px; }
    .player-positions .position-chip { font-size: 7px; min-width: 22px; padding: 1px 3px; }
    .profile-positions .position-chip { min-width: 30px; padding: 3px 6px; font-size: 9px; }
    .club-link { font-size: 9px; }
    .player-age { font-size: 11px; }
    .row-arrow { font-size: 15px; }
    .panel-bottom { padding: 14px; flex-direction: column; align-items: flex-start; }
    .pagination { width: 100%; justify-content: space-between; }
    .page-range { display: inline; }
    .page-numbers { display: none; }
    .profile-hero { padding: 25px 21px; gap: 23px; }
    .profile-main { gap: 15px; }
    .avatar-large { width: 62px; height: 74px; font-size: 20px; }
    .profile-title h1 { font-size: 26px; }
    .profile-title .eyebrow { font-size: 7px; letter-spacing: 1px; }
    .profile-title p { flex-wrap: wrap; font-size: 10px; }
    .ability-cards { justify-content: space-between; gap: 12px; }
    .ability { gap: 9px; }
    .ability > span { font-size: 9px; }
    .ability b { width: 41px; height: 37px; font-size: 17px; }
    .breadcrumbs { font-size: 10px; }
    .info-section { padding: 0 18px 22px; }
    .info-section > h3 { margin-top: 20px; }
    .position-pitch { aspect-ratio: 5 / 3; }
    .pitch-cell { flex-direction: column; gap: 3px; width: 13%; height: 20%; border-radius: 4px; }
    .pitch-cell b { font-size: 9px; letter-spacing: 0; }
    .pitch-cell small { font-size: 8px; }
    .pitch-cell small::before { display: none; }
    .position-legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
    .position-legend li { grid-template-columns: 8px 1fr auto; min-height: 30px; }
    .position-legend li em { grid-column: auto; }
    .info-panel dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
    .info-panel dd { font-size: 12px; }
    .age-chip { margin-left: 0; padding: 3px 5px; font-size: 9px; }
    .attributes-panel, .hidden-panel, .position-panel { padding: 22px 18px; }
    .section-heading { align-items: flex-start; margin-bottom: 24px; }
    .attribute-toolbar { align-items: flex-end; flex-direction: column; gap: 8px; }
    .section-heading h2 { font-size: 19px; }
    .section-heading h2 > span { display: block; margin: 5px 0 0; font-size: 10px; }
    .attribute-grid { grid-template-columns: 1fr; gap: 28px; }
    .attribute-row { gap: 10px; }
    .attribute-row > span:first-child { font-size: 11px; }
    .profile-stat > span { font-size: 11px; }
    .club-list-row { padding: 15px; gap: 12px; }
    .club-list-name b { font-size: 11px; }
    .club-list-name small { font-size: 9px; }
    .club-best, .club-average { width: 42px; }
    .club-best small, .club-average small { font-size: 8px; }
    .club-average { display: none; }
    .club-list-row > .row-arrow { margin-left: 0; }
    .club-hero { padding: 24px 20px; gap: 16px; }
    .club-crest-large { width: 56px; height: 67px; font-size: 17px; }
    .club-title { flex-basis: calc(100% - 75px); }
    .club-title h1 { font-size: 23px; }
    .club-title .eyebrow { font-size: 8px; }
    .club-summary { gap: 15px; }
    .club-summary b { font-size: 20px; }
    .club-summary span { font-size: 9px; }
    .site-footer { margin: 0 14px; flex-direction: column; align-items: flex-start; gap: 13px; line-height: 1.7; }
    .site-footer > div { gap: 16px; }
}
