:root {
    --nfs-red: #ed1b3a;
    --nfs-bg: #070a0e;
    --nfs-card: #10161d;
    --nfs-line: #26313d;
    --nfs-copy: #d3dbe5;
    --nfs-muted: #8995a3;
}

.nfs-stats-profile-page {
    margin: 0;
    background: var(--nfs-bg);
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nfs-stats-profile {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 80px;
}

.nfs-stats-brand {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 34px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: .16em;
    text-decoration: none;
}

.nfs-stats-brand span,
.nfs-stats-kicker { color: var(--nfs-red); }

.nfs-profile-nav { display: flex; margin-bottom: 34px; align-items: center; justify-content: space-between; gap: 20px; }
.nfs-profile-nav .nfs-stats-brand { margin: 0; }
.nfs-profile-nav nav { display: flex; gap: 20px; }
.nfs-profile-nav nav a { color: var(--nfs-copy); font-size: 13px; font-weight: 800; text-decoration: none; }
.nfs-profile-nav nav a:hover { color: #fff; }

.nfs-stats-memorial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid rgba(237, 27, 58, .45);
    border-radius: 12px;
    background: rgba(237, 27, 58, .08);
    color: var(--nfs-copy);
}

.nfs-stats-memorial strong {
    color: #fff;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nfs-stats-hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--nfs-line);
    border-radius: 18px;
    background: linear-gradient(135deg, #151c25, #0a0e13 70%);
}

.nfs-stats-headshot {
    display: grid;
    width: 180px;
    height: 180px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #384656;
    border-radius: 14px;
    background: #1b242e;
    color: #fff;
    font-size: 54px;
    font-weight: 950;
}

.nfs-stats-headshot img { width: 100%; height: 100%; object-fit: cover; }
.nfs-stats-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.nfs-stats-hero h1 { margin: 0; color: #fff; font-size: clamp(38px, 7vw, 72px); line-height: .95; }
.nfs-stats-vitals { margin: 18px 0 0; color: var(--nfs-copy); font-size: 17px; }
.nfs-stats-id { margin: 8px 0 0; color: var(--nfs-muted); font-size: 12px; }

.nfs-stats-jersey {
    display: inline-block;
    margin: 12px 0 0;
    padding: 7px 11px;
    border: 1px solid var(--nfs-line);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.nfs-stats-card { margin-top: 22px; padding: 26px; border: 1px solid var(--nfs-line); border-radius: 18px; background: var(--nfs-card); }
.nfs-stats-card h2 { margin: 0 0 20px; font-size: 25px; }
.nfs-stats-note p { margin: 0 0 12px; color: var(--nfs-copy); font-size: 16px; line-height: 1.65; }
.nfs-stats-note p:last-child { margin-bottom: 0; }
.nfs-stats-empty { padding: 28px; border: 1px dashed #3a4858; border-radius: 12px; color: var(--nfs-copy); }
.nfs-stats-empty strong { color: #fff; }
.nfs-stats-empty p { margin: 8px 0 0; }
.nfs-stats-table-wrap { overflow: auto; margin-top: 18px; }
.nfs-stats-table-wrap table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.nfs-stats-table-wrap th,
.nfs-stats-table-wrap td { padding: 13px 12px; border-bottom: 1px solid var(--nfs-line); text-align: left; }
.nfs-stats-table-wrap th { color: var(--nfs-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nfs-stats-table-wrap td { color: var(--nfs-copy); font-size: 14px; }

.nfs-stats-team {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.nfs-stats-team-logo {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nfs-line);
    border-radius: 8px;
    background: #fff;
    color: #111820;
    font-size: 9px;
    font-weight: 950;
}

.nfs-stats-team-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.nfs-stats-team > a { color: #fff; font-weight: 800; text-decoration: none; }

@media (max-width: 700px) {
    .nfs-stats-profile { width: min(100% - 20px, 1180px); padding-top: 20px; }
    .nfs-stats-hero { grid-template-columns: 1fr; padding: 22px; }
    .nfs-stats-headshot { width: 120px; height: 120px; }
    .nfs-stats-card { padding: 18px; }
    .nfs-stats-memorial { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.nfs-stats-site-page {
    margin: 0;
    background: var(--nfs-bg);
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }

.nfs-site-header {
    display: block !important;
    visibility: visible !important;
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--nfs-line);
    background: rgba(7, 10, 14, .94);
    backdrop-filter: blur(18px);
}

.nfs-site-header-inner {
    display: flex;
    width: min(1220px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nfs-site-header .nfs-stats-brand { margin: 0; }
.nfs-site-header nav { display: flex; align-items: center; gap: 24px; }
.nfs-site-header nav a { color: var(--nfs-copy); font-size: 13px; font-weight: 800; text-decoration: none; }
.nfs-site-header nav a:hover { color: #fff; }
.nfs-site-main { width: min(1220px, calc(100% - 32px)); min-height: 70vh; margin: 0 auto; padding: 52px 0 80px; }
.nfs-breadcrumbs { display: flex; margin: 0 0 26px; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--nfs-muted); font-size: 12px; }
.nfs-breadcrumbs a { color: var(--nfs-copy); font-weight: 800; text-decoration: none; }
.nfs-breadcrumbs strong { color: #fff; }

.nfs-site-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 8vw, 88px);
    border: 1px solid var(--nfs-line);
    border-radius: 24px;
    background: radial-gradient(circle at 90% 20%, rgba(237, 27, 58, .25), transparent 34%), linear-gradient(135deg, #151c25, #090d12 70%);
}

.nfs-site-hero:after {
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    bottom: -170px;
    border: 50px solid rgba(255, 255, 255, .025);
    border-radius: 50%;
    content: "";
}

.nfs-site-hero h1,
.nfs-site-page-head h1,
.nfs-site-identity-head h1 { margin: 0; color: #fff; font-size: clamp(40px, 7vw, 76px); line-height: .98; letter-spacing: -.045em; }
.nfs-site-hero > p:not(.nfs-stats-kicker),
.nfs-site-page-head > p:last-child,
.nfs-site-identity-head p { max-width: 700px; margin: 20px 0 0; color: var(--nfs-copy); font-size: 18px; }

.nfs-site-search { position: relative; z-index: 1; display: flex; max-width: 760px; margin-top: 34px; gap: 10px; }
.nfs-site-search input { min-width: 0; flex: 1; padding: 16px 18px; border: 1px solid #3a4654; border-radius: 10px; outline: 0; background: #0b1016; color: #fff; font: inherit; }
.nfs-site-search input:focus { border-color: var(--nfs-red); box-shadow: 0 0 0 3px rgba(237, 27, 58, .13); }
.nfs-site-search button { padding: 0 22px; border: 0; border-radius: 10px; background: var(--nfs-red); color: #fff; font-weight: 900; cursor: pointer; }
.nfs-site-search.is-compact { max-width: none; margin: 0 0 26px; }

.nfs-site-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.nfs-site-counts div { padding: 22px; border: 1px solid var(--nfs-line); border-radius: 14px; background: var(--nfs-card); }
.nfs-site-counts strong { display: block; color: #fff; font-size: 30px; }
.nfs-site-counts span { color: var(--nfs-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nfs-site-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; }
.nfs-site-grid .nfs-stats-card { margin-top: 0; }
.nfs-home-competitions { margin-bottom: 20px; }
.nfs-site-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.nfs-site-section-head h2 { margin: 0; }
.nfs-site-section-head a { color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.nfs-site-muted { color: var(--nfs-muted); }
.nfs-stats-table-wrap a { color: #fff; font-weight: 800; text-decoration: none; }
.nfs-stats-table-wrap a:hover { color: var(--nfs-red); }

.nfs-site-team-list { display: grid; gap: 9px; margin-top: 20px; }
.nfs-site-team-list > a { display: flex; padding: 9px; align-items: center; gap: 12px; border-radius: 10px; color: var(--nfs-copy); font-weight: 800; text-decoration: none; }
.nfs-site-team-list > a:hover { background: #18212b; color: #fff; }
.nfs-site-logo { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid var(--nfs-line); border-radius: 10px; background: #fff; color: #111820; font-size: 10px; font-weight: 950; }
.nfs-site-logo img { width: 34px; height: 34px; object-fit: contain; }
.nfs-site-logo.is-large { width: 104px; height: 104px; flex-basis: 104px; border-radius: 18px; }
.nfs-site-logo.is-large img { width: 86px; height: 86px; }

.nfs-site-page-head { margin-bottom: 32px; padding: 28px 0 10px; }
.nfs-site-identity-head { display: flex; margin-bottom: 28px; padding: 26px; align-items: center; gap: 24px; border: 1px solid var(--nfs-line); border-radius: 18px; background: linear-gradient(135deg, #151c25, #0a0e13 70%); }
.nfs-site-identity-head h1 { font-size: clamp(36px, 6vw, 62px); }

.nfs-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nfs-player-card { display: flex; min-width: 0; padding: 15px; align-items: center; gap: 13px; border: 1px solid var(--nfs-line); border-radius: 13px; background: var(--nfs-card); color: #fff; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.nfs-player-card:hover { transform: translateY(-2px); border-color: #4a5969; }
.nfs-player-card > span:last-child { min-width: 0; }
.nfs-player-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nfs-player-card small { display: block; margin-top: 4px; overflow: hidden; color: var(--nfs-muted); text-overflow: ellipsis; white-space: nowrap; }
.nfs-player-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: #232e3a; font-size: 13px; font-weight: 950; }

.nfs-alpha-nav { display: flex; margin: -10px 0 26px; flex-wrap: wrap; gap: 6px; }
.nfs-alpha-nav a { display: grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; border: 1px solid var(--nfs-line); border-radius: 7px; background: var(--nfs-card); color: var(--nfs-copy); font-size: 12px; font-weight: 900; text-decoration: none; }
.nfs-alpha-nav a:hover { border-color: var(--nfs-red); color: #fff; }

.nfs-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nfs-team-card { display: flex; min-height: 210px; padding: 24px; align-items: center; justify-content: center; flex-direction: column; gap: 16px; border: 1px solid var(--nfs-line); border-radius: 16px; background: var(--nfs-card); color: #fff; text-align: center; text-decoration: none; }
.nfs-team-card:hover { border-color: #4a5969; background: #141c25; }
.nfs-team-card strong { font-size: 17px; }
.nfs-team-card small { color: var(--nfs-muted); }

.nfs-competition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.nfs-competition-card { display: flex; min-height: 150px; padding: 22px; justify-content: center; flex-direction: column; border: 1px solid var(--nfs-line); border-radius: 15px; background: linear-gradient(145deg, #121922, #0d1218); color: #fff; text-decoration: none; }
.nfs-competition-card:hover { border-color: #4a5969; transform: translateY(-2px); }
.nfs-competition-card > span { margin-bottom: 8px; color: var(--nfs-red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nfs-competition-card strong { font-size: 20px; }
.nfs-competition-card small { margin-top: 10px; color: var(--nfs-muted); line-height: 1.5; }
.nfs-site-team-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nfs-site-team-list.is-grid > a { border: 1px solid var(--nfs-line); background: #0c1117; }
.nfs-site-team-list.is-grid small { display: block; margin-top: 3px; color: var(--nfs-muted); font-size: 11px; }

.nfs-pagination { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 7px; }
.nfs-pagination a,
.nfs-season-tabs a { display: inline-flex; min-width: 38px; min-height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--nfs-line); border-radius: 8px; background: var(--nfs-card); color: var(--nfs-copy); font-size: 13px; font-weight: 800; text-decoration: none; }
.nfs-pagination a.is-current,
.nfs-season-tabs a.is-current { border-color: var(--nfs-red); background: var(--nfs-red); color: #fff; }
.nfs-season-tabs { display: flex; margin-bottom: 22px; flex-wrap: wrap; gap: 8px; }
.nfs-site-footer { display: flex; width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 42px; justify-content: space-between; gap: 20px; border-top: 1px solid var(--nfs-line); color: var(--nfs-muted); font-size: 12px; }
.nfs-site-footer a { color: var(--nfs-copy); text-decoration: none; }

@media (max-width: 900px) {
    .nfs-site-counts { grid-template-columns: repeat(2, 1fr); }
    .nfs-site-grid { grid-template-columns: 1fr; }
    .nfs-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfs-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nfs-competition-grid,
    .nfs-site-team-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .nfs-profile-nav { align-items: flex-start; flex-direction: column; }
    .nfs-site-header-inner { width: min(100% - 20px, 1220px); min-height: 62px; }
    .nfs-site-header nav { gap: 13px; overflow-x: auto; }
    .nfs-site-header nav a { white-space: nowrap; }
    .nfs-site-header nav a:last-child { display: none; }
    .nfs-site-header .nfs-stats-brand { font-size: 11px; }
    .nfs-site-main { width: min(100% - 20px, 1220px); padding-top: 24px; }
    .nfs-site-hero { padding: 30px 22px; border-radius: 18px; }
    .nfs-site-search { flex-direction: column; }
    .nfs-site-search button { min-height: 48px; }
    .nfs-player-grid { grid-template-columns: 1fr; }
    .nfs-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfs-competition-grid,
    .nfs-site-team-list.is-grid { grid-template-columns: 1fr; }
    .nfs-team-card { min-height: 185px; padding: 16px; }
    .nfs-site-identity-head { align-items: flex-start; flex-direction: column; }
    .nfs-site-footer { align-items: flex-start; flex-direction: column; }
}

/* 0.14 directory and archive refinements */
.nfs-stats-site-page *, .nfs-stats-profile-page * { box-sizing: border-box; }
.nfs-directory-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; padding:20px; margin:22px 0; border:1px solid var(--nfs-line); border-radius:12px; background:var(--nfs-card); }
.nfs-directory-filters label { display:grid; gap:8px; flex:1 1 220px; color:var(--nfs-copy); font-size:13px; font-weight:700; }
.nfs-directory-filters input,.nfs-directory-filters select { width:100%; min-height:44px; padding:10px 12px; border:1px solid #465365; border-radius:6px; background:#0b1016; color:#fff; font:inherit; color-scheme:dark; }
.nfs-directory-filters button { min-height:44px; padding:10px 22px; background:var(--nfs-red); color:#fff; border:0; border-radius:6px; font-weight:800; cursor:pointer; }
.nfs-directory-filters > a { padding:12px; color:var(--nfs-copy); }
.nfs-team-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.nfs-team-card { align-items:flex-start; text-align:left; padding:24px; gap:10px; border-top:3px solid #344253; }
.nfs-team-card:hover { border-top-color:var(--nfs-red); }
.nfs-team-card .nfs-site-logo { margin-bottom:10px; }
.nfs-team-tier { display:inline-block; padding:4px 9px; border:1px solid #465365; border-radius:4px; color:var(--nfs-copy); font-size:11px; font-weight:800; }
.nfs-team-card strong { font-size:20px; line-height:1.25; overflow-wrap:anywhere; }
.nfs-team-card small { line-height:1.5; }
.nfs-stats-card h2 { padding-bottom:14px; border-bottom:1px solid var(--nfs-line); font-size:24px; }
.nfs-stats-table-wrap { border:1px solid var(--nfs-line); border-radius:8px; margin-top:18px; max-height:640px; }
.nfs-stats-table-wrap th { position:sticky; top:0; z-index:2; background:#192330; color:#b9c6d6; font-size:11px; letter-spacing:.05em; }
.nfs-stats-table-wrap td { font-variant-numeric:tabular-nums; }
.nfs-stats-table-wrap tbody tr:nth-child(even) { background:rgba(255,255,255,.025); }
.nfs-stats-table-wrap tbody tr:hover { background:rgba(237,27,58,.07); }
.nfs-stats-table-wrap th:first-child,.nfs-stats-table-wrap td:first-child { position:sticky; left:0; background:#10161d; }
.nfs-stats-table-wrap th:first-child { z-index:3; background:#192330; }
.nfs-site-identity-head,.nfs-stats-hero { border-left:4px solid var(--nfs-red); }
.nfs-stats-profile-page .nfs-stats-id { display:none; }
.nfs-player-card small { white-space:normal; }
.nfs-profile-nav nav { flex-wrap:wrap; }
.nfs-career-summary { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0 0; }
.nfs-career-summary span { padding:12px 16px; background:#0b1016; border:1px solid var(--nfs-line); border-radius:8px; color:var(--nfs-copy); font-size:13px; }
.nfs-career-summary strong { color:#fff; font-size:20px; margin-right:5px; }
.nfs-stats-site-page a:focus-visible,.nfs-stats-profile-page a:focus-visible,.nfs-directory-filters :focus-visible { outline:2px solid #fff; outline-offset:3px; }
@media(max-width:900px) { .nfs-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .nfs-team-grid { grid-template-columns:1fr; } .nfs-team-card { min-height:0; } .nfs-site-identity-head { align-items:flex-start; flex-direction:column; } .nfs-directory-filters { padding:14px; } .nfs-directory-filters label { flex-basis:100%; } .nfs-profile-nav { flex-direction:column; align-items:flex-start; } .nfs-stats-table-wrap { max-height:520px; } }
