:root {
    color-scheme: light;
    --ink: #151518;
    --muted: #77777d;
    --paper: #f5f4f1;
    --white: #fff;
    --red: #e30613;
    --red-dark: #bd0611;
    --line: #e7e5e1;
    --gold: #d8b76c;
    --shadow: 0 18px 60px rgba(18, 18, 21, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 16px; transform: translateY(-160%); background: #fff; color: var(--ink); border: 2px solid var(--red); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #a80710; outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { height: 82px; background: #101114; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { width: min(1280px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.07em; clip-path: polygon(50% 0, 94% 15%, 88% 72%, 50% 100%, 12% 72%, 6% 15%); }
.brand-copy { display: grid; gap: 2px; font-family: Manrope, sans-serif; line-height: 1; letter-spacing: .13em; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { color: #a7a7aa; font-size: 9px; font-weight: 700; letter-spacing: .3em; }
.site-header nav { display: flex; align-items: center; gap: 19px; }
.site-header nav a { color: #d5d5d7; font-size: 12px; font-weight: 600; transition: color .2s; white-space: nowrap; }
.site-header nav a:hover { color: #fff; }

.hero { min-height: 350px; margin: 38px 0 28px; padding: 56px 64px; display: flex; justify-content: space-between; gap: 35px; align-items: center; overflow: hidden; color: #fff; background: #151518; border-radius: 5px; position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 480px; height: 480px; border-radius: 50%; right: 9%; top: -35%; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.025), 0 0 0 138px rgba(255,255,255,.018); }
.hero::after { content: 'F'; position: absolute; z-index: -1; right: 25%; bottom: -150px; color: rgba(227,6,19,.11); font: 800 440px/1 Manrope, sans-serif; transform: rotate(-8deg); }
.hero-copy { max-width: 620px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #f0d8d9; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,.16); }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 20px 0 15px; font: 800 clamp(42px, 6vw, 68px)/.99 Manrope, sans-serif; letter-spacing: -.065em; }
.hero h1 em { color: #ed2731; font-style: normal; }
.hero-copy p { max-width: 485px; margin-bottom: 0; color: #b7b7bb; font-size: 15px; line-height: 1.7; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 1px; min-width: 290px; position: relative; z-index: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.hero-stats div { display: grid; gap: 5px; padding: 16px 18px; background: rgba(21,21,24,.85); }
.hero-stats strong { font: 800 25px/1 Manrope, sans-serif; letter-spacing: -.05em; }
.hero-stats span { color: #b7b7bb; font-size: 10px; }

.search-panel { padding: 24px; background: var(--white); box-shadow: var(--shadow); border-radius: 5px; }
.filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filter-form label { display: grid; gap: 8px; min-width: 0; }
.filter-form .search-field, .filter-form .player-search-field { grid-column: span 2; }
.filter-form .player-search-field input[type=search] { padding-left: 13px; }
.field-label { color: #626268; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.input-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; color: var(--red); font-size: 25px; line-height: 1; transform: translateY(-55%); }
input, select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #deddd9; border-radius: 3px; outline: 0; background: #fff; color: var(--ink); font-size: 13px; transition: border .2s, box-shadow .2s; }
input[type=search] { padding-left: 41px; }
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.1); }
input::placeholder { color: #a2a2a7; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.search-button { white-space: nowrap; }
.search-button span { font-size: 17px; font-weight: 400; }
.clear-filters { display: inline-block; margin-top: 14px; color: var(--red); font-size: 12px; font-weight: 600; }

.results-section { padding: 52px 0 68px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.results-heading h2, .section-heading h2 { margin: 7px 0 0; font: 800 27px/1.1 Manrope, sans-serif; letter-spacing: -.045em; }
.result-count { color: var(--muted); font-size: 12px; }
.match-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.list-head, .match-row { display: grid; grid-template-columns: 105px minmax(150px, 1fr) 90px minmax(150px, 1fr) 150px; gap: 14px; align-items: center; }
.list-head { min-height: 42px; padding: 0 20px; background: #f0efec; color: #85858a; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.match-row { min-height: 72px; padding: 10px 20px; border-top: 1px solid #efeeeb; transition: background .18s; }
.match-row:hover { background: #fbf7f7; }
.date-cell { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.date-cell strong { font: 700 15px Manrope, sans-serif; }
.date-cell small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.fixture-cell { display: grid; gap: 5px; min-width: 0; }
.fixture-cell strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fixture-cell small { color: #88888d; font-size: 10px; }
.team-cell { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.type-cell { color: #6f6f75; font-size: 11px; }
.type-cell small { display: block; margin-top: 4px; color: #99999e; font-size: 9px; }
.score-cell { justify-self: start; min-width: 52px; padding: 8px 9px; border-radius: 3px; background: #f5f3f0; font: 800 13px Manrope, sans-serif; text-align: center; white-space: nowrap; }
.row-arrow { color: #aaa; font-size: 15px; text-align: right; transition: color .2s, transform .2s; }
.match-row:hover .row-arrow { color: var(--red); transform: translate(2px,-2px); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--muted); font-size: 12px; }
.pagination a { color: var(--red); font-weight: 700; }
.data-note { margin: 18px 0 0; color: #89898d; font-size: 11px; line-height: 1.6; }

.match-hero { margin: 30px 0 25px; padding: 48px; overflow: hidden; position: relative; color: #fff; background: #151518; border-radius: 5px; }
.match-hero::after { content: 'F'; position: absolute; right: 7%; bottom: -140px; color: rgba(227,6,19,.12); font: 800 380px/1 Manrope, sans-serif; pointer-events: none; }
.match-meta, .badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; position: relative; z-index: 1; }
.match-meta { color: #bbb; font-size: 11px; }
.match-meta .eyebrow { color: #f1d5d7; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.match-hero h1 { position: relative; z-index: 1; margin: 22px 0 34px; font: 800 clamp(30px, 5vw, 48px)/1.05 Manrope, sans-serif; letter-spacing: -.055em; }
.scoreboard { max-width: 700px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; position: relative; z-index: 1; }
.team-name { color: #d4d4d6; font: 700 15px Manrope, sans-serif; }
.team-name:last-child { text-align: right; }
.big-score { color: #fff; font: 800 clamp(35px, 7vw, 58px)/1 Manrope, sans-serif; letter-spacing: -.06em; white-space: nowrap; }
.badge-row { margin-top: 30px; }
.badge { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; color: #ddd; font-size: 10px; }
.badge-neutral { border-color: rgba(216,183,108,.45); color: #e3c983; }
.back-link { display: inline-block; margin-top: 30px; color: #6b6b71; font-size: 12px; font-weight: 600; }
.back-link:hover { color: var(--red); }
.detail-section { padding: 22px 0 60px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 0; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { min-height: 88px; padding: 17px 19px; background: #fff; }
.detail-grid dt { margin-bottom: 9px; color: #85858a; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.detail-grid dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.player-details { padding-top: 0; }
.player-hero { margin: 22px 0 28px; padding: 38px 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; background: #151518; border-radius: 4px; }
.player-hero h1 { margin: 12px 0 0; font: 800 clamp(32px, 5vw, 48px)/1.05 Manrope, sans-serif; letter-spacing: -.055em; }
.player-hero .eyebrow { color: #efc9cc; }
.player-stat-grid { display: flex; gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); }
.player-stat-grid div { min-width: 118px; display: grid; gap: 5px; padding: 17px; background: #151518; }
.player-stat-grid strong { font: 800 24px/1 Manrope, sans-serif; }
.player-stat-grid span { color: #b7b7bb; font-size: 10px; }
.player-bio-grid { margin-bottom: 18px; }
.player-bio { margin-top: 14px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); }
.player-bio h3 { margin: 0 0 10px; font: 800 16px Manrope, sans-serif; }
.player-bio p { margin: 0; color: #4b4b51; font-size: 13px; line-height: 1.8; }
.player-results { padding-top: 10px; }
.goal-list-head, .goal-row { grid-template-columns: 105px minmax(150px, 1fr) 90px minmax(100px, .7fr) 150px; }
.season-stats-list { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.season-stats-head, .season-stats-row { display: grid; grid-template-columns: 1fr 140px 140px; gap: 14px; align-items: center; padding: 13px 18px; }
.season-stats-head { background: #f0efec; color: #85858a; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.season-stats-row { border-top: 1px solid #efeeeb; color: #424248; font-size: 12px; }
.season-stats-row strong { font: 700 13px Manrope, sans-serif; }
.player-link { color: #a80710; text-decoration: underline; text-decoration-color: rgba(168,7,16,.25); text-underline-offset: 2px; }
.player-link:hover { color: var(--red); text-decoration-color: currentColor; }
.directory-hero { margin: 38px 0 22px; padding: 42px 48px; color: #fff; background: #151518; border-radius: 4px; }
.directory-hero .eyebrow { color: #efc9cc; }
.directory-hero h1 { margin: 12px 0 8px; font: 800 clamp(34px, 5vw, 48px)/1.05 Manrope, sans-serif; letter-spacing: -.055em; }
.directory-hero p { margin: 0; color: #b7b7bb; font-size: 13px; line-height: 1.6; }
.directory-hero > strong { display: inline-block; margin-top: 18px; color: #efc9cc; font: 800 22px Manrope, sans-serif; }
.directory-search { display: flex; align-items: end; gap: 12px; margin: 0 0 20px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.directory-search label { color: #626268; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.directory-search input { max-width: 420px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.quality-intro { max-width: 820px; margin: 22px 0; color: #58585e; font-size: 14px; line-height: 1.75; }
.quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.quality-card { min-width: 0; padding: 21px; background: #fff; border: 1px solid var(--line); }
.quality-card .eyebrow { min-height: 2.5em; color: #68686e; letter-spacing: .08em; }
.quality-card strong { display: block; margin: 8px 0; color: #a80710; font: 800 34px/1 Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.quality-card p { margin: 0; color: #77777d; font-size: 11px; line-height: 1.6; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.source-card { min-width: 0; padding: 18px; background: #fff; border: 1px solid var(--line); }
.source-card p { margin: 10px 0 0; color: #55555b; font-size: 12px; line-height: 1.7; }
.source-card > small { display: block; margin-top: 10px; color: #77777d; font-size: 10px; }
.source-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.source-status { flex: 0 0 auto; padding: 4px 7px; color: #4b4b51; background: #f0efec; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.admin-login, .admin-editor { margin: 30px 0; padding: 26px; background: #fff; border: 1px solid var(--line); }
.admin-login { max-width: 520px; margin-inline: auto; }
.admin-login h1, .admin-heading h1 { margin: 8px 0 20px; font: 800 32px/1.1 Manrope, sans-serif; letter-spacing: -.04em; }
.admin-login form { display: grid; gap: 16px; }
.admin-login label, .admin-form label, .admin-search label { display: grid; gap: 7px; color: #626268; font-size: 11px; font-weight: 700; }
.admin-heading { margin: 30px 0 20px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #151518; color: #fff; }
.admin-heading h1 { margin-bottom: 8px; }
.admin-heading p { margin: 0; color: #bbb; font-size: 12px; }
.admin-heading .eyebrow { color: #efc9cc; }
.admin-actions { display: flex; align-items: center; gap: 20px; margin: 20px 0; }
.button-secondary { background: #55555b; }
.button-secondary:hover { background: #38383d; }
.admin-flash { padding: 13px 16px; color: #185b36; background: #e8f4ed; border: 1px solid #c7e4d1; font-size: 13px; }
.admin-error { padding: 12px; color: #8d1118; background: #fff0f0; font-size: 12px; }
.admin-search { margin: 20px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.admin-search label { grid-column: 1 / -1; }
.admin-editor { padding: 24px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form + .admin-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-form .admin-wide { grid-column: 1 / -1; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-search input, .admin-login input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #deddd9; border-radius: 3px; background: #fff; color: var(--ink); font: 400 13px 'DM Sans', sans-serif; }
.admin-form input, .admin-form select, .admin-search input, .admin-login input { height: 44px; }
.admin-form input[type=checkbox] { width: 22px; height: 22px; justify-self: start; accent-color: var(--red); }
.admin-form textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-source-form { padding: 18px; background: #faf9f7; border: 1px solid var(--line); }
.admin-audit { margin: 0; padding-left: 20px; color: #5e5e64; font-size: 12px; line-height: 2; }
.admin-match-list .match-row { grid-template-columns: 105px minmax(150px, 1fr) 90px minmax(130px, .8fr) 100px; }
.admin-match-list .row-arrow { color: #a80710; font-size: 11px; font-weight: 700; }
.admin-match-list .match-row:hover .row-arrow { color: var(--red); }
.admin-data-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.admin-data-nav a { padding: 9px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.admin-data-nav a:hover, .admin-data-nav a.active { border-color: var(--red); color: var(--red); }
.admin-record-list { display: grid; gap: 6px; }
.admin-record-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
.admin-record-list a:hover { border-color: var(--red); }
.admin-record-id { color: #777; font-variant-numeric: tabular-nums; }
.admin-record-list .row-arrow { color: var(--red); font-size: 11px; font-weight: 700; }
.admin-data-form label > span { display: grid; gap: 3px; }
.admin-data-form label small { color: #777; font-size: 10px; font-weight: 400; }
.admin-data-form label > small { font-size: 10px; }
.admin-data-form label > small a { color: var(--red); }
.directory-card { min-width: 0; min-height: 122px; display: flex; flex-direction: column; justify-content: space-between; gap: 11px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); transition: border-color .18s, transform .18s, box-shadow .18s; }
.directory-card:hover { border-color: rgba(227,6,19,.45); box-shadow: var(--shadow); transform: translateY(-2px); }
.directory-card strong { overflow: hidden; font: 800 16px/1.2 Manrope, sans-serif; text-overflow: ellipsis; }
.directory-card small, .directory-count { color: #77777d; font-size: 10px; }
.directory-count { color: #a80710; font-weight: 700; }
.opponent-profile { margin: 26px 0 10px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.opponent-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.opponent-profile-heading h2 { margin: 8px 0 0; font: 800 26px Manrope, sans-serif; letter-spacing: -.04em; }
.opponent-record { display: grid; justify-items: end; gap: 3px; }
.opponent-record strong { font: 800 25px/1 Manrope, sans-serif; }
.opponent-record span, .opponent-record small { color: var(--muted); font-size: 10px; }
.opponent-facts { margin-bottom: 16px; }
.opponent-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.external-link { color: #a80710; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.external-link:hover { color: var(--red); }
.season-story { margin: 24px 0; }
.season-table-section { margin: 35px 0 10px; }
.season-photo { width: fit-content; max-width: min(100%, 480px); margin: 24px auto; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.season-photo img { width: 100%; max-height: 680px; display: block; object-fit: contain; }
.season-photo figcaption { padding: 8px 4px 2px; color: var(--muted); font-size: 10px; }
.legacy-standings { max-width: 100%; overflow-x: auto; padding: 14px; background: #fff; border: 1px solid var(--line); }
.legacy-standings table { width: 100%; min-width: 640px; border-collapse: collapse; color: #424248; font-size: 12px; }
.legacy-standings th, .legacy-standings td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.legacy-standings th:nth-child(2), .legacy-standings td:nth-child(2) { min-width: 150px; text-align: left; }
.legacy-standings th { color: #68686e; background: #f0efec; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.legacy-standings tbody tr:nth-child(even) { background: #faf9f7; }
.legacy-standings tbody tr:hover { background: #fff3f3; }
.match-story { margin-bottom: 14px; }
.match-story p { white-space: normal; }
.stats-table { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.stats-table-head, .stats-table-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, .65fr) minmax(110px, .65fr); gap: 14px; align-items: center; padding: 12px 18px; }
.stats-table-head { color: #85858a; background: #f0efec; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stats-table-row { border-top: 1px solid var(--line); color: #424248; font-size: 12px; }
.stats-table-row span { font-variant-numeric: tabular-nums; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-grid figure, .player-photo-strip figure { min-width: 0; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 185px; display: block; object-fit: cover; background: #e8e7e4; transition: transform .25s; }
.photo-grid a:hover img { transform: scale(1.035); }
.photo-grid figcaption, .player-photo-strip figcaption { padding: 9px 11px; color: #77777d; font-size: 10px; line-height: 1.5; }
.player-photo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: -8px 0 24px; }
.player-photo-strip img { width: 100%; height: 175px; display: block; object-fit: cover; background: #e8e7e4; }
.player-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.player-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); }
.player-card h3 { margin: 0 0 20px; font: 800 18px Manrope, sans-serif; }
.player-card h4 { margin: 20px 0 9px; color: #85858a; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.player-card ul { margin: 0; padding-left: 18px; color: #424248; font-size: 12px; line-height: 1.9; }
.player-card li span { color: #85858a; font-size: 10px; }
.player-card p { margin: 0; color: #424248; font-size: 12px; line-height: 1.9; }
.muted-note { color: #85858a !important; }
.empty-state { padding: 55px 30px; background: #fff; border: 1px solid var(--line); text-align: center; }
.empty-state h1, .empty-state h2 { margin: 12px auto; font: 800 27px/1.2 Manrope, sans-serif; letter-spacing: -.04em; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .button { margin-top: 12px; }

.site-footer { background: #101114; color: #a1a1a6; }
.footer-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; }

@media (max-width: 980px) {
    .filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-form .search-field { grid-column: span 2; }
    .filter-form .player-search-field { grid-column: span 1; }
    .search-button { align-self: end; }
    .hero-stats { min-width: 240px; }
    .hero-stats div { padding: 12px; }
    .hero-stats strong { font-size: 21px; }
}
@media (max-width: 680px) {
    .container, .header-inner { width: min(100% - 30px, 1180px); }
    .site-header { height: 68px; }
    .brand-mark { width: 37px; height: 37px; }
    .site-header nav { max-width: calc(100vw - 165px); gap: 13px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.42) transparent; }
    .site-header nav::-webkit-scrollbar { display: block; height: 3px; }
    .site-header nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.42); border-radius: 3px; }
    .site-header nav a { font-size: 10px; }
    .hero { min-height: 0; margin: 20px 0 18px; padding: 34px 25px; align-items: start; }
    .hero h1 { font-size: clamp(41px, 12vw, 59px); }
    .hero-copy p { max-width: 370px; font-size: 13px; }
    .hero-stats { display: none; }
    .hero::before { width: 340px; height: 340px; right: -35%; top: 14%; }
    .hero::after { right: -8%; bottom: -95px; font-size: 300px; }
    .search-panel { padding: 17px; }
    .filter-form { grid-template-columns: 1fr 1fr; gap: 12px; }
    .filter-form .search-field, .filter-form .player-search-field { grid-column: span 2; }
    .button.search-button { grid-column: span 2; }
    .results-section { padding: 37px 0 50px; }
    .results-heading h2, .section-heading h2 { font-size: 23px; }
    .directory-hero { margin: 20px 0 16px; padding: 30px 23px; }
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .quality-card { padding: 15px; }
    .quality-card strong { font-size: 28px; }
    .source-list { grid-template-columns: 1fr; }
    .admin-heading { align-items: start; flex-direction: column; padding: 22px; }
    .admin-heading form { align-self: stretch; }
    .admin-editor, .admin-login { padding: 18px; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-form .admin-wide { grid-column: auto; }
    .admin-record-list a { grid-template-columns: 52px minmax(0, 1fr); }
    .admin-record-list .row-arrow { grid-column: 2; }
    .admin-match-list .match-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .admin-match-list .match-row .team-cell:nth-of-type(2), .admin-match-list .match-row .row-arrow { display: none; }
    .admin-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
    .directory-card { min-height: 108px; padding: 14px; }
    .directory-card strong { font-size: 13px; }
    .directory-card small, .directory-count { font-size: 9px; }
    .directory-search { display: grid; grid-template-columns: 1fr auto; }
    .directory-search label { grid-column: 1 / -1; }
    .directory-search input { width: 100%; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .photo-grid img { height: 145px; }
    .player-photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .player-photo-strip img { height: 140px; }
    .opponent-profile { padding: 19px; }
    .opponent-profile-heading h2 { font-size: 21px; }
    .stats-table-head, .stats-table-row { grid-template-columns: minmax(105px, 1fr) 75px 75px; gap: 8px; padding: 10px 12px; }
    .stats-table-row { font-size: 10px; }
    .result-count { font-size: 10px; }
    .list-head { display: none; }
    .match-row { grid-template-columns: 48px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; min-height: 62px; padding: 9px 10px; }
    .date-cell { display: grid; gap: 1px; }
    .date-cell strong { font-size: 14px; }
    .date-cell small { font-size: 9px; }
    .team-cell { font-size: 10px; }
    .type-cell { display: none; }
    .score-cell { min-width: 44px; padding: 7px 5px; font-size: 11px; }
    .match-hero { margin: 18px 0; padding: 32px 22px; }
    .match-hero h1 { margin: 20px 0 28px; font-size: 33px; }
    .scoreboard { gap: 10px; }
    .team-name { font-size: 11px; }
    .big-score { font-size: 35px; }
    .badge-row { gap: 7px; margin-top: 25px; }
    .badge { padding: 7px 8px; font-size: 9px; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .player-columns { grid-template-columns: 1fr; }
    .player-hero { align-items: start; flex-direction: column; padding: 28px 22px; }
    .player-stat-grid div { min-width: 106px; padding: 13px; }
    .goal-list-head { display: none; }
    .goal-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; }
    .goal-row .team-cell:nth-of-type(3), .goal-row .type-cell { display: none; }
    .season-stats-head, .season-stats-row { grid-template-columns: 1fr 75px 75px; gap: 8px; padding-inline: 12px; }
    .detail-grid div { min-height: 76px; padding: 14px; }
    .detail-grid dd { font-size: 12px; }
    .footer-inner { min-height: 70px; gap: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
